Class UpdateContactRequest.Builder (2.83.0)

public static final class UpdateContactRequest.Builder extends GeneratedMessage.Builder<UpdateContactRequest.Builder> implements UpdateContactRequestOrBuilder

Request message for the UpdateContact method.

Protobuf type google.cloud.essentialcontacts.v1.UpdateContactRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public UpdateContactRequest build()
Returns
Type Description
UpdateContactRequest

buildPartial()

public UpdateContactRequest buildPartial()
Returns
Type Description
UpdateContactRequest

clear()

public UpdateContactRequest.Builder clear()
Returns
Type Description
UpdateContactRequest.Builder
Overrides

clearContact()

public UpdateContactRequest.Builder clearContact()

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

.google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateContactRequest.Builder

clearUpdateMask()

public UpdateContactRequest.Builder clearUpdateMask()

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

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpdateContactRequest.Builder

getContact()

public Contact getContact()

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

.google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Contact

The contact.

getContactBuilder()

public Contact.Builder getContactBuilder()

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

.google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Contact.Builder

getContactOrBuilder()

public ContactOrBuilder getContactOrBuilder()

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

.google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactOrBuilder

getDefaultInstanceForType()

public UpdateContactRequest getDefaultInstanceForType()
Returns
Type Description
UpdateContactRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUpdateMask()

public FieldMask 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

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

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

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

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

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMaskOrBuilder

hasContact()

public boolean hasContact()

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

.google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the contact field is set.

hasUpdateMask()

public boolean hasUpdateMask()

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

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeContact(Contact value)

public UpdateContactRequest.Builder mergeContact(Contact value)

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

.google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Contact
Returns
Type Description
UpdateContactRequest.Builder

mergeFrom(UpdateContactRequest other)

public UpdateContactRequest.Builder mergeFrom(UpdateContactRequest other)
Parameter
Name Description
other UpdateContactRequest
Returns
Type Description
UpdateContactRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateContactRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateContactRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateContactRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateContactRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateContactRequest.Builder mergeUpdateMask(FieldMask value)

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

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateContactRequest.Builder

setContact(Contact value)

public UpdateContactRequest.Builder setContact(Contact value)

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

.google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Contact
Returns
Type Description
UpdateContactRequest.Builder

setContact(Contact.Builder builderForValue)

public UpdateContactRequest.Builder setContact(Contact.Builder builderForValue)

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

.google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Contact.Builder
Returns
Type Description
UpdateContactRequest.Builder

setUpdateMask(FieldMask value)

public UpdateContactRequest.Builder setUpdateMask(FieldMask value)

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

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateContactRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateContactRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

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

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateContactRequest.Builder