接口 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder

所有超级接口:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
所有已知实现类:
VirtualServiceOuterClass.HTTPMatchRequest, VirtualServiceOuterClass.HTTPMatchRequest.Builder
封闭类:
VirtualServiceOuterClass

public static interface VirtualServiceOuterClass.HTTPMatchRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
  • 方法详细资料

    • getName

      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;
      返回:
      The name.
    • getNameBytes

      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;
      返回:
      The bytes for name.
    • hasUri

      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;
      返回:
      Whether the uri field is set.
    • 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;
      返回:
      The uri.
    • getUriOrBuilder

       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

      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;
      返回:
      Whether the scheme field is set.
    • getScheme

       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;
      返回:
      The scheme.
    • getSchemeOrBuilder

       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

      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;
      返回:
      Whether the method field is set.
    • getMethod

       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;
      返回:
      The method.
    • getMethodOrBuilder

       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

      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;
      返回:
      Whether the authority field is set.
    • getAuthority

       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;
      返回:
      The authority.
    • getAuthorityOrBuilder

       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

      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;
    • containsHeaders

      boolean containsHeaders(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;
    • getHeaders

      已过时。
      Use getHeadersMap() instead.
    • 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;
    • getHeadersOrDefault

       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

       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

      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;
      返回:
      The port.
    • getSourceLabelsCount

      int getSourceLabelsCount()
       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

      boolean containsSourceLabels(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;
    • getSourceLabels

      @Deprecated Map<String,String> getSourceLabels()
      已过时。
    • getSourceLabelsMap

      Map<String,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;
    • getSourceLabelsOrDefault

      String getSourceLabelsOrDefault(String key, 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;
    • getSourceLabelsOrThrow

      String getSourceLabelsOrThrow(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;
    • getGatewaysList

      List<String> 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;
      返回:
      A list containing the gateways.
    • getGatewaysCount

      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;
      返回:
      The count of gateways.
    • getGateways

      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;
      参数:
      index - The index of the element to return.
      返回:
      The gateways at the given index.
    • getGatewaysBytes

      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;
      参数:
      index - The index of the value to return.
      返回:
      The bytes of the gateways at the given index.
    • getQueryParamsCount

      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;
    • containsQueryParams

      boolean containsQueryParams(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;
    • getQueryParams

      已过时。
      Use getQueryParamsMap() instead.
    • 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;
    • getQueryParamsOrDefault

       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.StringMatch getQueryParamsOrThrow(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;
    • getIgnoreUriCase

      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;
      返回:
      The ignoreUriCase.
    • getWithoutHeadersCount

      int getWithoutHeadersCount()
       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

      boolean containsWithoutHeaders(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;
    • getWithoutHeaders

      已过时。
    • getWithoutHeadersMap

       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;
    • getWithoutHeadersOrDefault

       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;
    • getWithoutHeadersOrThrow

      VirtualServiceOuterClass.StringMatch getWithoutHeadersOrThrow(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;
    • getSourceNamespace

      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;
      返回:
      The sourceNamespace.
    • getSourceNamespaceBytes

      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;
      返回:
      The bytes for sourceNamespace.