Class ContactSettings.Builder (1.39.0)

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

Defines the contact information associated with a Registration.

ICANN requires all domain names to have associated contact information. The registrant_contact is considered the domain's legal owner, and often the other contacts are identical.

Protobuf type google.cloud.domains.v1beta1.ContactSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ContactSettings build()
Returns
Type Description
ContactSettings

buildPartial()

public ContactSettings buildPartial()
Returns
Type Description
ContactSettings

clear()

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

clearAdminContact()

public ContactSettings.Builder clearAdminContact()

Required. The administrative contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactSettings.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrivacy()

public ContactSettings.Builder clearPrivacy()

Required. Privacy setting for the contacts associated with the Registration.

.google.cloud.domains.v1beta1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactSettings.Builder

This builder for chaining.

clearRegistrantContact()

public ContactSettings.Builder clearRegistrantContact()

Required. The registrant contact for the Registration.

Caution: Anyone with access to this email address, phone number, and/or postal address can take control of the domain.

Warning: For new Registrations, the registrant receives an email confirmation that they must complete within 15 days to avoid domain suspension.

.google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactSettings.Builder

clearTechnicalContact()

public ContactSettings.Builder clearTechnicalContact()

Required. The technical contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactSettings.Builder

clone()

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

getAdminContact()

public ContactSettings.Contact getAdminContact()

Required. The administrative contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactSettings.Contact

The adminContact.

getAdminContactBuilder()

public ContactSettings.Contact.Builder getAdminContactBuilder()

Required. The administrative contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactSettings.Contact.Builder

getAdminContactOrBuilder()

public ContactSettings.ContactOrBuilder getAdminContactOrBuilder()

Required. The administrative contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactSettings.ContactOrBuilder

getDefaultInstanceForType()

public ContactSettings getDefaultInstanceForType()
Returns
Type Description
ContactSettings

getDescriptorForType()

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

getPrivacy()

public ContactPrivacy getPrivacy()

Required. Privacy setting for the contacts associated with the Registration.

.google.cloud.domains.v1beta1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactPrivacy

The privacy.

getPrivacyValue()

public int getPrivacyValue()

Required. Privacy setting for the contacts associated with the Registration.

.google.cloud.domains.v1beta1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for privacy.

getRegistrantContact()

public ContactSettings.Contact getRegistrantContact()

Required. The registrant contact for the Registration.

Caution: Anyone with access to this email address, phone number, and/or postal address can take control of the domain.

Warning: For new Registrations, the registrant receives an email confirmation that they must complete within 15 days to avoid domain suspension.

.google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactSettings.Contact

The registrantContact.

getRegistrantContactBuilder()

public ContactSettings.Contact.Builder getRegistrantContactBuilder()

Required. The registrant contact for the Registration.

Caution: Anyone with access to this email address, phone number, and/or postal address can take control of the domain.

Warning: For new Registrations, the registrant receives an email confirmation that they must complete within 15 days to avoid domain suspension.

.google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactSettings.Contact.Builder

getRegistrantContactOrBuilder()

public ContactSettings.ContactOrBuilder getRegistrantContactOrBuilder()

Required. The registrant contact for the Registration.

Caution: Anyone with access to this email address, phone number, and/or postal address can take control of the domain.

Warning: For new Registrations, the registrant receives an email confirmation that they must complete within 15 days to avoid domain suspension.

.google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactSettings.ContactOrBuilder

getTechnicalContact()

public ContactSettings.Contact getTechnicalContact()

Required. The technical contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactSettings.Contact

The technicalContact.

getTechnicalContactBuilder()

public ContactSettings.Contact.Builder getTechnicalContactBuilder()

Required. The technical contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactSettings.Contact.Builder

getTechnicalContactOrBuilder()

public ContactSettings.ContactOrBuilder getTechnicalContactOrBuilder()

Required. The technical contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactSettings.ContactOrBuilder

hasAdminContact()

public boolean hasAdminContact()

