Package com.google.cloud.domains.v1
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.v1.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.v1.DnsSettings.GlueRecord
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsSettings.GlueRecord.BuilderaddAllIpv4Addresses(Iterable<String> values)List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.DnsSettings.GlueRecord.BuilderaddAllIpv6Addresses(Iterable<String> values)List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.DnsSettings.GlueRecord.BuilderaddIpv4Addresses(String value)List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.DnsSettings.GlueRecord.BuilderaddIpv4AddressesBytes(com.google.protobuf.ByteString value)List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.DnsSettings.GlueRecord.BuilderaddIpv6Addresses(String value)List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.DnsSettings.GlueRecord.BuilderaddIpv6AddressesBytes(com.google.protobuf.ByteString value)List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.DnsSettings.GlueRecord.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DnsSettings.GlueRecordbuild()DnsSettings.GlueRecordbuildPartial()DnsSettings.GlueRecord.Builderclear()DnsSettings.GlueRecord.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DnsSettings.GlueRecord.BuilderclearHostName()Required.DnsSettings.GlueRecord.BuilderclearIpv4Addresses()List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.DnsSettings.GlueRecord.BuilderclearIpv6Addresses()List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.DnsSettings.GlueRecord.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DnsSettings.GlueRecord.Builderclone()DnsSettings.GlueRecordgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetHostName()Required.com.google.protobuf.ByteStringgetHostNameBytes()Required.StringgetIpv4Addresses(int index)List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.com.google.protobuf.ByteStringgetIpv4AddressesBytes(int index)List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.intgetIpv4AddressesCount()List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.com.google.protobuf.ProtocolStringListgetIpv4AddressesList()List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.StringgetIpv6Addresses(int index)List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.com.google.protobuf.ByteStringgetIpv6AddressesBytes(int index)List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.intgetIpv6AddressesCount()List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.com.google.protobuf.ProtocolStringListgetIpv6AddressesList()List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DnsSettings.GlueRecord.BuildermergeFrom(DnsSettings.GlueRecord other)DnsSettings.GlueRecord.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DnsSettings.GlueRecord.BuildermergeFrom(com.google.protobuf.Message other)DnsSettings.GlueRecord.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DnsSettings.GlueRecord.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DnsSettings.GlueRecord.BuildersetHostName(String value)Required.DnsSettings.GlueRecord.BuildersetHostNameBytes(com.google.protobuf.ByteString value)Required.DnsSettings.GlueRecord.BuildersetIpv4Addresses(int index, String value)List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.DnsSettings.GlueRecord.BuildersetIpv6Addresses(int index, String value)List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.DnsSettings.GlueRecord.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DnsSettings.GlueRecord.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
getDefaultInstanceForType
public DnsSettings.GlueRecord getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DnsSettings.GlueRecord build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DnsSettings.GlueRecord buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DnsSettings.GlueRecord.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
setField
public DnsSettings.GlueRecord.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
clearField
public DnsSettings.GlueRecord.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
clearOneof
public DnsSettings.GlueRecord.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
addRepeatedField
public DnsSettings.GlueRecord.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
mergeFrom
public DnsSettings.GlueRecord.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DnsSettings.GlueRecord.Builder>
-
mergeFrom
public DnsSettings.GlueRecord.Builder mergeFrom(DnsSettings.GlueRecord other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
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
public String 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
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:
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
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:
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
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:
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
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:
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
mergeUnknownFields
public final DnsSettings.GlueRecord.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DnsSettings.GlueRecord.Builder>
-
-