Class TransferDomainRequest.Builder (1.3.0)

Stay organized with collections Save and categorize content based on your preferences.
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)