Class TransferDomainRequest.Builder (1.16.0)

public static final class TransferDomainRequest.Builder extends GeneratedMessageV3.Builder<TransferDomainRequest.Builder> implements TransferDomainRequestOrBuilder

Request for the TransferDomain method.

Protobuf type google.cloud.domains.v1beta1.TransferDomainRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllContactNotices(Iterable<? extends ContactNotice> values)

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.v1beta1.ContactNotice contact_notices = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.domains.v1beta1.ContactNotice>

The contactNotices to add.

Returns
TypeDescription
TransferDomainRequest.Builder

This builder for chaining.

addAllContactNoticesValue(Iterable<Integer> values)

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.v1beta1.ContactNotice contact_notices = 3;

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for contactNotices to add.

Returns
TypeDescription
TransferDomainRequest.Builder

This builder for chaining.

addContactNotices(ContactNotice value)

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.v1beta1.ContactNotice contact_notices = 3;

Parameter
NameDescription
valueContactNotice

The contactNotices to add.

Returns
TypeDescription
TransferDomainRequest.Builder

This builder for chaining.

addContactNoticesValue(int value)

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.v1beta1.ContactNotice contact_notices = 3;

Parameter
NameDescription
valueint

The enum numeric value on the wire for contactNotices to add.

Returns
TypeDescription
TransferDomainRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TransferDomainRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TransferDomainRequest.Builder
Overrides

build()

public TransferDomainRequest build()
Returns
TypeDescription
TransferDomainRequest

buildPartial()

public TransferDomainRequest buildPartial()
Returns
TypeDescription
TransferDomainRequest

clear()

public TransferDomainRequest.Builder clear()
Returns
TypeDescription
TransferDomainRequest.Builder
Overrides

clearAuthorizationCode()

public TransferDomainRequest.Builder clearAuthorizationCode()

The domain's transfer authorization code. You can obtain this from the domain's current registrar.

.google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5;

Returns
TypeDescription
TransferDomainRequest.Builder

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.v1beta1.ContactNotice contact_notices = 3;

Returns
TypeDescription
TransferDomainRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TransferDomainRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TransferDomainRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TransferDomainRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TransferDomainRequest.Builder
Overrides

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
TypeDescription
TransferDomainRequest.Builder

This builder for chaining.

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.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TransferDomainRequest.Builder

clearValidateOnly()

public TransferDomainRequest.Builder clearValidateOnly()

Validate the request without actually transferring the domain.

bool validate_only = 6;

Returns
TypeDescription
TransferDomainRequest.Builder

This builder for chaining.

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

Returns
TypeDescription
TransferDomainRequest.Builder

clone()

public TransferDomainRequest.Builder clone()
Returns
TypeDescription
TransferDomainRequest.Builder
Overrides

getAuthorizationCode()

public AuthorizationCode getAuthorizationCode()

The domain's transfer authorization code. You can obtain this from the domain's current registrar.

.google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5;

Returns
TypeDescription
AuthorizationCode

The authorizationCode.

getAuthorizationCodeBuilder()

public AuthorizationCode.Builder getAuthorizationCodeBuilder()

The domain's transfer authorization code. You can obtain this from the domain's current registrar.

.google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5;

Returns
TypeDescription
AuthorizationCode.Builder

getAuthorizationCodeOrBuilder()

public AuthorizationCodeOrBuilder getAuthorizationCodeOrBuilder()

The domain's transfer authorization code. You can obtain this from the domain's current registrar.

.google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5;

Returns
TypeDescription
AuthorizationCodeOrBuilder

getContactNotices(int index)

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.v1beta1.ContactNotice contact_notices = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
ContactNotice

The contactNotices at the given index.

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.v1beta1.ContactNotice contact_notices = 3;

Returns
TypeDescription
int

The count of contactNotices.

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.v1beta1.ContactNotice contact_notices = 3;

Returns
TypeDescription
List<ContactNotice>

A list containing the contactNotices.

getContactNoticesValue(int index)

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.v1beta1.ContactNotice contact_notices = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of contactNotices at the given index.

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.v1beta1.ContactNotice contact_notices = 3;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for contactNotices.

