Package io.grpc.lookup.v1
Class HttpKeyBuilder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- io.grpc.lookup.v1.HttpKeyBuilder
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,HttpKeyBuilderOrBuilder
,java.io.Serializable
public final class HttpKeyBuilder extends com.google.protobuf.GeneratedMessage implements HttpKeyBuilderOrBuilder
An HttpKeyBuilder applies to a given HTTP URL and headers. Path and host patterns use the matching syntax from gRPC transcoding to extract named key/value pairs from the path and host components of the URL: https://github.com/googleapis/googleapis/blob/master/google/api/http.proto It is invalid to specify the same key name in multiple places in a pattern. For a service where the project id can be expressed either as a subdomain or in the path, separate HttpKeyBuilders must be used: host_pattern: 'example.com' path_pattern: '/{id}/{object}/**' host_pattern: '{id}.example.com' path_pattern: '/{object}/**' If the host is exactly 'example.com', the first path segment will be used as the id and the second segment as the object. If the host has a subdomain, the subdomain will be used as the id and the first segment as the object. If neither pattern matches, no keys will be extracted.
Protobuf typegrpc.lookup.v1.HttpKeyBuilder
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpKeyBuilder.Builder
An HttpKeyBuilder applies to a given HTTP URL and headers.private static class
HttpKeyBuilder.ConstantKeysDefaultEntryHolder
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTANT_KEYS_FIELD_NUMBER
private com.google.protobuf.MapField<java.lang.String,java.lang.String>
constantKeys_
private static HttpKeyBuilder
DEFAULT_INSTANCE
private java.util.List<NameMatcher>
headers_
static int
HEADERS_FIELD_NUMBER
static int
HOST_PATTERNS_FIELD_NUMBER
private com.google.protobuf.LazyStringArrayList
hostPatterns_
private byte
memoizedIsInitialized
private static com.google.protobuf.Parser<HttpKeyBuilder>
PARSER
static int
PATH_PATTERNS_FIELD_NUMBER
private com.google.protobuf.LazyStringArrayList
pathPatterns_
static int
QUERY_PARAMETERS_FIELD_NUMBER
private java.util.List<NameMatcher>
queryParameters_
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
HttpKeyBuilder()
private
HttpKeyBuilder(com.google.protobuf.GeneratedMessage.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsConstantKeys(java.lang.String key)
You can optionally set one or more specific key/value pairs to be added to the key_map.boolean
equals(java.lang.Object obj)
java.util.Map<java.lang.String,java.lang.String>
getConstantKeys()
Deprecated.int
getConstantKeysCount()
You can optionally set one or more specific key/value pairs to be added to the key_map.java.util.Map<java.lang.String,java.lang.String>
getConstantKeysMap()
You can optionally set one or more specific key/value pairs to be added to the key_map.java.lang.String
getConstantKeysOrDefault(java.lang.String key, java.lang.String defaultValue)
You can optionally set one or more specific key/value pairs to be added to the key_map.java.lang.String
getConstantKeysOrThrow(java.lang.String key)
You can optionally set one or more specific key/value pairs to be added to the key_map.static HttpKeyBuilder
getDefaultInstance()
HttpKeyBuilder
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
NameMatcher
getHeaders(int index)
List of headers to try to match.int
getHeadersCount()
List of headers to try to match.java.util.List<NameMatcher>
getHeadersList()
List of headers to try to match.NameMatcherOrBuilder
getHeadersOrBuilder(int index)
List of headers to try to match.java.util.List<? extends NameMatcherOrBuilder>
getHeadersOrBuilderList()
List of headers to try to match.java.lang.String
getHostPatterns(int index)
host_pattern is an ordered list of host template patterns for the desired value.com.google.protobuf.ByteString
getHostPatternsBytes(int index)
host_pattern is an ordered list of host template patterns for the desired value.int
getHostPatternsCount()
host_pattern is an ordered list of host template patterns for the desired value.com.google.protobuf.ProtocolStringList
getHostPatternsList()
host_pattern is an ordered list of host template patterns for the desired value.com.google.protobuf.Parser<HttpKeyBuilder>
getParserForType()
java.lang.String
getPathPatterns(int index)
path_pattern is an ordered list of path template patterns for the desired value.com.google.protobuf.ByteString
getPathPatternsBytes(int index)
path_pattern is an ordered list of path template patterns for the desired value.int
getPathPatternsCount()
path_pattern is an ordered list of path template patterns for the desired value.com.google.protobuf.ProtocolStringList
getPathPatternsList()
path_pattern is an ordered list of path template patterns for the desired value.NameMatcher
getQueryParameters(int index)
List of query parameter names to try to match.int
getQueryParametersCount()
List of query parameter names to try to match.java.util.List<NameMatcher>
getQueryParametersList()
List of query parameter names to try to match.NameMatcherOrBuilder
getQueryParametersOrBuilder(int index)
List of query parameter names to try to match.java.util.List<? extends NameMatcherOrBuilder>
getQueryParametersOrBuilderList()
List of query parameter names to try to match.int
getSerializedSize()
int
hashCode()
private com.google.protobuf.MapField<java.lang.String,java.lang.String>
internalGetConstantKeys()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMapFieldReflection(int number)
boolean
isInitialized()
static HttpKeyBuilder.Builder
newBuilder()
static HttpKeyBuilder.Builder
newBuilder(HttpKeyBuilder prototype)
HttpKeyBuilder.Builder
newBuilderForType()
protected HttpKeyBuilder.Builder
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
static HttpKeyBuilder
parseDelimitedFrom(java.io.InputStream input)
static HttpKeyBuilder
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpKeyBuilder
parseFrom(byte[] data)
static HttpKeyBuilder
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpKeyBuilder
parseFrom(com.google.protobuf.ByteString data)
static HttpKeyBuilder
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpKeyBuilder
parseFrom(com.google.protobuf.CodedInputStream input)
static HttpKeyBuilder
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpKeyBuilder
parseFrom(java.io.InputStream input)
static HttpKeyBuilder
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpKeyBuilder
parseFrom(java.nio.ByteBuffer data)
static HttpKeyBuilder
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<HttpKeyBuilder>
parser()
HttpKeyBuilder.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
HOST_PATTERNS_FIELD_NUMBER
public static final int HOST_PATTERNS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
hostPatterns_
private com.google.protobuf.LazyStringArrayList hostPatterns_
-
PATH_PATTERNS_FIELD_NUMBER
public static final int PATH_PATTERNS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
pathPatterns_
private com.google.protobuf.LazyStringArrayList pathPatterns_
-
QUERY_PARAMETERS_FIELD_NUMBER
public static final int QUERY_PARAMETERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
queryParameters_
private java.util.List<NameMatcher> queryParameters_
-
HEADERS_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
headers_
private java.util.List<NameMatcher> headers_
-
CONSTANT_KEYS_FIELD_NUMBER
public static final int CONSTANT_KEYS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
constantKeys_
private com.google.protobuf.MapField<java.lang.String,java.lang.String> constantKeys_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final HttpKeyBuilder DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<HttpKeyBuilder> PARSER
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflection
in classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
getHostPatternsList
public com.google.protobuf.ProtocolStringList getHostPatternsList()
host_pattern is an ordered list of host template patterns for the desired value. If any host_pattern values are specified, then at least one must match, and the last one wins and sets any specified variables. A host consists of labels separated by dots. Each label is matched against the label in the pattern as follows: - "*": Matches any single label. - "**": Matches zero or more labels (first or last part of host only). - "{<name>=...}": One or more label capture, where "..." can be any template that does not include a capture. - "{<name>}": A single label capture. Identical to {<name>=*}. Examples: - "example.com": Only applies to the exact host example.com. - "*.example.com": Matches subdomains of example.com. - "**.example.com": matches example.com, and all levels of subdomains. - "{project}.example.com": Extracts the third level subdomain. - "{project=**}.example.com": Extracts the third level+ subdomains. - "{project=**}": Extracts the entire host.
repeated string host_patterns = 1;
- Specified by:
getHostPatternsList
in interfaceHttpKeyBuilderOrBuilder
- Returns:
- A list containing the hostPatterns.
-
getHostPatternsCount
public int getHostPatternsCount()
host_pattern is an ordered list of host template patterns for the desired value. If any host_pattern values are specified, then at least one must match, and the last one wins and sets any specified variables. A host consists of labels separated by dots. Each label is matched against the label in the pattern as follows: - "*": Matches any single label. - "**": Matches zero or more labels (first or last part of host only). - "{<name>=...}": One or more label capture, where "..." can be any template that does not include a capture. - "{<name>}": A single label capture. Identical to {<name>=*}. Examples: - "example.com": Only applies to the exact host example.com. - "*.example.com": Matches subdomains of example.com. - "**.example.com": matches example.com, and all levels of subdomains. - "{project}.example.com": Extracts the third level subdomain. - "{project=**}.example.com": Extracts the third level+ subdomains. - "{project=**}": Extracts the entire host.
repeated string host_patterns = 1;
- Specified by:
getHostPatternsCount
in interfaceHttpKeyBuilderOrBuilder
- Returns:
- The count of hostPatterns.
-
getHostPatterns
public java.lang.String getHostPatterns(int index)
host_pattern is an ordered list of host template patterns for the desired value. If any host_pattern values are specified, then at least one must match, and the last one wins and sets any specified variables. A host consists of labels separated by dots. Each label is matched against the label in the pattern as follows: - "*": Matches any single label. - "**": Matches zero or more labels (first or last part of host only). - "{<name>=...}": One or more label capture, where "..." can be any template that does not include a capture. - "{<name>}": A single label capture. Identical to {<name>=*}. Examples: - "example.com": Only applies to the exact host example.com. - "*.example.com": Matches subdomains of example.com. - "**.example.com": matches example.com, and all levels of subdomains. - "{project}.example.com": Extracts the third level subdomain. - "{project=**}.example.com": Extracts the third level+ subdomains. - "{project=**}": Extracts the entire host.
repeated string host_patterns = 1;
- Specified by:
getHostPatterns
in interfaceHttpKeyBuilderOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The hostPatterns at the given index.
-
getHostPatternsBytes
public com.google.protobuf.ByteString getHostPatternsBytes(int index)
host_pattern is an ordered list of host template patterns for the desired value. If any host_pattern values are specified, then at least one must match, and the last one wins and sets any specified variables. A host consists of labels separated by dots. Each label is matched against the label in the pattern as follows: - "*": Matches any single label. - "**": Matches zero or more labels (first or last part of host only). - "{<name>=...}": One or more label capture, where "..." can be any template that does not include a capture. - "{<name>}": A single label capture. Identical to {<name>=*}. Examples: - "example.com": Only applies to the exact host example.com. - "*.example.com": Matches subdomains of example.com. - "**.example.com": matches example.com, and all levels of subdomains. - "{project}.example.com": Extracts the third level subdomain. - "{project=**}.example.com": Extracts the third level+ subdomains. - "{project=**}": Extracts the entire host.
repeated string host_patterns = 1;
- Specified by:
getHostPatternsBytes
in interfaceHttpKeyBuilderOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the hostPatterns at the given index.
-
getPathPatternsList
public com.google.protobuf.ProtocolStringList getPathPatternsList()
path_pattern is an ordered list of path template patterns for the desired value. If any path_pattern values are specified, then at least one must match, and the last one wins and sets any specified variables. A path consists of segments separated by slashes. Each segment is matched against the segment in the pattern as follows: - "*": Matches any single segment. - "**": Matches zero or more segments (first or last part of path only). - "{<name>=...}": One or more segment capture, where "..." can be any template that does not include a capture. - "{<name>}": A single segment capture. Identical to {<name>=*}. A custom method may also be specified by appending ":" and the custom method name or "*" to indicate any custom method (including no custom method). For example, "/*/projects/{project_id}/**:*" extracts `{project_id}` for any version, resource and custom method that includes it. By default, any custom method will be matched. Examples: - "/v1/{name=messages/*}": extracts a name like "messages/12345". - "/v1/messages/{message_id}": extracts a message_id like "12345". - "/v1/users/{user_id}/messages/{message_id}": extracts two key values.
repeated string path_patterns = 2;
- Specified by:
getPathPatternsList
in interfaceHttpKeyBuilderOrBuilder
- Returns:
- A list containing the pathPatterns.
-
getPathPatternsCount
public int getPathPatternsCount()
path_pattern is an ordered list of path template patterns for the desired value. If any path_pattern values are specified, then at least one must match, and the last one wins and sets any specified variables. A path consists of segments separated by slashes. Each segment is matched against the segment in the pattern as follows: - "*": Matches any single segment. - "**": Matches zero or more segments (first or last part of path only). - "{<name>=...}": One or more segment capture, where "..." can be any template that does not include a capture. - "{<name>}": A single segment capture. Identical to {<name>=*}. A custom method may also be specified by appending ":" and the custom method name or "*" to indicate any custom method (including no custom method). For example, "/*/projects/{project_id}/**:*" extracts `{project_id}` for any version, resource and custom method that includes it. By default, any custom method will be matched. Examples: - "/v1/{name=messages/*}": extracts a name like "messages/12345". - "/v1/messages/{message_id}": extracts a message_id like "12345". - "/v1/users/{user_id}/messages/{message_id}": extracts two key values.
repeated string path_patterns = 2;
- Specified by:
getPathPatternsCount
in interfaceHttpKeyBuilderOrBuilder
- Returns:
- The count of pathPatterns.
-
getPathPatterns
public java.lang.String getPathPatterns(int index)
path_pattern is an ordered list of path template patterns for the desired value. If any path_pattern values are specified, then at least one must match, and the last one wins and sets any specified variables. A path consists of segments separated by slashes. Each segment is matched against the segment in the pattern as follows: - "*": Matches any single segment. - "**": Matches zero or more segments (first or last part of path only). - "{<name>=...}": One or more segment capture, where "..." can be any template that does not include a capture. - "{<name>}": A single segment capture. Identical to {<name>=*}. A custom method may also be specified by appending ":" and the custom method name or "*" to indicate any custom method (including no custom method). For example, "/*/projects/{project_id}/**:*" extracts `{project_id}` for any version, resource and custom method that includes it. By default, any custom method will be matched. Examples: - "/v1/{name=messages/*}": extracts a name like "messages/12345". - "/v1/messages/{message_id}": extracts a message_id like "12345". - "/v1/users/{user_id}/messages/{message_id}": extracts two key values.
repeated string path_patterns = 2;
- Specified by:
getPathPatterns
in interfaceHttpKeyBuilderOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The pathPatterns at the given index.
-
getPathPatternsBytes
public com.google.protobuf.ByteString getPathPatternsBytes(int index)
path_pattern is an ordered list of path template patterns for the desired value. If any path_pattern values are specified, then at least one must match, and the last one wins and sets any specified variables. A path consists of segments separated by slashes. Each segment is matched against the segment in the pattern as follows: - "*": Matches any single segment. - "**": Matches zero or more segments (first or last part of path only). - "{<name>=...}": One or more segment capture, where "..." can be any template that does not include a capture. - "{<name>}": A single segment capture. Identical to {<name>=*}. A custom method may also be specified by appending ":" and the custom method name or "*" to indicate any custom method (including no custom method). For example, "/*/projects/{project_id}/**:*" extracts `{project_id}` for any version, resource and custom method that includes it. By default, any custom method will be matched. Examples: - "/v1/{name=messages/*}": extracts a name like "messages/12345". - "/v1/messages/{message_id}": extracts a message_id like "12345". - "/v1/users/{user_id}/messages/{message_id}": extracts two key values.
repeated string path_patterns = 2;
- Specified by:
getPathPatternsBytes
in interfaceHttpKeyBuilderOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the pathPatterns at the given index.
-
getQueryParametersList
public java.util.List<NameMatcher> getQueryParametersList()
List of query parameter names to try to match. For example: ["parent", "name", "resource.name"] We extract all the specified query_parameters (case-sensitively). If any are marked as "required_match" and are not present, this keybuilder fails to match. If a given parameter appears multiple times (?foo=a&foo=b) we will report it as a comma-separated string (foo=a,b).
repeated .grpc.lookup.v1.NameMatcher query_parameters = 3;
- Specified by:
getQueryParametersList
in interfaceHttpKeyBuilderOrBuilder
-
getQueryParametersOrBuilderList
public java.util.List<? extends NameMatcherOrBuilder> getQueryParametersOrBuilderList()
List of query parameter names to try to match. For example: ["parent", "name", "resource.name"] We extract all the specified query_parameters (case-sensitively). If any are marked as "required_match" and are not present, this keybuilder fails to match. If a given parameter appears multiple times (?foo=a&foo=b) we will report it as a comma-separated string (foo=a,b).
repeated .grpc.lookup.v1.NameMatcher query_parameters = 3;
- Specified by:
getQueryParametersOrBuilderList
in interfaceHttpKeyBuilderOrBuilder
-
getQueryParametersCount
public int getQueryParametersCount()
List of query parameter names to try to match. For example: ["parent", "name", "resource.name"] We extract all the specified query_parameters (case-sensitively). If any are marked as "required_match" and are not present, this keybuilder fails to match. If a given parameter appears multiple times (?foo=a&foo=b) we will report it as a comma-separated string (foo=a,b).
repeated .grpc.lookup.v1.NameMatcher query_parameters = 3;
- Specified by:
getQueryParametersCount
in interfaceHttpKeyBuilderOrBuilder
-
getQueryParameters
public NameMatcher getQueryParameters(int index)
List of query parameter names to try to match. For example: ["parent", "name", "resource.name"] We extract all the specified query_parameters (case-sensitively). If any are marked as "required_match" and are not present, this keybuilder fails to match. If a given parameter appears multiple times (?foo=a&foo=b) we will report it as a comma-separated string (foo=a,b).
repeated .grpc.lookup.v1.NameMatcher query_parameters = 3;
- Specified by:
getQueryParameters
in interfaceHttpKeyBuilderOrBuilder
-
getQueryParametersOrBuilder
public NameMatcherOrBuilder getQueryParametersOrBuilder(int index)
List of query parameter names to try to match. For example: ["parent", "name", "resource.name"] We extract all the specified query_parameters (case-sensitively). If any are marked as "required_match" and are not present, this keybuilder fails to match. If a given parameter appears multiple times (?foo=a&foo=b) we will report it as a comma-separated string (foo=a,b).
repeated .grpc.lookup.v1.NameMatcher query_parameters = 3;
- Specified by:
getQueryParametersOrBuilder
in interfaceHttpKeyBuilderOrBuilder
-
getHeadersList
public java.util.List<NameMatcher> getHeadersList()
List of headers to try to match. We extract all the specified header values (case-insensitively). If any are marked as "required_match" and are not present, this keybuilder fails to match. If a given header appears multiple times in the request we will report it as a comma-separated string, in standard HTTP fashion.
repeated .grpc.lookup.v1.NameMatcher headers = 4;
- Specified by:
getHeadersList
in interfaceHttpKeyBuilderOrBuilder
-
getHeadersOrBuilderList
public java.util.List<? extends NameMatcherOrBuilder> getHeadersOrBuilderList()
List of headers to try to match. We extract all the specified header values (case-insensitively). If any are marked as "required_match" and are not present, this keybuilder fails to match. If a given header appears multiple times in the request we will report it as a comma-separated string, in standard HTTP fashion.
repeated .grpc.lookup.v1.NameMatcher headers = 4;
- Specified by:
getHeadersOrBuilderList
in interfaceHttpKeyBuilderOrBuilder
-
getHeadersCount
public int getHeadersCount()
List of headers to try to match. We extract all the specified header values (case-insensitively). If any are marked as "required_match" and are not present, this keybuilder fails to match. If a given header appears multiple times in the request we will report it as a comma-separated string, in standard HTTP fashion.
repeated .grpc.lookup.v1.NameMatcher headers = 4;
- Specified by:
getHeadersCount
in interfaceHttpKeyBuilderOrBuilder
-
getHeaders
public NameMatcher getHeaders(int index)
List of headers to try to match. We extract all the specified header values (case-insensitively). If any are marked as "required_match" and are not present, this keybuilder fails to match. If a given header appears multiple times in the request we will report it as a comma-separated string, in standard HTTP fashion.
repeated .grpc.lookup.v1.NameMatcher headers = 4;
- Specified by:
getHeaders
in interfaceHttpKeyBuilderOrBuilder
-
getHeadersOrBuilder
public NameMatcherOrBuilder getHeadersOrBuilder(int index)
List of headers to try to match. We extract all the specified header values (case-insensitively). If any are marked as "required_match" and are not present, this keybuilder fails to match. If a given header appears multiple times in the request we will report it as a comma-separated string, in standard HTTP fashion.
repeated .grpc.lookup.v1.NameMatcher headers = 4;
- Specified by:
getHeadersOrBuilder
in interfaceHttpKeyBuilderOrBuilder
-
internalGetConstantKeys
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetConstantKeys()
-
getConstantKeysCount
public int getConstantKeysCount()
Description copied from interface:HttpKeyBuilderOrBuilder
You can optionally set one or more specific key/value pairs to be added to the key_map. This can be useful to identify which builder built the key, for example if you are suppressing a lot of information from the URL, but need to separately cache and request URLs with that content.
map<string, string> constant_keys = 5;
- Specified by:
getConstantKeysCount
in interfaceHttpKeyBuilderOrBuilder
-
containsConstantKeys
public boolean containsConstantKeys(java.lang.String key)
You can optionally set one or more specific key/value pairs to be added to the key_map. This can be useful to identify which builder built the key, for example if you are suppressing a lot of information from the URL, but need to separately cache and request URLs with that content.
map<string, string> constant_keys = 5;
- Specified by:
containsConstantKeys
in interfaceHttpKeyBuilderOrBuilder
-
getConstantKeys
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getConstantKeys()
Deprecated.UsegetConstantKeysMap()
instead.- Specified by:
getConstantKeys
in interfaceHttpKeyBuilderOrBuilder
-
getConstantKeysMap
public java.util.Map<java.lang.String,java.lang.String> getConstantKeysMap()
You can optionally set one or more specific key/value pairs to be added to the key_map. This can be useful to identify which builder built the key, for example if you are suppressing a lot of information from the URL, but need to separately cache and request URLs with that content.
map<string, string> constant_keys = 5;
- Specified by:
getConstantKeysMap
in interfaceHttpKeyBuilderOrBuilder
-
getConstantKeysOrDefault
public java.lang.String getConstantKeysOrDefault(java.lang.String key, java.lang.String defaultValue)
You can optionally set one or more specific key/value pairs to be added to the key_map. This can be useful to identify which builder built the key, for example if you are suppressing a lot of information from the URL, but need to separately cache and request URLs with that content.
map<string, string> constant_keys = 5;
- Specified by:
getConstantKeysOrDefault
in interfaceHttpKeyBuilderOrBuilder
-
getConstantKeysOrThrow
public java.lang.String getConstantKeysOrThrow(java.lang.String key)
You can optionally set one or more specific key/value pairs to be added to the key_map. This can be useful to identify which builder built the key, for example if you are suppressing a lot of information from the URL, but need to separately cache and request URLs with that content.
map<string, string> constant_keys = 5;
- Specified by:
getConstantKeysOrThrow
in interfaceHttpKeyBuilderOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HttpKeyBuilder parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpKeyBuilder parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpKeyBuilder parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpKeyBuilder parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpKeyBuilder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpKeyBuilder parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpKeyBuilder parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static HttpKeyBuilder parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static HttpKeyBuilder parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static HttpKeyBuilder parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static HttpKeyBuilder parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static HttpKeyBuilder parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public HttpKeyBuilder.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static HttpKeyBuilder.Builder newBuilder()
-
newBuilder
public static HttpKeyBuilder.Builder newBuilder(HttpKeyBuilder prototype)
-
toBuilder
public HttpKeyBuilder.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HttpKeyBuilder.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static HttpKeyBuilder getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<HttpKeyBuilder> parser()
-
getParserForType
public com.google.protobuf.Parser<HttpKeyBuilder> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public HttpKeyBuilder getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-