Class TransferParameters.Builder (1.49.0)

public static final class TransferParameters.Builder extends GeneratedMessageV3.Builder<TransferParameters.Builder> implements TransferParametersOrBuilder

Parameters required to transfer a domain from another registrar.

Protobuf type google.cloud.domains.v1.TransferParameters

Static Methods

getDescriptor()

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

Methods

addAllNameServers(Iterable<String> values)

public TransferParameters.Builder addAllNameServers(Iterable<String> values)

The name servers that currently store the configuration of the domain.

repeated string name_servers = 3;

Parameter
Name Description
values Iterable<String>

The nameServers to add.

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

addAllSupportedPrivacy(Iterable<? extends ContactPrivacy> values)

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

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5;

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

The supportedPrivacy to add.

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

addAllSupportedPrivacyValue(Iterable<Integer> values)

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

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5;

Parameter
Name Description
values Iterable<Integer>

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

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

addNameServers(String value)

public TransferParameters.Builder addNameServers(String value)

The name servers that currently store the configuration of the domain.

repeated string name_servers = 3;

Parameter
Name Description
value String

The nameServers to add.

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

addNameServersBytes(ByteString value)

public TransferParameters.Builder addNameServersBytes(ByteString value)

The name servers that currently store the configuration of the domain.

repeated string name_servers = 3;

Parameter
Name Description
value ByteString

The bytes of the nameServers to add.

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSupportedPrivacy(ContactPrivacy value)

public TransferParameters.Builder addSupportedPrivacy(ContactPrivacy value)

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5;

Parameter
Name Description
value ContactPrivacy

The supportedPrivacy to add.

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

addSupportedPrivacyValue(int value)

public TransferParameters.Builder addSupportedPrivacyValue(int value)

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5;

Parameter
Name Description
value int

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

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

build()

public TransferParameters build()
Returns
Type Description
TransferParameters

buildPartial()

public TransferParameters buildPartial()
Returns
Type Description
TransferParameters

clear()

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

clearCurrentRegistrar()

public TransferParameters.Builder clearCurrentRegistrar()

The registrar that currently manages the domain.

string current_registrar = 2;

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

clearDomainName()

public TransferParameters.Builder clearDomainName()

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

string domain_name = 1;

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNameServers()

public TransferParameters.Builder clearNameServers()

The name servers that currently store the configuration of the domain.

repeated string name_servers = 3;

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSupportedPrivacy()

public TransferParameters.Builder clearSupportedPrivacy()

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5;

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

clearTransferLockState()

public TransferParameters.Builder clearTransferLockState()

Indicates whether the domain is protected by a transfer lock. For a transfer to succeed, this must show UNLOCKED. To unlock a domain, go to its current registrar.

.google.cloud.domains.v1.TransferLockState transfer_lock_state = 4;

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

clearYearlyPrice()

public TransferParameters.Builder clearYearlyPrice()

Price to transfer or renew the domain for one year.

.google.type.Money yearly_price = 6;

Returns
Type Description
TransferParameters.Builder

clone()

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

getCurrentRegistrar()

public String getCurrentRegistrar()

The registrar that currently manages the domain.

string current_registrar = 2;

Returns
Type Description
String

The currentRegistrar.

getCurrentRegistrarBytes()

public ByteString getCurrentRegistrarBytes()

The registrar that currently manages the domain.

string current_registrar = 2;

Returns
Type Description
ByteString

The bytes for currentRegistrar.

getDefaultInstanceForType()

public TransferParameters getDefaultInstanceForType()
Returns
Type Description
TransferParameters

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.

getNameServers(int index)

public String getNameServers(int index)

The name servers that currently store the configuration of the domain.

repeated string name_servers = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The nameServers at the given index.

getNameServersBytes(int index)

public ByteString getNameServersBytes(int index)

The name servers that currently store the configuration of the domain.

repeated string name_servers = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the nameServers at the given index.

getNameServersCount()

public int getNameServersCount()

The name servers that currently store the configuration of the domain.

repeated string name_servers = 3;

Returns
Type Description
int

The count of nameServers.

getNameServersList()

public ProtocolStringList getNameServersList()

The name servers that currently store the configuration of the domain.

repeated string name_servers = 3;

Returns
Type Description
ProtocolStringList

A list containing the nameServers.

getSupportedPrivacy(int index)

public ContactPrivacy getSupportedPrivacy(int index)

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5;

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.v1.ContactPrivacy supported_privacy = 5;

