Package io.envoyproxy.envoy.data.dns.v3
Class DnsTable.DnsServiceTarget
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceTarget
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DnsTable.DnsServiceTargetOrBuilder,Serializable
- Enclosing class:
- DnsTable
public static final class DnsTable.DnsServiceTarget extends com.google.protobuf.GeneratedMessageV3 implements DnsTable.DnsServiceTargetOrBuilder
Specify the target for a given DNS service [#next-free-field: 6]
Protobuf typeenvoy.data.dns.v3.DnsTable.DnsServiceTarget- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDnsTable.DnsServiceTarget.BuilderSpecify the target for a given DNS service [#next-free-field: 6]static classDnsTable.DnsServiceTarget.EndpointTypeCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCLUSTER_NAME_FIELD_NUMBERstatic intHOST_NAME_FIELD_NUMBERstatic intPORT_FIELD_NUMBERstatic intPRIORITY_FIELD_NUMBERstatic intWEIGHT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetClusterName()Use a cluster name as the endpoint for a service.com.google.protobuf.ByteStringgetClusterNameBytes()Use a cluster name as the endpoint for a service.static DnsTable.DnsServiceTargetgetDefaultInstance()DnsTable.DnsServiceTargetgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()DnsTable.DnsServiceTarget.EndpointTypeCasegetEndpointTypeCase()StringgetHostName()Use a resolvable hostname as the endpoint for a service.com.google.protobuf.ByteStringgetHostNameBytes()Use a resolvable hostname as the endpoint for a service.com.google.protobuf.Parser<DnsTable.DnsServiceTarget>getParserForType()intgetPort()The port to which the service is bound.intgetPriority()The priority of the service record targetintgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()intgetWeight()The weight of the service record targetbooleanhasClusterName()Use a cluster name as the endpoint for a service.inthashCode()booleanhasHostName()Use a resolvable hostname as the endpoint for a service.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DnsTable.DnsServiceTarget.BuildernewBuilder()static DnsTable.DnsServiceTarget.BuildernewBuilder(DnsTable.DnsServiceTarget prototype)DnsTable.DnsServiceTarget.BuildernewBuilderForType()protected DnsTable.DnsServiceTarget.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DnsTable.DnsServiceTargetparseDelimitedFrom(InputStream input)static DnsTable.DnsServiceTargetparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DnsTable.DnsServiceTargetparseFrom(byte[] data)static DnsTable.DnsServiceTargetparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DnsTable.DnsServiceTargetparseFrom(com.google.protobuf.ByteString data)static DnsTable.DnsServiceTargetparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DnsTable.DnsServiceTargetparseFrom(com.google.protobuf.CodedInputStream input)static DnsTable.DnsServiceTargetparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DnsTable.DnsServiceTargetparseFrom(InputStream input)static DnsTable.DnsServiceTargetparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DnsTable.DnsServiceTargetparseFrom(ByteBuffer data)static DnsTable.DnsServiceTargetparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<DnsTable.DnsServiceTarget>parser()DnsTable.DnsServiceTarget.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
HOST_NAME_FIELD_NUMBER
public static final int HOST_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLUSTER_NAME_FIELD_NUMBER
public static final int CLUSTER_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WEIGHT_FIELD_NUMBER
public static final int WEIGHT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
getEndpointTypeCase
public DnsTable.DnsServiceTarget.EndpointTypeCase getEndpointTypeCase()
- Specified by:
getEndpointTypeCasein interfaceDnsTable.DnsServiceTargetOrBuilder
-
hasHostName
public boolean hasHostName()
Use a resolvable hostname as the endpoint for a service.
string host_name = 1 [(.validate.rules) = { ... }- Specified by:
hasHostNamein interfaceDnsTable.DnsServiceTargetOrBuilder- Returns:
- Whether the hostName field is set.
-
getHostName
public String getHostName()
Use a resolvable hostname as the endpoint for a service.
string host_name = 1 [(.validate.rules) = { ... }- Specified by:
getHostNamein interfaceDnsTable.DnsServiceTargetOrBuilder- Returns:
- The hostName.
-
getHostNameBytes
public com.google.protobuf.ByteString getHostNameBytes()
Use a resolvable hostname as the endpoint for a service.
string host_name = 1 [(.validate.rules) = { ... }- Specified by:
getHostNameBytesin interfaceDnsTable.DnsServiceTargetOrBuilder- Returns:
- The bytes for hostName.
-
hasClusterName
public boolean hasClusterName()
Use a cluster name as the endpoint for a service.
string cluster_name = 2 [(.validate.rules) = { ... }- Specified by:
hasClusterNamein interfaceDnsTable.DnsServiceTargetOrBuilder- Returns:
- Whether the clusterName field is set.
-
getClusterName
public String getClusterName()
Use a cluster name as the endpoint for a service.
string cluster_name = 2 [(.validate.rules) = { ... }- Specified by:
getClusterNamein interfaceDnsTable.DnsServiceTargetOrBuilder- Returns:
- The clusterName.
-
getClusterNameBytes
public com.google.protobuf.ByteString getClusterNameBytes()
Use a cluster name as the endpoint for a service.
string cluster_name = 2 [(.validate.rules) = { ... }- Specified by:
getClusterNameBytesin interfaceDnsTable.DnsServiceTargetOrBuilder- Returns:
- The bytes for clusterName.
-
getPriority
public int getPriority()
The priority of the service record target
uint32 priority = 3 [(.validate.rules) = { ... }- Specified by:
getPriorityin interfaceDnsTable.DnsServiceTargetOrBuilder- Returns:
- The priority.
-
getWeight
public int getWeight()
The weight of the service record target
uint32 weight = 4 [(.validate.rules) = { ... }- Specified by:
getWeightin interfaceDnsTable.DnsServiceTargetOrBuilder- Returns:
- The weight.
-
getPort
public int getPort()
The port to which the service is bound. This value is optional if the target is a cluster. Setting port to zero in this case makes the filter use the port value from the cluster host
uint32 port = 5 [(.validate.rules) = { ... }- Specified by:
getPortin interfaceDnsTable.DnsServiceTargetOrBuilder- Returns:
- The port.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DnsTable.DnsServiceTarget parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DnsTable.DnsServiceTarget parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DnsTable.DnsServiceTarget parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DnsTable.DnsServiceTarget parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DnsTable.DnsServiceTarget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DnsTable.DnsServiceTarget parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DnsTable.DnsServiceTarget parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DnsTable.DnsServiceTarget parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DnsTable.DnsServiceTarget parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DnsTable.DnsServiceTarget parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static DnsTable.DnsServiceTarget parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DnsTable.DnsServiceTarget parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public DnsTable.DnsServiceTarget.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DnsTable.DnsServiceTarget.Builder newBuilder()
-
newBuilder
public static DnsTable.DnsServiceTarget.Builder newBuilder(DnsTable.DnsServiceTarget prototype)
-
toBuilder
public DnsTable.DnsServiceTarget.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DnsTable.DnsServiceTarget.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DnsTable.DnsServiceTarget getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DnsTable.DnsServiceTarget> parser()
-
getParserForType
public com.google.protobuf.Parser<DnsTable.DnsServiceTarget> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DnsTable.DnsServiceTarget getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-