Class 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.GeneratedMessageV3.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.v1beta1.ContactSettings
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public ContactSettings.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ContactSettings.Builder>
      • setField

        public ContactSettings.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ContactSettings.Builder>
      • clearField

        public ContactSettings.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ContactSettings.Builder>
      • clearOneof

        public ContactSettings.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ContactSettings.Builder>
      • setRepeatedField

        public ContactSettings.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContactSettings.Builder>
      • addRepeatedField

        public ContactSettings.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContactSettings.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED];
      • 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];
        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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED];
      • setUnknownFields

        public final ContactSettings.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContactSettings.Builder>
      • mergeUnknownFields

        public final ContactSettings.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContactSettings.Builder>