Class RegisterDomainRequest.Builder (1.34.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
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.v1beta1.ContactNotice contact_notices = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.domains.v1beta1.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.v1beta1.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.v1beta1.DomainNotice domain_notices = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.domains.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.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.

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

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

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

mergeFrom(RegisterDomainRequest other)

public RegisterDomainRequest.Builder mergeFrom(RegisterDomainRequest other)
Parameter
NameDescription
otherRegisterDomainRequest
Returns
TypeDescription
RegisterDomainRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RegisterDomainRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRegistration
Returns
TypeDescription
RegisterDomainRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RegisterDomainRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Money
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueContactNotice

The contactNotices to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueDomainNotice

The domainNotices to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
RegisterDomainRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RegisterDomainRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
valueRegistration
Returns
TypeDescription
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
NameDescription
builderForValueRegistration.Builder
Returns
TypeDescription
RegisterDomainRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final RegisterDomainRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
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
NameDescription
valuecom.google.type.Money
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.Money.Builder
Returns
TypeDescription
RegisterDomainRequest.Builder