类 VirtualServiceOuterClass.HTTPMatchRequest.Builder

  • 所有已实现的接口:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, VirtualServiceOuterClass.HTTPMatchRequestOrBuilder, java.lang.Cloneable
    封闭类:
    VirtualServiceOuterClass.HTTPMatchRequest

    public static final class VirtualServiceOuterClass.HTTPMatchRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>
    implements VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
     HttpMatchRequest specifies a set of criterion to be met in order for the
     rule to be applied to the HTTP request. For example, the following
     restricts the rule to match only requests where the URL path
     starts with /ratings/v2/ and the request contains a custom `end-user` header
     with value `jason`.
     {{<tabset category-name="example">}}
     {{<tab name="v1alpha3" category-value="v1alpha3">}}
     ```yaml
     apiVersion: networking.istio.io/v1alpha3
     kind: VirtualService
     metadata:
       name: ratings-route
     spec:
       hosts:
       - ratings.prod.svc.cluster.local
       http:
       - match:
         - headers:
             end-user:
               exact: jason
           uri:
             prefix: "/ratings/v2/"
           ignoreUriCase: true
         route:
         - destination:
             host: ratings.prod.svc.cluster.local
     ```
     {{</tab>}}
     {{<tab name="v1beta1" category-value="v1beta1">}}
     ```yaml
     apiVersion: networking.istio.io/v1beta1
     kind: VirtualService
     metadata:
       name: ratings-route
     spec:
       hosts:
       - ratings.prod.svc.cluster.local
       http:
       - match:
         - headers:
             end-user:
               exact: jason
           uri:
             prefix: "/ratings/v2/"
           ignoreUriCase: true
         route:
         - destination:
             host: ratings.prod.svc.cluster.local
     ```
     {{</tab>}}
     {{</tabset>}}
     HTTPMatchRequest CANNOT be empty.
     **Note:** No regex string match can be set when delegate VirtualService is specified.
     
    Protobuf type istio.networking.v1alpha3.HTTPMatchRequest
    • 构造器详细资料

      • Builder

        private Builder()
      • Builder

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

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        覆盖:
        internalGetMutableMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        指定者:
        internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.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<VirtualServiceOuterClass.HTTPMatchRequest.Builder>
      • getDefaultInstanceForType

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

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

        public VirtualServiceOuterClass.HTTPMatchRequest 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<VirtualServiceOuterClass.HTTPMatchRequest.Builder>
      • mergeFrom

        public VirtualServiceOuterClass.HTTPMatchRequest.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<VirtualServiceOuterClass.HTTPMatchRequest.Builder>
        抛出:
        java.io.IOException
      • getName

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

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

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder setName​(java.lang.String value)
         The name assigned to a match. The match's name will be
         concatenated with the parent route's name and will be logged in
         the access logs for requests matching this route.
         
        string name = 11;
        参数:
        value - The name to set.
        返回:
        This builder for chaining.
      • clearName

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder clearName()
         The name assigned to a match. The match's name will be
         concatenated with the parent route's name and will be logged in
         the access logs for requests matching this route.
         
        string name = 11;
        返回:
        This builder for chaining.
      • setNameBytes

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name assigned to a match. The match's name will be
         concatenated with the parent route's name and will be logged in
         the access logs for requests matching this route.
         
        string name = 11;
        参数:
        value - The bytes for name to set.
        返回:
        This builder for chaining.
      • hasUri

        public boolean hasUri()
         URI to match
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         **Note:** Case-insensitive matching could be enabled via the
         `ignore_uri_case` flag.
         
        .istio.networking.v1alpha3.StringMatch uri = 1;
        指定者:
        hasUri 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
        返回:
        Whether the uri field is set.
      • getUri

        public VirtualServiceOuterClass.StringMatch getUri()
         URI to match
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         **Note:** Case-insensitive matching could be enabled via the
         `ignore_uri_case` flag.
         
        .istio.networking.v1alpha3.StringMatch uri = 1;
        指定者:
        getUri 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
        返回:
        The uri.
      • setUri

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder setUri​(VirtualServiceOuterClass.StringMatch value)
         URI to match
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         **Note:** Case-insensitive matching could be enabled via the
         `ignore_uri_case` flag.
         
        .istio.networking.v1alpha3.StringMatch uri = 1;
      • setUri

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder setUri​(VirtualServiceOuterClass.StringMatch.Builder builderForValue)
         URI to match
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         **Note:** Case-insensitive matching could be enabled via the
         `ignore_uri_case` flag.
         
        .istio.networking.v1alpha3.StringMatch uri = 1;
      • mergeUri

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder mergeUri​(VirtualServiceOuterClass.StringMatch value)
         URI to match
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         **Note:** Case-insensitive matching could be enabled via the
         `ignore_uri_case` flag.
         
        .istio.networking.v1alpha3.StringMatch uri = 1;
      • clearUri

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder clearUri()
         URI to match
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         **Note:** Case-insensitive matching could be enabled via the
         `ignore_uri_case` flag.
         
        .istio.networking.v1alpha3.StringMatch uri = 1;
      • getUriBuilder

        public VirtualServiceOuterClass.StringMatch.Builder getUriBuilder()
         URI to match
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         **Note:** Case-insensitive matching could be enabled via the
         `ignore_uri_case` flag.
         
        .istio.networking.v1alpha3.StringMatch uri = 1;
      • hasScheme

        public boolean hasScheme()
         URI Scheme
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         
        .istio.networking.v1alpha3.StringMatch scheme = 2;
        指定者:
        hasScheme 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
        返回:
        Whether the scheme field is set.
      • clearScheme

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder clearScheme()
         URI Scheme
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         
        .istio.networking.v1alpha3.StringMatch scheme = 2;
      • getSchemeBuilder

        public VirtualServiceOuterClass.StringMatch.Builder getSchemeBuilder()
         URI Scheme
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         
        .istio.networking.v1alpha3.StringMatch scheme = 2;
      • hasMethod

        public boolean hasMethod()
         HTTP Method
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         
        .istio.networking.v1alpha3.StringMatch method = 3;
        指定者:
        hasMethod 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
        返回:
        Whether the method field is set.
      • clearMethod

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder clearMethod()
         HTTP Method
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         
        .istio.networking.v1alpha3.StringMatch method = 3;
      • getMethodBuilder

        public VirtualServiceOuterClass.StringMatch.Builder getMethodBuilder()
         HTTP Method
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         
        .istio.networking.v1alpha3.StringMatch method = 3;
      • hasAuthority

        public boolean hasAuthority()
         HTTP Authority
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         
        .istio.networking.v1alpha3.StringMatch authority = 4;
        指定者:
        hasAuthority 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
        返回:
        Whether the authority field is set.
      • clearAuthority

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder clearAuthority()
         HTTP Authority
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         
        .istio.networking.v1alpha3.StringMatch authority = 4;
      • getAuthorityBuilder

        public VirtualServiceOuterClass.StringMatch.Builder getAuthorityBuilder()
         HTTP Authority
         values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         
        .istio.networking.v1alpha3.StringMatch authority = 4;
      • getHeadersCount

        public int getHeadersCount()
         The header keys must be lowercase and use hyphen as the separator,
         e.g. _x-request-id_.
         Header values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         If the value is empty and only the name of header is specfied, presence of the header is checked.
         **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
         
        map<string, .istio.networking.v1alpha3.StringMatch> headers = 5;
        指定者:
        getHeadersCount 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
      • containsHeaders

        public boolean containsHeaders​(java.lang.String key)
         The header keys must be lowercase and use hyphen as the separator,
         e.g. _x-request-id_.
         Header values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         If the value is empty and only the name of header is specfied, presence of the header is checked.
         **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
         
        map<string, .istio.networking.v1alpha3.StringMatch> headers = 5;
        指定者:
        containsHeaders 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
      • getHeadersMap

        public java.util.Map<java.lang.String,​VirtualServiceOuterClass.StringMatch> getHeadersMap()
         The header keys must be lowercase and use hyphen as the separator,
         e.g. _x-request-id_.
         Header values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         If the value is empty and only the name of header is specfied, presence of the header is checked.
         **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
         
        map<string, .istio.networking.v1alpha3.StringMatch> headers = 5;
        指定者:
        getHeadersMap 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
      • getHeadersOrDefault

        public VirtualServiceOuterClass.StringMatch getHeadersOrDefault​(java.lang.String key,
                                                                        VirtualServiceOuterClass.StringMatch defaultValue)
         The header keys must be lowercase and use hyphen as the separator,
         e.g. _x-request-id_.
         Header values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         If the value is empty and only the name of header is specfied, presence of the header is checked.
         **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
         
        map<string, .istio.networking.v1alpha3.StringMatch> headers = 5;
        指定者:
        getHeadersOrDefault 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
      • getHeadersOrThrow

        public VirtualServiceOuterClass.StringMatch getHeadersOrThrow​(java.lang.String key)
         The header keys must be lowercase and use hyphen as the separator,
         e.g. _x-request-id_.
         Header values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         If the value is empty and only the name of header is specfied, presence of the header is checked.
         **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
         
        map<string, .istio.networking.v1alpha3.StringMatch> headers = 5;
        指定者:
        getHeadersOrThrow 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
      • removeHeaders

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder removeHeaders​(java.lang.String key)
         The header keys must be lowercase and use hyphen as the separator,
         e.g. _x-request-id_.
         Header values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         If the value is empty and only the name of header is specfied, presence of the header is checked.
         **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
         
        map<string, .istio.networking.v1alpha3.StringMatch> headers = 5;
      • getMutableHeaders

        @Deprecated
        public java.util.Map<java.lang.String,​VirtualServiceOuterClass.StringMatch> getMutableHeaders()
        已过时。
        Use alternate mutation accessors instead.
      • putHeaders

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder putHeaders​(java.lang.String key,
                                                                            VirtualServiceOuterClass.StringMatch value)
         The header keys must be lowercase and use hyphen as the separator,
         e.g. _x-request-id_.
         Header values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         If the value is empty and only the name of header is specfied, presence of the header is checked.
         **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
         
        map<string, .istio.networking.v1alpha3.StringMatch> headers = 5;
      • putAllHeaders

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder putAllHeaders​(java.util.Map<java.lang.String,​VirtualServiceOuterClass.StringMatch> values)
         The header keys must be lowercase and use hyphen as the separator,
         e.g. _x-request-id_.
         Header values are case-sensitive and formatted as follows:
         - `exact: "value"` for exact string match
         - `prefix: "value"` for prefix-based match
         - `regex: "value"` for ECMAscript style regex-based match
         If the value is empty and only the name of header is specfied, presence of the header is checked.
         **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
         
        map<string, .istio.networking.v1alpha3.StringMatch> headers = 5;
      • getPort

        public int getPort()
         Specifies the ports on the host that is being addressed. Many services
         only expose a single port or label ports with the protocols they support,
         in these cases it is not required to explicitly select the port.
         
        uint32 port = 6;
        指定者:
        getPort 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
        返回:
        The port.
      • setPort

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder setPort​(int value)
         Specifies the ports on the host that is being addressed. Many services
         only expose a single port or label ports with the protocols they support,
         in these cases it is not required to explicitly select the port.
         
        uint32 port = 6;
        参数:
        value - The port to set.
        返回:
        This builder for chaining.
      • clearPort

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder clearPort()
         Specifies the ports on the host that is being addressed. Many services
         only expose a single port or label ports with the protocols they support,
         in these cases it is not required to explicitly select the port.
         
        uint32 port = 6;
        返回:
        This builder for chaining.
      • internalGetSourceLabels

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> internalGetSourceLabels()
      • internalGetMutableSourceLabels

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> internalGetMutableSourceLabels()
      • containsSourceLabels

        public boolean containsSourceLabels​(java.lang.String key)
         One or more labels that constrain the applicability of a rule to
         workloads with the given labels. If the VirtualService has a list of
         gateways specified in the top-level `gateways` field, it must include the reserved gateway
         `mesh` for this field to be applicable.
         
        map<string, string> source_labels = 7;
        指定者:
        containsSourceLabels 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
      • getSourceLabelsMap

        public java.util.Map<java.lang.String,​java.lang.String> getSourceLabelsMap()
         One or more labels that constrain the applicability of a rule to
         workloads with the given labels. If the VirtualService has a list of
         gateways specified in the top-level `gateways` field, it must include the reserved gateway
         `mesh` for this field to be applicable.
         
        map<string, string> source_labels = 7;
        指定者:
        getSourceLabelsMap 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
      • getSourceLabelsOrDefault

        public java.lang.String getSourceLabelsOrDefault​(java.lang.String key,
                                                         java.lang.String defaultValue)
         One or more labels that constrain the applicability of a rule to
         workloads with the given labels. If the VirtualService has a list of
         gateways specified in the top-level `gateways` field, it must include the reserved gateway
         `mesh` for this field to be applicable.
         
        map<string, string> source_labels = 7;
        指定者:
        getSourceLabelsOrDefault 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
      • getSourceLabelsOrThrow

        public java.lang.String getSourceLabelsOrThrow​(java.lang.String key)
         One or more labels that constrain the applicability of a rule to
         workloads with the given labels. If the VirtualService has a list of
         gateways specified in the top-level `gateways` field, it must include the reserved gateway
         `mesh` for this field to be applicable.
         
        map<string, string> source_labels = 7;
        指定者:
        getSourceLabelsOrThrow 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
      • removeSourceLabels

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder removeSourceLabels​(java.lang.String key)
         One or more labels that constrain the applicability of a rule to
         workloads with the given labels. If the VirtualService has a list of
         gateways specified in the top-level `gateways` field, it must include the reserved gateway
         `mesh` for this field to be applicable.
         
        map<string, string> source_labels = 7;
      • getMutableSourceLabels

        @Deprecated
        public java.util.Map<java.lang.String,​java.lang.String> getMutableSourceLabels()
        已过时。
        Use alternate mutation accessors instead.
      • putSourceLabels

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder putSourceLabels​(java.lang.String key,
                                                                                 java.lang.String value)
         One or more labels that constrain the applicability of a rule to
         workloads with the given labels. If the VirtualService has a list of
         gateways specified in the top-level `gateways` field, it must include the reserved gateway
         `mesh` for this field to be applicable.
         
        map<string, string> source_labels = 7;
      • putAllSourceLabels

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder putAllSourceLabels​(java.util.Map<java.lang.String,​java.lang.String> values)
         One or more labels that constrain the applicability of a rule to
         workloads with the given labels. If the VirtualService has a list of
         gateways specified in the top-level `gateways` field, it must include the reserved gateway
         `mesh` for this field to be applicable.
         
        map<string, string> source_labels = 7;
      • ensureGatewaysIsMutable

        private void ensureGatewaysIsMutable()
      • getGatewaysList

        public com.google.protobuf.ProtocolStringList getGatewaysList()
         Names of gateways where the rule should be applied. Gateway names
         in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway
         match is independent of sourceLabels.
         
        repeated string gateways = 8;
        指定者:
        getGatewaysList 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
        返回:
        A list containing the gateways.
      • getGatewaysCount

        public int getGatewaysCount()
         Names of gateways where the rule should be applied. Gateway names
         in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway
         match is independent of sourceLabels.
         
        repeated string gateways = 8;
        指定者:
        getGatewaysCount 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
        返回:
        The count of gateways.
      • getGateways

        public java.lang.String getGateways​(int index)
         Names of gateways where the rule should be applied. Gateway names
         in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway
         match is independent of sourceLabels.
         
        repeated string gateways = 8;
        指定者:
        getGateways 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The gateways at the given index.
      • getGatewaysBytes

        public com.google.protobuf.ByteString getGatewaysBytes​(int index)
         Names of gateways where the rule should be applied. Gateway names
         in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway
         match is independent of sourceLabels.
         
        repeated string gateways = 8;
        指定者:
        getGatewaysBytes 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
        参数:
        index - The index of the value to return.
        返回:
        The bytes of the gateways at the given index.
      • setGateways

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder setGateways​(int index,
                                                                             java.lang.String value)
         Names of gateways where the rule should be applied. Gateway names
         in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway
         match is independent of sourceLabels.
         
        repeated string gateways = 8;
        参数:
        index - The index to set the value at.
        value - The gateways to set.
        返回:
        This builder for chaining.
      • addGateways

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder addGateways​(java.lang.String value)
         Names of gateways where the rule should be applied. Gateway names
         in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway
         match is independent of sourceLabels.
         
        repeated string gateways = 8;
        参数:
        value - The gateways to add.
        返回:
        This builder for chaining.
      • addAllGateways

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder addAllGateways​(java.lang.Iterable<java.lang.String> values)
         Names of gateways where the rule should be applied. Gateway names
         in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway
         match is independent of sourceLabels.
         
        repeated string gateways = 8;
        参数:
        values - The gateways to add.
        返回:
        This builder for chaining.
      • clearGateways

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder clearGateways()
         Names of gateways where the rule should be applied. Gateway names
         in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway
         match is independent of sourceLabels.
         
        repeated string gateways = 8;
        返回:
        This builder for chaining.
      • addGatewaysBytes

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder addGatewaysBytes​(com.google.protobuf.ByteString value)
         Names of gateways where the rule should be applied. Gateway names
         in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway
         match is independent of sourceLabels.
         
        repeated string gateways = 8;
        参数:
        value - The bytes of the gateways to add.
        返回:
        This builder for chaining.
      • getQueryParamsCount

        public int getQueryParamsCount()
         Query parameters for matching.
         Ex:
         - For a query parameter like "?key=true", the map key would be "key" and
           the string match could be defined as `exact: "true"`.
         - For a query parameter like "?key", the map key would be "key" and the
           string match could be defined as `exact: ""`.
         - For a query parameter like "?key=123", the map key would be "key" and the
           string match could be defined as `regex: "\d+$"`. Note that this
           configuration will only match values like "123" but not "a123" or "123a".
         **Note:** `prefix` matching is currently not supported.
         
        map<string, .istio.networking.v1alpha3.StringMatch> query_params = 9;
        指定者:
        getQueryParamsCount 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
      • containsQueryParams

        public boolean containsQueryParams​(java.lang.String key)
         Query parameters for matching.
         Ex:
         - For a query parameter like "?key=true", the map key would be "key" and
           the string match could be defined as `exact: "true"`.
         - For a query parameter like "?key", the map key would be "key" and the
           string match could be defined as `exact: ""`.
         - For a query parameter like "?key=123", the map key would be "key" and the
           string match could be defined as `regex: "\d+$"`. Note that this
           configuration will only match values like "123" but not "a123" or "123a".
         **Note:** `prefix` matching is currently not supported.
         
        map<string, .istio.networking.v1alpha3.StringMatch> query_params = 9;
        指定者:
        containsQueryParams 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
      • getQueryParamsMap

        public java.util.Map<java.lang.String,​VirtualServiceOuterClass.StringMatch> getQueryParamsMap()
         Query parameters for matching.
         Ex:
         - For a query parameter like "?key=true", the map key would be "key" and
           the string match could be defined as `exact: "true"`.
         - For a query parameter like "?key", the map key would be "key" and the
           string match could be defined as `exact: ""`.
         - For a query parameter like "?key=123", the map key would be "key" and the
           string match could be defined as `regex: "\d+$"`. Note that this
           configuration will only match values like "123" but not "a123" or "123a".
         **Note:** `prefix` matching is currently not supported.
         
        map<string, .istio.networking.v1alpha3.StringMatch> query_params = 9;
        指定者:
        getQueryParamsMap 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
      • getQueryParamsOrDefault

        public VirtualServiceOuterClass.StringMatch getQueryParamsOrDefault​(java.lang.String key,
                                                                            VirtualServiceOuterClass.StringMatch defaultValue)
         Query parameters for matching.
         Ex:
         - For a query parameter like "?key=true", the map key would be "key" and
           the string match could be defined as `exact: "true"`.
         - For a query parameter like "?key", the map key would be "key" and the
           string match could be defined as `exact: ""`.
         - For a query parameter like "?key=123", the map key would be "key" and the
           string match could be defined as `regex: "\d+$"`. Note that this
           configuration will only match values like "123" but not "a123" or "123a".
         **Note:** `prefix` matching is currently not supported.
         
        map<string, .istio.networking.v1alpha3.StringMatch> query_params = 9;
        指定者:
        getQueryParamsOrDefault 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
      • getQueryParamsOrThrow

        public VirtualServiceOuterClass.StringMatch getQueryParamsOrThrow​(java.lang.String key)
         Query parameters for matching.
         Ex:
         - For a query parameter like "?key=true", the map key would be "key" and
           the string match could be defined as `exact: "true"`.
         - For a query parameter like "?key", the map key would be "key" and the
           string match could be defined as `exact: ""`.
         - For a query parameter like "?key=123", the map key would be "key" and the
           string match could be defined as `regex: "\d+$"`. Note that this
           configuration will only match values like "123" but not "a123" or "123a".
         **Note:** `prefix` matching is currently not supported.
         
        map<string, .istio.networking.v1alpha3.StringMatch> query_params = 9;
        指定者:
        getQueryParamsOrThrow 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
      • removeQueryParams

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder removeQueryParams​(java.lang.String key)
         Query parameters for matching.
         Ex:
         - For a query parameter like "?key=true", the map key would be "key" and
           the string match could be defined as `exact: "true"`.
         - For a query parameter like "?key", the map key would be "key" and the
           string match could be defined as `exact: ""`.
         - For a query parameter like "?key=123", the map key would be "key" and the
           string match could be defined as `regex: "\d+$"`. Note that this
           configuration will only match values like "123" but not "a123" or "123a".
         **Note:** `prefix` matching is currently not supported.
         
        map<string, .istio.networking.v1alpha3.StringMatch> query_params = 9;
      • getMutableQueryParams

        @Deprecated
        public java.util.Map<java.lang.String,​VirtualServiceOuterClass.StringMatch> getMutableQueryParams()
        已过时。
        Use alternate mutation accessors instead.
      • putQueryParams

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder putQueryParams​(java.lang.String key,
                                                                                VirtualServiceOuterClass.StringMatch value)
         Query parameters for matching.
         Ex:
         - For a query parameter like "?key=true", the map key would be "key" and
           the string match could be defined as `exact: "true"`.
         - For a query parameter like "?key", the map key would be "key" and the
           string match could be defined as `exact: ""`.
         - For a query parameter like "?key=123", the map key would be "key" and the
           string match could be defined as `regex: "\d+$"`. Note that this
           configuration will only match values like "123" but not "a123" or "123a".
         **Note:** `prefix` matching is currently not supported.
         
        map<string, .istio.networking.v1alpha3.StringMatch> query_params = 9;
      • putAllQueryParams

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder putAllQueryParams​(java.util.Map<java.lang.String,​VirtualServiceOuterClass.StringMatch> values)
         Query parameters for matching.
         Ex:
         - For a query parameter like "?key=true", the map key would be "key" and
           the string match could be defined as `exact: "true"`.
         - For a query parameter like "?key", the map key would be "key" and the
           string match could be defined as `exact: ""`.
         - For a query parameter like "?key=123", the map key would be "key" and the
           string match could be defined as `regex: "\d+$"`. Note that this
           configuration will only match values like "123" but not "a123" or "123a".
         **Note:** `prefix` matching is currently not supported.
         
        map<string, .istio.networking.v1alpha3.StringMatch> query_params = 9;
      • getIgnoreUriCase

        public boolean getIgnoreUriCase()
         Flag to specify whether the URI matching should be case-insensitive.
         **Note:** The case will be ignored only in the case of `exact` and `prefix`
         URI matches.
         
        bool ignore_uri_case = 10;
        指定者:
        getIgnoreUriCase 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
        返回:
        The ignoreUriCase.
      • setIgnoreUriCase

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder setIgnoreUriCase​(boolean value)
         Flag to specify whether the URI matching should be case-insensitive.
         **Note:** The case will be ignored only in the case of `exact` and `prefix`
         URI matches.
         
        bool ignore_uri_case = 10;
        参数:
        value - The ignoreUriCase to set.
        返回:
        This builder for chaining.
      • clearIgnoreUriCase

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder clearIgnoreUriCase()
         Flag to specify whether the URI matching should be case-insensitive.
         **Note:** The case will be ignored only in the case of `exact` and `prefix`
         URI matches.
         
        bool ignore_uri_case = 10;
        返回:
        This builder for chaining.
      • containsWithoutHeaders

        public boolean containsWithoutHeaders​(java.lang.String key)
         withoutHeader has the same syntax with the header, but has opposite meaning.
         If a header is matched with a matching rule among withoutHeader, the traffic becomes not matched one.
         
        map<string, .istio.networking.v1alpha3.StringMatch> without_headers = 12;
        指定者:
        containsWithoutHeaders 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
      • removeWithoutHeaders

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder removeWithoutHeaders​(java.lang.String key)
         withoutHeader has the same syntax with the header, but has opposite meaning.
         If a header is matched with a matching rule among withoutHeader, the traffic becomes not matched one.
         
        map<string, .istio.networking.v1alpha3.StringMatch> without_headers = 12;
      • getMutableWithoutHeaders

        @Deprecated
        public java.util.Map<java.lang.String,​VirtualServiceOuterClass.StringMatch> getMutableWithoutHeaders()
        已过时。
        Use alternate mutation accessors instead.
      • putAllWithoutHeaders

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder putAllWithoutHeaders​(java.util.Map<java.lang.String,​VirtualServiceOuterClass.StringMatch> values)
         withoutHeader has the same syntax with the header, but has opposite meaning.
         If a header is matched with a matching rule among withoutHeader, the traffic becomes not matched one.
         
        map<string, .istio.networking.v1alpha3.StringMatch> without_headers = 12;
      • getSourceNamespace

        public java.lang.String getSourceNamespace()
         Source namespace constraining the applicability of a rule to workloads in that namespace.
         If the VirtualService has a list of gateways specified in the top-level `gateways` field,
         it must include the reserved gateway `mesh` for this field to be applicable.
         
        string source_namespace = 13;
        指定者:
        getSourceNamespace 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
        返回:
        The sourceNamespace.
      • getSourceNamespaceBytes

        public com.google.protobuf.ByteString getSourceNamespaceBytes()
         Source namespace constraining the applicability of a rule to workloads in that namespace.
         If the VirtualService has a list of gateways specified in the top-level `gateways` field,
         it must include the reserved gateway `mesh` for this field to be applicable.
         
        string source_namespace = 13;
        指定者:
        getSourceNamespaceBytes 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
        返回:
        The bytes for sourceNamespace.
      • setSourceNamespace

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder setSourceNamespace​(java.lang.String value)
         Source namespace constraining the applicability of a rule to workloads in that namespace.
         If the VirtualService has a list of gateways specified in the top-level `gateways` field,
         it must include the reserved gateway `mesh` for this field to be applicable.
         
        string source_namespace = 13;
        参数:
        value - The sourceNamespace to set.
        返回:
        This builder for chaining.
      • clearSourceNamespace

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder clearSourceNamespace()
         Source namespace constraining the applicability of a rule to workloads in that namespace.
         If the VirtualService has a list of gateways specified in the top-level `gateways` field,
         it must include the reserved gateway `mesh` for this field to be applicable.
         
        string source_namespace = 13;
        返回:
        This builder for chaining.
      • setSourceNamespaceBytes

        public VirtualServiceOuterClass.HTTPMatchRequest.Builder setSourceNamespaceBytes​(com.google.protobuf.ByteString value)
         Source namespace constraining the applicability of a rule to workloads in that namespace.
         If the VirtualService has a list of gateways specified in the top-level `gateways` field,
         it must include the reserved gateway `mesh` for this field to be applicable.
         
        string source_namespace = 13;
        参数:
        value - The bytes for sourceNamespace to set.
        返回:
        This builder for chaining.