Class TransferDomainRequest.Builder

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

public static final class TransferDomainRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<TransferDomainRequest.Builder> implements TransferDomainRequestOrBuilder
 Request for the `TransferDomain` method.
 
Protobuf type google.cloud.domains.v1alpha2.TransferDomainRequest
  • 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<TransferDomainRequest.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<TransferDomainRequest.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<TransferDomainRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public TransferDomainRequest.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<TransferDomainRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent resource of the `Registration`. Must be in the
       format `projects/*/locations/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface TransferDomainRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource of the `Registration`. Must be in the
       format `projects/*/locations/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface TransferDomainRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public TransferDomainRequest.Builder setParent(String value)
       Required. The parent resource of the `Registration`. Must be in the
       format `projects/*/locations/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public TransferDomainRequest.Builder clearParent()
       Required. The parent resource of the `Registration`. Must be in the
       format `projects/*/locations/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public TransferDomainRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource of the `Registration`. Must be in the
       format `projects/*/locations/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasRegistration

      public boolean hasRegistration()
       Required. The complete `Registration` resource to be created.
      
       You can leave `registration.dns_settings` unset to import the
       domain's current DNS configuration from its current registrar. Use this
       option only if you are sure that the domain's current DNS service
       does not cease upon transfer, as is often the case for DNS services
       provided for free by the registrar.
       
      .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRegistration in interface TransferDomainRequestOrBuilder
      Returns:
      Whether the registration field is set.
    • getRegistration

      public Registration getRegistration()
       Required. The complete `Registration` resource to be created.
      
       You can leave `registration.dns_settings` unset to import the
       domain's current DNS configuration from its current registrar. Use this
       option only if you are sure that the domain's current DNS service
       does not cease upon transfer, as is often the case for DNS services
       provided for free by the registrar.
       
      .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRegistration in interface TransferDomainRequestOrBuilder
      Returns:
      The registration.
    • setRegistration

      public TransferDomainRequest.Builder setRegistration(Registration value)
       Required. The complete `Registration` resource to be created.
      
       You can leave `registration.dns_settings` unset to import the
       domain's current DNS configuration from its current registrar. Use this
       option only if you are sure that the domain's current DNS service
       does not cease upon transfer, as is often the case for DNS services
       provided for free by the registrar.
       
      .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];
    • setRegistration

      public TransferDomainRequest.Builder setRegistration(Registration.Builder builderForValue)
       Required. The complete `Registration` resource to be created.
      
       You can leave `registration.dns_settings` unset to import the
       domain's current DNS configuration from its current registrar. Use this
       option only if you are sure that the domain's current DNS service
       does not cease upon transfer, as is often the case for DNS services
       provided for free by the registrar.
       
      .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeRegistration

      public TransferDomainRequest.Builder mergeRegistration(Registration value)
       Required. The complete `Registration` resource to be created.
      
       You can leave `registration.dns_settings` unset to import the
       domain's current DNS configuration from its current registrar. Use this
       option only if you are sure that the domain's current DNS service
       does not cease upon transfer, as is often the case for DNS services
       provided for free by the registrar.
       
      .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearRegistration

      public TransferDomainRequest.Builder clearRegistration()
       Required. The complete `Registration` resource to be created.
      
       You can leave `registration.dns_settings` unset to import the
       domain's current DNS configuration from its current registrar. Use this
       option only if you are sure that the domain's current DNS service
       does not cease upon transfer, as is often the case for DNS services
       provided for free by the registrar.
       
      .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRegistrationBuilder

      public Registration.Builder getRegistrationBuilder()
       Required. The complete `Registration` resource to be created.
      
       You can leave `registration.dns_settings` unset to import the
       domain's current DNS configuration from its current registrar. Use this
       option only if you are sure that the domain's current DNS service
       does not cease upon transfer, as is often the case for DNS services
       provided for free by the registrar.
       
      .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRegistrationOrBuilder

      public RegistrationOrBuilder getRegistrationOrBuilder()
       Required. The complete `Registration` resource to be created.
      
       You can leave `registration.dns_settings` unset to import the
       domain's current DNS configuration from its current registrar. Use this
       option only if you are sure that the domain's current DNS service
       does not cease upon transfer, as is often the case for DNS services
       provided for free by the registrar.
       
      .google.cloud.domains.v1alpha2.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRegistrationOrBuilder in interface TransferDomainRequestOrBuilder
    • getContactNoticesList

      public List<ContactNotice> getContactNoticesList()
       The list of contact notices that you acknowledge. The notices
       needed here depend on the values specified in
       `registration.contact_settings`.
       
      repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3;
      Specified by:
      getContactNoticesList in interface TransferDomainRequestOrBuilder
      Returns:
      A list containing the contactNotices.
    • getContactNoticesCount

      public int getContactNoticesCount()
       The list of contact notices that you acknowledge. The notices
       needed here depend on the values specified in
       `registration.contact_settings`.
       
      repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3;
      Specified by:
      getContactNoticesCount in interface TransferDomainRequestOrBuilder
      Returns:
      The count of contactNotices.
    • getContactNotices

      public ContactNotice getContactNotices(int index)
       The list of contact notices that you acknowledge. The notices
       needed here depend on the values specified in
       `registration.contact_settings`.
       
      repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3;
      Specified by:
      getContactNotices in interface TransferDomainRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The contactNotices at the given index.
    • setContactNotices

      public TransferDomainRequest.Builder setContactNotices(int index, ContactNotice value)
       The list of contact notices that you acknowledge. The notices
       needed here depend on the values specified in
       `registration.contact_settings`.
       
      repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3;
      Parameters:
      index - The index to set the value at.
      value - The contactNotices to set.
      Returns:
      This builder for chaining.
    • addContactNotices

      public TransferDomainRequest.Builder addContactNotices(ContactNotice value)
       The list of contact notices that you acknowledge. The notices
       needed here depend on the values specified in
       `registration.contact_settings`.
       
      repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3;
      Parameters:
      value - The contactNotices to add.
      Returns:
      This builder for chaining.
    • addAllContactNotices

      public TransferDomainRequest.Builder addAllContactNotices(Iterable<? extends ContactNotice> values)
       The list of contact notices that you acknowledge. The notices
       needed here depend on the values specified in
       `registration.contact_settings`.
       
      repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3;
      Parameters:
      values - The contactNotices to add.
      Returns:
      This builder for chaining.
    • clearContactNotices

      public TransferDomainRequest.Builder clearContactNotices()
       The list of contact notices that you acknowledge. The notices
       needed here depend on the values specified in
       `registration.contact_settings`.
       
      repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3;
      Returns:
      This builder for chaining.
    • getContactNoticesValueList

      public List<Integer> getContactNoticesValueList()
       The list of contact notices that you acknowledge. The notices
       needed here depend on the values specified in
       `registration.contact_settings`.
       
      repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3;
      Specified by:
      getContactNoticesValueList in interface TransferDomainRequestOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for contactNotices.
    • getContactNoticesValue

      public int getContactNoticesValue(int index)
       The list of contact notices that you acknowledge. The notices
       needed here depend on the values specified in
       `registration.contact_settings`.
       
      repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3;
      Specified by:
      getContactNoticesValue in interface TransferDomainRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of contactNotices at the given index.
    • setContactNoticesValue

      public TransferDomainRequest.Builder setContactNoticesValue(int index, int value)
       The list of contact notices that you acknowledge. The notices
       needed here depend on the values specified in
       `registration.contact_settings`.
       
      repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for contactNotices to set.
      Returns:
      This builder for chaining.
    • addContactNoticesValue

      public TransferDomainRequest.Builder addContactNoticesValue(int value)
       The list of contact notices that you acknowledge. The notices
       needed here depend on the values specified in
       `registration.contact_settings`.
       
      repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3;
      Parameters:
      value - The enum numeric value on the wire for contactNotices to add.
      Returns:
      This builder for chaining.
    • addAllContactNoticesValue

      public TransferDomainRequest.Builder addAllContactNoticesValue(Iterable<Integer> values)
       The list of contact notices that you acknowledge. The notices
       needed here depend on the values specified in
       `registration.contact_settings`.
       
      repeated .google.cloud.domains.v1alpha2.ContactNotice contact_notices = 3;
      Parameters:
      values - The enum numeric values on the wire for contactNotices to add.
      Returns:
      This builder for chaining.
    • hasYearlyPrice

      public boolean hasYearlyPrice()
       Required. Acknowledgement of the price to transfer or renew the domain for one year.
       Call `RetrieveTransferParameters` to obtain the price, which you must
       acknowledge.
       
      .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasYearlyPrice in interface TransferDomainRequestOrBuilder
      Returns:
      Whether the yearlyPrice field is set.
    • getYearlyPrice

      public Money getYearlyPrice()
       Required. Acknowledgement of the price to transfer or renew the domain for one year.
       Call `RetrieveTransferParameters` to obtain the price, which you must
       acknowledge.
       
      .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getYearlyPrice in interface TransferDomainRequestOrBuilder
      Returns:
      The yearlyPrice.
    • setYearlyPrice

      public TransferDomainRequest.Builder setYearlyPrice(Money value)
       Required. Acknowledgement of the price to transfer or renew the domain for one year.
       Call `RetrieveTransferParameters` to obtain the price, which you must
       acknowledge.
       
      .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED];
    • setYearlyPrice

      public TransferDomainRequest.Builder setYearlyPrice(Money.Builder builderForValue)
       Required. Acknowledgement of the price to transfer or renew the domain for one year.
       Call `RetrieveTransferParameters` to obtain the price, which you must
       acknowledge.
       
      .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED];
    • mergeYearlyPrice

      public TransferDomainRequest.Builder mergeYearlyPrice(Money value)
       Required. Acknowledgement of the price to transfer or renew the domain for one year.
       Call `RetrieveTransferParameters` to obtain the price, which you must
       acknowledge.
       
      .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearYearlyPrice

      public TransferDomainRequest.Builder clearYearlyPrice()
       Required. Acknowledgement of the price to transfer or renew the domain for one year.
       Call `RetrieveTransferParameters` to obtain the price, which you must
       acknowledge.
       
      .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED];
    • getYearlyPriceBuilder

      public Money.Builder getYearlyPriceBuilder()
       Required. Acknowledgement of the price to transfer or renew the domain for one year.
       Call `RetrieveTransferParameters` to obtain the price, which you must
       acknowledge.
       
      .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED];
    • getYearlyPriceOrBuilder

      public MoneyOrBuilder getYearlyPriceOrBuilder()
       Required. Acknowledgement of the price to transfer or renew the domain for one year.
       Call `RetrieveTransferParameters` to obtain the price, which you must
       acknowledge.
       
      .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getYearlyPriceOrBuilder in interface TransferDomainRequestOrBuilder
    • hasAuthorizationCode

      public boolean hasAuthorizationCode()
       The domain's transfer authorization code. You can obtain this from the
       domain's current registrar.
       
      .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5;
      Specified by:
      hasAuthorizationCode in interface TransferDomainRequestOrBuilder
      Returns:
      Whether the authorizationCode field is set.
    • getAuthorizationCode

      public AuthorizationCode getAuthorizationCode()
       The domain's transfer authorization code. You can obtain this from the
       domain's current registrar.
       
      .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5;
      Specified by:
      getAuthorizationCode in interface TransferDomainRequestOrBuilder
      Returns:
      The authorizationCode.
    • setAuthorizationCode

      public TransferDomainRequest.Builder setAuthorizationCode(AuthorizationCode value)
       The domain's transfer authorization code. You can obtain this from the
       domain's current registrar.
       
      .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5;
    • setAuthorizationCode

      public TransferDomainRequest.Builder setAuthorizationCode(AuthorizationCode.Builder builderForValue)
       The domain's transfer authorization code. You can obtain this from the
       domain's current registrar.
       
      .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5;
    • mergeAuthorizationCode

      public TransferDomainRequest.Builder mergeAuthorizationCode(AuthorizationCode value)
       The domain's transfer authorization code. You can obtain this from the
       domain's current registrar.
       
      .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5;
    • clearAuthorizationCode

      public TransferDomainRequest.Builder clearAuthorizationCode()
       The domain's transfer authorization code. You can obtain this from the
       domain's current registrar.
       
      .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5;
    • getAuthorizationCodeBuilder

      public AuthorizationCode.Builder getAuthorizationCodeBuilder()
       The domain's transfer authorization code. You can obtain this from the
       domain's current registrar.
       
      .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5;
    • getAuthorizationCodeOrBuilder

      public AuthorizationCodeOrBuilder getAuthorizationCodeOrBuilder()
       The domain's transfer authorization code. You can obtain this from the
       domain's current registrar.
       
      .google.cloud.domains.v1alpha2.AuthorizationCode authorization_code = 5;
      Specified by:
      getAuthorizationCodeOrBuilder in interface TransferDomainRequestOrBuilder
    • getValidateOnly

      public boolean getValidateOnly()
       Validate the request without actually transferring the domain.
       
      bool validate_only = 6;
      Specified by:
      getValidateOnly in interface TransferDomainRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public TransferDomainRequest.Builder setValidateOnly(boolean value)
       Validate the request without actually transferring the domain.
       
      bool validate_only = 6;
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public TransferDomainRequest.Builder clearValidateOnly()
       Validate the request without actually transferring the domain.
       
      bool validate_only = 6;
      Returns:
      This builder for chaining.