getDefaultInstanceForType()

public TransferDomainRequest getDefaultInstanceForType()
Returns
TypeDescription
TransferDomainRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

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.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Registration

The registration.

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.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Registration.Builder

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.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RegistrationOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Validate the request without actually transferring the domain.

bool validate_only = 6;

Returns
TypeDescription
boolean

The validateOnly.

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

Returns
TypeDescription
com.google.type.Money

The yearlyPrice.

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

Returns
TypeDescription
com.google.type.Money.Builder

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

Returns
TypeDescription
com.google.type.MoneyOrBuilder

hasAuthorizationCode()

public boolean hasAuthorizationCode()

The domain's transfer authorization code. You can obtain this from the domain's current registrar.

.google.cloud.domains.v1beta1.AuthorizationCode authorization_code = 5;

Returns
TypeDescription
boolean

Whether the authorizationCode field is set.

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.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the registration field is set.

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

Returns
TypeDescription
boolean

Whether the yearlyPrice field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAuthorizationCode(AuthorizationCode value)

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.v1beta1.AuthorizationCode authorization_code = 5;

Parameter
NameDescription
valueAuthorizationCode
Returns
TypeDescription
TransferDomainRequest.Builder

mergeFrom(TransferDomainRequest other)

public TransferDomainRequest.Builder mergeFrom(TransferDomainRequest other)
Parameter
NameDescription
otherTransferDomainRequest
Returns
TypeDescription
TransferDomainRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TransferDomainRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransferDomainRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TransferDomainRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TransferDomainRequest.Builder
Overrides

mergeRegistration(Registration value)

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.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueRegistration
Returns
TypeDescription
TransferDomainRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransferDomainRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TransferDomainRequest.Builder
Overrides

mergeYearlyPrice(Money value)

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

Parameter
NameDescription
valuecom.google.type.Money
Returns
TypeDescription
TransferDomainRequest.Builder

setAuthorizationCode(AuthorizationCode value)

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.v1beta1.AuthorizationCode authorization_code = 5;

Parameter
NameDescription
valueAuthorizationCode
Returns
TypeDescription
TransferDomainRequest.Builder

setAuthorizationCode(AuthorizationCode.Builder builderForValue)

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.v1beta1.AuthorizationCode authorization_code = 5;

Parameter
NameDescription
builderForValueAuthorizationCode.Builder
Returns
TypeDescription
TransferDomainRequest.Builder

setContactNotices(int index, ContactNotice value)

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.v1beta1.ContactNotice contact_notices = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueContactNotice

The contactNotices to set.

Returns
TypeDescription
TransferDomainRequest.Builder

This builder for chaining.

setContactNoticesValue(int index, int value)

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.v1beta1.ContactNotice contact_notices = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The enum numeric value on the wire for contactNotices to set.

Returns
TypeDescription
TransferDomainRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TransferDomainRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TransferDomainRequest.Builder
Overrides

setParent(String value)

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) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
TransferDomainRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public TransferDomainRequest.Builder setParentBytes(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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
TransferDomainRequest.Builder

This builder for chaining.

setRegistration(Registration value)

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.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueRegistration
Returns
TypeDescription
TransferDomainRequest.Builder

setRegistration(Registration.Builder builderForValue)

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.v1beta1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueRegistration.Builder
Returns
TypeDescription
TransferDomainRequest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TransferDomainRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TransferDomainRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TransferDomainRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TransferDomainRequest.Builder
Overrides

setValidateOnly(boolean value)

public TransferDomainRequest.Builder setValidateOnly(boolean value)

Validate the request without actually transferring the domain.

bool validate_only = 6;

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
TransferDomainRequest.Builder

This builder for chaining.

setYearlyPrice(Money value)

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

Parameter
NameDescription
valuecom.google.type.Money
Returns
TypeDescription
TransferDomainRequest.Builder

setYearlyPrice(Money.Builder builderForValue)

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

Parameter
NameDescription
builderForValuecom.google.type.Money.Builder
Returns
TypeDescription
TransferDomainRequest.Builder