Class DnsSettings.GlueRecord.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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 type
google.cloud.domains.v1alpha2.DnsSettings.GlueRecord-
Method Summary
Modifier and TypeMethodDescriptionaddAllIpv4Addresses(Iterable<String> values) List of IPv4 addresses corresponding to this host in the standard decimal format (e.g. `198.51.100.1`).addAllIpv6Addresses(Iterable<String> values) List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g. `2001:db8::`).addIpv4Addresses(String value) List of IPv4 addresses corresponding to this host in the standard decimal format (e.g. `198.51.100.1`).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`).addIpv6Addresses(String value) List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g. `2001:db8::`).addIpv6AddressesBytes(com.google.protobuf.ByteString value) List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g. `2001:db8::`).build()clear()Required.List of IPv4 addresses corresponding to this host in the standard decimal format (e.g. `198.51.100.1`).List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g. `2001:db8::`).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getIpv4Addresses(int index) List of IPv4 addresses corresponding to this host in the standard decimal format (e.g. `198.51.100.1`).com.google.protobuf.ByteStringgetIpv4AddressesBytes(int index) List of IPv4 addresses corresponding to this host in the standard decimal format (e.g. `198.51.100.1`).intList of IPv4 addresses corresponding to this host in the standard decimal format (e.g. `198.51.100.1`).com.google.protobuf.ProtocolStringListList of IPv4 addresses corresponding to this host in the standard decimal format (e.g. `198.51.100.1`).getIpv6Addresses(int index) List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g. `2001:db8::`).com.google.protobuf.ByteStringgetIpv6AddressesBytes(int index) List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g. `2001:db8::`).intList of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g. `2001:db8::`).com.google.protobuf.ProtocolStringListList of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g. `2001:db8::`).protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DnsSettings.GlueRecord other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setHostName(String value) Required.setHostNameBytes(com.google.protobuf.ByteString value) Required.setIpv4Addresses(int index, String value) List of IPv4 addresses corresponding to this host in the standard decimal format (e.g. `198.51.100.1`).setIpv6Addresses(int index, String value) List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g. `2001:db8::`).Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DnsSettings.GlueRecord.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DnsSettings.GlueRecord.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DnsSettings.GlueRecord.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DnsSettings.GlueRecord.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DnsSettings.GlueRecord.Builder>
-
mergeFrom
public DnsSettings.GlueRecord.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DnsSettings.GlueRecord.Builder>- Throws:
IOException
-
getHostName
Required. Domain name of the host in Punycode format.
string host_name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getHostNamein 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:
getHostNameBytesin interfaceDnsSettings.GlueRecordOrBuilder- Returns:
- The bytes for hostName.
-
setHostName
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
Required. Domain name of the host in Punycode format.
string host_name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setHostNameBytes
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:
getIpv4AddressesListin 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:
getIpv4AddressesCountin interfaceDnsSettings.GlueRecordOrBuilder- Returns:
- The count of ipv4Addresses.
-
getIpv4Addresses
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:
getIpv4Addressesin 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:
getIpv4AddressesBytesin interfaceDnsSettings.GlueRecordOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the ipv4Addresses at the given index.
-
setIpv4Addresses
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
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
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
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
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:
getIpv6AddressesListin 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:
getIpv6AddressesCountin interfaceDnsSettings.GlueRecordOrBuilder- Returns:
- The count of ipv6Addresses.
-
getIpv6Addresses
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:
getIpv6Addressesin 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:
getIpv6AddressesBytesin interfaceDnsSettings.GlueRecordOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the ipv6Addresses at the given index.
-
setIpv6Addresses
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
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
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
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
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.
-