public static interface VirtualServiceOuterClass.HTTPMatchRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsHeaders(String key)
The header keys must be lowercase and use hyphen as the separator,
e.g.
|
boolean |
containsQueryParams(String key)
Query parameters for matching.
|
boolean |
containsSourceLabels(String key)
One or more labels that constrain the applicability of a rule to
workloads with the given labels.
|
boolean |
containsWithoutHeaders(String key)
withoutHeader has the same syntax with the header, but has opposite meaning.
|
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; |
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; |
String |
getGateways(int index)
Names of gateways where the rule should be applied.
|
com.google.protobuf.ByteString |
getGatewaysBytes(int index)
Names of gateways where the rule should be applied.
|
int |
getGatewaysCount()
Names of gateways where the rule should be applied.
|
List<String> |
getGatewaysList()
Names of gateways where the rule should be applied.
|
Map<String,VirtualServiceOuterClass.StringMatch> |
getHeaders()
已过时。
|
int |
getHeadersCount()
The header keys must be lowercase and use hyphen as the separator,
e.g.
|
Map<String,VirtualServiceOuterClass.StringMatch> |
getHeadersMap()
The header keys must be lowercase and use hyphen as the separator,
e.g.
|
VirtualServiceOuterClass.StringMatch |
getHeadersOrDefault(String key,
VirtualServiceOuterClass.StringMatch defaultValue)
The header keys must be lowercase and use hyphen as the separator,
e.g.
|
VirtualServiceOuterClass.StringMatch |
getHeadersOrThrow(String key)
The header keys must be lowercase and use hyphen as the separator,
e.g.
|
boolean |
getIgnoreUriCase()
Flag to specify whether the URI matching should be case-insensitive.
|
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; |
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; |
String |
getName()
The name assigned to a match.
|
com.google.protobuf.ByteString |
getNameBytes()
The name assigned to a match.
|
int |
getPort()
Specifies the ports on the host that is being addressed.
|
Map<String,VirtualServiceOuterClass.StringMatch> |
getQueryParams()
已过时。
|
int |
getQueryParamsCount()
Query parameters for matching.
|
Map<String,VirtualServiceOuterClass.StringMatch> |
getQueryParamsMap()
Query parameters for matching.
|
VirtualServiceOuterClass.StringMatch |
getQueryParamsOrDefault(String key,
VirtualServiceOuterClass.StringMatch defaultValue)
Query parameters for matching.
|
VirtualServiceOuterClass.StringMatch |
getQueryParamsOrThrow(String key)
Query parameters for matching.
|
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; |
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; |
Map<String,String> |
getSourceLabels()
已过时。
|
int |
getSourceLabelsCount()
One or more labels that constrain the applicability of a rule to
workloads with the given labels.
|
Map<String,String> |
getSourceLabelsMap()
One or more labels that constrain the applicability of a rule to
workloads with the given labels.
|
String |
getSourceLabelsOrDefault(String key,
String defaultValue)
One or more labels that constrain the applicability of a rule to
workloads with the given labels.
|
String |
getSourceLabelsOrThrow(String key)
One or more labels that constrain the applicability of a rule to
workloads with the given labels.
|
String |
getSourceNamespace()
Source namespace constraining the applicability of a rule to workloads in that namespace.
|
com.google.protobuf.ByteString |
getSourceNamespaceBytes()
Source namespace constraining the applicability of a rule to workloads in that namespace.
|
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.
|
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.
|
Map<String,VirtualServiceOuterClass.StringMatch> |
getWithoutHeaders()
已过时。
|
int |
getWithoutHeadersCount()
withoutHeader has the same syntax with the header, but has opposite meaning.
|
Map<String,VirtualServiceOuterClass.StringMatch> |
getWithoutHeadersMap()
withoutHeader has the same syntax with the header, but has opposite meaning.
|
VirtualServiceOuterClass.StringMatch |
getWithoutHeadersOrDefault(String key,
VirtualServiceOuterClass.StringMatch defaultValue)
withoutHeader has the same syntax with the header, but has opposite meaning.
|
VirtualServiceOuterClass.StringMatch |
getWithoutHeadersOrThrow(String key)
withoutHeader has the same syntax with the header, but has opposite meaning.
|
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; |
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; |
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; |
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.
|
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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;@Deprecated Map<String,VirtualServiceOuterClass.StringMatch> getHeaders()
getHeadersMap() instead.Map<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;VirtualServiceOuterClass.StringMatch getHeadersOrDefault(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;VirtualServiceOuterClass.StringMatch getHeadersOrThrow(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;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;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;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;@Deprecated Map<String,String> getSourceLabels()
getSourceLabelsMap() instead.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;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;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;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;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;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.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.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;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;@Deprecated Map<String,VirtualServiceOuterClass.StringMatch> getQueryParams()
getQueryParamsMap() instead.Map<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;VirtualServiceOuterClass.StringMatch getQueryParamsOrDefault(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;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;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;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;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;@Deprecated Map<String,VirtualServiceOuterClass.StringMatch> getWithoutHeaders()
getWithoutHeadersMap() instead.Map<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;VirtualServiceOuterClass.StringMatch getWithoutHeadersOrDefault(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;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;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;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;Copyright © 2018–2023 Alibaba Group. All rights reserved.