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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ContactSettings build()
Returns
TypeDescription
ContactSettings

buildPartial()

public ContactSettings buildPartial()
Returns
TypeDescription
ContactSettings

clear()

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

clearAdminContact()

public ContactSettings.Builder clearAdminContact()

Required. The administrative contact for the Registration.

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

Returns
TypeDescription
ContactSettings.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrivacy()

public ContactSettings.Builder clearPrivacy()

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

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

Returns
TypeDescription
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.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ContactSettings.Builder

clearTechnicalContact()

public ContactSettings.Builder clearTechnicalContact()

Required. The technical contact for the Registration.

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

Returns
TypeDescription
ContactSettings.Builder

clone()

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

getAdminContact()

public ContactSettings.Contact getAdminContact()

Required. The administrative contact for the Registration.

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

Returns
TypeDescription
ContactSettings.Contact

The adminContact.

getAdminContactBuilder()

public ContactSettings.Contact.Builder getAdminContactBuilder()

Required. The administrative contact for the Registration.

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

Returns
TypeDescription
ContactSettings.Contact.Builder

getAdminContactOrBuilder()

public ContactSettings.ContactOrBuilder getAdminContactOrBuilder()

Required. The administrative contact for the Registration.

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

Returns
TypeDescription
ContactSettings.ContactOrBuilder

getDefaultInstanceForType()

public ContactSettings getDefaultInstanceForType()
Returns
TypeDescription
ContactSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPrivacy()

public ContactPrivacy getPrivacy()

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

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

Returns
TypeDescription
ContactPrivacy

The privacy.

getPrivacyValue()

public int getPrivacyValue()

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

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

Returns
TypeDescription
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.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ContactSettings.ContactOrBuilder

getTechnicalContact()

public ContactSettings.Contact getTechnicalContact()

Required. The technical contact for the Registration.

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

Returns
TypeDescription
ContactSettings.Contact

The technicalContact.

getTechnicalContactBuilder()

public ContactSettings.Contact.Builder getTechnicalContactBuilder()

Required. The technical contact for the Registration.

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

Returns
TypeDescription
ContactSettings.Contact.Builder

getTechnicalContactOrBuilder()

public ContactSettings.ContactOrBuilder getTechnicalContactOrBuilder()

Required. The technical contact for the Registration.

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

Returns
TypeDescription
ContactSettings.ContactOrBuilder

hasAdminContact()

public boolean hasAdminContact()

Required. The administrative contact for the Registration.

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

Returns
TypeDescription
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.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the registrantContact field is set.

hasTechnicalContact()

public boolean hasTechnicalContact()

Required. The technical contact for the Registration.

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

Returns
TypeDescription
boolean

Whether the technicalContact field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAdminContact(ContactSettings.Contact value)

public ContactSettings.Builder mergeAdminContact(ContactSettings.Contact value)

Required. The administrative contact for the Registration.

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

Parameter
NameDescription
valueContactSettings.Contact
Returns
TypeDescription
ContactSettings.Builder

mergeFrom(ContactSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ContactSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueContactSettings.Contact
Returns
TypeDescription
ContactSettings.Builder

mergeTechnicalContact(ContactSettings.Contact value)

public ContactSettings.Builder mergeTechnicalContact(ContactSettings.Contact value)

Required. The technical contact for the Registration.

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

Parameter
NameDescription
valueContactSettings.Contact
Returns
TypeDescription
ContactSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAdminContact(ContactSettings.Contact value)

public ContactSettings.Builder setAdminContact(ContactSettings.Contact value)

Required. The administrative contact for the Registration.

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

Parameter
NameDescription
valueContactSettings.Contact
Returns
TypeDescription
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.v1alpha2.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueContactSettings.Contact.Builder
Returns
TypeDescription
ContactSettings.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ContactSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1alpha2.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueContactPrivacy

The privacy to set.

Returns
TypeDescription
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.v1alpha2.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueContactSettings.Contact
Returns
TypeDescription
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.v1alpha2.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueContactSettings.Contact.Builder
Returns
TypeDescription
ContactSettings.Builder

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

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

setTechnicalContact(ContactSettings.Contact value)

public ContactSettings.Builder setTechnicalContact(ContactSettings.Contact value)

Required. The technical contact for the Registration.

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

Parameter
NameDescription
valueContactSettings.Contact
Returns
TypeDescription
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.v1alpha2.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueContactSettings.Contact.Builder
Returns
TypeDescription
ContactSettings.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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