Class ContactSettings (1.45.0)

public final class ContactSettings extends GeneratedMessageV3 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.v1.ContactSettings

Static Fields

ADMIN_CONTACT_FIELD_NUMBER

public static final int ADMIN_CONTACT_FIELD_NUMBER
Field Value
Type Description
int

PRIVACY_FIELD_NUMBER

public static final int PRIVACY_FIELD_NUMBER
Field Value
Type Description
int

REGISTRANT_CONTACT_FIELD_NUMBER

public static final int REGISTRANT_CONTACT_FIELD_NUMBER
Field Value
Type Description
int

TECHNICAL_CONTACT_FIELD_NUMBER

public static final int TECHNICAL_CONTACT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ContactSettings getDefaultInstance()
Returns
Type Description
ContactSettings

getDescriptor()

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

newBuilder()

public static ContactSettings.Builder newBuilder()
Returns
Type Description
ContactSettings.Builder

newBuilder(ContactSettings prototype)

public static ContactSettings.Builder newBuilder(ContactSettings prototype)
Parameter
Name Description
prototype ContactSettings
Returns
Type Description
ContactSettings.Builder

parseDelimitedFrom(InputStream input)

public static ContactSettings parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ContactSettings
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContactSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContactSettings
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ContactSettings parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ContactSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ContactSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContactSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ContactSettings parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ContactSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ContactSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContactSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ContactSettings parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ContactSettings
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ContactSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContactSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ContactSettings parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ContactSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContactSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContactSettings
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ContactSettings parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ContactSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ContactSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContactSettings
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ContactSettings> parser()
Returns
Type Description
Parser<ContactSettings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAdminContact()

public ContactSettings.Contact getAdminContact()

Required. The administrative contact for the Registration.

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

Returns
Type Description
ContactSettings.Contact

The adminContact.

getAdminContactOrBuilder()

public ContactSettings.ContactOrBuilder getAdminContactOrBuilder()

Required. The administrative contact for the Registration.

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

Returns
Type Description
ContactSettings.ContactOrBuilder

getDefaultInstanceForType()

public ContactSettings getDefaultInstanceForType()
Returns
Type Description
ContactSettings

getParserForType()

public Parser<ContactSettings> getParserForType()
Returns
Type Description
Parser<ContactSettings>
Overrides

getPrivacy()

public ContactPrivacy getPrivacy()

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

.google.cloud.domains.v1.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.v1.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.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContactSettings.Contact

The registrantContact.

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

Returns
Type Description
ContactSettings.ContactOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTechnicalContact()

public ContactSettings.Contact getTechnicalContact()

Required. The technical contact for the Registration.

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

Returns
Type Description
ContactSettings.Contact

The technicalContact.

getTechnicalContactOrBuilder()

public ContactSettings.ContactOrBuilder getTechnicalContactOrBuilder()

Required. The technical contact for the Registration.

.google.cloud.domains.v1.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.v1.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.v1.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.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the technicalContact field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ContactSettings.Builder newBuilderForType()
Returns
Type Description
ContactSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ContactSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ContactSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ContactSettings.Builder toBuilder()
Returns
Type Description
ContactSettings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException