类 SidecarOuterClass.OutboundTrafficPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
istio.networking.v1alpha3.SidecarOuterClass.OutboundTrafficPolicy.Builder
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SidecarOuterClass.OutboundTrafficPolicyOrBuilder,Cloneable
public static final class SidecarOuterClass.OutboundTrafficPolicy.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
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 type
istio.networking.v1alpha3.OutboundTrafficPolicy-
方法概要
修饰符和类型方法说明addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) .istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.getMode().istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;int.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;booleanSpecifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanSpecifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.setEgressProxy(VirtualServiceOuterClass.Destination.Builder builderForValue) Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar..istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;setModeValue(int value) .istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException从接口继承的方法 com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom从接口继承的方法 com.google.protobuf.MessageLite.Builder
mergeFrom从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
-
clear
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- 指定者:
getDescriptorForType在接口中com.google.protobuf.Message.Builder- 指定者:
getDescriptorForType在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getDescriptorForType在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
-
getDefaultInstanceForType
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
clone
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
-
setField
public SidecarOuterClass.OutboundTrafficPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
-
clearField
public SidecarOuterClass.OutboundTrafficPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
-
clearOneof
public SidecarOuterClass.OutboundTrafficPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
-
setRepeatedField
public SidecarOuterClass.OutboundTrafficPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - 指定者:
setRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
setRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
-
addRepeatedField
public SidecarOuterClass.OutboundTrafficPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
-
mergeFrom
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
-
mergeFrom
public SidecarOuterClass.OutboundTrafficPolicy.Builder mergeFrom(SidecarOuterClass.OutboundTrafficPolicy other) -
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
-
mergeFrom
public SidecarOuterClass.OutboundTrafficPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 指定者:
mergeFrom在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>- 抛出:
IOException
-
getModeValue
public int getModeValue().istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;- 指定者:
getModeValue在接口中SidecarOuterClass.OutboundTrafficPolicyOrBuilder- 返回:
- The enum numeric value on the wire for mode.
-
setModeValue
.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;- 参数:
value- The enum numeric value on the wire for mode to set.- 返回:
- This builder for chaining.
-
getMode
.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;- 指定者:
getMode在接口中SidecarOuterClass.OutboundTrafficPolicyOrBuilder- 返回:
- The mode.
-
setMode
public SidecarOuterClass.OutboundTrafficPolicy.Builder setMode(SidecarOuterClass.OutboundTrafficPolicy.Mode value) .istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;- 参数:
value- The mode to set.- 返回:
- This builder for chaining.
-
clearMode
.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;- 返回:
- This builder for chaining.
-
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
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.
-
setEgressProxy
public SidecarOuterClass.OutboundTrafficPolicy.Builder setEgressProxy(VirtualServiceOuterClass.Destination value) 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; -
setEgressProxy
public SidecarOuterClass.OutboundTrafficPolicy.Builder setEgressProxy(VirtualServiceOuterClass.Destination.Builder builderForValue) 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; -
mergeEgressProxy
public SidecarOuterClass.OutboundTrafficPolicy.Builder mergeEgressProxy(VirtualServiceOuterClass.Destination value) 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; -
clearEgressProxy
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; -
getEgressProxyBuilder
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; -
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; -
setUnknownFields
public final SidecarOuterClass.OutboundTrafficPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
-
mergeUnknownFields
public final SidecarOuterClass.OutboundTrafficPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
-