Class UpdateContactRequest.Builder (2.33.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateContactRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateContactRequest.Builder
Overrides

build()

public UpdateContactRequest build()
Returns
TypeDescription
UpdateContactRequest

buildPartial()

public UpdateContactRequest buildPartial()
Returns
TypeDescription
UpdateContactRequest

clear()

public UpdateContactRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
UpdateContactRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateContactRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpdateContactRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateContactRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateContactRequest.Builder

clone()

public UpdateContactRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ContactOrBuilder

getDefaultInstanceForType()

public UpdateContactRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateContactRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueContact
Returns
TypeDescription
UpdateContactRequest.Builder

mergeFrom(UpdateContactRequest other)

public UpdateContactRequest.Builder mergeFrom(UpdateContactRequest other)
Parameter
NameDescription
otherUpdateContactRequest
Returns
TypeDescription
UpdateContactRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateContactRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateContactRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpdateContactRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateContactRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateContactRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
valueContact
Returns
TypeDescription
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
NameDescription
builderForValueContact.Builder
Returns
TypeDescription
UpdateContactRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateContactRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateContactRequest.Builder
Overrides

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

public UpdateContactRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateContactRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateContactRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateContactRequest.Builder