Google Cloud Essential Contacts V1 Client - Class UpdateContactRequest (0.3.4)

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

Request message for the UpdateContact method.

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

Namespace

Google \ Cloud \ EssentialContacts \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ contact Google\Cloud\EssentialContacts\V1\Contact

Required. The contact resource to replace the existing saved contact. Note: the email address of the contact cannot be modified.

↳ update_mask Google\Protobuf\FieldMask

Optional. The update mask applied to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

getContact

Required. The contact resource to replace the existing saved contact. Note: the email address of the contact cannot be modified.

Returns
TypeDescription
Google\Cloud\EssentialContacts\V1\Contact|null

hasContact

clearContact

setContact

Required. The contact resource to replace the existing saved contact. Note: the email address of the contact cannot be modified.

Parameter
NameDescription
var Google\Cloud\EssentialContacts\V1\Contact
Returns
TypeDescription
$this

getUpdateMask

Optional. The update mask applied to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Optional. The update mask applied to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
contact Google\Cloud\EssentialContacts\V1\Contact

Required. The contact resource to replace the existing saved contact. Note: the email address of the contact cannot be modified.

updateMask Google\Protobuf\FieldMask

Optional. The update mask applied to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

Returns
TypeDescription
Google\Cloud\EssentialContacts\V1\UpdateContactRequest