Class UpdateContactRequest.Builder (2.51.0)

public static final class UpdateContactRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateContactRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateContactRequest.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public UpdateContactRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateContactRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateContactRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateContactRequest.Builder
Overrides

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateContactRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateContactRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateContactRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UpdateContactRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateContactRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateContactRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateContactRequest.Builder
Overrides

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