接口 VirtualServiceOuterClass.HTTPMatchRequestOrBuilder

    • 方法详细资料

      • getName

        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;
        返回:
        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

        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;
        返回:
        The uri.
      • getUriOrBuilder

        VirtualServiceOuterClass.StringMatchOrBuilder 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

        VirtualServiceOuterClass.StringMatch 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

        VirtualServiceOuterClass.StringMatchOrBuilder 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

        VirtualServiceOuterClass.StringMatch 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

        VirtualServiceOuterClass.StringMatchOrBuilder 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

        VirtualServiceOuterClass.StringMatch 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

        VirtualServiceOuterClass.StringMatchOrBuilder 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​(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;
      • getHeadersMap

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

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

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

        @Deprecated
        java.util.Map<java.lang.String,​java.lang.String> getSourceLabels()
        已过时。
      • getSourceLabelsMap

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

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

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

        java.util.List<java.lang.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

        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;
        参数:
        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​(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;
      • getQueryParamsMap

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

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

        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;
      • 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​(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;
      • getWithoutHeadersMap

        java.util.Map<java.lang.String,​VirtualServiceOuterClass.StringMatch> 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

        VirtualServiceOuterClass.StringMatch getWithoutHeadersOrDefault​(java.lang.String key,
                                                                        VirtualServiceOuterClass.StringMatch defaultValue)
         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​(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;
      • getSourceNamespace

        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;
        返回:
        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.