类 VirtualServiceOuterClass.HTTPRoute

  • 所有已实现的接口:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, VirtualServiceOuterClass.HTTPRouteOrBuilder, java.io.Serializable
    封闭类:
    VirtualServiceOuterClass

    public static final class VirtualServiceOuterClass.HTTPRoute
    extends com.google.protobuf.GeneratedMessageV3
    implements VirtualServiceOuterClass.HTTPRouteOrBuilder
     Describes match conditions and actions for routing HTTP/1.1, HTTP2, and
     gRPC traffic. See VirtualService for usage examples.
     
    Protobuf type istio.networking.v1alpha3.HTTPRoute
    另请参阅:
    序列化表格
    • 构造器详细资料

      • HTTPRoute

        private HTTPRoute​(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
      • HTTPRoute

        private HTTPRoute()
    • 方法详细资料

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        覆盖:
        newInstance 在类中 com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        指定者:
        getUnknownFields 在接口中 com.google.protobuf.MessageOrBuilder
        覆盖:
        getUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        指定者:
        internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3
      • getName

        public java.lang.String getName()
         The name assigned to the route for debugging purposes. The
         route's name will be concatenated with the match's name and will
         be logged in the access logs for requests matching this
         route/match.
         
        string name = 17;
        指定者:
        getName 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
        返回:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name assigned to the route for debugging purposes. The
         route's name will be concatenated with the match's name and will
         be logged in the access logs for requests matching this
         route/match.
         
        string name = 17;
        指定者:
        getNameBytes 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
        返回:
        The bytes for name.
      • getMatchCount

        public int getMatchCount()
         Match conditions to be satisfied for the rule to be
         activated. All conditions inside a single match block have AND
         semantics, while the list of match blocks have OR semantics. The rule
         is matched if any one of the match blocks succeed.
         
        repeated .istio.networking.v1alpha3.HTTPMatchRequest match = 1;
        指定者:
        getMatchCount 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
      • getMatch

        public VirtualServiceOuterClass.HTTPMatchRequest getMatch​(int index)
         Match conditions to be satisfied for the rule to be
         activated. All conditions inside a single match block have AND
         semantics, while the list of match blocks have OR semantics. The rule
         is matched if any one of the match blocks succeed.
         
        repeated .istio.networking.v1alpha3.HTTPMatchRequest match = 1;
        指定者:
        getMatch 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
      • getRouteList

        public java.util.List<VirtualServiceOuterClass.HTTPRouteDestination> getRouteList()
         A HTTP rule can either redirect or forward (default) traffic. The
         forwarding target can be one of several versions of a service (see
         glossary in beginning of document). Weights associated with the
         service version determine the proportion of traffic it receives.
         
        repeated .istio.networking.v1alpha3.HTTPRouteDestination route = 2;
        指定者:
        getRouteList 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
      • getRouteCount

        public int getRouteCount()
         A HTTP rule can either redirect or forward (default) traffic. The
         forwarding target can be one of several versions of a service (see
         glossary in beginning of document). Weights associated with the
         service version determine the proportion of traffic it receives.
         
        repeated .istio.networking.v1alpha3.HTTPRouteDestination route = 2;
        指定者:
        getRouteCount 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
      • getRoute

        public VirtualServiceOuterClass.HTTPRouteDestination getRoute​(int index)
         A HTTP rule can either redirect or forward (default) traffic. The
         forwarding target can be one of several versions of a service (see
         glossary in beginning of document). Weights associated with the
         service version determine the proportion of traffic it receives.
         
        repeated .istio.networking.v1alpha3.HTTPRouteDestination route = 2;
        指定者:
        getRoute 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
      • hasRedirect

        public boolean hasRedirect()
         A HTTP rule can either redirect or forward (default) traffic. If
         traffic passthrough option is specified in the rule,
         route/redirect will be ignored. The redirect primitive can be used to
         send a HTTP 301 redirect to a different URI or Authority.
         
        .istio.networking.v1alpha3.HTTPRedirect redirect = 3;
        指定者:
        hasRedirect 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
        返回:
        Whether the redirect field is set.
      • getRedirect

        public VirtualServiceOuterClass.HTTPRedirect getRedirect()
         A HTTP rule can either redirect or forward (default) traffic. If
         traffic passthrough option is specified in the rule,
         route/redirect will be ignored. The redirect primitive can be used to
         send a HTTP 301 redirect to a different URI or Authority.
         
        .istio.networking.v1alpha3.HTTPRedirect redirect = 3;
        指定者:
        getRedirect 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
        返回:
        The redirect.
      • hasDelegate

        public boolean hasDelegate()
         Delegate is used to specify the particular VirtualService which
         can be used to define delegate HTTPRoute.
         It can be set only when `Route` and `Redirect` are empty, and the route rules of the
         delegate VirtualService will be merged with that in the current one.
         **NOTE**:
            1. Only one level delegation is supported.
            2. The delegate's HTTPMatchRequest must be a strict subset of the root's,
               otherwise there is a conflict and the HTTPRoute will not take effect.
         
        .istio.networking.v1alpha3.Delegate delegate = 20;
        指定者:
        hasDelegate 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
        返回:
        Whether the delegate field is set.
      • getDelegate

        public VirtualServiceOuterClass.Delegate getDelegate()
         Delegate is used to specify the particular VirtualService which
         can be used to define delegate HTTPRoute.
         It can be set only when `Route` and `Redirect` are empty, and the route rules of the
         delegate VirtualService will be merged with that in the current one.
         **NOTE**:
            1. Only one level delegation is supported.
            2. The delegate's HTTPMatchRequest must be a strict subset of the root's,
               otherwise there is a conflict and the HTTPRoute will not take effect.
         
        .istio.networking.v1alpha3.Delegate delegate = 20;
        指定者:
        getDelegate 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
        返回:
        The delegate.
      • getDelegateOrBuilder

        public VirtualServiceOuterClass.DelegateOrBuilder getDelegateOrBuilder()
         Delegate is used to specify the particular VirtualService which
         can be used to define delegate HTTPRoute.
         It can be set only when `Route` and `Redirect` are empty, and the route rules of the
         delegate VirtualService will be merged with that in the current one.
         **NOTE**:
            1. Only one level delegation is supported.
            2. The delegate's HTTPMatchRequest must be a strict subset of the root's,
               otherwise there is a conflict and the HTTPRoute will not take effect.
         
        .istio.networking.v1alpha3.Delegate delegate = 20;
        指定者:
        getDelegateOrBuilder 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
      • hasRewrite

        public boolean hasRewrite()
         Rewrite HTTP URIs and Authority headers. Rewrite cannot be used with
         Redirect primitive. Rewrite will be performed before forwarding.
         
        .istio.networking.v1alpha3.HTTPRewrite rewrite = 4;
        指定者:
        hasRewrite 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
        返回:
        Whether the rewrite field is set.
      • hasFault

        public boolean hasFault()
         Fault injection policy to apply on HTTP traffic at the client side.
         Note that timeouts or retries will not be enabled when faults are
         enabled on the client side.
         
        .istio.networking.v1alpha3.HTTPFaultInjection fault = 8;
        指定者:
        hasFault 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
        返回:
        Whether the fault field is set.
      • hasMirror

        public boolean hasMirror()
         Mirror HTTP traffic to a another destination in addition to forwarding
         the requests to the intended destination. Mirrored traffic is on a
         best effort basis where the sidecar/gateway will not wait for the
         mirrored cluster to respond before returning the response from the
         original destination.  Statistics will be generated for the mirrored
         destination.
         
        .istio.networking.v1alpha3.Destination mirror = 9;
        指定者:
        hasMirror 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
        返回:
        Whether the mirror field is set.
      • getMirror

        public VirtualServiceOuterClass.Destination getMirror()
         Mirror HTTP traffic to a another destination in addition to forwarding
         the requests to the intended destination. Mirrored traffic is on a
         best effort basis where the sidecar/gateway will not wait for the
         mirrored cluster to respond before returning the response from the
         original destination.  Statistics will be generated for the mirrored
         destination.
         
        .istio.networking.v1alpha3.Destination mirror = 9;
        指定者:
        getMirror 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
        返回:
        The mirror.
      • getMirrorOrBuilder

        public VirtualServiceOuterClass.DestinationOrBuilder getMirrorOrBuilder()
         Mirror HTTP traffic to a another destination in addition to forwarding
         the requests to the intended destination. Mirrored traffic is on a
         best effort basis where the sidecar/gateway will not wait for the
         mirrored cluster to respond before returning the response from the
         original destination.  Statistics will be generated for the mirrored
         destination.
         
        .istio.networking.v1alpha3.Destination mirror = 9;
        指定者:
        getMirrorOrBuilder 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
      • hasMirrorPercent

        @Deprecated
        public boolean hasMirrorPercent()
        已过时。
         Percentage of the traffic to be mirrored by the `mirror` field.
         Use of integer `mirror_percent` value is deprecated. Use the
         double `mirror_percentage` field instead
         
        .google.protobuf.UInt32Value mirror_percent = 18 [deprecated = true];
        指定者:
        hasMirrorPercent 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
        返回:
        Whether the mirrorPercent field is set.
      • getMirrorPercent

        @Deprecated
        public com.google.protobuf.UInt32Value getMirrorPercent()
        已过时。
         Percentage of the traffic to be mirrored by the `mirror` field.
         Use of integer `mirror_percent` value is deprecated. Use the
         double `mirror_percentage` field instead
         
        .google.protobuf.UInt32Value mirror_percent = 18 [deprecated = true];
        指定者:
        getMirrorPercent 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
        返回:
        The mirrorPercent.
      • getMirrorPercentOrBuilder

        @Deprecated
        public com.google.protobuf.UInt32ValueOrBuilder getMirrorPercentOrBuilder()
        已过时。
         Percentage of the traffic to be mirrored by the `mirror` field.
         Use of integer `mirror_percent` value is deprecated. Use the
         double `mirror_percentage` field instead
         
        .google.protobuf.UInt32Value mirror_percent = 18 [deprecated = true];
        指定者:
        getMirrorPercentOrBuilder 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
      • hasMirrorPercentage

        public boolean hasMirrorPercentage()
         Percentage of the traffic to be mirrored by the `mirror` field.
         If this field is absent, all the traffic (100%) will be mirrored.
         Max value is 100.
         
        .istio.networking.v1alpha3.Percent mirror_percentage = 19;
        指定者:
        hasMirrorPercentage 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
        返回:
        Whether the mirrorPercentage field is set.
      • hasCorsPolicy

        public boolean hasCorsPolicy()
         Cross-Origin Resource Sharing policy (CORS). Refer to
         [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)
         for further details about cross origin resource sharing.
         
        .istio.networking.v1alpha3.CorsPolicy cors_policy = 10;
        指定者:
        hasCorsPolicy 在接口中 VirtualServiceOuterClass.HTTPRouteOrBuilder
        返回:
        Whether the corsPolicy field is set.
      • isInitialized

        public final boolean isInitialized()
        指定者:
        isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
        覆盖:
        isInitialized 在类中 com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        指定者:
        writeTo 在接口中 com.google.protobuf.MessageLite
        覆盖:
        writeTo 在类中 com.google.protobuf.GeneratedMessageV3
        抛出:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        指定者:
        getSerializedSize 在接口中 com.google.protobuf.MessageLite
        覆盖:
        getSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        指定者:
        equals 在接口中 com.google.protobuf.Message
        覆盖:
        equals 在类中 com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        指定者:
        hashCode 在接口中 com.google.protobuf.Message
        覆盖:
        hashCode 在类中 com.google.protobuf.AbstractMessage
      • parseFrom

        public static VirtualServiceOuterClass.HTTPRoute parseFrom​(java.nio.ByteBuffer data)
                                                            throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VirtualServiceOuterClass.HTTPRoute parseFrom​(java.nio.ByteBuffer data,
                                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                            throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VirtualServiceOuterClass.HTTPRoute parseFrom​(com.google.protobuf.ByteString data)
                                                            throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VirtualServiceOuterClass.HTTPRoute parseFrom​(com.google.protobuf.ByteString data,
                                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                            throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VirtualServiceOuterClass.HTTPRoute parseFrom​(byte[] data)
                                                            throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VirtualServiceOuterClass.HTTPRoute parseFrom​(byte[] data,
                                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                            throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VirtualServiceOuterClass.HTTPRoute parseFrom​(java.io.InputStream input,
                                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                            throws java.io.IOException
        抛出:
        java.io.IOException
      • parseDelimitedFrom

        public static VirtualServiceOuterClass.HTTPRoute parseDelimitedFrom​(java.io.InputStream input)
                                                                     throws java.io.IOException
        抛出:
        java.io.IOException
      • parseDelimitedFrom

        public static VirtualServiceOuterClass.HTTPRoute parseDelimitedFrom​(java.io.InputStream input,
                                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                     throws java.io.IOException
        抛出:
        java.io.IOException
      • parseFrom

        public static VirtualServiceOuterClass.HTTPRoute parseFrom​(com.google.protobuf.CodedInputStream input)
                                                            throws java.io.IOException
        抛出:
        java.io.IOException
      • parseFrom

        public static VirtualServiceOuterClass.HTTPRoute parseFrom​(com.google.protobuf.CodedInputStream input,
                                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                            throws java.io.IOException
        抛出:
        java.io.IOException
      • newBuilderForType

        public VirtualServiceOuterClass.HTTPRoute.Builder newBuilderForType()
        指定者:
        newBuilderForType 在接口中 com.google.protobuf.Message
        指定者:
        newBuilderForType 在接口中 com.google.protobuf.MessageLite
      • newBuilderForType

        protected VirtualServiceOuterClass.HTTPRoute.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        指定者:
        newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPRoute> getParserForType()
        指定者:
        getParserForType 在接口中 com.google.protobuf.Message
        指定者:
        getParserForType 在接口中 com.google.protobuf.MessageLite
        覆盖:
        getParserForType 在类中 com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public VirtualServiceOuterClass.HTTPRoute getDefaultInstanceForType()
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder