Class ContactSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ContactSettings.Builder>
com.google.cloud.domains.v1alpha2.ContactSettings.Builder
All Implemented Interfaces:
ContactSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ContactSettings

public static final class ContactSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<ContactSettings.Builder> implements ContactSettingsOrBuilder
 Defines the contact information associated with a `Registration`.

 [ICANN](https://icann.org/) 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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ContactSettings.Builder>
    • clear

      public ContactSettings.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ContactSettings.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ContactSettings.Builder>
    • getDefaultInstanceForType

      public ContactSettings getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ContactSettings build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ContactSettings buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ContactSettings.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ContactSettings.Builder>
    • mergeFrom

      public ContactSettings.Builder mergeFrom(ContactSettings other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ContactSettings.Builder>
    • mergeFrom

      public ContactSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ContactSettings.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getPrivacyValue in interface ContactSettingsOrBuilder
      Returns:
      The enum numeric value on the wire for privacy.
    • setPrivacyValue

      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];
      Parameters:
      value - The enum numeric value on the wire for privacy to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getPrivacy in interface ContactSettingsOrBuilder
      Returns:
      The privacy.
    • setPrivacy

      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];
      Parameters:
      value - The privacy to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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 `Registration`s, 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];
      Specified by:
      hasRegistrantContact in interface ContactSettingsOrBuilder
      Returns:
      Whether the registrantContact field is set.
    • 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 `Registration`s, 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];
      Specified by:
      getRegistrantContact in interface ContactSettingsOrBuilder
      Returns:
      The registrantContact.
    • setRegistrantContact

      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 `Registration`s, 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];
    • setRegistrantContact

      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 `Registration`s, 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];
    • mergeRegistrantContact

      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 `Registration`s, 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];
    • 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 `Registration`s, 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];
    • 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 `Registration`s, 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];
    • 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 `Registration`s, 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];
      Specified by:
      getRegistrantContactOrBuilder in interface ContactSettingsOrBuilder
    • 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];
      Specified by:
      hasAdminContact in interface ContactSettingsOrBuilder
      Returns:
      Whether the adminContact field is set.
    • 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];
      Specified by:
      getAdminContact in interface ContactSettingsOrBuilder
      Returns:
      The adminContact.
    • setAdminContact

      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];
    • setAdminContact

      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];
    • mergeAdminContact

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getAdminContactOrBuilder in interface ContactSettingsOrBuilder
    • 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];
      Specified by:
      hasTechnicalContact in interface ContactSettingsOrBuilder
      Returns:
      Whether the technicalContact field is set.
    • 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];
      Specified by:
      getTechnicalContact in interface ContactSettingsOrBuilder
      Returns:
      The technicalContact.
    • setTechnicalContact

      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];
    • setTechnicalContact

      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];
    • mergeTechnicalContact

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getTechnicalContactOrBuilder in interface ContactSettingsOrBuilder