Class RegisterParameters.Builder (1.24.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.v1alpha2.RegisterParameters

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1alpha2.DomainNotice domain_notices = 4;

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

The domainNotices to add.

Returns
TypeDescription
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.v1alpha2.DomainNotice domain_notices = 4;

Parameter
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
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.v1alpha2.ContactPrivacy supported_privacy = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.domains.v1alpha2.ContactPrivacy>

The supportedPrivacy to add.

Returns
TypeDescription
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.v1alpha2.ContactPrivacy supported_privacy = 3;

Parameter
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
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.v1alpha2.DomainNotice domain_notices = 4;

Parameter
NameDescription
valueDomainNotice

The domainNotices to add.

Returns
TypeDescription
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.v1alpha2.DomainNotice domain_notices = 4;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
RegisterParameters.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSupportedPrivacy(ContactPrivacy value)

public RegisterParameters.Builder addSupportedPrivacy(ContactPrivacy value)

Contact privacy options that the domain supports.

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

Parameter
NameDescription
valueContactPrivacy

The supportedPrivacy to add.

Returns
TypeDescription
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.v1alpha2.ContactPrivacy supported_privacy = 3;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
RegisterParameters.Builder

This builder for chaining.

build()

public RegisterParameters build()
Returns
TypeDescription
RegisterParameters

buildPartial()

public RegisterParameters buildPartial()
Returns
TypeDescription
RegisterParameters

clear()

public RegisterParameters.Builder clear()
Returns
TypeDescription
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.v1alpha2.RegisterParameters.Availability availability = 2;

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

This builder for chaining.

clearDomainNotices()

public RegisterParameters.Builder clearDomainNotices()

Notices about special properties of the domain.

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

Returns
TypeDescription
RegisterParameters.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSupportedPrivacy()

public RegisterParameters.Builder clearSupportedPrivacy()

Contact privacy options that the domain supports.

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

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

clone()

public RegisterParameters.Builder clone()
Returns
TypeDescription
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.v1alpha2.RegisterParameters.Availability availability = 2;

Returns
TypeDescription
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.v1alpha2.RegisterParameters.Availability availability = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for availability.

getDefaultInstanceForType()

public RegisterParameters getDefaultInstanceForType()
Returns
TypeDescription
RegisterParameters

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDomainName()

public String getDomainName()

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

string domain_name = 1;

Returns
TypeDescription
String

The domainName.

getDomainNameBytes()

public ByteString getDomainNameBytes()

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

string domain_name = 1;

Returns
TypeDescription
ByteString

The bytes for domainName.

getDomainNotices(int index)

public DomainNotice getDomainNotices(int index)

Notices about special properties of the domain.

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
DomainNotice

The domainNotices at the given index.

getDomainNoticesCount()

public int getDomainNoticesCount()

Notices about special properties of the domain.

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

Returns
TypeDescription
int

The count of domainNotices.

getDomainNoticesList()

public List<DomainNotice> getDomainNoticesList()

Notices about special properties of the domain.

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

Returns
TypeDescription
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.v1alpha2.DomainNotice domain_notices = 4;

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

Notices about special properties of the domain.

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

Returns
TypeDescription
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.v1alpha2.ContactPrivacy supported_privacy = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
ContactPrivacy

The supportedPrivacy at the given index.

getSupportedPrivacyCount()

public int getSupportedPrivacyCount()

Contact privacy options that the domain supports.

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

Returns
TypeDescription
int

The count of supportedPrivacy.

getSupportedPrivacyList()

public List<ContactPrivacy> getSupportedPrivacyList()

Contact privacy options that the domain supports.

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

Returns
TypeDescription
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.v1alpha2.ContactPrivacy supported_privacy = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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.v1alpha2.ContactPrivacy supported_privacy = 3;

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

public RegisterParameters.Builder mergeFrom(RegisterParameters other)
Parameter
NameDescription
otherRegisterParameters
Returns
TypeDescription
RegisterParameters.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RegisterParameters.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RegisterParameters.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RegisterParameters.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Money
Returns
TypeDescription
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.v1alpha2.RegisterParameters.Availability availability = 2;

Parameter
NameDescription
valueRegisterParameters.Availability

The availability to set.

Returns
TypeDescription
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.v1alpha2.RegisterParameters.Availability availability = 2;

Parameter
NameDescription
valueint

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

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

The domainName to set.

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

The bytes for domainName to set.

Returns
TypeDescription
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.v1alpha2.DomainNotice domain_notices = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueDomainNotice

The domainNotices to set.

Returns
TypeDescription
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.v1alpha2.DomainNotice domain_notices = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
RegisterParameters.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public RegisterParameters.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1alpha2.ContactPrivacy supported_privacy = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueContactPrivacy

The supportedPrivacy to set.

Returns
TypeDescription
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.v1alpha2.ContactPrivacy supported_privacy = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
RegisterParameters.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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