Required. The administrative contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the adminContact field is set.

hasRegistrantContact()

public boolean hasRegistrantContact()

Required. The registrant contact for the Registration.

Caution: Anyone with access to this email address, phone number, and/or postal address can take control of the domain.

Warning: For new Registrations, the registrant receives an email confirmation that they must complete within 15 days to avoid domain suspension.

.google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the registrantContact field is set.

hasTechnicalContact()

public boolean hasTechnicalContact()

Required. The technical contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the technicalContact field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAdminContact(ContactSettings.Contact value)

public ContactSettings.Builder mergeAdminContact(ContactSettings.Contact value)

Required. The administrative contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ContactSettings.Contact
Returns
Type Description
ContactSettings.Builder

mergeFrom(ContactSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRegistrantContact(ContactSettings.Contact value)

public ContactSettings.Builder mergeRegistrantContact(ContactSettings.Contact value)

Required. The registrant contact for the Registration.

Caution: Anyone with access to this email address, phone number, and/or postal address can take control of the domain.

Warning: For new Registrations, the registrant receives an email confirmation that they must complete within 15 days to avoid domain suspension.

.google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ContactSettings.Contact
Returns
Type Description
ContactSettings.Builder

mergeTechnicalContact(ContactSettings.Contact value)

public ContactSettings.Builder mergeTechnicalContact(ContactSettings.Contact value)

Required. The technical contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ContactSettings.Contact
Returns
Type Description
ContactSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAdminContact(ContactSettings.Contact value)

public ContactSettings.Builder setAdminContact(ContactSettings.Contact value)

Required. The administrative contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ContactSettings.Contact
Returns
Type Description
ContactSettings.Builder

setAdminContact(ContactSettings.Contact.Builder builderForValue)

public ContactSettings.Builder setAdminContact(ContactSettings.Contact.Builder builderForValue)

Required. The administrative contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED];

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrivacy(ContactPrivacy value)

public ContactSettings.Builder setPrivacy(ContactPrivacy value)

Required. Privacy setting for the contacts associated with the Registration.

.google.cloud.domains.v1beta1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ContactPrivacy

The privacy to set.

Returns
Type Description
ContactSettings.Builder

This builder for chaining.

setPrivacyValue(int value)

public ContactSettings.Builder setPrivacyValue(int value)

Required. Privacy setting for the contacts associated with the Registration.

.google.cloud.domains.v1beta1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for privacy to set.

Returns
Type Description
ContactSettings.Builder

This builder for chaining.

setRegistrantContact(ContactSettings.Contact value)

public ContactSettings.Builder setRegistrantContact(ContactSettings.Contact value)

Required. The registrant contact for the Registration.

Caution: Anyone with access to this email address, phone number, and/or postal address can take control of the domain.

Warning: For new Registrations, the registrant receives an email confirmation that they must complete within 15 days to avoid domain suspension.

.google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ContactSettings.Contact
Returns
Type Description
ContactSettings.Builder

setRegistrantContact(ContactSettings.Contact.Builder builderForValue)

public ContactSettings.Builder setRegistrantContact(ContactSettings.Contact.Builder builderForValue)

Required. The registrant contact for the Registration.

Caution: Anyone with access to this email address, phone number, and/or postal address can take control of the domain.

Warning: For new Registrations, the registrant receives an email confirmation that they must complete within 15 days to avoid domain suspension.

.google.cloud.domains.v1beta1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

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

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

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

setTechnicalContact(ContactSettings.Contact value)

public ContactSettings.Builder setTechnicalContact(ContactSettings.Contact value)

Required. The technical contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ContactSettings.Contact
Returns
Type Description
ContactSettings.Builder

setTechnicalContact(ContactSettings.Contact.Builder builderForValue)

public ContactSettings.Builder setTechnicalContact(ContactSettings.Contact.Builder builderForValue)

Required. The technical contact for the Registration.

.google.cloud.domains.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED];

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

setUnknownFields(UnknownFieldSet unknownFields)

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