Class RegisterParameters.Builder (1.52.0)

public static final class RegisterParameters.Builder extends GeneratedMessageV3.Builder<RegisterParameters.Builder> implements RegisterParametersOrBuilder

Parameters required to register a new domain.

Protobuf type google.cloud.domains.v1beta1.RegisterParameters

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDomainNotices(Iterable<? extends DomainNotice> values)

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

Notices about special properties of the domain.

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

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

The domainNotices to add.

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

addAllDomainNoticesValue(Iterable<Integer> values)

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

Notices about special properties of the domain.

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

Parameter
Name Description
values Iterable<Integer>

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

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

addAllSupportedPrivacy(Iterable<? extends ContactPrivacy> values)

public RegisterParameters.Builder addAllSupportedPrivacy(Iterable<? extends ContactPrivacy> values)

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3;

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

The supportedPrivacy to add.

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

addAllSupportedPrivacyValue(Iterable<Integer> values)

public RegisterParameters.Builder addAllSupportedPrivacyValue(Iterable<Integer> values)

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3;

Parameter
Name Description
values Iterable<Integer>

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

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

addDomainNotices(DomainNotice value)

public RegisterParameters.Builder addDomainNotices(DomainNotice value)

Notices about special properties of the domain.

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

Parameter
Name Description
value DomainNotice

The domainNotices to add.

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

addDomainNoticesValue(int value)

public RegisterParameters.Builder addDomainNoticesValue(int value)

Notices about special properties of the domain.

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

Parameter
Name Description
value int

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

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSupportedPrivacy(ContactPrivacy value)

public RegisterParameters.Builder addSupportedPrivacy(ContactPrivacy value)

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3;

Parameter
Name Description
value ContactPrivacy

The supportedPrivacy to add.

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

addSupportedPrivacyValue(int value)

public RegisterParameters.Builder addSupportedPrivacyValue(int value)

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3;

Parameter
Name Description
value int

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

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

build()

public RegisterParameters build()
Returns
Type Description
RegisterParameters

buildPartial()

public RegisterParameters buildPartial()
Returns
Type Description
RegisterParameters

clear()

public RegisterParameters.Builder clear()
Returns
Type Description
RegisterParameters.Builder
Overrides

clearAvailability()

public RegisterParameters.Builder clearAvailability()

Indicates whether the domain is available for registration. This value is accurate when obtained by calling RetrieveRegisterParameters, but is approximate when obtained by calling SearchDomains.

.google.cloud.domains.v1beta1.RegisterParameters.Availability availability = 2;

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

clearDomainName()

public RegisterParameters.Builder clearDomainName()

The domain name. Unicode domain names are expressed in Punycode format.

string domain_name = 1;

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

clearDomainNotices()

public RegisterParameters.Builder clearDomainNotices()

Notices about special properties of the domain.

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

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RegisterParameters.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RegisterParameters.Builder
Overrides

clearSupportedPrivacy()

public RegisterParameters.Builder clearSupportedPrivacy()

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3;

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

clearYearlyPrice()

public RegisterParameters.Builder clearYearlyPrice()

Price to register or renew the domain for one year.

.google.type.Money yearly_price = 5;

Returns
Type Description
RegisterParameters.Builder

clone()

public RegisterParameters.Builder clone()
Returns
Type Description
RegisterParameters.Builder
Overrides

getAvailability()

public RegisterParameters.Availability getAvailability()

Indicates whether the domain is available for registration. This value is accurate when obtained by calling RetrieveRegisterParameters, but is approximate when obtained by calling SearchDomains.

.google.cloud.domains.v1beta1.RegisterParameters.Availability availability = 2;

Returns
Type Description
RegisterParameters.Availability

The availability.

getAvailabilityValue()

public int getAvailabilityValue()

Indicates whether the domain is available for registration. This value is accurate when obtained by calling RetrieveRegisterParameters, but is approximate when obtained by calling SearchDomains.

.google.cloud.domains.v1beta1.RegisterParameters.Availability availability = 2;

Returns
Type Description
int

The enum numeric value on the wire for availability.

getDefaultInstanceForType()

public RegisterParameters getDefaultInstanceForType()
Returns
Type Description
RegisterParameters

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDomainName()

public String getDomainName()

The domain name. Unicode domain names are expressed in Punycode format.

string domain_name = 1;

Returns
Type Description
String

The domainName.

getDomainNameBytes()

public ByteString getDomainNameBytes()

The domain name. Unicode domain names are expressed in Punycode format.

string domain_name = 1;

Returns
Type Description
ByteString

The bytes for domainName.

getDomainNotices(int index)

public DomainNotice getDomainNotices(int index)

Notices about special properties of the domain.

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

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

Notices about special properties of the domain.

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

Returns
Type Description
int

The count of domainNotices.

getDomainNoticesList()

public List<DomainNotice> getDomainNoticesList()

