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 classHttpKeyBuilder.BuilderAn HttpKeyBuilder applies to a given HTTP URL and headers.private static classHttpKeyBuilder.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 intCONSTANT_KEYS_FIELD_NUMBERprivate com.google.protobuf.MapField<java.lang.String,java.lang.String>constantKeys_private static HttpKeyBuilderDEFAULT_INSTANCEprivate java.util.List<NameMatcher>headers_static intHEADERS_FIELD_NUMBERstatic intHOST_PATTERNS_FIELD_NUMBERprivate com.google.protobuf.LazyStringArrayListhostPatterns_private bytememoizedIsInitializedprivate static com.google.protobuf.Parser<HttpKeyBuilder>PARSERstatic intPATH_PATTERNS_FIELD_NUMBERprivate com.google.protobuf.LazyStringArrayListpathPatterns_static intQUERY_PARAMETERS_FIELD_NUMBERprivate java.util.List<NameMatcher>queryParameters_private static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description privateHttpKeyBuilder()privateHttpKeyBuilder(com.google.protobuf.GeneratedMessage.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsConstantKeys(java.lang.String key)You can optionally set one or more specific key/value pairs to be added to the key_map.booleanequals(java.lang.Object obj)java.util.Map<java.lang.String,java.lang.String>getConstantKeys()Deprecated.intgetConstantKeysCount()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.StringgetConstantKeysOrDefault(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.StringgetConstantKeysOrThrow(java.lang.String key)You can optionally set one or more specific key/value pairs to be added to the key_map.static HttpKeyBuildergetDefaultInstance()HttpKeyBuildergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()NameMatchergetHeaders(int index)List of headers to try to match.intgetHeadersCount()List of headers to try to match.java.util.List<NameMatcher>getHeadersList()List of headers to try to match.NameMatcherOrBuildergetHeadersOrBuilder(int index)List of headers to try to match.java.util.List<? extends NameMatcherOrBuilder>getHeadersOrBuilderList()List of headers to try to match.java.lang.StringgetHostPatterns(int index)host_pattern is an ordered list of host template patterns for the desired value.com.google.protobuf.ByteStringgetHostPatternsBytes(int index)host_pattern is an ordered list of host template patterns for the desired value.intgetHostPatternsCount()host_pattern is an ordered list of host template patterns for the desired value.com.google.protobuf.ProtocolStringListgetHostPatternsList()host_pattern is an ordered list of host template patterns for the desired value.com.google.protobuf.Parser<HttpKeyBuilder>getParserForType()java.lang.StringgetPathPatterns(int index)path_pattern is an ordered list of path template patterns for the desired value.com.google.protobuf.ByteStringgetPathPatternsBytes(int index)path_pattern is an ordered list of path template patterns for the desired value.intgetPathPatternsCount()path_pattern is an ordered list of path template patterns for the desired value.com.google.protobuf.ProtocolStringListgetPathPatternsList()path_pattern is an ordered list of path template patterns for the desired value.NameMatchergetQueryParameters(int index)List of query parameter names to try to match.intgetQueryParametersCount()List of query parameter names to try to match.java.util.List<NameMatcher>getQueryParametersList()List of query parameter names to try to match.NameMatcherOrBuildergetQueryParametersOrBuilder(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.intgetSerializedSize()inthashCode()private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetConstantKeys()protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static HttpKeyBuilder.BuildernewBuilder()static HttpKeyBuilder.BuildernewBuilder(HttpKeyBuilder prototype)HttpKeyBuilder.BuildernewBuilderForType()protected HttpKeyBuilder.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static HttpKeyBuilderparseDelimitedFrom(java.io.InputStream input)static HttpKeyBuilderparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpKeyBuilderparseFrom(byte[] data)static HttpKeyBuilderparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpKeyBuilderparseFrom(com.google.protobuf.ByteString data)static HttpKeyBuilderparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpKeyBuilderparseFrom(com.google.protobuf.CodedInputStream input)static HttpKeyBuilderparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpKeyBuilderparseFrom(java.io.InputStream input)static HttpKeyBuilderparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpKeyBuilderparseFrom(java.nio.ByteBuffer data)static HttpKeyBuilderparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<HttpKeyBuilder>parser()HttpKeyBuilder.BuildertoBuilder()voidwriteTo(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:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
getHostPatternsListin 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:
getHostPatternsCountin 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:
getHostPatternsin 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:
getHostPatternsBytesin 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:
getPathPatternsListin 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:
getPathPatternsCountin 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:
getPathPatternsin 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:
getPathPatternsBytesin 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:
getQueryParametersListin 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:
getQueryParametersOrBuilderListin 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:
getQueryParametersCountin 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:
getQueryParametersin 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:
getQueryParametersOrBuilderin 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:
getHeadersListin 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:
getHeadersOrBuilderListin 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:
getHeadersCountin 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:
getHeadersin 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:
getHeadersOrBuilderin interfaceHttpKeyBuilderOrBuilder
-
internalGetConstantKeys
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetConstantKeys()
-
getConstantKeysCount
public int getConstantKeysCount()
Description copied from interface:HttpKeyBuilderOrBuilderYou 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:
getConstantKeysCountin 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:
containsConstantKeysin interfaceHttpKeyBuilderOrBuilder
-
getConstantKeys
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getConstantKeys()
Deprecated.UsegetConstantKeysMap()instead.- Specified by:
getConstantKeysin 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:
getConstantKeysMapin 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:
getConstantKeysOrDefaultin 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:
getConstantKeysOrThrowin interfaceHttpKeyBuilderOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HttpKeyBuilder.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public HttpKeyBuilder getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-