类 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
封闭类:
SidecarOuterClass.OutboundTrafficPolicy

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
  • 方法详细资料

    • 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

      public SidecarOuterClass.OutboundTrafficPolicy 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

      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

    • 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

      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

      .istio.networking.v1alpha3.OutboundTrafficPolicy.Mode mode = 1;
      指定者:
      getMode 在接口中 SidecarOuterClass.OutboundTrafficPolicyOrBuilder
      返回:
      The mode.
    • setMode

      .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

      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

       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

       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

       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

      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;
      指定者:
      getEgressProxyOrBuilder 在接口中 SidecarOuterClass.OutboundTrafficPolicyOrBuilder
    • 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>