Class ContactSettings.Contact.Builder (1.29.0)

public static final class ContactSettings.Contact.Builder extends GeneratedMessageV3.Builder<ContactSettings.Contact.Builder> implements ContactSettings.ContactOrBuilder

Details required for a contact associated with a Registration.

Protobuf type google.cloud.domains.v1.ContactSettings.Contact

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ContactSettings.Contact build()
Returns
TypeDescription
ContactSettings.Contact

buildPartial()

public ContactSettings.Contact buildPartial()
Returns
TypeDescription
ContactSettings.Contact

clear()

public ContactSettings.Contact.Builder clear()
Returns
TypeDescription
ContactSettings.Contact.Builder
Overrides

clearEmail()

public ContactSettings.Contact.Builder clearEmail()

Required. Email address of the contact.

string email = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ContactSettings.Contact.Builder

This builder for chaining.

clearFaxNumber()

public ContactSettings.Contact.Builder clearFaxNumber()

Fax number of the contact in international format. For example, "+1-800-555-0123".

string fax_number = 4;

Returns
TypeDescription
ContactSettings.Contact.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ContactSettings.Contact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ContactSettings.Contact.Builder
Overrides

clearPhoneNumber()

public ContactSettings.Contact.Builder clearPhoneNumber()

Required. Phone number of the contact in international format. For example, "+1-800-555-0123".

string phone_number = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ContactSettings.Contact.Builder

This builder for chaining.

clearPostalAddress()

public ContactSettings.Contact.Builder clearPostalAddress()

Required. Postal address of the contact.

.google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ContactSettings.Contact.Builder

clone()

public ContactSettings.Contact.Builder clone()
Returns
TypeDescription
ContactSettings.Contact.Builder
Overrides

getDefaultInstanceForType()

public ContactSettings.Contact getDefaultInstanceForType()
Returns
TypeDescription
ContactSettings.Contact

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEmail()

public String getEmail()

Required. Email address of the contact.

string email = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The email.

getEmailBytes()

public ByteString getEmailBytes()

Required. Email address of the contact.

string email = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for email.

getFaxNumber()

public String getFaxNumber()

Fax number of the contact in international format. For example, "+1-800-555-0123".

string fax_number = 4;

Returns
TypeDescription
String

The faxNumber.

getFaxNumberBytes()

public ByteString getFaxNumberBytes()

Fax number of the contact in international format. For example, "+1-800-555-0123".

string fax_number = 4;

Returns
TypeDescription
ByteString

The bytes for faxNumber.

getPhoneNumber()

public String getPhoneNumber()

Required. Phone number of the contact in international format. For example, "+1-800-555-0123".

string phone_number = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The phoneNumber.

getPhoneNumberBytes()

public ByteString getPhoneNumberBytes()

Required. Phone number of the contact in international format. For example, "+1-800-555-0123".

string phone_number = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for phoneNumber.

getPostalAddress()

public PostalAddress getPostalAddress()

Required. Postal address of the contact.

.google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
com.google.type.PostalAddress

The postalAddress.

getPostalAddressBuilder()

public PostalAddress.Builder getPostalAddressBuilder()

Required. Postal address of the contact.

.google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
com.google.type.PostalAddress.Builder

getPostalAddressOrBuilder()

public PostalAddressOrBuilder getPostalAddressOrBuilder()

Required. Postal address of the contact.

.google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
com.google.type.PostalAddressOrBuilder

hasPostalAddress()

public boolean hasPostalAddress()

Required. Postal address of the contact.

.google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the postalAddress field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ContactSettings.Contact other)

public ContactSettings.Contact.Builder mergeFrom(ContactSettings.Contact other)
Parameter
NameDescription
otherContactSettings.Contact
Returns
TypeDescription
ContactSettings.Contact.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePostalAddress(PostalAddress value)

public ContactSettings.Contact.Builder mergePostalAddress(PostalAddress value)

Required. Postal address of the contact.

.google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuecom.google.type.PostalAddress
Returns
TypeDescription
ContactSettings.Contact.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContactSettings.Contact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ContactSettings.Contact.Builder
Overrides

setEmail(String value)

public ContactSettings.Contact.Builder setEmail(String value)

Required. Email address of the contact.

string email = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The email to set.

Returns
TypeDescription
ContactSettings.Contact.Builder

This builder for chaining.

setEmailBytes(ByteString value)

public ContactSettings.Contact.Builder setEmailBytes(ByteString value)

Required. Email address of the contact.

string email = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for email to set.

Returns
TypeDescription
ContactSettings.Contact.Builder

This builder for chaining.

setFaxNumber(String value)

public ContactSettings.Contact.Builder setFaxNumber(String value)

Fax number of the contact in international format. For example, "+1-800-555-0123".

string fax_number = 4;

Parameter
NameDescription
valueString

The faxNumber to set.

Returns
TypeDescription
ContactSettings.Contact.Builder

This builder for chaining.

setFaxNumberBytes(ByteString value)

public ContactSettings.Contact.Builder setFaxNumberBytes(ByteString value)

Fax number of the contact in international format. For example, "+1-800-555-0123".

string fax_number = 4;

Parameter
NameDescription
valueByteString

The bytes for faxNumber to set.

Returns
TypeDescription
ContactSettings.Contact.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPhoneNumber(String value)

public ContactSettings.Contact.Builder setPhoneNumber(String value)

Required. Phone number of the contact in international format. For example, "+1-800-555-0123".

string phone_number = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The phoneNumber to set.

Returns
TypeDescription
ContactSettings.Contact.Builder

This builder for chaining.

setPhoneNumberBytes(ByteString value)

public ContactSettings.Contact.Builder setPhoneNumberBytes(ByteString value)

Required. Phone number of the contact in international format. For example, "+1-800-555-0123".

string phone_number = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for phoneNumber to set.

Returns
TypeDescription
ContactSettings.Contact.Builder

This builder for chaining.

setPostalAddress(PostalAddress value)

public ContactSettings.Contact.Builder setPostalAddress(PostalAddress value)

Required. Postal address of the contact.

.google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuecom.google.type.PostalAddress
Returns
TypeDescription
ContactSettings.Contact.Builder

setPostalAddress(PostalAddress.Builder builderForValue)

public ContactSettings.Contact.Builder setPostalAddress(PostalAddress.Builder builderForValue)

Required. Postal address of the contact.

.google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValuecom.google.type.PostalAddress.Builder
Returns
TypeDescription
ContactSettings.Contact.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ContactSettings.Contact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ContactSettings.Contact.Builder
Overrides