Class DnsSettings.GlueRecord (1.27.0)

public static final class DnsSettings.GlueRecord extends GeneratedMessageV3 implements DnsSettings.GlueRecordOrBuilder

Defines a host on your domain that is a DNS name server for your domain and/or other domains. Glue records are a way of making the IP address of a name server known, even when it serves DNS queries for its parent domain. For example, when ns.example.com is a name server for example.com, the host ns.example.com must have a glue record to break the circular DNS reference.

Protobuf type google.cloud.domains.v1.DnsSettings.GlueRecord

Static Fields

HOST_NAME_FIELD_NUMBER

public static final int HOST_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

IPV4_ADDRESSES_FIELD_NUMBER

public static final int IPV4_ADDRESSES_FIELD_NUMBER
Field Value
TypeDescription
int

IPV6_ADDRESSES_FIELD_NUMBER

public static final int IPV6_ADDRESSES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DnsSettings.GlueRecord getDefaultInstance()
Returns
TypeDescription
DnsSettings.GlueRecord

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DnsSettings.GlueRecord.Builder newBuilder()
Returns
TypeDescription
DnsSettings.GlueRecord.Builder

newBuilder(DnsSettings.GlueRecord prototype)

public static DnsSettings.GlueRecord.Builder newBuilder(DnsSettings.GlueRecord prototype)
Parameter
NameDescription
prototypeDnsSettings.GlueRecord
Returns
TypeDescription
DnsSettings.GlueRecord.Builder

parseDelimitedFrom(InputStream input)

public static DnsSettings.GlueRecord parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DnsSettings.GlueRecord
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DnsSettings.GlueRecord parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DnsSettings.GlueRecord
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DnsSettings.GlueRecord parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DnsSettings.GlueRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DnsSettings.GlueRecord parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DnsSettings.GlueRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DnsSettings.GlueRecord parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DnsSettings.GlueRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DnsSettings.GlueRecord parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DnsSettings.GlueRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DnsSettings.GlueRecord parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DnsSettings.GlueRecord
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DnsSettings.GlueRecord parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DnsSettings.GlueRecord
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DnsSettings.GlueRecord parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DnsSettings.GlueRecord
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DnsSettings.GlueRecord parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DnsSettings.GlueRecord
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DnsSettings.GlueRecord parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DnsSettings.GlueRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DnsSettings.GlueRecord parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DnsSettings.GlueRecord
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DnsSettings.GlueRecord> parser()
Returns
TypeDescription
Parser<GlueRecord>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public DnsSettings.GlueRecord getDefaultInstanceForType()
Returns
TypeDescription
DnsSettings.GlueRecord

getHostName()

public String getHostName()

Required. Domain name of the host in Punycode format.

string host_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The hostName.

getHostNameBytes()

public ByteString getHostNameBytes()

Required. Domain name of the host in Punycode format.

string host_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for hostName.

getIpv4Addresses(int index)

public String getIpv4Addresses(int index)

List of IPv4 addresses corresponding to this host in the standard decimal format (e.g. 198.51.100.1). At least one of ipv4_address and ipv6_address must be set.

repeated string ipv4_addresses = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The ipv4Addresses at the given index.

getIpv4AddressesBytes(int index)

public ByteString getIpv4AddressesBytes(int index)

List of IPv4 addresses corresponding to this host in the standard decimal format (e.g. 198.51.100.1). At least one of ipv4_address and ipv6_address must be set.

repeated string ipv4_addresses = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the ipv4Addresses at the given index.

getIpv4AddressesCount()

public int getIpv4AddressesCount()

List of IPv4 addresses corresponding to this host in the standard decimal format (e.g. 198.51.100.1). At least one of ipv4_address and ipv6_address must be set.

repeated string ipv4_addresses = 2;

Returns
TypeDescription
int

The count of ipv4Addresses.

getIpv4AddressesList()

public ProtocolStringList getIpv4AddressesList()

List of IPv4 addresses corresponding to this host in the standard decimal format (e.g. 198.51.100.1). At least one of ipv4_address and ipv6_address must be set.

repeated string ipv4_addresses = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the ipv4Addresses.

getIpv6Addresses(int index)

public String getIpv6Addresses(int index)

List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g. 2001:db8::). At least one of ipv4_address and ipv6_address must be set.

repeated string ipv6_addresses = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The ipv6Addresses at the given index.

getIpv6AddressesBytes(int index)

public ByteString getIpv6AddressesBytes(int index)

List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g. 2001:db8::). At least one of ipv4_address and ipv6_address must be set.

repeated string ipv6_addresses = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the ipv6Addresses at the given index.

getIpv6AddressesCount()

public int getIpv6AddressesCount()

List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g. 2001:db8::). At least one of ipv4_address and ipv6_address must be set.

repeated string ipv6_addresses = 3;

Returns
TypeDescription
int

The count of ipv6Addresses.

getIpv6AddressesList()

public ProtocolStringList getIpv6AddressesList()

List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g. 2001:db8::). At least one of ipv4_address and ipv6_address must be set.

repeated string ipv6_addresses = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the ipv6Addresses.

getParserForType()

public Parser<DnsSettings.GlueRecord> getParserForType()
Returns
TypeDescription
Parser<GlueRecord>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DnsSettings.GlueRecord.Builder newBuilderForType()
Returns
TypeDescription
DnsSettings.GlueRecord.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DnsSettings.GlueRecord.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DnsSettings.GlueRecord.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DnsSettings.GlueRecord.Builder toBuilder()
Returns
TypeDescription
DnsSettings.GlueRecord.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException