Class ContactSettings.Contact.Builder (1.40.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.v1alpha2.ContactSettings.Contact

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ContactSettings.Contact build()
Returns
Type Description
ContactSettings.Contact

buildPartial()

public ContactSettings.Contact buildPartial()
Returns
Type Description
ContactSettings.Contact

clear()

public ContactSettings.Contact.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
ContactSettings.Contact.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ContactSettings.Contact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
ContactSettings.Contact.Builder

clone()

public ContactSettings.Contact.Builder clone()
Returns
Type Description
ContactSettings.Contact.Builder
Overrides

getDefaultInstanceForType()

public ContactSettings.Contact getDefaultInstanceForType()
Returns
Type Description
ContactSettings.Contact

getDescriptorForType()

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

getEmail()

public String getEmail()

Required. Email address of the contact.

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

Returns
Type Description
String

The email.

getEmailBytes()

public ByteString getEmailBytes()

Required. Email address of the contact.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the postalAddress field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContactSettings.Contact other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ContactSettings.Contact.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value com.google.type.PostalAddress
Returns
Type Description
ContactSettings.Contact.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContactSettings.Contact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The email to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for email to set.

Returns
Type Description
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
Name Description
value String

The faxNumber to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for faxNumber to set.

Returns
Type Description
ContactSettings.Contact.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ContactSettings.Contact.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The phoneNumber to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for phoneNumber to set.

Returns
Type Description
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
Name Description
value com.google.type.PostalAddress
Returns
Type Description
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
Name Description
builderForValue com.google.type.PostalAddress.Builder
Returns
Type Description
ContactSettings.Contact.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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