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 type
envoy.data.dns.v3.DnsTable.DnsServiceTarget- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecify the target for a given DNS service [#next-free-field: 6]static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanUse a cluster name as the endpoint for a service.com.google.protobuf.ByteStringUse a cluster name as the endpoint for a service.static DnsTable.DnsServiceTargetstatic final com.google.protobuf.Descriptors.DescriptorUse a resolvable hostname as the endpoint for a service.com.google.protobuf.ByteStringUse a resolvable hostname as the endpoint for a service.com.google.protobuf.Parser<DnsTable.DnsServiceTarget>intgetPort()The port to which the service is bound.intThe priority of the service record targetintintThe weight of the service record targetbooleanUse a cluster name as the endpoint for a service.inthashCode()booleanUse a resolvable hostname as the endpoint for a service.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(DnsTable.DnsServiceTarget prototype) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
HOST_NAME_FIELD_NUMBER
public static final int HOST_NAME_FIELD_NUMBER- See Also:
-
CLUSTER_NAME_FIELD_NUMBER
public static final int CLUSTER_NAME_FIELD_NUMBER- See Also:
-
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER- See Also:
-
WEIGHT_FIELD_NUMBER
public static final int WEIGHT_FIELD_NUMBER- See Also:
-
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein 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
- 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
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
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
- 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
- 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
- Throws:
IOException
-
parseFrom
public static DnsTable.DnsServiceTarget parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
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
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-