Class TransferParameters.Builder (1.0.4)

Stay organized with collections Save and categorize content based on your preferences.
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.v1beta1.TransferParameters

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The nameServers to add.

Returns
TypeDescription
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.v1beta1.ContactPrivacy supported_privacy = 5;

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

The supportedPrivacy to add.

Returns
TypeDescription
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.v1beta1.ContactPrivacy supported_privacy = 5;

Parameter
NameDescription
valuesIterable<Integer>

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

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

The nameServers to add.

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

The bytes of the nameServers to add.

Returns
TypeDescription
TransferParameters.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSupportedPrivacy(ContactPrivacy value)

public TransferParameters.Builder addSupportedPrivacy(ContactPrivacy value)

Contact privacy options that the domain supports.

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

Parameter
NameDescription
valueContactPrivacy

The supportedPrivacy to add.

Returns
TypeDescription
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.v1beta1.ContactPrivacy supported_privacy = 5;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
TransferParameters.Builder

This builder for chaining.

build()

public TransferParameters build()
Returns
TypeDescription
TransferParameters

buildPartial()

public TransferParameters buildPartial()
Returns
TypeDescription
TransferParameters

clear()

public TransferParameters.Builder clear()
Returns
TypeDescription
TransferParameters.Builder
Overrides

clearCurrentRegistrar()

public TransferParameters.Builder clearCurrentRegistrar()

The registrar that currently manages the domain.

string current_registrar = 2;

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TransferParameters.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
TransferParameters.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSupportedPrivacy()

public TransferParameters.Builder clearSupportedPrivacy()

Contact privacy options that the domain supports.

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

Returns
TypeDescription
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.v1beta1.TransferLockState transfer_lock_state = 4;

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

clone()

public TransferParameters.Builder clone()
Returns
TypeDescription
TransferParameters.Builder
Overrides

getCurrentRegistrar()

public String getCurrentRegistrar()

The registrar that currently manages the domain.

string current_registrar = 2;

Returns
TypeDescription
String

The currentRegistrar.

getCurrentRegistrarBytes()

public ByteString getCurrentRegistrarBytes()

The registrar that currently manages the domain.

string current_registrar = 2;

Returns
TypeDescription
ByteString

The bytes for currentRegistrar.

getDefaultInstanceForType()

public TransferParameters getDefaultInstanceForType()
Returns
TypeDescription
TransferParameters

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.

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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.v1beta1.ContactPrivacy supported_privacy = 5;

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

Returns
TypeDescription
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 = 5;

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

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

Returns
TypeDescription
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.v1beta1.TransferLockState transfer_lock_state = 4;

Returns
TypeDescription
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.v1beta1.TransferLockState transfer_lock_state = 4;

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

public TransferParameters.Builder mergeFrom(TransferParameters other)
Parameter
NameDescription
otherTransferParameters
Returns
TypeDescription
TransferParameters.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCurrentRegistrar(String value)

public TransferParameters.Builder setCurrentRegistrar(String value)

The registrar that currently manages the domain.

string current_registrar = 2;

Parameter
NameDescription
valueString

The currentRegistrar to set.

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

The bytes for currentRegistrar to set.

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

The domainName to set.

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

The bytes for domainName to set.

Returns
TypeDescription
TransferParameters.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The index to set the value at.

valueString

The nameServers to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1beta1.ContactPrivacy supported_privacy = 5;

Parameters
NameDescription
indexint

The index to set the value at.

valueContactPrivacy

The supportedPrivacy to set.

Returns
TypeDescription
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.v1beta1.ContactPrivacy supported_privacy = 5;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
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.v1beta1.TransferLockState transfer_lock_state = 4;

Parameter
NameDescription
valueTransferLockState

The transferLockState to set.

Returns
TypeDescription
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.v1beta1.TransferLockState transfer_lock_state = 4;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
TransferParameters.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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