Class RegisterDomainRequest.Builder (1.3.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class RegisterDomainRequest.Builder extends GeneratedMessageV3.Builder<RegisterDomainRequest.Builder> implements RegisterDomainRequestOrBuilder

Request for the RegisterDomain method.

Protobuf type google.cloud.domains.v1.RegisterDomainRequest

Static Methods

getDescriptor()

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

Methods

addAllContactNotices(Iterable<? extends ContactNotice> values)

public RegisterDomainRequest.Builder addAllContactNotices(Iterable<? extends ContactNotice> values)

The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in registration.contact_settings.

repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4;

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

The contactNotices to add.

Returns
TypeDescription
RegisterDomainRequest.Builder

This builder for chaining.

addAllContactNoticesValue(Iterable<Integer> values)

public RegisterDomainRequest.Builder addAllContactNoticesValue(Iterable<Integer> values)

The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in registration.contact_settings.

repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4;

Parameter
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
RegisterDomainRequest.Builder

This builder for chaining.

addAllDomainNotices(Iterable<? extends DomainNotice> values)

public RegisterDomainRequest.Builder addAllDomainNotices(Iterable<? extends DomainNotice> values)

The list of domain notices that you acknowledge. Call RetrieveRegisterParameters to see the notices that need acknowledgement.

repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.domains.v1.DomainNotice>

The domainNotices to add.

Returns
TypeDescription
RegisterDomainRequest.Builder

This builder for chaining.

addAllDomainNoticesValue(Iterable<Integer> values)

public RegisterDomainRequest.Builder addAllDomainNoticesValue(Iterable<Integer> values)

The list of domain notices that you acknowledge. Call RetrieveRegisterParameters to see the notices that need acknowledgement.

repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3;

Parameter
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
RegisterDomainRequest.Builder

This builder for chaining.

addContactNotices(ContactNotice value)

public RegisterDomainRequest.Builder addContactNotices(ContactNotice value)

The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in registration.contact_settings.

repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4;

Parameter
NameDescription
valueContactNotice

The contactNotices to add.

Returns
TypeDescription
RegisterDomainRequest.Builder

This builder for chaining.

addContactNoticesValue(int value)

public RegisterDomainRequest.Builder addContactNoticesValue(int value)

The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in registration.contact_settings.

repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
RegisterDomainRequest.Builder

This builder for chaining.

addDomainNotices(DomainNotice value)

public RegisterDomainRequest.Builder addDomainNotices(DomainNotice value)

The list of domain notices that you acknowledge. Call RetrieveRegisterParameters to see the notices that need acknowledgement.

repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3;

Parameter
NameDescription
valueDomainNotice

The domainNotices to add.

Returns
TypeDescription
RegisterDomainRequest.Builder

This builder for chaining.

addDomainNoticesValue(int value)

public RegisterDomainRequest.Builder addDomainNoticesValue(int value)

The list of domain notices that you acknowledge. Call RetrieveRegisterParameters to see the notices that need acknowledgement.

repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
RegisterDomainRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RegisterDomainRequest build()
Returns
TypeDescription
RegisterDomainRequest

buildPartial()

public RegisterDomainRequest buildPartial()
Returns
TypeDescription
RegisterDomainRequest

clear()

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

clearContactNotices()

public RegisterDomainRequest.Builder clearContactNotices()

The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in registration.contact_settings.

repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4;

Returns
TypeDescription
RegisterDomainRequest.Builder

This builder for chaining.

clearDomainNotices()

public RegisterDomainRequest.Builder clearDomainNotices()

The list of domain notices that you acknowledge. Call RetrieveRegisterParameters to see the notices that need acknowledgement.

repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3;

Returns
TypeDescription
RegisterDomainRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public RegisterDomainRequest.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
RegisterDomainRequest.Builder

This builder for chaining.

clearRegistration()

public RegisterDomainRequest.Builder clearRegistration()

Required. The complete Registration resource to be created.

.google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RegisterDomainRequest.Builder

clearValidateOnly()

public RegisterDomainRequest.Builder clearValidateOnly()

When true, only validation is performed, without actually registering the domain. Follows: https://cloud.google.com/apis/design/design_patterns#request_validation

bool validate_only = 6;

Returns
TypeDescription
RegisterDomainRequest.Builder

This builder for chaining.

clearYearlyPrice()

public RegisterDomainRequest.Builder clearYearlyPrice()

Required. Yearly price to register or renew the domain. The value that should be put here can be obtained from RetrieveRegisterParameters or SearchDomains calls.

.google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RegisterDomainRequest.Builder

clone()

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

getContactNotices(int index)

public ContactNotice getContactNotices(int index)

The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in registration.contact_settings.

repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4;

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 the caller acknowledges. The notices needed here depend on the values specified in registration.contact_settings.

repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4;

Returns
TypeDescription
int

The count of contactNotices.

getContactNoticesList()

public List<ContactNotice> getContactNoticesList()

The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in registration.contact_settings.

repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4;

Returns
TypeDescription
List<ContactNotice>

A list containing the contactNotices.

getContactNoticesValue(int index)

public int getContactNoticesValue(int index)

The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in registration.contact_settings.

repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4;

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 the caller acknowledges. The notices needed here depend on the values specified in registration.contact_settings.

repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4;

Returns
TypeDescription
List<Integer>

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

getDefaultInstanceForType()

public RegisterDomainRequest getDefaultInstanceForType()
Returns
TypeDescription
RegisterDomainRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDomainNotices(int index)

public DomainNotice getDomainNotices(int index)

The list of domain notices that you acknowledge. Call RetrieveRegisterParameters to see the notices that need acknowledgement.

repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
DomainNotice

The domainNotices at the given index.

getDomainNoticesCount()

public int getDomainNoticesCount()

The list of domain notices that you acknowledge. Call RetrieveRegisterParameters to see the notices that need acknowledgement.

repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3;

Returns
TypeDescription
int

The count of domainNotices.

getDomainNoticesList()

public List<DomainNotice> getDomainNoticesList()

The list of domain notices that you acknowledge. Call RetrieveRegisterParameters to see the notices that need acknowledgement.

repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3;

Returns
TypeDescription
List<DomainNotice>

A list containing the domainNotices.

getDomainNoticesValue(int index)

public int getDomainNoticesValue(int index)

The list of domain notices that you acknowledge. Call RetrieveRegisterParameters to see the notices that need acknowledgement.

repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

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

getDomainNoticesValueList()

public List<Integer> getDomainNoticesValueList()

The list of domain notices that you acknowledge. Call RetrieveRegisterParameters to see the notices that need acknowledgement.

repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3;

Returns
TypeDescription
List<Integer>

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

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.

.google.cloud.domains.v1.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.

.google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Registration.Builder

getRegistrationOrBuilder()

public RegistrationOrBuilder getRegistrationOrBuilder()

Required. The complete Registration resource to be created.

.google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RegistrationOrBuilder

getValidateOnly()

public boolean getValidateOnly()

When true, only validation is performed, without actually registering the domain. Follows: https://cloud.google.com/apis/design/design_patterns#request_validation

bool validate_only = 6;

Returns
TypeDescription
boolean

The validateOnly.

getYearlyPrice()