Notices about special properties of the domain.

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

Returns
Type Description
List<DomainNotice>

A list containing the domainNotices.

getDomainNoticesValue(int index)

public int getDomainNoticesValue(int index)

Notices about special properties of the domain.

repeated .google.cloud.domains.v1beta1.DomainNotice domain_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 domainNotices at the given index.

getDomainNoticesValueList()

public List<Integer> getDomainNoticesValueList()

Notices about special properties of the domain.

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

Returns
Type Description
List<Integer>

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

getSupportedPrivacy(int index)

public ContactPrivacy getSupportedPrivacy(int index)

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ContactPrivacy

The supportedPrivacy at the given index.

getSupportedPrivacyCount()

public int getSupportedPrivacyCount()

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3;

Returns
Type Description
int

The count of supportedPrivacy.

getSupportedPrivacyList()

public List<ContactPrivacy> getSupportedPrivacyList()

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3;

Returns
Type Description
List<ContactPrivacy>

A list containing the supportedPrivacy.

getSupportedPrivacyValue(int index)

public int getSupportedPrivacyValue(int index)

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 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 supportedPrivacy at the given index.

getSupportedPrivacyValueList()

public List<Integer> getSupportedPrivacyValueList()

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3;

Returns
Type Description
List<Integer>

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

getYearlyPrice()

public Money getYearlyPrice()

Price to register or renew the domain for one year.

.google.type.Money yearly_price = 5;

Returns
Type Description
com.google.type.Money

The yearlyPrice.

getYearlyPriceBuilder()

public Money.Builder getYearlyPriceBuilder()

Price to register or renew the domain for one year.

.google.type.Money yearly_price = 5;

Returns
Type Description
com.google.type.Money.Builder

getYearlyPriceOrBuilder()

public MoneyOrBuilder getYearlyPriceOrBuilder()

Price to register or renew the domain for one year.

.google.type.Money yearly_price = 5;

Returns
Type Description
com.google.type.MoneyOrBuilder

hasYearlyPrice()

public boolean hasYearlyPrice()

Price to register or renew the domain for one year.

.google.type.Money yearly_price = 5;

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(RegisterParameters other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeYearlyPrice(Money value)

public RegisterParameters.Builder mergeYearlyPrice(Money value)

Price to register or renew the domain for one year.

.google.type.Money yearly_price = 5;

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

setAvailability(RegisterParameters.Availability value)

public RegisterParameters.Builder setAvailability(RegisterParameters.Availability value)

Indicates whether the domain is available for registration. This value is accurate when obtained by calling RetrieveRegisterParameters, but is approximate when obtained by calling SearchDomains.

.google.cloud.domains.v1beta1.RegisterParameters.Availability availability = 2;

Parameter
Name Description
value RegisterParameters.Availability

The availability to set.

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

setAvailabilityValue(int value)

public RegisterParameters.Builder setAvailabilityValue(int value)

Indicates whether the domain is available for registration. This value is accurate when obtained by calling RetrieveRegisterParameters, but is approximate when obtained by calling SearchDomains.

.google.cloud.domains.v1beta1.RegisterParameters.Availability availability = 2;

Parameter
Name Description
value int

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

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

setDomainName(String value)

public RegisterParameters.Builder setDomainName(String value)

The domain name. Unicode domain names are expressed in Punycode format.

string domain_name = 1;

Parameter
Name Description
value String

The domainName to set.

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

setDomainNameBytes(ByteString value)

public RegisterParameters.Builder setDomainNameBytes(ByteString value)

The domain name. Unicode domain names are expressed in Punycode format.

string domain_name = 1;

Parameter
Name Description
value ByteString

The bytes for domainName to set.

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

setDomainNotices(int index, DomainNotice value)

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

Notices about special properties of the domain.

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

Parameters
Name Description
index int

The index to set the value at.

value DomainNotice

The domainNotices to set.

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

setDomainNoticesValue(int index, int value)

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

Notices about special properties of the domain.

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

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

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSupportedPrivacy(int index, ContactPrivacy value)

public RegisterParameters.Builder setSupportedPrivacy(int index, ContactPrivacy value)

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3;

Parameters
Name Description
index int

The index to set the value at.

value ContactPrivacy

The supportedPrivacy to set.

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

setSupportedPrivacyValue(int index, int value)

public RegisterParameters.Builder setSupportedPrivacyValue(int index, int value)

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 3;

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
RegisterParameters.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setYearlyPrice(Money value)

public RegisterParameters.Builder setYearlyPrice(Money value)

Price to register or renew the domain for one year.

.google.type.Money yearly_price = 5;

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

setYearlyPrice(Money.Builder builderForValue)

public RegisterParameters.Builder setYearlyPrice(Money.Builder builderForValue)

Price to register or renew the domain for one year.

.google.type.Money yearly_price = 5;

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