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
,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 type
grpc.lookup.v1.HttpKeyBuilder
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
An HttpKeyBuilder applies to a given HTTP URL and headers.private static final class
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>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
private static final HttpKeyBuilder
private List
<NameMatcher> static final int
static final int
private com.google.protobuf.LazyStringArrayList
private byte
private static final com.google.protobuf.Parser
<HttpKeyBuilder> static final int
private com.google.protobuf.LazyStringArrayList
static final int
private List
<NameMatcher> private static final long
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
private
HttpKeyBuilder
(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
You can optionally set one or more specific key/value pairs to be added to the key_map.boolean
Deprecated.int
You can optionally set one or more specific key/value pairs to be added to the key_map.You can optionally set one or more specific key/value pairs to be added to the key_map.getConstantKeysOrDefault
(String key, String defaultValue) You can optionally set one or more specific key/value pairs to be added to the key_map.You can optionally set one or more specific key/value pairs to be added to the key_map.static HttpKeyBuilder
static final com.google.protobuf.Descriptors.Descriptor
getHeaders
(int index) List of headers to try to match.int
List of headers to try to match.List of headers to try to match.getHeadersOrBuilder
(int index) List of headers to try to match.List
<? extends NameMatcherOrBuilder> List of headers to try to match.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
host_pattern is an ordered list of host template patterns for the desired value.com.google.protobuf.ProtocolStringList
host_pattern is an ordered list of host template patterns for the desired value.com.google.protobuf.Parser
<HttpKeyBuilder> 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
path_pattern is an ordered list of path template patterns for the desired value.com.google.protobuf.ProtocolStringList
path_pattern is an ordered list of path template patterns for the desired value.getQueryParameters
(int index) List of query parameter names to try to match.int
List of query parameter names to try to match.List of query parameter names to try to match.getQueryParametersOrBuilder
(int index) List of query parameter names to try to match.List
<? extends NameMatcherOrBuilder> List of query parameter names to try to match.int
int
hashCode()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMapFieldReflection
(int number) final boolean
static HttpKeyBuilder.Builder
static HttpKeyBuilder.Builder
newBuilder
(HttpKeyBuilder prototype) protected HttpKeyBuilder.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static HttpKeyBuilder
parseDelimitedFrom
(InputStream input) static HttpKeyBuilder
parseDelimitedFrom
(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
(InputStream input) static HttpKeyBuilder
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpKeyBuilder
parseFrom
(ByteBuffer data) static HttpKeyBuilder
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser
<HttpKeyBuilder> parser()
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
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
HOST_PATTERNS_FIELD_NUMBER
public static final int HOST_PATTERNS_FIELD_NUMBER- See Also:
-
hostPatterns_
private com.google.protobuf.LazyStringArrayList hostPatterns_ -
PATH_PATTERNS_FIELD_NUMBER
public static final int PATH_PATTERNS_FIELD_NUMBER- See Also:
-
pathPatterns_
private com.google.protobuf.LazyStringArrayList pathPatterns_ -
QUERY_PARAMETERS_FIELD_NUMBER
public static final int QUERY_PARAMETERS_FIELD_NUMBER- See Also:
-
queryParameters_
-
HEADERS_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER- See Also:
-
headers_
-
CONSTANT_KEYS_FIELD_NUMBER
public static final int CONSTANT_KEYS_FIELD_NUMBER- See Also:
-
constantKeys_
-
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
HttpKeyBuilder
private HttpKeyBuilder(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
HttpKeyBuilder
private HttpKeyBuilder()
-
-
Method Details
-
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
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
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
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
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
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
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
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
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
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
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
-
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
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.UsegetConstantKeysMap()
instead.- Specified by:
getConstantKeys
in interfaceHttpKeyBuilderOrBuilder
-
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
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
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
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
- 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(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpKeyBuilder parseFrom(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
- Throws:
IOException
-
parseFrom
public static HttpKeyBuilder parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static HttpKeyBuilder parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static HttpKeyBuilder parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static HttpKeyBuilder parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
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
-
parser
-
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
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-