类 VirtualServiceOuterClass.TCPRoute
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- istio.networking.v1alpha3.VirtualServiceOuterClass.TCPRoute
-
- 所有已实现的接口:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,VirtualServiceOuterClass.TCPRouteOrBuilder,java.io.Serializable
public static final class VirtualServiceOuterClass.TCPRoute extends com.google.protobuf.GeneratedMessageV3 implements VirtualServiceOuterClass.TCPRouteOrBuilder
Describes match conditions and actions for routing TCP traffic. The following routing rule forwards traffic arriving at port 27017 for mongo.prod.svc.cluster.local to another Mongo server on port 5555. {{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: bookinfo-mongo spec: hosts: - mongo.prod.svc.cluster.local tcp: - match: - port: 27017 route: - destination: host: mongo.backup.svc.cluster.local port: number: 5555 ``` {{</tab>}} {{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata: name: bookinfo-mongo spec: hosts: - mongo.prod.svc.cluster.local tcp: - match: - port: 27017 route: - destination: host: mongo.backup.svc.cluster.local port: number: 5555 ``` {{</tab>}} {{</tabset>}}Protobuf typeistio.networking.v1alpha3.TCPRoute- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classVirtualServiceOuterClass.TCPRoute.BuilderDescribes match conditions and actions for routing TCP traffic.-
从类继承的嵌套类/接口 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
-
-
字段概要
字段 修饰符和类型 字段 说明 private static VirtualServiceOuterClass.TCPRouteDEFAULT_INSTANCEprivate java.util.List<VirtualServiceOuterClass.L4MatchAttributes>match_static intMATCH_FIELD_NUMBERprivate bytememoizedIsInitializedprivate static com.google.protobuf.Parser<VirtualServiceOuterClass.TCPRoute>PARSERprivate java.util.List<VirtualServiceOuterClass.RouteDestination>route_static intROUTE_FIELD_NUMBERprivate static longserialVersionUID
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(java.lang.Object obj)static VirtualServiceOuterClass.TCPRoutegetDefaultInstance()VirtualServiceOuterClass.TCPRoutegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()VirtualServiceOuterClass.L4MatchAttributesgetMatch(int index)Match conditions to be satisfied for the rule to be activated.intgetMatchCount()Match conditions to be satisfied for the rule to be activated.java.util.List<VirtualServiceOuterClass.L4MatchAttributes>getMatchList()Match conditions to be satisfied for the rule to be activated.VirtualServiceOuterClass.L4MatchAttributesOrBuildergetMatchOrBuilder(int index)Match conditions to be satisfied for the rule to be activated.java.util.List<? extends VirtualServiceOuterClass.L4MatchAttributesOrBuilder>getMatchOrBuilderList()Match conditions to be satisfied for the rule to be activated.com.google.protobuf.Parser<VirtualServiceOuterClass.TCPRoute>getParserForType()VirtualServiceOuterClass.RouteDestinationgetRoute(int index)The destination to which the connection should be forwarded to.intgetRouteCount()The destination to which the connection should be forwarded to.java.util.List<VirtualServiceOuterClass.RouteDestination>getRouteList()The destination to which the connection should be forwarded to.VirtualServiceOuterClass.RouteDestinationOrBuildergetRouteOrBuilder(int index)The destination to which the connection should be forwarded to.java.util.List<? extends VirtualServiceOuterClass.RouteDestinationOrBuilder>getRouteOrBuilderList()The destination to which the connection should be forwarded to.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static VirtualServiceOuterClass.TCPRoute.BuildernewBuilder()static VirtualServiceOuterClass.TCPRoute.BuildernewBuilder(VirtualServiceOuterClass.TCPRoute prototype)VirtualServiceOuterClass.TCPRoute.BuildernewBuilderForType()protected VirtualServiceOuterClass.TCPRoute.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static VirtualServiceOuterClass.TCPRouteparseDelimitedFrom(java.io.InputStream input)static VirtualServiceOuterClass.TCPRouteparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualServiceOuterClass.TCPRouteparseFrom(byte[] data)static VirtualServiceOuterClass.TCPRouteparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualServiceOuterClass.TCPRouteparseFrom(com.google.protobuf.ByteString data)static VirtualServiceOuterClass.TCPRouteparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualServiceOuterClass.TCPRouteparseFrom(com.google.protobuf.CodedInputStream input)static VirtualServiceOuterClass.TCPRouteparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualServiceOuterClass.TCPRouteparseFrom(java.io.InputStream input)static VirtualServiceOuterClass.TCPRouteparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualServiceOuterClass.TCPRouteparseFrom(java.nio.ByteBuffer data)static VirtualServiceOuterClass.TCPRouteparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<VirtualServiceOuterClass.TCPRoute>parser()VirtualServiceOuterClass.TCPRoute.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
从类继承的方法 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
-
从类继承的方法 com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
-
-
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID
- 另请参阅:
- 常量字段值
-
MATCH_FIELD_NUMBER
public static final int MATCH_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
match_
private java.util.List<VirtualServiceOuterClass.L4MatchAttributes> match_
-
ROUTE_FIELD_NUMBER
public static final int ROUTE_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
route_
private java.util.List<VirtualServiceOuterClass.RouteDestination> route_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final VirtualServiceOuterClass.TCPRoute DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<VirtualServiceOuterClass.TCPRoute> PARSER
-
-
方法详细资料
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- 覆盖:
newInstance在类中com.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- 指定者:
getUnknownFields在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getUnknownFields在类中com.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3
-
getMatchList
public java.util.List<VirtualServiceOuterClass.L4MatchAttributes> getMatchList()
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.L4MatchAttributes match = 1;
-
getMatchOrBuilderList
public java.util.List<? extends VirtualServiceOuterClass.L4MatchAttributesOrBuilder> getMatchOrBuilderList()
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.L4MatchAttributes match = 1;
-
getMatchCount
public int getMatchCount()
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.L4MatchAttributes match = 1;
-
getMatch
public VirtualServiceOuterClass.L4MatchAttributes getMatch(int index)
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.L4MatchAttributes match = 1;
-
getMatchOrBuilder
public VirtualServiceOuterClass.L4MatchAttributesOrBuilder getMatchOrBuilder(int index)
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.L4MatchAttributes match = 1;
-
getRouteList
public java.util.List<VirtualServiceOuterClass.RouteDestination> getRouteList()
The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2;
-
getRouteOrBuilderList
public java.util.List<? extends VirtualServiceOuterClass.RouteDestinationOrBuilder> getRouteOrBuilderList()
The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2;
-
getRouteCount
public int getRouteCount()
The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2;
-
getRoute
public VirtualServiceOuterClass.RouteDestination getRoute(int index)
The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2;
-
getRouteOrBuilder
public VirtualServiceOuterClass.RouteDestinationOrBuilder getRouteOrBuilder(int index)
The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2;
-
isInitialized
public final boolean isInitialized()
- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- 指定者:
writeTo在接口中com.google.protobuf.MessageLite- 覆盖:
writeTo在类中com.google.protobuf.GeneratedMessageV3- 抛出:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- 指定者:
getSerializedSize在接口中com.google.protobuf.MessageLite- 覆盖:
getSerializedSize在类中com.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- 指定者:
equals在接口中com.google.protobuf.Message- 覆盖:
equals在类中com.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- 指定者:
hashCode在接口中com.google.protobuf.Message- 覆盖:
hashCode在类中com.google.protobuf.AbstractMessage
-
parseFrom
public static VirtualServiceOuterClass.TCPRoute parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.TCPRoute parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.TCPRoute parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.TCPRoute parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.TCPRoute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.TCPRoute parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.TCPRoute parseFrom(java.io.InputStream input) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseFrom
public static VirtualServiceOuterClass.TCPRoute parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseDelimitedFrom
public static VirtualServiceOuterClass.TCPRoute parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseDelimitedFrom
public static VirtualServiceOuterClass.TCPRoute parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseFrom
public static VirtualServiceOuterClass.TCPRoute parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseFrom
public static VirtualServiceOuterClass.TCPRoute parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 抛出:
java.io.IOException
-
newBuilderForType
public VirtualServiceOuterClass.TCPRoute.Builder newBuilderForType()
- 指定者:
newBuilderForType在接口中com.google.protobuf.Message- 指定者:
newBuilderForType在接口中com.google.protobuf.MessageLite
-
newBuilder
public static VirtualServiceOuterClass.TCPRoute.Builder newBuilder()
-
newBuilder
public static VirtualServiceOuterClass.TCPRoute.Builder newBuilder(VirtualServiceOuterClass.TCPRoute prototype)
-
toBuilder
public VirtualServiceOuterClass.TCPRoute.Builder toBuilder()
- 指定者:
toBuilder在接口中com.google.protobuf.Message- 指定者:
toBuilder在接口中com.google.protobuf.MessageLite
-
newBuilderForType
protected VirtualServiceOuterClass.TCPRoute.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- 指定者:
newBuilderForType在类中com.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static VirtualServiceOuterClass.TCPRoute getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<VirtualServiceOuterClass.TCPRoute> parser()
-
getParserForType
public com.google.protobuf.Parser<VirtualServiceOuterClass.TCPRoute> getParserForType()
- 指定者:
getParserForType在接口中com.google.protobuf.Message- 指定者:
getParserForType在接口中com.google.protobuf.MessageLite- 覆盖:
getParserForType在类中com.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public VirtualServiceOuterClass.TCPRoute getDefaultInstanceForType()
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
-