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

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
Name Description
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
Type Description
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
Name Description
var Google\Cloud\EssentialContacts\V1\Contact
Returns
Type Description
$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
Type Description
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
Name Description
var Google\Protobuf\FieldMask
Returns
Type Description
$this

static::build

Parameters
Name Description
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
Type Description
Google\Cloud\EssentialContacts\V1\UpdateContactRequest