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| 限定符和类型 | 方法和说明 |
|---|---|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
addAllGateways(Iterable<String> values)
Names of gateways where the rule should be applied.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
addGateways(String value)
Names of gateways where the rule should be applied.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
addGatewaysBytes(com.google.protobuf.ByteString value)
Names of gateways where the rule should be applied.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
VirtualServiceOuterClass.HTTPMatchRequest |
build() |
VirtualServiceOuterClass.HTTPMatchRequest |
buildPartial() |
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
clear() |
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; |
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
clearGateways()
Names of gateways where the rule should be applied.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
clearHeaders() |
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
clearIgnoreUriCase()
Flag to specify whether the URI matching should be case-insensitive.
|
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; |
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
clearName()
The name assigned to a match.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
clearPort()
Specifies the ports on the host that is being addressed.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
clearQueryParams() |
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; |
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
clearSourceLabels() |
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
clearSourceNamespace()
Source namespace constraining the applicability of a rule to workloads in that namespace.
|
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.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
clearWithoutHeaders() |
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
clone() |
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.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; |
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; |
VirtualServiceOuterClass.HTTPMatchRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
com.google.protobuf.ProtocolStringList |
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.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; |
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; |
Map<String,VirtualServiceOuterClass.StringMatch> |
getMutableHeaders()
已过时。
|
Map<String,VirtualServiceOuterClass.StringMatch> |
getMutableQueryParams()
已过时。
|
Map<String,String> |
getMutableSourceLabels()
已过时。
|
Map<String,VirtualServiceOuterClass.StringMatch> |
getMutableWithoutHeaders()
已过时。
|
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.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; |
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.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.
|
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
mergeAuthority(VirtualServiceOuterClass.StringMatch value)
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.HTTPMatchRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
mergeFrom(VirtualServiceOuterClass.HTTPMatchRequest other) |
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
mergeMethod(VirtualServiceOuterClass.StringMatch value)
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.HTTPMatchRequest.Builder |
mergeScheme(VirtualServiceOuterClass.StringMatch value)
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.HTTPMatchRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
putAllHeaders(Map<String,VirtualServiceOuterClass.StringMatch> values)
The header keys must be lowercase and use hyphen as the separator,
e.g.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
putAllQueryParams(Map<String,VirtualServiceOuterClass.StringMatch> values)
Query parameters for matching.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
putAllSourceLabels(Map<String,String> values)
One or more labels that constrain the applicability of a rule to
workloads with the given labels.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
putAllWithoutHeaders(Map<String,VirtualServiceOuterClass.StringMatch> values)
withoutHeader has the same syntax with the header, but has opposite meaning.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
putHeaders(String key,
VirtualServiceOuterClass.StringMatch value)
The header keys must be lowercase and use hyphen as the separator,
e.g.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
putQueryParams(String key,
VirtualServiceOuterClass.StringMatch value)
Query parameters for matching.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
putSourceLabels(String key,
String value)
One or more labels that constrain the applicability of a rule to
workloads with the given labels.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
putWithoutHeaders(String key,
VirtualServiceOuterClass.StringMatch value)
withoutHeader has the same syntax with the header, but has opposite meaning.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
removeHeaders(String key)
The header keys must be lowercase and use hyphen as the separator,
e.g.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
removeQueryParams(String key)
Query parameters for matching.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
removeSourceLabels(String key)
One or more labels that constrain the applicability of a rule to
workloads with the given labels.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
removeWithoutHeaders(String key)
withoutHeader has the same syntax with the header, but has opposite meaning.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
setAuthority(VirtualServiceOuterClass.StringMatch.Builder builderForValue)
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.HTTPMatchRequest.Builder |
setAuthority(VirtualServiceOuterClass.StringMatch value)
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.HTTPMatchRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
setGateways(int index,
String value)
Names of gateways where the rule should be applied.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
setIgnoreUriCase(boolean value)
Flag to specify whether the URI matching should be case-insensitive.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
setMethod(VirtualServiceOuterClass.StringMatch.Builder builderForValue)
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.HTTPMatchRequest.Builder |
setMethod(VirtualServiceOuterClass.StringMatch value)
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.HTTPMatchRequest.Builder |
setName(String value)
The name assigned to a match.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name assigned to a match.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
setPort(int value)
Specifies the ports on the host that is being addressed.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
setScheme(VirtualServiceOuterClass.StringMatch.Builder builderForValue)
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.HTTPMatchRequest.Builder |
setScheme(VirtualServiceOuterClass.StringMatch value)
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.HTTPMatchRequest.Builder |
setSourceNamespace(String value)
Source namespace constraining the applicability of a rule to workloads in that namespace.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
setSourceNamespaceBytes(com.google.protobuf.ByteString value)
Source namespace constraining the applicability of a rule to workloads in that namespace.
|
VirtualServiceOuterClass.HTTPMatchRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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.
|
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.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>public VirtualServiceOuterClass.HTTPMatchRequest.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>public VirtualServiceOuterClass.HTTPMatchRequest getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic VirtualServiceOuterClass.HTTPMatchRequest build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic VirtualServiceOuterClass.HTTPMatchRequest buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic VirtualServiceOuterClass.HTTPMatchRequest.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>public VirtualServiceOuterClass.HTTPMatchRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>public VirtualServiceOuterClass.HTTPMatchRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>public VirtualServiceOuterClass.HTTPMatchRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>public VirtualServiceOuterClass.HTTPMatchRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>public VirtualServiceOuterClass.HTTPMatchRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>public VirtualServiceOuterClass.HTTPMatchRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>public VirtualServiceOuterClass.HTTPMatchRequest.Builder mergeFrom(VirtualServiceOuterClass.HTTPMatchRequest other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>public VirtualServiceOuterClass.HTTPMatchRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>IOExceptionpublic 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.HTTPMatchRequestOrBuilderpublic 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.HTTPMatchRequestOrBuilderpublic VirtualServiceOuterClass.HTTPMatchRequest.Builder setName(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.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;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.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.HTTPMatchRequestOrBuilderpublic 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.HTTPMatchRequestOrBuilderpublic 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;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;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;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;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;public 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;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.HTTPMatchRequestOrBuilderpublic 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;getScheme 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilderpublic VirtualServiceOuterClass.HTTPMatchRequest.Builder setScheme(VirtualServiceOuterClass.StringMatch value)
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;public VirtualServiceOuterClass.HTTPMatchRequest.Builder setScheme(VirtualServiceOuterClass.StringMatch.Builder builderForValue)
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;public VirtualServiceOuterClass.HTTPMatchRequest.Builder mergeScheme(VirtualServiceOuterClass.StringMatch value)
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;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;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;public 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;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.HTTPMatchRequestOrBuilderpublic 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;getMethod 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilderpublic VirtualServiceOuterClass.HTTPMatchRequest.Builder setMethod(VirtualServiceOuterClass.StringMatch value)
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;public VirtualServiceOuterClass.HTTPMatchRequest.Builder setMethod(VirtualServiceOuterClass.StringMatch.Builder builderForValue)
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;public VirtualServiceOuterClass.HTTPMatchRequest.Builder mergeMethod(VirtualServiceOuterClass.StringMatch value)
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;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;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;public 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;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.HTTPMatchRequestOrBuilderpublic 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;getAuthority 在接口中 VirtualServiceOuterClass.HTTPMatchRequestOrBuilderpublic VirtualServiceOuterClass.HTTPMatchRequest.Builder setAuthority(VirtualServiceOuterClass.StringMatch value)
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;public VirtualServiceOuterClass.HTTPMatchRequest.Builder setAuthority(VirtualServiceOuterClass.StringMatch.Builder builderForValue)
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;public VirtualServiceOuterClass.HTTPMatchRequest.Builder mergeAuthority(VirtualServiceOuterClass.StringMatch value)
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;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;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;public 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;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;public 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 public Map<String,VirtualServiceOuterClass.StringMatch> getHeaders()
getHeadersMap() instead.public 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;public 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;public 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;public VirtualServiceOuterClass.HTTPMatchRequest.Builder clearHeaders()
public VirtualServiceOuterClass.HTTPMatchRequest.Builder removeHeaders(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 public Map<String,VirtualServiceOuterClass.StringMatch> getMutableHeaders()
public VirtualServiceOuterClass.HTTPMatchRequest.Builder putHeaders(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;public VirtualServiceOuterClass.HTTPMatchRequest.Builder putAllHeaders(Map<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;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.HTTPMatchRequestOrBuilderpublic 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.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;public 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;public 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 public Map<String,String> getSourceLabels()
getSourceLabelsMap() instead.public 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;public 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;public 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;public VirtualServiceOuterClass.HTTPMatchRequest.Builder clearSourceLabels()
public VirtualServiceOuterClass.HTTPMatchRequest.Builder removeSourceLabels(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 public Map<String,String> getMutableSourceLabels()
public VirtualServiceOuterClass.HTTPMatchRequest.Builder putSourceLabels(String key, 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;public VirtualServiceOuterClass.HTTPMatchRequest.Builder putAllSourceLabels(Map<String,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;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.HTTPMatchRequestOrBuilderpublic 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.HTTPMatchRequestOrBuilderpublic 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.HTTPMatchRequestOrBuilderindex - The index of the element to return.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.HTTPMatchRequestOrBuilderindex - The index of the value to return.public VirtualServiceOuterClass.HTTPMatchRequest.Builder setGateways(int index, 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.public VirtualServiceOuterClass.HTTPMatchRequest.Builder addGateways(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.public VirtualServiceOuterClass.HTTPMatchRequest.Builder addAllGateways(Iterable<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.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;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.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;public 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 public Map<String,VirtualServiceOuterClass.StringMatch> getQueryParams()
getQueryParamsMap() instead.public 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;public 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;public 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;public VirtualServiceOuterClass.HTTPMatchRequest.Builder clearQueryParams()
public VirtualServiceOuterClass.HTTPMatchRequest.Builder removeQueryParams(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 public Map<String,VirtualServiceOuterClass.StringMatch> getMutableQueryParams()
public VirtualServiceOuterClass.HTTPMatchRequest.Builder putQueryParams(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;public VirtualServiceOuterClass.HTTPMatchRequest.Builder putAllQueryParams(Map<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;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.HTTPMatchRequestOrBuilderpublic 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.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;public 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;public 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 public Map<String,VirtualServiceOuterClass.StringMatch> getWithoutHeaders()
getWithoutHeadersMap() instead.public 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;public 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;public 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;public VirtualServiceOuterClass.HTTPMatchRequest.Builder clearWithoutHeaders()
public VirtualServiceOuterClass.HTTPMatchRequest.Builder removeWithoutHeaders(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 public Map<String,VirtualServiceOuterClass.StringMatch> getMutableWithoutHeaders()
public VirtualServiceOuterClass.HTTPMatchRequest.Builder putWithoutHeaders(String key, VirtualServiceOuterClass.StringMatch value)
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;public VirtualServiceOuterClass.HTTPMatchRequest.Builder putAllWithoutHeaders(Map<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;public 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.HTTPMatchRequestOrBuilderpublic 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.HTTPMatchRequestOrBuilderpublic VirtualServiceOuterClass.HTTPMatchRequest.Builder setSourceNamespace(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.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;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.public final VirtualServiceOuterClass.HTTPMatchRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>public final VirtualServiceOuterClass.HTTPMatchRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPMatchRequest.Builder>Copyright © 2018–2023 Alibaba Group. All rights reserved.