Class RegisterDomainRequest.Builder (1.50.0)

public static final class RegisterDomainRequest.Builder extends GeneratedMessageV3.Builder<RegisterDomainRequest.Builder> implements RegisterDomainRequestOrBuilder

Request for the RegisterDomain method.

Protobuf type google.cloud.domains.v1beta1.RegisterDomainRequest

Static Methods

getDescriptor()

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

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

The contactNotices to add.

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

Parameter
Name Description
values Iterable<Integer>

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

Returns
Type Description
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.v1beta1.DomainNotice domain_notices = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.domains.v1beta1.DomainNotice>

The domainNotices to add.

Returns
Type Description
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.v1beta1.DomainNotice domain_notices = 3;

Parameter
Name Description
values Iterable<Integer>

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

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

Parameter
Name Description
value ContactNotice

The contactNotices to add.

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

Parameter
Name Description
value int

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

Returns
Type Description
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.v1beta1.DomainNotice domain_notices = 3;

Parameter
Name Description
value DomainNotice

The domainNotices to add.

Returns
Type Description
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.v1beta1.DomainNotice domain_notices = 3;

Parameter
Name Description
value int

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

Returns
Type Description
RegisterDomainRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RegisterDomainRequest build()
Returns
Type Description
RegisterDomainRequest

buildPartial()

public RegisterDomainRequest buildPartial()
Returns
Type Description
RegisterDomainRequest

clear()

public RegisterDomainRequest.Builder clear()
Returns
Type Description
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.v1beta1.ContactNotice contact_notices = 4;

Returns
Type Description
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.v1beta1.DomainNotice domain_notices = 3;

Returns
Type Description
RegisterDomainRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RegisterDomainRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
RegisterDomainRequest.Builder

This builder for chaining.

clearRegistration()

public RegisterDomainRequest.Builder clearRegistration()

Required. The complete Registration resource to be created.

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

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

clone()

public RegisterDomainRequest.Builder clone()
Returns
Type Description
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.v1beta1.ContactNotice contact_notices = 4;

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

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

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

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

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

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

Returns
Type Description
List<Integer>

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

getDefaultInstanceForType()

public RegisterDomainRequest getDefaultInstanceForType()
Returns
Type Description
RegisterDomainRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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.v1beta1.DomainNotice domain_notices = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
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.v1beta1.DomainNotice domain_notices = 3;

Returns
Type Description
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.v1beta1.DomainNotice domain_notices = 3;

Returns
Type Description
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.v1beta1.DomainNotice domain_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 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.v1beta1.DomainNotice domain_notices = 3;

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

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

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

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

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

The validateOnly.

getYearlyPrice()

public Money getYearlyPrice()

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
Type Description
com.google.type.Money

The yearlyPrice.

getYearlyPriceBuilder()

public Money.Builder getYearlyPriceBuilder()

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
Type Description
com.google.type.Money.Builder

getYearlyPriceOrBuilder()

public MoneyOrBuilder getYearlyPriceOrBuilder()

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
Type Description
com.google.type.MoneyOrBuilder

hasRegistration()

public boolean hasRegistration()

Required. The complete Registration resource to be created.

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

Returns
Type Description
boolean

Whether the registration field is set.

hasYearlyPrice()

public boolean hasYearlyPrice()

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

mergeFrom(RegisterDomainRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RegisterDomainRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RegisterDomainRequest.Builder
Overrides

mergeRegistration(Registration value)

public RegisterDomainRequest.Builder mergeRegistration(Registration value)

Required. The complete Registration resource to be created.

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

Parameter
Name Description
value Registration
Returns
Type Description
RegisterDomainRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RegisterDomainRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RegisterDomainRequest.Builder
Overrides

mergeYearlyPrice(Money value)

public RegisterDomainRequest.Builder mergeYearlyPrice(Money value)

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

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
RegisterDomainRequest.Builder

setContactNotices(int index, ContactNotice value)

public RegisterDomainRequest.Builder setContactNotices(int index, 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.v1beta1.ContactNotice contact_notices = 4;

Parameters
Name Description
index int

The index to set the value at.

value ContactNotice

The contactNotices to set.

Returns
Type Description
RegisterDomainRequest.Builder

This builder for chaining.

setContactNoticesValue(int index, int value)

public RegisterDomainRequest.Builder setContactNoticesValue(int index, 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.v1beta1.ContactNotice contact_notices = 4;

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

This builder for chaining.

setDomainNotices(int index, DomainNotice value)

public RegisterDomainRequest.Builder setDomainNotices(int index, DomainNotice value)

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

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

Parameters
Name Description
index int

The index to set the value at.

value DomainNotice

The domainNotices to set.

Returns
Type Description
RegisterDomainRequest.Builder

This builder for chaining.

setDomainNoticesValue(int index, int value)

public RegisterDomainRequest.Builder setDomainNoticesValue(int index, int value)

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

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

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
RegisterDomainRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

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

This builder for chaining.

setParentBytes(ByteString value)

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

This builder for chaining.

setRegistration(Registration value)

public RegisterDomainRequest.Builder setRegistration(Registration value)

Required. The complete Registration resource to be created.

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

Parameter
Name Description
value Registration
Returns
Type Description
RegisterDomainRequest.Builder

setRegistration(Registration.Builder builderForValue)

public RegisterDomainRequest.Builder setRegistration(Registration.Builder builderForValue)

Required. The complete Registration resource to be created.

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final RegisterDomainRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RegisterDomainRequest.Builder
Overrides

setValidateOnly(boolean value)

public RegisterDomainRequest.Builder setValidateOnly(boolean value)

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;

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
RegisterDomainRequest.Builder

This builder for chaining.

setYearlyPrice(Money value)

public RegisterDomainRequest.Builder setYearlyPrice(Money value)

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

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
RegisterDomainRequest.Builder

setYearlyPrice(Money.Builder builderForValue)

public RegisterDomainRequest.Builder setYearlyPrice(Money.Builder builderForValue)

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

Parameter
Name Description
builderForValue com.google.type.Money.Builder
Returns
Type Description
RegisterDomainRequest.Builder