Class TransferParameters.Builder

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

public static final class TransferParameters.Builder extends com.google.protobuf.GeneratedMessage.Builder<TransferParameters.Builder> implements TransferParametersOrBuilder
 Parameters required to transfer a domain from another registrar.
 
Protobuf type google.cloud.domains.v1alpha2.TransferParameters
  • 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<TransferParameters.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<TransferParameters.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<TransferParameters.Builder>
    • getDefaultInstanceForType

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

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

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

      public TransferParameters.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<TransferParameters.Builder>
    • mergeFrom

    • isInitialized

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

      public TransferParameters.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<TransferParameters.Builder>
      Throws:
      IOException
    • getDomainName

      public String getDomainName()
       The domain name. Unicode domain names are expressed in Punycode format.
       
      string domain_name = 1;
      Specified by:
      getDomainName in interface TransferParametersOrBuilder
      Returns:
      The domainName.
    • getDomainNameBytes

      public com.google.protobuf.ByteString getDomainNameBytes()
       The domain name. Unicode domain names are expressed in Punycode format.
       
      string domain_name = 1;
      Specified by:
      getDomainNameBytes in interface TransferParametersOrBuilder
      Returns:
      The bytes for domainName.
    • setDomainName

      public TransferParameters.Builder setDomainName(String value)
       The domain name. Unicode domain names are expressed in Punycode format.
       
      string domain_name = 1;
      Parameters:
      value - The domainName to set.
      Returns:
      This builder for chaining.
    • clearDomainName

      public TransferParameters.Builder clearDomainName()
       The domain name. Unicode domain names are expressed in Punycode format.
       
      string domain_name = 1;
      Returns:
      This builder for chaining.
    • setDomainNameBytes

      public TransferParameters.Builder setDomainNameBytes(com.google.protobuf.ByteString value)
       The domain name. Unicode domain names are expressed in Punycode format.
       
      string domain_name = 1;
      Parameters:
      value - The bytes for domainName to set.
      Returns:
      This builder for chaining.
    • getCurrentRegistrar

      public String getCurrentRegistrar()
       The registrar that currently manages the domain.
       
      string current_registrar = 2;
      Specified by:
      getCurrentRegistrar in interface TransferParametersOrBuilder
      Returns:
      The currentRegistrar.
    • getCurrentRegistrarBytes

      public com.google.protobuf.ByteString getCurrentRegistrarBytes()
       The registrar that currently manages the domain.
       
      string current_registrar = 2;
      Specified by:
      getCurrentRegistrarBytes in interface TransferParametersOrBuilder
      Returns:
      The bytes for currentRegistrar.
    • setCurrentRegistrar

      public TransferParameters.Builder setCurrentRegistrar(String value)
       The registrar that currently manages the domain.
       
      string current_registrar = 2;
      Parameters:
      value - The currentRegistrar to set.
      Returns:
      This builder for chaining.
    • clearCurrentRegistrar

      public TransferParameters.Builder clearCurrentRegistrar()
       The registrar that currently manages the domain.
       
      string current_registrar = 2;
      Returns:
      This builder for chaining.
    • setCurrentRegistrarBytes

      public TransferParameters.Builder setCurrentRegistrarBytes(com.google.protobuf.ByteString value)
       The registrar that currently manages the domain.
       
      string current_registrar = 2;
      Parameters:
      value - The bytes for currentRegistrar to set.
      Returns:
      This builder for chaining.
    • getNameServersList

      public com.google.protobuf.ProtocolStringList getNameServersList()
       The name servers that currently store the configuration of the domain.
       
      repeated string name_servers = 3;
      Specified by:
      getNameServersList in interface TransferParametersOrBuilder
      Returns:
      A list containing the nameServers.
    • getNameServersCount

      public int getNameServersCount()
       The name servers that currently store the configuration of the domain.
       
      repeated string name_servers = 3;
      Specified by:
      getNameServersCount in interface TransferParametersOrBuilder
      Returns:
      The count of nameServers.
    • getNameServers

      public String getNameServers(int index)
       The name servers that currently store the configuration of the domain.
       
      repeated string name_servers = 3;
      Specified by:
      getNameServers in interface TransferParametersOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The nameServers at the given index.
    • getNameServersBytes

      public com.google.protobuf.ByteString getNameServersBytes(int index)
       The name servers that currently store the configuration of the domain.
       
      repeated string name_servers = 3;
      Specified by:
      getNameServersBytes in interface TransferParametersOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the nameServers at the given index.
    • setNameServers

      public TransferParameters.Builder setNameServers(int index, String value)
       The name servers that currently store the configuration of the domain.
       
      repeated string name_servers = 3;
      Parameters:
      index - The index to set the value at.
      value - The nameServers to set.
      Returns:
      This builder for chaining.
    • addNameServers

      public TransferParameters.Builder addNameServers(String value)
       The name servers that currently store the configuration of the domain.
       
      repeated string name_servers = 3;
      Parameters:
      value - The nameServers to add.
      Returns:
      This builder for chaining.
    • addAllNameServers

      public TransferParameters.Builder addAllNameServers(Iterable<String> values)
       The name servers that currently store the configuration of the domain.
       
      repeated string name_servers = 3;
      Parameters:
      values - The nameServers to add.
      Returns:
      This builder for chaining.
    • clearNameServers

      public TransferParameters.Builder clearNameServers()
       The name servers that currently store the configuration of the domain.
       
      repeated string name_servers = 3;
      Returns:
      This builder for chaining.
    • addNameServersBytes

      public TransferParameters.Builder addNameServersBytes(com.google.protobuf.ByteString value)
       The name servers that currently store the configuration of the domain.
       
      repeated string name_servers = 3;
      Parameters:
      value - The bytes of the nameServers to add.
      Returns:
      This builder for chaining.
    • getTransferLockStateValue

      public int getTransferLockStateValue()
       Indicates whether the domain is protected by a transfer lock. For a
       transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
       go to its current registrar.
       
      .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4;
      Specified by:
      getTransferLockStateValue in interface TransferParametersOrBuilder
      Returns:
      The enum numeric value on the wire for transferLockState.
    • setTransferLockStateValue

      public TransferParameters.Builder setTransferLockStateValue(int value)
       Indicates whether the domain is protected by a transfer lock. For a
       transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
       go to its current registrar.
       
      .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4;
      Parameters:
      value - The enum numeric value on the wire for transferLockState to set.
      Returns:
      This builder for chaining.
    • getTransferLockState

      public TransferLockState getTransferLockState()
       Indicates whether the domain is protected by a transfer lock. For a
       transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
       go to its current registrar.
       
      .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4;
      Specified by:
      getTransferLockState in interface TransferParametersOrBuilder
      Returns:
      The transferLockState.
    • setTransferLockState

      public TransferParameters.Builder setTransferLockState(TransferLockState value)
       Indicates whether the domain is protected by a transfer lock. For a
       transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
       go to its current registrar.
       
      .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4;
      Parameters:
      value - The transferLockState to set.
      Returns:
      This builder for chaining.
    • clearTransferLockState

      public TransferParameters.Builder clearTransferLockState()
       Indicates whether the domain is protected by a transfer lock. For a
       transfer to succeed, this must show `UNLOCKED`. To unlock a domain,
       go to its current registrar.
       
      .google.cloud.domains.v1alpha2.TransferLockState transfer_lock_state = 4;
      Returns:
      This builder for chaining.
    • getSupportedPrivacyList

      public List<ContactPrivacy> getSupportedPrivacyList()
       Contact privacy options that the domain supports.
       
      repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5;
      Specified by:
      getSupportedPrivacyList in interface TransferParametersOrBuilder
      Returns:
      A list containing the supportedPrivacy.
    • getSupportedPrivacyCount

      public int getSupportedPrivacyCount()
       Contact privacy options that the domain supports.
       
      repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5;
      Specified by:
      getSupportedPrivacyCount in interface TransferParametersOrBuilder
      Returns:
      The count of supportedPrivacy.
    • getSupportedPrivacy

      public ContactPrivacy getSupportedPrivacy(int index)
       Contact privacy options that the domain supports.
       
      repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5;
      Specified by:
      getSupportedPrivacy in interface TransferParametersOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The supportedPrivacy at the given index.
    • setSupportedPrivacy

      public TransferParameters.Builder setSupportedPrivacy(int index, ContactPrivacy value)
       Contact privacy options that the domain supports.
       
      repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5;
      Parameters:
      index - The index to set the value at.
      value - The supportedPrivacy to set.
      Returns:
      This builder for chaining.
    • addSupportedPrivacy

      public TransferParameters.Builder addSupportedPrivacy(ContactPrivacy value)
       Contact privacy options that the domain supports.
       
      repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5;
      Parameters:
      value - The supportedPrivacy to add.
      Returns:
      This builder for chaining.
    • addAllSupportedPrivacy

      public TransferParameters.Builder addAllSupportedPrivacy(Iterable<? extends ContactPrivacy> values)
       Contact privacy options that the domain supports.
       
      repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5;
      Parameters:
      values - The supportedPrivacy to add.
      Returns:
      This builder for chaining.
    • clearSupportedPrivacy

      public TransferParameters.Builder clearSupportedPrivacy()
       Contact privacy options that the domain supports.
       
      repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5;
      Returns:
      This builder for chaining.
    • getSupportedPrivacyValueList

      public List<Integer> getSupportedPrivacyValueList()
       Contact privacy options that the domain supports.
       
      repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5;
      Specified by:
      getSupportedPrivacyValueList in interface TransferParametersOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for supportedPrivacy.
    • getSupportedPrivacyValue

      public int getSupportedPrivacyValue(int index)
       Contact privacy options that the domain supports.
       
      repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5;
      Specified by:
      getSupportedPrivacyValue in interface TransferParametersOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of supportedPrivacy at the given index.
    • setSupportedPrivacyValue

      public TransferParameters.Builder setSupportedPrivacyValue(int index, int value)
       Contact privacy options that the domain supports.
       
      repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for supportedPrivacy to set.
      Returns:
      This builder for chaining.
    • addSupportedPrivacyValue

      public TransferParameters.Builder addSupportedPrivacyValue(int value)
       Contact privacy options that the domain supports.
       
      repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5;
      Parameters:
      value - The enum numeric value on the wire for supportedPrivacy to add.
      Returns:
      This builder for chaining.
    • addAllSupportedPrivacyValue

      public TransferParameters.Builder addAllSupportedPrivacyValue(Iterable<Integer> values)
       Contact privacy options that the domain supports.
       
      repeated .google.cloud.domains.v1alpha2.ContactPrivacy supported_privacy = 5;
      Parameters:
      values - The enum numeric values on the wire for supportedPrivacy to add.
      Returns:
      This builder for chaining.
    • hasYearlyPrice

      public boolean hasYearlyPrice()
       Price to transfer or renew the domain for one year.
       
      .google.type.Money yearly_price = 6;
      Specified by:
      hasYearlyPrice in interface TransferParametersOrBuilder
      Returns:
      Whether the yearlyPrice field is set.
    • getYearlyPrice

      public Money getYearlyPrice()
       Price to transfer or renew the domain for one year.
       
      .google.type.Money yearly_price = 6;
      Specified by:
      getYearlyPrice in interface TransferParametersOrBuilder
      Returns:
      The yearlyPrice.
    • setYearlyPrice

      public TransferParameters.Builder setYearlyPrice(Money value)
       Price to transfer or renew the domain for one year.
       
      .google.type.Money yearly_price = 6;
    • setYearlyPrice

      public TransferParameters.Builder setYearlyPrice(Money.Builder builderForValue)
       Price to transfer or renew the domain for one year.
       
      .google.type.Money yearly_price = 6;
    • mergeYearlyPrice

      public TransferParameters.Builder mergeYearlyPrice(Money value)
       Price to transfer or renew the domain for one year.
       
      .google.type.Money yearly_price = 6;
    • clearYearlyPrice

      public TransferParameters.Builder clearYearlyPrice()
       Price to transfer or renew the domain for one year.
       
      .google.type.Money yearly_price = 6;
    • getYearlyPriceBuilder

      public Money.Builder getYearlyPriceBuilder()
       Price to transfer or renew the domain for one year.
       
      .google.type.Money yearly_price = 6;
    • getYearlyPriceOrBuilder

      public MoneyOrBuilder getYearlyPriceOrBuilder()
       Price to transfer or renew the domain for one year.
       
      .google.type.Money yearly_price = 6;
      Specified by:
      getYearlyPriceOrBuilder in interface TransferParametersOrBuilder