Class DnsSettings.GlueRecord.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
- com.google.cloud.domains.v1alpha2.DnsSettings.GlueRecord.Builder
-
- All Implemented Interfaces:
DnsSettings.GlueRecordOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- DnsSettings.GlueRecord
public static final class DnsSettings.GlueRecord.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder> 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 typegoogle.cloud.domains.v1alpha2.DnsSettings.GlueRecord
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsSettings.GlueRecord.Builder
addAllIpv4Addresses(Iterable<String> values)
List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.DnsSettings.GlueRecord.Builder
addAllIpv6Addresses(Iterable<String> values)
List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.DnsSettings.GlueRecord.Builder
addIpv4Addresses(String value)
List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.DnsSettings.GlueRecord.Builder
addIpv4AddressesBytes(com.google.protobuf.ByteString value)
List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.DnsSettings.GlueRecord.Builder
addIpv6Addresses(String value)
List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.DnsSettings.GlueRecord.Builder
addIpv6AddressesBytes(com.google.protobuf.ByteString value)
List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.DnsSettings.GlueRecord.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DnsSettings.GlueRecord
build()
DnsSettings.GlueRecord
buildPartial()
DnsSettings.GlueRecord.Builder
clear()
DnsSettings.GlueRecord.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DnsSettings.GlueRecord.Builder
clearHostName()
Required.DnsSettings.GlueRecord.Builder
clearIpv4Addresses()
List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.DnsSettings.GlueRecord.Builder
clearIpv6Addresses()
List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.DnsSettings.GlueRecord.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DnsSettings.GlueRecord.Builder
clone()
DnsSettings.GlueRecord
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getHostName()
Required.com.google.protobuf.ByteString
getHostNameBytes()
Required.String
getIpv4Addresses(int index)
List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.com.google.protobuf.ByteString
getIpv4AddressesBytes(int index)
List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.int
getIpv4AddressesCount()
List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.com.google.protobuf.ProtocolStringList
getIpv4AddressesList()
List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.String
getIpv6Addresses(int index)
List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.com.google.protobuf.ByteString
getIpv6AddressesBytes(int index)
List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.int
getIpv6AddressesCount()
List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.com.google.protobuf.ProtocolStringList
getIpv6AddressesList()
List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DnsSettings.GlueRecord.Builder
mergeFrom(DnsSettings.GlueRecord other)
DnsSettings.GlueRecord.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DnsSettings.GlueRecord.Builder
mergeFrom(com.google.protobuf.Message other)
DnsSettings.GlueRecord.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DnsSettings.GlueRecord.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DnsSettings.GlueRecord.Builder
setHostName(String value)
Required.DnsSettings.GlueRecord.Builder
setHostNameBytes(com.google.protobuf.ByteString value)
Required.DnsSettings.GlueRecord.Builder
setIpv4Addresses(int index, String value)
List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.DnsSettings.GlueRecord.Builder
setIpv6Addresses(int index, String value)
List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.DnsSettings.GlueRecord.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
DnsSettings.GlueRecord.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
clear
public DnsSettings.GlueRecord.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
getDefaultInstanceForType
public DnsSettings.GlueRecord getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DnsSettings.GlueRecord build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DnsSettings.GlueRecord buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DnsSettings.GlueRecord.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
setField
public DnsSettings.GlueRecord.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
clearField
public DnsSettings.GlueRecord.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
clearOneof
public DnsSettings.GlueRecord.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
setRepeatedField
public DnsSettings.GlueRecord.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
addRepeatedField
public DnsSettings.GlueRecord.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
mergeFrom
public DnsSettings.GlueRecord.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DnsSettings.GlueRecord.Builder>
-
mergeFrom
public DnsSettings.GlueRecord.Builder mergeFrom(DnsSettings.GlueRecord other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
mergeFrom
public DnsSettings.GlueRecord.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DnsSettings.GlueRecord.Builder>
- Throws:
IOException
-
getHostName
public String getHostName()
Required. Domain name of the host in Punycode format.
string host_name = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getHostName
in interfaceDnsSettings.GlueRecordOrBuilder
- Returns:
- The hostName.
-
getHostNameBytes
public com.google.protobuf.ByteString getHostNameBytes()
Required. Domain name of the host in Punycode format.
string host_name = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getHostNameBytes
in interfaceDnsSettings.GlueRecordOrBuilder
- Returns:
- The bytes for hostName.
-
setHostName
public DnsSettings.GlueRecord.Builder setHostName(String value)
Required. Domain name of the host in Punycode format.
string host_name = 1 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The hostName to set.- Returns:
- This builder for chaining.
-
clearHostName
public DnsSettings.GlueRecord.Builder clearHostName()
Required. Domain name of the host in Punycode format.
string host_name = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setHostNameBytes
public DnsSettings.GlueRecord.Builder setHostNameBytes(com.google.protobuf.ByteString value)
Required. Domain name of the host in Punycode format.
string host_name = 1 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes for hostName to set.- Returns:
- This builder for chaining.
-
getIpv4AddressesList
public com.google.protobuf.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;
- Specified by:
getIpv4AddressesList
in interfaceDnsSettings.GlueRecordOrBuilder
- Returns:
- A list containing the ipv4Addresses.
-
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;
- Specified by:
getIpv4AddressesCount
in interfaceDnsSettings.GlueRecordOrBuilder
- Returns:
- The count of ipv4Addresses.
-
getIpv4Addresses
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;
- Specified by:
getIpv4Addresses
in interfaceDnsSettings.GlueRecordOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The ipv4Addresses at the given index.
-
getIpv4AddressesBytes
public com.google.protobuf.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;
- Specified by:
getIpv4AddressesBytes
in interfaceDnsSettings.GlueRecordOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the ipv4Addresses at the given index.
-
setIpv4Addresses
public DnsSettings.GlueRecord.Builder setIpv4Addresses(int index, String value)
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;
- Parameters:
index
- The index to set the value at.value
- The ipv4Addresses to set.- Returns:
- This builder for chaining.
-
addIpv4Addresses
public DnsSettings.GlueRecord.Builder addIpv4Addresses(String value)
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;
- Parameters:
value
- The ipv4Addresses to add.- Returns:
- This builder for chaining.
-
addAllIpv4Addresses
public DnsSettings.GlueRecord.Builder addAllIpv4Addresses(Iterable<String> values)
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;
- Parameters:
values
- The ipv4Addresses to add.- Returns:
- This builder for chaining.
-
clearIpv4Addresses
public DnsSettings.GlueRecord.Builder clearIpv4Addresses()
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:
- This builder for chaining.
-
addIpv4AddressesBytes
public DnsSettings.GlueRecord.Builder addIpv4AddressesBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes of the ipv4Addresses to add.- Returns:
- This builder for chaining.
-
getIpv6AddressesList
public com.google.protobuf.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;
- Specified by:
getIpv6AddressesList
in interfaceDnsSettings.GlueRecordOrBuilder
- Returns:
- A list containing the ipv6Addresses.
-
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;
- Specified by:
getIpv6AddressesCount
in interfaceDnsSettings.GlueRecordOrBuilder
- Returns:
- The count of ipv6Addresses.
-
getIpv6Addresses
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;
- Specified by:
getIpv6Addresses
in interfaceDnsSettings.GlueRecordOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The ipv6Addresses at the given index.
-
getIpv6AddressesBytes
public com.google.protobuf.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;
- Specified by:
getIpv6AddressesBytes
in interfaceDnsSettings.GlueRecordOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the ipv6Addresses at the given index.
-
setIpv6Addresses
public DnsSettings.GlueRecord.Builder setIpv6Addresses(int index, String value)
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;
- Parameters:
index
- The index to set the value at.value
- The ipv6Addresses to set.- Returns:
- This builder for chaining.
-
addIpv6Addresses
public DnsSettings.GlueRecord.Builder addIpv6Addresses(String value)
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;
- Parameters:
value
- The ipv6Addresses to add.- Returns:
- This builder for chaining.
-
addAllIpv6Addresses
public DnsSettings.GlueRecord.Builder addAllIpv6Addresses(Iterable<String> values)
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;
- Parameters:
values
- The ipv6Addresses to add.- Returns:
- This builder for chaining.
-
clearIpv6Addresses
public DnsSettings.GlueRecord.Builder clearIpv6Addresses()
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:
- This builder for chaining.
-
addIpv6AddressesBytes
public DnsSettings.GlueRecord.Builder addIpv6AddressesBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes of the ipv6Addresses to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final DnsSettings.GlueRecord.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
mergeUnknownFields
public final DnsSettings.GlueRecord.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
-