类 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
    封闭类:
    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
    • 构造器详细资料

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
    • 方法详细资料

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