Class TransferDomainRequest.Builder (1.42.0)

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

Request for the TransferDomain method.

Protobuf type google.cloud.domains.v1.TransferDomainRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
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.v1.ContactNotice contact_notices = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.domains.v1.ContactNotice>

The contactNotices to add.

Returns
Type Description
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.v1.ContactNotice contact_notices = 3;

Parameter
Name Description
values Iterable<Integer>

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

Returns
Type Description
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.v1.ContactNotice contact_notices = 3;

Parameter
Name Description
value ContactNotice

The contactNotices to add.

Returns
Type Description
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.v1.ContactNotice contact_notices = 3;

Parameter
Name Description
value int

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

Returns
Type Description
TransferDomainRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TransferDomainRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TransferDomainRequest.Builder
Overrides

build()

public TransferDomainRequest build()
Returns
Type Description
TransferDomainRequest

buildPartial()

public TransferDomainRequest buildPartial()
Returns
Type Description
TransferDomainRequest

clear()

public TransferDomainRequest.Builder clear()
Returns
Type Description
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.v1.AuthorizationCode authorization_code = 5;

Returns
Type Description
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.v1.ContactNotice contact_notices = 3;

Returns
Type Description
TransferDomainRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TransferDomainRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TransferDomainRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TransferDomainRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TransferDomainRequest.Builder

clearValidateOnly()

public TransferDomainRequest.Builder clearValidateOnly()

Validate the request without actually transferring the domain.

bool validate_only = 6;

Returns
Type Description
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
Type Description
TransferDomainRequest.Builder

clone()

public TransferDomainRequest.Builder clone()
Returns
Type Description
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.v1.AuthorizationCode authorization_code = 5;

Returns
Type Description
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.v1.AuthorizationCode authorization_code = 5;

Returns
Type Description
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.v1.AuthorizationCode authorization_code = 5;

Returns
Type Description
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.v1.ContactNotice contact_notices = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
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.v1.ContactNotice contact_notices = 3;

Returns
Type Description
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.v1.ContactNotice contact_notices = 3;

Returns
Type Description
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.v1.ContactNotice contact_notices = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
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.v1.ContactNotice contact_notices = 3;

Returns
Type Description
List<Integer>

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

getDefaultInstanceForType()

public TransferDomainRequest getDefaultInstanceForType()
Returns
Type Description
TransferDomainRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];

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

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

Returns
Type Description
RegistrationOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Validate the request without actually transferring the domain.

bool validate_only = 6;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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.v1.AuthorizationCode authorization_code = 5;

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

Returns
Type Description
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
Type Description
boolean

Whether the yearlyPrice field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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.v1.AuthorizationCode authorization_code = 5;

Parameter
Name Description
value AuthorizationCode
Returns
Type Description
TransferDomainRequest.Builder

mergeFrom(TransferDomainRequest other)

public TransferDomainRequest.Builder mergeFrom(TransferDomainRequest other)
Parameter
Name Description
other TransferDomainRequest
Returns
Type Description
TransferDomainRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TransferDomainRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransferDomainRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TransferDomainRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Registration
Returns
Type Description
TransferDomainRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransferDomainRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value com.google.type.Money
Returns
Type Description
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.v1.AuthorizationCode authorization_code = 5;

Parameter
Name Description
value AuthorizationCode
Returns
Type Description
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.v1.AuthorizationCode authorization_code = 5;

Parameter
Name Description
builderForValue AuthorizationCode.Builder
Returns
Type Description
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.v1.ContactNotice contact_notices = 3;

Parameters
Name Description
index int

The index to set the value at.

value ContactNotice

The contactNotices to set.

Returns
Type Description
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.v1.ContactNotice contact_notices = 3;

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
TransferDomainRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TransferDomainRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The parent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for parent to set.

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

Parameter
Name Description
value Registration
Returns
Type Description
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.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Registration.Builder
Returns
Type Description
TransferDomainRequest.Builder

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

public TransferDomainRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TransferDomainRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TransferDomainRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
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
Name Description
value com.google.type.Money
Returns
Type Description
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
Name Description
builderForValue com.google.type.Money.Builder
Returns
Type Description
TransferDomainRequest.Builder