类 VirtualServiceOuterClass.HTTPMatchRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- istio.networking.v1alpha3.VirtualServiceOuterClass.HTTPMatchRequest
-
- 所有已实现的接口:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,VirtualServiceOuterClass.HTTPMatchRequestOrBuilder,java.io.Serializable
public static final class VirtualServiceOuterClass.HTTPMatchRequest extends com.google.protobuf.GeneratedMessageV3 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 typeistio.networking.v1alpha3.HTTPMatchRequest- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classVirtualServiceOuterClass.HTTPMatchRequest.BuilderHttpMatchRequest specifies a set of criterion to be met in order for the rule to be applied to the HTTP request.private static classVirtualServiceOuterClass.HTTPMatchRequest.HeadersDefaultEntryHolderprivate static classVirtualServiceOuterClass.HTTPMatchRequest.QueryParamsDefaultEntryHolderprivate static classVirtualServiceOuterClass.HTTPMatchRequest.SourceLabelsDefaultEntryHolderprivate static classVirtualServiceOuterClass.HTTPMatchRequest.WithoutHeadersDefaultEntryHolder-
从类继承的嵌套类/接口 com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
字段概要
-
构造器概要
构造器 限定符 构造器 说明 privateHTTPMatchRequest()privateHTTPMatchRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 booleancontainsHeaders(java.lang.String key)The header keys must be lowercase and use hyphen as the separator, e.g.booleancontainsQueryParams(java.lang.String key)Query parameters for matching.booleancontainsSourceLabels(java.lang.String key)One or more labels that constrain the applicability of a rule to workloads with the given labels.booleancontainsWithoutHeaders(java.lang.String key)withoutHeader has the same syntax with the header, but has opposite meaning.booleanequals(java.lang.Object obj)VirtualServiceOuterClass.StringMatchgetAuthority()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 matchVirtualServiceOuterClass.StringMatchOrBuildergetAuthorityOrBuilder()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 matchstatic VirtualServiceOuterClass.HTTPMatchRequestgetDefaultInstance()VirtualServiceOuterClass.HTTPMatchRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetGateways(int index)Names of gateways where the rule should be applied.com.google.protobuf.ByteStringgetGatewaysBytes(int index)Names of gateways where the rule should be applied.intgetGatewaysCount()Names of gateways where the rule should be applied.com.google.protobuf.ProtocolStringListgetGatewaysList()Names of gateways where the rule should be applied.java.util.Map<java.lang.String,VirtualServiceOuterClass.StringMatch>getHeaders()已过时。intgetHeadersCount()The header keys must be lowercase and use hyphen as the separator, e.g.java.util.Map<java.lang.String,VirtualServiceOuterClass.StringMatch>getHeadersMap()The header keys must be lowercase and use hyphen as the separator, e.g.VirtualServiceOuterClass.StringMatchgetHeadersOrDefault(java.lang.String key, VirtualServiceOuterClass.StringMatch defaultValue)The header keys must be lowercase and use hyphen as the separator, e.g.VirtualServiceOuterClass.StringMatchgetHeadersOrThrow(java.lang.String key)The header keys must be lowercase and use hyphen as the separator, e.g.booleangetIgnoreUriCase()Flag to specify whether the URI matching should be case-insensitive.VirtualServiceOuterClass.StringMatchgetMethod()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 matchVirtualServiceOuterClass.StringMatchOrBuildergetMethodOrBuilder()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 matchjava.lang.StringgetName()The name assigned to a match.com.google.protobuf.ByteStringgetNameBytes()The name assigned to a match.com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPMatchRequest>getParserForType()intgetPort()Specifies the ports on the host that is being addressed.java.util.Map<java.lang.String,VirtualServiceOuterClass.StringMatch>getQueryParams()已过时。intgetQueryParamsCount()Query parameters for matching.java.util.Map<java.lang.String,VirtualServiceOuterClass.StringMatch>getQueryParamsMap()Query parameters for matching.VirtualServiceOuterClass.StringMatchgetQueryParamsOrDefault(java.lang.String key, VirtualServiceOuterClass.StringMatch defaultValue)Query parameters for matching.VirtualServiceOuterClass.StringMatchgetQueryParamsOrThrow(java.lang.String key)Query parameters for matching.VirtualServiceOuterClass.StringMatchgetScheme()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 matchVirtualServiceOuterClass.StringMatchOrBuildergetSchemeOrBuilder()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 matchintgetSerializedSize()java.util.Map<java.lang.String,java.lang.String>getSourceLabels()已过时。intgetSourceLabelsCount()One or more labels that constrain the applicability of a rule to workloads with the given labels.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.java.lang.StringgetSourceLabelsOrDefault(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.java.lang.StringgetSourceLabelsOrThrow(java.lang.String key)One or more labels that constrain the applicability of a rule to workloads with the given labels.java.lang.StringgetSourceNamespace()Source namespace constraining the applicability of a rule to workloads in that namespace.com.google.protobuf.ByteStringgetSourceNamespaceBytes()Source namespace constraining the applicability of a rule to workloads in that namespace.com.google.protobuf.UnknownFieldSetgetUnknownFields()VirtualServiceOuterClass.StringMatchgetUri()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.StringMatchOrBuildergetUriOrBuilder()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.java.util.Map<java.lang.String,VirtualServiceOuterClass.StringMatch>getWithoutHeaders()已过时。intgetWithoutHeadersCount()withoutHeader has the same syntax with the header, but has opposite meaning.java.util.Map<java.lang.String,VirtualServiceOuterClass.StringMatch>getWithoutHeadersMap()withoutHeader has the same syntax with the header, but has opposite meaning.VirtualServiceOuterClass.StringMatchgetWithoutHeadersOrDefault(java.lang.String key, VirtualServiceOuterClass.StringMatch defaultValue)withoutHeader has the same syntax with the header, but has opposite meaning.VirtualServiceOuterClass.StringMatchgetWithoutHeadersOrThrow(java.lang.String key)withoutHeader has the same syntax with the header, but has opposite meaning.booleanhasAuthority()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 matchinthashCode()booleanhasMethod()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 matchbooleanhasScheme()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 matchbooleanhasUri()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.FieldAccessorTableinternalGetFieldAccessorTable()private com.google.protobuf.MapField<java.lang.String,VirtualServiceOuterClass.StringMatch>internalGetHeaders()protected com.google.protobuf.MapFieldinternalGetMapField(int number)private com.google.protobuf.MapField<java.lang.String,VirtualServiceOuterClass.StringMatch>internalGetQueryParams()private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetSourceLabels()private com.google.protobuf.MapField<java.lang.String,VirtualServiceOuterClass.StringMatch>internalGetWithoutHeaders()booleanisInitialized()static VirtualServiceOuterClass.HTTPMatchRequest.BuildernewBuilder()static VirtualServiceOuterClass.HTTPMatchRequest.BuildernewBuilder(VirtualServiceOuterClass.HTTPMatchRequest prototype)VirtualServiceOuterClass.HTTPMatchRequest.BuildernewBuilderForType()protected VirtualServiceOuterClass.HTTPMatchRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static VirtualServiceOuterClass.HTTPMatchRequestparseDelimitedFrom(java.io.InputStream input)static VirtualServiceOuterClass.HTTPMatchRequestparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualServiceOuterClass.HTTPMatchRequestparseFrom(byte[] data)static VirtualServiceOuterClass.HTTPMatchRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualServiceOuterClass.HTTPMatchRequestparseFrom(com.google.protobuf.ByteString data)static VirtualServiceOuterClass.HTTPMatchRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualServiceOuterClass.HTTPMatchRequestparseFrom(com.google.protobuf.CodedInputStream input)static VirtualServiceOuterClass.HTTPMatchRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualServiceOuterClass.HTTPMatchRequestparseFrom(java.io.InputStream input)static VirtualServiceOuterClass.HTTPMatchRequestparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualServiceOuterClass.HTTPMatchRequestparseFrom(java.nio.ByteBuffer data)static VirtualServiceOuterClass.HTTPMatchRequestparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPMatchRequest>parser()VirtualServiceOuterClass.HTTPMatchRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
从类继承的方法 com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
从类继承的方法 com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
-
-
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID
- 另请参阅:
- 常量字段值
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
name_
private volatile java.lang.Object name_
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
uri_
private VirtualServiceOuterClass.StringMatch uri_
-
SCHEME_FIELD_NUMBER
public static final int SCHEME_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
scheme_
private VirtualServiceOuterClass.StringMatch scheme_
-
METHOD_FIELD_NUMBER
public static final int METHOD_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
method_
private VirtualServiceOuterClass.StringMatch method_
-
AUTHORITY_FIELD_NUMBER
public static final int AUTHORITY_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
authority_
private VirtualServiceOuterClass.StringMatch authority_
-
HEADERS_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
headers_
private com.google.protobuf.MapField<java.lang.String,VirtualServiceOuterClass.StringMatch> headers_
-
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
port_
private int port_
-
SOURCE_LABELS_FIELD_NUMBER
public static final int SOURCE_LABELS_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
sourceLabels_
private com.google.protobuf.MapField<java.lang.String,java.lang.String> sourceLabels_
-
GATEWAYS_FIELD_NUMBER
public static final int GATEWAYS_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
gateways_
private com.google.protobuf.LazyStringList gateways_
-
QUERY_PARAMS_FIELD_NUMBER
public static final int QUERY_PARAMS_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
queryParams_
private com.google.protobuf.MapField<java.lang.String,VirtualServiceOuterClass.StringMatch> queryParams_
-
IGNORE_URI_CASE_FIELD_NUMBER
public static final int IGNORE_URI_CASE_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
ignoreUriCase_
private boolean ignoreUriCase_
-
WITHOUT_HEADERS_FIELD_NUMBER
public static final int WITHOUT_HEADERS_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
withoutHeaders_
private com.google.protobuf.MapField<java.lang.String,VirtualServiceOuterClass.StringMatch> withoutHeaders_
-
SOURCE_NAMESPACE_FIELD_NUMBER
public static final int SOURCE_NAMESPACE_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
sourceNamespace_
private volatile java.lang.Object sourceNamespace_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final VirtualServiceOuterClass.HTTPMatchRequest DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPMatchRequest> PARSER
-
-
方法详细资料
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- 覆盖:
newInstance在类中com.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- 指定者:
getUnknownFields在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getUnknownFields在类中com.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- 覆盖:
internalGetMapField在类中com.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3
-
getName
public java.lang.String getName()
The name assigned to a match. The match's name will be concatenated with the parent route's name and will be logged in the access logs for requests matching this route.
string name = 11;- 指定者:
getName在接口中VirtualServiceOuterClass.HTTPMatchRequestOrBuilder- 返回:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name assigned to a match. The match's name will be concatenated with the parent route's name and will be logged in the access logs for requests matching this route.
string name = 11;- 指定者:
getNameBytes在接口中VirtualServiceOuterClass.HTTPMatchRequestOrBuilder- 返回:
- The bytes for name.
-
hasUri
public boolean hasUri()
URI to match values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for ECMAscript style regex-based match **Note:** Case-insensitive matching could be enabled via the `ignore_uri_case` flag.
.istio.networking.v1alpha3.StringMatch uri = 1;- 指定者:
hasUri在接口中VirtualServiceOuterClass.HTTPMatchRequestOrBuilder- 返回:
- Whether the uri field is set.
-
getUri
public VirtualServiceOuterClass.StringMatch getUri()
URI to match values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for ECMAscript style regex-based match **Note:** Case-insensitive matching could be enabled via the `ignore_uri_case` flag.
.istio.networking.v1alpha3.StringMatch uri = 1;- 指定者:
getUri在接口中VirtualServiceOuterClass.HTTPMatchRequestOrBuilder- 返回:
- The uri.
-
getUriOrBuilder
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;
-
hasScheme
public boolean hasScheme()
URI Scheme values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for ECMAscript style regex-based match
.istio.networking.v1alpha3.StringMatch scheme = 2;- 指定者:
hasScheme在接口中VirtualServiceOuterClass.HTTPMatchRequestOrBuilder- 返回:
- Whether the scheme field is set.
-
getScheme
public 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.HTTPMatchRequestOrBuilder- 返回:
- The scheme.
-
getSchemeOrBuilder
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;
-
hasMethod
public boolean hasMethod()
HTTP Method values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for ECMAscript style regex-based match
.istio.networking.v1alpha3.StringMatch method = 3;- 指定者:
hasMethod在接口中VirtualServiceOuterClass.HTTPMatchRequestOrBuilder- 返回:
- Whether the method field is set.
-
getMethod
public 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.HTTPMatchRequestOrBuilder- 返回:
- The method.
-
getMethodOrBuilder
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;
-
hasAuthority
public boolean hasAuthority()
HTTP Authority values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for ECMAscript style regex-based match
.istio.networking.v1alpha3.StringMatch authority = 4;- 指定者:
hasAuthority在接口中VirtualServiceOuterClass.HTTPMatchRequestOrBuilder- 返回:
- Whether the authority field is set.
-
getAuthority
public 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.HTTPMatchRequestOrBuilder- 返回:
- The authority.
-
getAuthorityOrBuilder
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;
-
internalGetHeaders
private com.google.protobuf.MapField<java.lang.String,VirtualServiceOuterClass.StringMatch> internalGetHeaders()
-
getHeadersCount
public int getHeadersCount()
The header keys must be lowercase and use hyphen as the separator, e.g. _x-request-id_. Header values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for ECMAscript style regex-based match If the value is empty and only the name of header is specfied, presence of the header is checked. **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
map<string, .istio.networking.v1alpha3.StringMatch> headers = 5;
-
containsHeaders
public boolean containsHeaders(java.lang.String key)
The header keys must be lowercase and use hyphen as the separator, e.g. _x-request-id_. Header values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for ECMAscript style regex-based match If the value is empty and only the name of header is specfied, presence of the header is checked. **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
map<string, .istio.networking.v1alpha3.StringMatch> headers = 5;
-
getHeaders
@Deprecated public java.util.Map<java.lang.String,VirtualServiceOuterClass.StringMatch> getHeaders()
已过时。UsegetHeadersMap()instead.
-
getHeadersMap
public java.util.Map<java.lang.String,VirtualServiceOuterClass.StringMatch> getHeadersMap()
The header keys must be lowercase and use hyphen as the separator, e.g. _x-request-id_. Header values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for ECMAscript style regex-based match If the value is empty and only the name of header is specfied, presence of the header is checked. **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
map<string, .istio.networking.v1alpha3.StringMatch> headers = 5;
-
getHeadersOrDefault
public VirtualServiceOuterClass.StringMatch getHeadersOrDefault(java.lang.String key, VirtualServiceOuterClass.StringMatch defaultValue)
The header keys must be lowercase and use hyphen as the separator, e.g. _x-request-id_. Header values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for ECMAscript style regex-based match If the value is empty and only the name of header is specfied, presence of the header is checked. **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
map<string, .istio.networking.v1alpha3.StringMatch> headers = 5;
-
getHeadersOrThrow
public VirtualServiceOuterClass.StringMatch getHeadersOrThrow(java.lang.String key)
The header keys must be lowercase and use hyphen as the separator, e.g. _x-request-id_. Header values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for ECMAscript style regex-based match If the value is empty and only the name of header is specfied, presence of the header is checked. **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
map<string, .istio.networking.v1alpha3.StringMatch> headers = 5;
-
getPort
public int getPort()
Specifies the ports on the host that is being addressed. Many services only expose a single port or label ports with the protocols they support, in these cases it is not required to explicitly select the port.
uint32 port = 6;- 指定者:
getPort在接口中VirtualServiceOuterClass.HTTPMatchRequestOrBuilder- 返回:
- The port.
-
internalGetSourceLabels
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetSourceLabels()
-
getSourceLabelsCount
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;
-
containsSourceLabels
public boolean containsSourceLabels(java.lang.String key)
One or more labels that constrain the applicability of a rule to workloads with the given labels. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it must include the reserved gateway `mesh` for this field to be applicable.
map<string, string> source_labels = 7;
-
getSourceLabels
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getSourceLabels()
已过时。UsegetSourceLabelsMap()instead.
-
getSourceLabelsMap
public java.util.Map<java.lang.String,java.lang.String> getSourceLabelsMap()
One or more labels that constrain the applicability of a rule to workloads with the given labels. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it must include the reserved gateway `mesh` for this field to be applicable.
map<string, string> source_labels = 7;
-
getSourceLabelsOrDefault
public java.lang.String getSourceLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)One or more labels that constrain the applicability of a rule to workloads with the given labels. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it must include the reserved gateway `mesh` for this field to be applicable.
map<string, string> source_labels = 7;
-
getSourceLabelsOrThrow
public java.lang.String getSourceLabelsOrThrow(java.lang.String key)
One or more labels that constrain the applicability of a rule to workloads with the given labels. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it must include the reserved gateway `mesh` for this field to be applicable.
map<string, string> source_labels = 7;
-
getGatewaysList
public com.google.protobuf.ProtocolStringList getGatewaysList()
Names of gateways where the rule should be applied. Gateway names in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway match is independent of sourceLabels.
repeated string gateways = 8;- 指定者:
getGatewaysList在接口中VirtualServiceOuterClass.HTTPMatchRequestOrBuilder- 返回:
- A list containing the gateways.
-
getGatewaysCount
public int getGatewaysCount()
Names of gateways where the rule should be applied. Gateway names in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway match is independent of sourceLabels.
repeated string gateways = 8;- 指定者:
getGatewaysCount在接口中VirtualServiceOuterClass.HTTPMatchRequestOrBuilder- 返回:
- The count of gateways.
-
getGateways
public java.lang.String getGateways(int index)
Names of gateways where the rule should be applied. Gateway names in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway match is independent of sourceLabels.
repeated string gateways = 8;- 指定者:
getGateways在接口中VirtualServiceOuterClass.HTTPMatchRequestOrBuilder- 参数:
index- The index of the element to return.- 返回:
- The gateways at the given index.
-
getGatewaysBytes
public com.google.protobuf.ByteString getGatewaysBytes(int index)
Names of gateways where the rule should be applied. Gateway names in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway match is independent of sourceLabels.
repeated string gateways = 8;- 指定者:
getGatewaysBytes在接口中VirtualServiceOuterClass.HTTPMatchRequestOrBuilder- 参数:
index- The index of the value to return.- 返回:
- The bytes of the gateways at the given index.
-
internalGetQueryParams
private com.google.protobuf.MapField<java.lang.String,VirtualServiceOuterClass.StringMatch> internalGetQueryParams()
-
getQueryParamsCount
public int getQueryParamsCount()
Query parameters for matching. Ex: - For a query parameter like "?key=true", the map key would be "key" and the string match could be defined as `exact: "true"`. - For a query parameter like "?key", the map key would be "key" and the string match could be defined as `exact: ""`. - For a query parameter like "?key=123", the map key would be "key" and the string match could be defined as `regex: "\d+$"`. Note that this configuration will only match values like "123" but not "a123" or "123a". **Note:** `prefix` matching is currently not supported.
map<string, .istio.networking.v1alpha3.StringMatch> query_params = 9;
-
containsQueryParams
public boolean containsQueryParams(java.lang.String key)
Query parameters for matching. Ex: - For a query parameter like "?key=true", the map key would be "key" and the string match could be defined as `exact: "true"`. - For a query parameter like "?key", the map key would be "key" and the string match could be defined as `exact: ""`. - For a query parameter like "?key=123", the map key would be "key" and the string match could be defined as `regex: "\d+$"`. Note that this configuration will only match values like "123" but not "a123" or "123a". **Note:** `prefix` matching is currently not supported.
map<string, .istio.networking.v1alpha3.StringMatch> query_params = 9;
-
getQueryParams
@Deprecated public java.util.Map<java.lang.String,VirtualServiceOuterClass.StringMatch> getQueryParams()
已过时。UsegetQueryParamsMap()instead.
-
getQueryParamsMap
public java.util.Map<java.lang.String,VirtualServiceOuterClass.StringMatch> getQueryParamsMap()
Query parameters for matching. Ex: - For a query parameter like "?key=true", the map key would be "key" and the string match could be defined as `exact: "true"`. - For a query parameter like "?key", the map key would be "key" and the string match could be defined as `exact: ""`. - For a query parameter like "?key=123", the map key would be "key" and the string match could be defined as `regex: "\d+$"`. Note that this configuration will only match values like "123" but not "a123" or "123a". **Note:** `prefix` matching is currently not supported.
map<string, .istio.networking.v1alpha3.StringMatch> query_params = 9;
-
getQueryParamsOrDefault
public VirtualServiceOuterClass.StringMatch getQueryParamsOrDefault(java.lang.String key, VirtualServiceOuterClass.StringMatch defaultValue)
Query parameters for matching. Ex: - For a query parameter like "?key=true", the map key would be "key" and the string match could be defined as `exact: "true"`. - For a query parameter like "?key", the map key would be "key" and the string match could be defined as `exact: ""`. - For a query parameter like "?key=123", the map key would be "key" and the string match could be defined as `regex: "\d+$"`. Note that this configuration will only match values like "123" but not "a123" or "123a". **Note:** `prefix` matching is currently not supported.
map<string, .istio.networking.v1alpha3.StringMatch> query_params = 9;
-
getQueryParamsOrThrow
public VirtualServiceOuterClass.StringMatch getQueryParamsOrThrow(java.lang.String key)
Query parameters for matching. Ex: - For a query parameter like "?key=true", the map key would be "key" and the string match could be defined as `exact: "true"`. - For a query parameter like "?key", the map key would be "key" and the string match could be defined as `exact: ""`. - For a query parameter like "?key=123", the map key would be "key" and the string match could be defined as `regex: "\d+$"`. Note that this configuration will only match values like "123" but not "a123" or "123a". **Note:** `prefix` matching is currently not supported.
map<string, .istio.networking.v1alpha3.StringMatch> query_params = 9;
-
getIgnoreUriCase
public boolean getIgnoreUriCase()
Flag to specify whether the URI matching should be case-insensitive. **Note:** The case will be ignored only in the case of `exact` and `prefix` URI matches.
bool ignore_uri_case = 10;- 指定者:
getIgnoreUriCase在接口中VirtualServiceOuterClass.HTTPMatchRequestOrBuilder- 返回:
- The ignoreUriCase.
-
internalGetWithoutHeaders
private com.google.protobuf.MapField<java.lang.String,VirtualServiceOuterClass.StringMatch> internalGetWithoutHeaders()
-
getWithoutHeadersCount
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;
-
containsWithoutHeaders
public boolean containsWithoutHeaders(java.lang.String key)
withoutHeader has the same syntax with the header, but has opposite meaning. If a header is matched with a matching rule among withoutHeader, the traffic becomes not matched one.
map<string, .istio.networking.v1alpha3.StringMatch> without_headers = 12;
-
getWithoutHeaders
@Deprecated public java.util.Map<java.lang.String,VirtualServiceOuterClass.StringMatch> getWithoutHeaders()
已过时。UsegetWithoutHeadersMap()instead.
-
getWithoutHeadersMap
public 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
public 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
public 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
public java.lang.String getSourceNamespace()
Source namespace constraining the applicability of a rule to workloads in that namespace. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it must include the reserved gateway `mesh` for this field to be applicable.
string source_namespace = 13;- 指定者:
getSourceNamespace在接口中VirtualServiceOuterClass.HTTPMatchRequestOrBuilder- 返回:
- The sourceNamespace.
-
getSourceNamespaceBytes
public com.google.protobuf.ByteString getSourceNamespaceBytes()
Source namespace constraining the applicability of a rule to workloads in that namespace. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it must include the reserved gateway `mesh` for this field to be applicable.
string source_namespace = 13;- 指定者:
getSourceNamespaceBytes在接口中VirtualServiceOuterClass.HTTPMatchRequestOrBuilder- 返回:
- The bytes for sourceNamespace.
-
isInitialized
public final boolean isInitialized()
- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- 指定者:
writeTo在接口中com.google.protobuf.MessageLite- 覆盖:
writeTo在类中com.google.protobuf.GeneratedMessageV3- 抛出:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- 指定者:
getSerializedSize在接口中com.google.protobuf.MessageLite- 覆盖:
getSerializedSize在类中com.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- 指定者:
equals在接口中com.google.protobuf.Message- 覆盖:
equals在类中com.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- 指定者:
hashCode在接口中com.google.protobuf.Message- 覆盖:
hashCode在类中com.google.protobuf.AbstractMessage
-
parseFrom
public static VirtualServiceOuterClass.HTTPMatchRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.HTTPMatchRequest parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.HTTPMatchRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.HTTPMatchRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.HTTPMatchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.HTTPMatchRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.HTTPMatchRequest parseFrom(java.io.InputStream input) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseFrom
public static VirtualServiceOuterClass.HTTPMatchRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseDelimitedFrom
public static VirtualServiceOuterClass.HTTPMatchRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseDelimitedFrom
public static VirtualServiceOuterClass.HTTPMatchRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseFrom
public static VirtualServiceOuterClass.HTTPMatchRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseFrom
public static VirtualServiceOuterClass.HTTPMatchRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 抛出:
java.io.IOException
-
newBuilderForType
public VirtualServiceOuterClass.HTTPMatchRequest.Builder newBuilderForType()
- 指定者:
newBuilderForType在接口中com.google.protobuf.Message- 指定者:
newBuilderForType在接口中com.google.protobuf.MessageLite
-
newBuilder
public static VirtualServiceOuterClass.HTTPMatchRequest.Builder newBuilder()
-
newBuilder
public static VirtualServiceOuterClass.HTTPMatchRequest.Builder newBuilder(VirtualServiceOuterClass.HTTPMatchRequest prototype)
-
toBuilder
public VirtualServiceOuterClass.HTTPMatchRequest.Builder toBuilder()
- 指定者:
toBuilder在接口中com.google.protobuf.Message- 指定者:
toBuilder在接口中com.google.protobuf.MessageLite
-
newBuilderForType
protected VirtualServiceOuterClass.HTTPMatchRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- 指定者:
newBuilderForType在类中com.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static VirtualServiceOuterClass.HTTPMatchRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPMatchRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPMatchRequest> getParserForType()
- 指定者:
getParserForType在接口中com.google.protobuf.Message- 指定者:
getParserForType在接口中com.google.protobuf.MessageLite- 覆盖:
getParserForType在类中com.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public VirtualServiceOuterClass.HTTPMatchRequest getDefaultInstanceForType()
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
-