类 SidecarOuterClass.OutboundTrafficPolicy
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- istio.networking.v1alpha3.SidecarOuterClass.OutboundTrafficPolicy
-
- 所有已实现的接口:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SidecarOuterClass.OutboundTrafficPolicyOrBuilder,java.io.Serializable
- 封闭类:
- SidecarOuterClass
public static final class SidecarOuterClass.OutboundTrafficPolicy extends com.google.protobuf.GeneratedMessageV3 implements SidecarOuterClass.OutboundTrafficPolicyOrBuilder
`OutboundTrafficPolicy` sets the default behavior of the sidecar for handling outbound traffic from the application. If your application uses one or more external services that are not known apriori, setting the policy to `ALLOW_ANY` will cause the sidecars to route any unknown traffic originating from the application to its requested destination. Users are strongly encouraged to use `ServiceEntry` configurations to explicitly declare any external dependencies, instead of using `ALLOW_ANY`, so that traffic to these services can be monitored.
Protobuf typeistio.networking.v1alpha3.OutboundTrafficPolicy- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classSidecarOuterClass.OutboundTrafficPolicy.Builder`OutboundTrafficPolicy` sets the default behavior of the sidecar for handling outbound traffic from the application.static classSidecarOuterClass.OutboundTrafficPolicy.ModeProtobuf enumistio.networking.v1alpha3.OutboundTrafficPolicy.Mode-
从类继承的嵌套类/接口 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 SidecarOuterClass.OutboundTrafficPolicyDEFAULT_INSTANCEstatic intEGRESS_PROXY_FIELD_NUMBERprivate VirtualServiceOuterClass.DestinationegressProxy_private bytememoizedIsInitializedprivate intmode_static intMODE_FIELD_NUMBERprivate static com.google.protobuf.Parser<SidecarOuterClass.OutboundTrafficPolicy>PARSERprivate static longserialVersionUID
-
构造器概要
构造器 限定符 构造器 说明 privateOutboundTrafficPolicy()privateOutboundTrafficPolicy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(java.lang.Object obj)static SidecarOuterClass.OutboundTrafficPolicygetDefaultInstance()SidecarOuterClass.OutboundTrafficPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()VirtualServiceOuterClass.DestinationgetEgressProxy()Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.VirtualServiceOuterClass.DestinationOrBuildergetEgressProxyOrBuilder()Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.SidecarOuterClass.OutboundTrafficPolicy.ModegetMode().istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;intgetModeValue().istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;com.google.protobuf.Parser<SidecarOuterClass.OutboundTrafficPolicy>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasEgressProxy()Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static SidecarOuterClass.OutboundTrafficPolicy.BuildernewBuilder()static SidecarOuterClass.OutboundTrafficPolicy.BuildernewBuilder(SidecarOuterClass.OutboundTrafficPolicy prototype)SidecarOuterClass.OutboundTrafficPolicy.BuildernewBuilderForType()protected SidecarOuterClass.OutboundTrafficPolicy.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static SidecarOuterClass.OutboundTrafficPolicyparseDelimitedFrom(java.io.InputStream input)static SidecarOuterClass.OutboundTrafficPolicyparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SidecarOuterClass.OutboundTrafficPolicyparseFrom(byte[] data)static SidecarOuterClass.OutboundTrafficPolicyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SidecarOuterClass.OutboundTrafficPolicyparseFrom(com.google.protobuf.ByteString data)static SidecarOuterClass.OutboundTrafficPolicyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SidecarOuterClass.OutboundTrafficPolicyparseFrom(com.google.protobuf.CodedInputStream input)static SidecarOuterClass.OutboundTrafficPolicyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SidecarOuterClass.OutboundTrafficPolicyparseFrom(java.io.InputStream input)static SidecarOuterClass.OutboundTrafficPolicyparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SidecarOuterClass.OutboundTrafficPolicyparseFrom(java.nio.ByteBuffer data)static SidecarOuterClass.OutboundTrafficPolicyparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<SidecarOuterClass.OutboundTrafficPolicy>parser()SidecarOuterClass.OutboundTrafficPolicy.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, 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
- 另请参阅:
- 常量字段值
-
MODE_FIELD_NUMBER
public static final int MODE_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
mode_
private int mode_
-
EGRESS_PROXY_FIELD_NUMBER
public static final int EGRESS_PROXY_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
egressProxy_
private VirtualServiceOuterClass.Destination egressProxy_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final SidecarOuterClass.OutboundTrafficPolicy DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<SidecarOuterClass.OutboundTrafficPolicy> 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
-
getModeValue
public int getModeValue()
.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;- 指定者:
getModeValue在接口中SidecarOuterClass.OutboundTrafficPolicyOrBuilder- 返回:
- The enum numeric value on the wire for mode.
-
getMode
public SidecarOuterClass.OutboundTrafficPolicy.Mode getMode()
.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;- 指定者:
getMode在接口中SidecarOuterClass.OutboundTrafficPolicyOrBuilder- 返回:
- The mode.
-
hasEgressProxy
public boolean hasEgressProxy()
Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar. Valid only if the mode is set to ALLOW_ANY. If not specified when the mode is ALLOW_ANY, the sidecar will send the unknown traffic directly to the IP requested by the application. ** NOTE 1**: The specified egress host must be imported in the egress section for the traffic forwarding to work. ** NOTE 2**: An Envoy based egress gateway is unlikely to be able to handle plain text TCP connections forwarded from the sidecar. Envoy's dynamic forward proxy can handle only HTTP and TLS connections. $hide_from_docs
.istio.networking.v1alpha3.Destination egress_proxy = 2;- 指定者:
hasEgressProxy在接口中SidecarOuterClass.OutboundTrafficPolicyOrBuilder- 返回:
- Whether the egressProxy field is set.
-
getEgressProxy
public VirtualServiceOuterClass.Destination getEgressProxy()
Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar. Valid only if the mode is set to ALLOW_ANY. If not specified when the mode is ALLOW_ANY, the sidecar will send the unknown traffic directly to the IP requested by the application. ** NOTE 1**: The specified egress host must be imported in the egress section for the traffic forwarding to work. ** NOTE 2**: An Envoy based egress gateway is unlikely to be able to handle plain text TCP connections forwarded from the sidecar. Envoy's dynamic forward proxy can handle only HTTP and TLS connections. $hide_from_docs
.istio.networking.v1alpha3.Destination egress_proxy = 2;- 指定者:
getEgressProxy在接口中SidecarOuterClass.OutboundTrafficPolicyOrBuilder- 返回:
- The egressProxy.
-
getEgressProxyOrBuilder
public VirtualServiceOuterClass.DestinationOrBuilder getEgressProxyOrBuilder()
Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar. Valid only if the mode is set to ALLOW_ANY. If not specified when the mode is ALLOW_ANY, the sidecar will send the unknown traffic directly to the IP requested by the application. ** NOTE 1**: The specified egress host must be imported in the egress section for the traffic forwarding to work. ** NOTE 2**: An Envoy based egress gateway is unlikely to be able to handle plain text TCP connections forwarded from the sidecar. Envoy's dynamic forward proxy can handle only HTTP and TLS connections. $hide_from_docs
.istio.networking.v1alpha3.Destination egress_proxy = 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 SidecarOuterClass.OutboundTrafficPolicy parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SidecarOuterClass.OutboundTrafficPolicy parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SidecarOuterClass.OutboundTrafficPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SidecarOuterClass.OutboundTrafficPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SidecarOuterClass.OutboundTrafficPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SidecarOuterClass.OutboundTrafficPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SidecarOuterClass.OutboundTrafficPolicy parseFrom(java.io.InputStream input) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseFrom
public static SidecarOuterClass.OutboundTrafficPolicy parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseDelimitedFrom
public static SidecarOuterClass.OutboundTrafficPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseDelimitedFrom
public static SidecarOuterClass.OutboundTrafficPolicy parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseFrom
public static SidecarOuterClass.OutboundTrafficPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseFrom
public static SidecarOuterClass.OutboundTrafficPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 抛出:
java.io.IOException
-
newBuilderForType
public SidecarOuterClass.OutboundTrafficPolicy.Builder newBuilderForType()
- 指定者:
newBuilderForType在接口中com.google.protobuf.Message- 指定者:
newBuilderForType在接口中com.google.protobuf.MessageLite
-
newBuilder
public static SidecarOuterClass.OutboundTrafficPolicy.Builder newBuilder()
-
newBuilder
public static SidecarOuterClass.OutboundTrafficPolicy.Builder newBuilder(SidecarOuterClass.OutboundTrafficPolicy prototype)
-
toBuilder
public SidecarOuterClass.OutboundTrafficPolicy.Builder toBuilder()
- 指定者:
toBuilder在接口中com.google.protobuf.Message- 指定者:
toBuilder在接口中com.google.protobuf.MessageLite
-
newBuilderForType
protected SidecarOuterClass.OutboundTrafficPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- 指定者:
newBuilderForType在类中com.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SidecarOuterClass.OutboundTrafficPolicy getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SidecarOuterClass.OutboundTrafficPolicy> parser()
-
getParserForType
public com.google.protobuf.Parser<SidecarOuterClass.OutboundTrafficPolicy> getParserForType()
- 指定者:
getParserForType在接口中com.google.protobuf.Message- 指定者:
getParserForType在接口中com.google.protobuf.MessageLite- 覆盖:
getParserForType在类中com.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SidecarOuterClass.OutboundTrafficPolicy getDefaultInstanceForType()
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
-