Google Cloud Essential Contacts V1 Client - Class CreateContactRequest (1.0.4)

Reference documentation and code samples for the Google Cloud Essential Contacts V1 Client class CreateContactRequest.

Request message for the CreateContact method.

Generated from protobuf message google.cloud.essentialcontacts.v1.CreateContactRequest

Namespace

Google \ Cloud \ EssentialContacts \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ parentstring

Required. The resource to save this contact for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

↳ contactContact

Required. The contact to create. Must specify an email address and language tag.

getParent

Required. The resource to save this contact for.

Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

Returns
TypeDescription
string

setParent

Required. The resource to save this contact for.

Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getContact

Required. The contact to create. Must specify an email address and language tag.

Returns
TypeDescription
Contact|null

hasContact

clearContact

setContact

Required. The contact to create. Must specify an email address and language tag.

Parameter
NameDescription
varContact
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parentstring

Required. The resource to save this contact for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id} Please see EssentialContactsServiceClient::projectName() for help formatting this field.

contactContact

Required. The contact to create. Must specify an email address and language tag.

Returns
TypeDescription
CreateContactRequest