类 SidecarOuterClass.OutboundTrafficPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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,java.lang.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 typeistio.networking.v1alpha3.OutboundTrafficPolicy
-
-
字段概要
字段 修饰符和类型 字段 说明 private intbitField0_private VirtualServiceOuterClass.DestinationegressProxy_private com.google.protobuf.SingleFieldBuilderV3<VirtualServiceOuterClass.Destination,VirtualServiceOuterClass.Destination.Builder,VirtualServiceOuterClass.DestinationOrBuilder>egressProxyBuilder_private intmode_
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 SidecarOuterClass.OutboundTrafficPolicy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)SidecarOuterClass.OutboundTrafficPolicybuild()SidecarOuterClass.OutboundTrafficPolicybuildPartial()private voidbuildPartial0(SidecarOuterClass.OutboundTrafficPolicy result)SidecarOuterClass.OutboundTrafficPolicy.Builderclear()SidecarOuterClass.OutboundTrafficPolicy.BuilderclearEgressProxy()Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.SidecarOuterClass.OutboundTrafficPolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SidecarOuterClass.OutboundTrafficPolicy.BuilderclearMode().istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;SidecarOuterClass.OutboundTrafficPolicy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SidecarOuterClass.OutboundTrafficPolicy.Builderclone()SidecarOuterClass.OutboundTrafficPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()VirtualServiceOuterClass.DestinationgetEgressProxy()Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.VirtualServiceOuterClass.Destination.BuildergetEgressProxyBuilder()Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.private com.google.protobuf.SingleFieldBuilderV3<VirtualServiceOuterClass.Destination,VirtualServiceOuterClass.Destination.Builder,VirtualServiceOuterClass.DestinationOrBuilder>getEgressProxyFieldBuilder()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;booleanhasEgressProxy()Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SidecarOuterClass.OutboundTrafficPolicy.BuildermergeEgressProxy(VirtualServiceOuterClass.Destination value)Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.SidecarOuterClass.OutboundTrafficPolicy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SidecarOuterClass.OutboundTrafficPolicy.BuildermergeFrom(com.google.protobuf.Message other)SidecarOuterClass.OutboundTrafficPolicy.BuildermergeFrom(SidecarOuterClass.OutboundTrafficPolicy other)SidecarOuterClass.OutboundTrafficPolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SidecarOuterClass.OutboundTrafficPolicy.BuildersetEgressProxy(VirtualServiceOuterClass.Destination value)Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.SidecarOuterClass.OutboundTrafficPolicy.BuildersetEgressProxy(VirtualServiceOuterClass.Destination.Builder builderForValue)Specifies the details of the egress proxy to which unknown traffic should be forwarded to from the sidecar.SidecarOuterClass.OutboundTrafficPolicy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)SidecarOuterClass.OutboundTrafficPolicy.BuildersetMode(SidecarOuterClass.OutboundTrafficPolicy.Mode value).istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;SidecarOuterClass.OutboundTrafficPolicy.BuildersetModeValue(int value).istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;SidecarOuterClass.OutboundTrafficPolicy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)SidecarOuterClass.OutboundTrafficPolicy.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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
-
-
-
-
字段详细资料
-
bitField0_
private int bitField0_
-
mode_
private int mode_
-
egressProxy_
private VirtualServiceOuterClass.Destination egressProxy_
-
egressProxyBuilder_
private com.google.protobuf.SingleFieldBuilderV3<VirtualServiceOuterClass.Destination,VirtualServiceOuterClass.Destination.Builder,VirtualServiceOuterClass.DestinationOrBuilder> egressProxyBuilder_
-
-
方法详细资料
-
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
public 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
public SidecarOuterClass.OutboundTrafficPolicy getDefaultInstanceForType()
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
public SidecarOuterClass.OutboundTrafficPolicy build()
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
public SidecarOuterClass.OutboundTrafficPolicy buildPartial()
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(SidecarOuterClass.OutboundTrafficPolicy result)
-
clone
public SidecarOuterClass.OutboundTrafficPolicy.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, java.lang.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, java.lang.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, java.lang.Object value)
- 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>
-
mergeFrom
public SidecarOuterClass.OutboundTrafficPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- 指定者:
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 java.io.IOException
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 指定者:
mergeFrom在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<SidecarOuterClass.OutboundTrafficPolicy.Builder>- 抛出:
java.io.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
public 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.- 返回:
- This builder for chaining.
-
getMode
public SidecarOuterClass.OutboundTrafficPolicy.Mode 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
public SidecarOuterClass.OutboundTrafficPolicy.Builder 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
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.
-
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
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;
-
getEgressProxyBuilder
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;
-
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;
-
getEgressProxyFieldBuilder
private com.google.protobuf.SingleFieldBuilderV3<VirtualServiceOuterClass.Destination,VirtualServiceOuterClass.Destination.Builder,VirtualServiceOuterClass.DestinationOrBuilder> getEgressProxyFieldBuilder()
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>
-
-