Returns
Type Description
int

The count of supportedPrivacy.

getSupportedPrivacyList()

public List<ContactPrivacy> getSupportedPrivacyList()

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5;

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.v1.ContactPrivacy supported_privacy = 5;

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.v1.ContactPrivacy supported_privacy = 5;

Returns
Type Description
List<Integer>

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

getTransferLockState()

public TransferLockState getTransferLockState()

Indicates whether the domain is protected by a transfer lock. For a transfer to succeed, this must show UNLOCKED. To unlock a domain, go to its current registrar.

.google.cloud.domains.v1.TransferLockState transfer_lock_state = 4;

Returns
Type Description
TransferLockState

The transferLockState.

getTransferLockStateValue()

public int getTransferLockStateValue()

Indicates whether the domain is protected by a transfer lock. For a transfer to succeed, this must show UNLOCKED. To unlock a domain, go to its current registrar.

.google.cloud.domains.v1.TransferLockState transfer_lock_state = 4;

Returns
Type Description
int

The enum numeric value on the wire for transferLockState.

getYearlyPrice()

public Money getYearlyPrice()

Price to transfer or renew the domain for one year.

.google.type.Money yearly_price = 6;

Returns
Type Description
com.google.type.Money

The yearlyPrice.

getYearlyPriceBuilder()

public Money.Builder getYearlyPriceBuilder()

Price to transfer or renew the domain for one year.

.google.type.Money yearly_price = 6;

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

getYearlyPriceOrBuilder()

public MoneyOrBuilder getYearlyPriceOrBuilder()

Price to transfer or renew the domain for one year.

.google.type.Money yearly_price = 6;

Returns
Type Description
com.google.type.MoneyOrBuilder

hasYearlyPrice()

public boolean hasYearlyPrice()

Price to transfer or renew the domain for one year.

.google.type.Money yearly_price = 6;

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeYearlyPrice(Money value)

public TransferParameters.Builder mergeYearlyPrice(Money value)

Price to transfer or renew the domain for one year.

.google.type.Money yearly_price = 6;

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

setCurrentRegistrar(String value)

public TransferParameters.Builder setCurrentRegistrar(String value)

The registrar that currently manages the domain.

string current_registrar = 2;

Parameter
Name Description
value String

The currentRegistrar to set.

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

setCurrentRegistrarBytes(ByteString value)

public TransferParameters.Builder setCurrentRegistrarBytes(ByteString value)

The registrar that currently manages the domain.

string current_registrar = 2;

Parameter
Name Description
value ByteString

The bytes for currentRegistrar to set.

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

setDomainName(String value)

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

This builder for chaining.

setDomainNameBytes(ByteString value)

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

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setNameServers(int index, String value)

public TransferParameters.Builder setNameServers(int index, String value)

The name servers that currently store the configuration of the domain.

repeated string name_servers = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The nameServers to set.

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

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

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

setSupportedPrivacy(int index, ContactPrivacy value)

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

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5;

Parameters
Name Description
index int

The index to set the value at.

value ContactPrivacy

The supportedPrivacy to set.

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

setSupportedPrivacyValue(int index, int value)

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

Contact privacy options that the domain supports.

repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5;

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

This builder for chaining.

setTransferLockState(TransferLockState value)

public TransferParameters.Builder setTransferLockState(TransferLockState value)

Indicates whether the domain is protected by a transfer lock. For a transfer to succeed, this must show UNLOCKED. To unlock a domain, go to its current registrar.

.google.cloud.domains.v1.TransferLockState transfer_lock_state = 4;

Parameter
Name Description
value TransferLockState

The transferLockState to set.

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

setTransferLockStateValue(int value)

public TransferParameters.Builder setTransferLockStateValue(int value)

Indicates whether the domain is protected by a transfer lock. For a transfer to succeed, this must show UNLOCKED. To unlock a domain, go to its current registrar.

.google.cloud.domains.v1.TransferLockState transfer_lock_state = 4;

Parameter
Name Description
value int

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

Returns
Type Description
TransferParameters.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setYearlyPrice(Money value)

public TransferParameters.Builder setYearlyPrice(Money value)

Price to transfer or renew the domain for one year.

.google.type.Money yearly_price = 6;

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

setYearlyPrice(Money.Builder builderForValue)

public TransferParameters.Builder setYearlyPrice(Money.Builder builderForValue)

Price to transfer or renew the domain for one year.

.google.type.Money yearly_price = 6;

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