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| 限定符和类型 | 方法和说明 |
|---|---|
SidecarOuterClass.OutboundTrafficPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SidecarOuterClass.OutboundTrafficPolicy |
build() |
SidecarOuterClass.OutboundTrafficPolicy |
buildPartial() |
SidecarOuterClass.OutboundTrafficPolicy.Builder |
clear() |
SidecarOuterClass.OutboundTrafficPolicy.Builder |
clearEgressProxy()
Specifies the details of the egress proxy to which unknown
traffic should be forwarded to from the sidecar.
|
SidecarOuterClass.OutboundTrafficPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SidecarOuterClass.OutboundTrafficPolicy.Builder |
clearMode()
.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1; |
SidecarOuterClass.OutboundTrafficPolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SidecarOuterClass.OutboundTrafficPolicy.Builder |
clone() |
SidecarOuterClass.OutboundTrafficPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
VirtualServiceOuterClass.Destination |
getEgressProxy()
Specifies the details of the egress proxy to which unknown
traffic should be forwarded to from the sidecar.
|
VirtualServiceOuterClass.Destination.Builder |
getEgressProxyBuilder()
Specifies the details of the egress proxy to which unknown
traffic should be forwarded to from the sidecar.
|
VirtualServiceOuterClass.DestinationOrBuilder |
getEgressProxyOrBuilder()
Specifies the details of the egress proxy to which unknown
traffic should be forwarded to from the sidecar.
|
SidecarOuterClass.OutboundTrafficPolicy.Mode |
getMode()
.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1; |
int |
getModeValue()
.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1; |
boolean |
hasEgressProxy()
Specifies the details of the egress proxy to which unknown
traffic should be forwarded to from the sidecar.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
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.
|
SidecarOuterClass.OutboundTrafficPolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SidecarOuterClass.OutboundTrafficPolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
SidecarOuterClass.OutboundTrafficPolicy.Builder |
mergeFrom(SidecarOuterClass.OutboundTrafficPolicy other) |
SidecarOuterClass.OutboundTrafficPolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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.
|
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.
|
SidecarOuterClass.OutboundTrafficPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SidecarOuterClass.OutboundTrafficPolicy.Builder |
setMode(SidecarOuterClass.OutboundTrafficPolicy.Mode value)
.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1; |
SidecarOuterClass.OutboundTrafficPolicy.Builder |
setModeValue(int value)
.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1; |
SidecarOuterClass.OutboundTrafficPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SidecarOuterClass.OutboundTrafficPolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>public SidecarOuterClass.OutboundTrafficPolicy.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>public SidecarOuterClass.OutboundTrafficPolicy getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic SidecarOuterClass.OutboundTrafficPolicy build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic SidecarOuterClass.OutboundTrafficPolicy buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic SidecarOuterClass.OutboundTrafficPolicy.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>public SidecarOuterClass.OutboundTrafficPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>public SidecarOuterClass.OutboundTrafficPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>public SidecarOuterClass.OutboundTrafficPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>public SidecarOuterClass.OutboundTrafficPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>public SidecarOuterClass.OutboundTrafficPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>public SidecarOuterClass.OutboundTrafficPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>public SidecarOuterClass.OutboundTrafficPolicy.Builder mergeFrom(SidecarOuterClass.OutboundTrafficPolicy other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>public SidecarOuterClass.OutboundTrafficPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>IOExceptionpublic int getModeValue()
.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;getModeValue 在接口中 SidecarOuterClass.OutboundTrafficPolicyOrBuilderpublic SidecarOuterClass.OutboundTrafficPolicy.Builder setModeValue(int value)
.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;value - The enum numeric value on the wire for mode to set.public SidecarOuterClass.OutboundTrafficPolicy.Mode getMode()
.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;getMode 在接口中 SidecarOuterClass.OutboundTrafficPolicyOrBuilderpublic SidecarOuterClass.OutboundTrafficPolicy.Builder setMode(SidecarOuterClass.OutboundTrafficPolicy.Mode value)
.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;value - The mode to set.public SidecarOuterClass.OutboundTrafficPolicy.Builder clearMode()
.istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;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.OutboundTrafficPolicyOrBuilderpublic 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.OutboundTrafficPolicyOrBuilderpublic 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;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;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;public SidecarOuterClass.OutboundTrafficPolicy.Builder 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;public VirtualServiceOuterClass.Destination.Builder 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;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;public final SidecarOuterClass.OutboundTrafficPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>public final SidecarOuterClass.OutboundTrafficPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>Copyright © 2018–2023 Alibaba Group. All rights reserved.