Package io.grpc.lookup.v1
Class GrpcKeyBuilder
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.grpc.lookup.v1.GrpcKeyBuilder
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,GrpcKeyBuilderOrBuilder
,Serializable
public final class GrpcKeyBuilder
extends com.google.protobuf.GeneratedMessage
implements GrpcKeyBuilderOrBuilder
A GrpcKeyBuilder applies to a given gRPC service, name, and headers.Protobuf type
grpc.lookup.v1.GrpcKeyBuilder
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A GrpcKeyBuilder applies to a given gRPC service, name, and headers.private static final class
static final class
If you wish to include the host, service, or method names as keys in the generated RouteLookupRequest, specify key names to use in the extra_keys submessage.static interface
static final class
To match, one of the given Name fields must match; the service and method fields are specified as fixed strings.static interface
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 TypeFieldDescriptionprivate int
static final int
private static final GrpcKeyBuilder
static final int
private GrpcKeyBuilder.ExtraKeys
private List
<NameMatcher> static final int
private byte
private List
<GrpcKeyBuilder.Name> static final int
private static final com.google.protobuf.Parser
<GrpcKeyBuilder> 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
GrpcKeyBuilder
(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 GrpcKeyBuilder
static final com.google.protobuf.Descriptors.Descriptor
.grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
.grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
getHeaders
(int index) Extract keys from all listed headers.int
Extract keys from all listed headers.Extract keys from all listed headers.getHeadersOrBuilder
(int index) Extract keys from all listed headers.List
<? extends NameMatcherOrBuilder> Extract keys from all listed headers.getNames
(int index) repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
int
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
getNamesOrBuilder
(int index) repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
List
<? extends GrpcKeyBuilder.NameOrBuilder> repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
com.google.protobuf.Parser
<GrpcKeyBuilder> int
boolean
.grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
int
hashCode()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMapFieldReflection
(int number) final boolean
static GrpcKeyBuilder.Builder
static GrpcKeyBuilder.Builder
newBuilder
(GrpcKeyBuilder prototype) protected GrpcKeyBuilder.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static GrpcKeyBuilder
parseDelimitedFrom
(InputStream input) static GrpcKeyBuilder
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcKeyBuilder
parseFrom
(byte[] data) static GrpcKeyBuilder
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcKeyBuilder
parseFrom
(com.google.protobuf.ByteString data) static GrpcKeyBuilder
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcKeyBuilder
parseFrom
(com.google.protobuf.CodedInputStream input) static GrpcKeyBuilder
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcKeyBuilder
parseFrom
(InputStream input) static GrpcKeyBuilder
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcKeyBuilder
parseFrom
(ByteBuffer data) static GrpcKeyBuilder
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser
<GrpcKeyBuilder> 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:
-
bitField0_
private int bitField0_ -
NAMES_FIELD_NUMBER
public static final int NAMES_FIELD_NUMBER- See Also:
-
names_
-
EXTRA_KEYS_FIELD_NUMBER
public static final int EXTRA_KEYS_FIELD_NUMBER- See Also:
-
extraKeys_
-
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
-
GrpcKeyBuilder
private GrpcKeyBuilder(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
GrpcKeyBuilder
private GrpcKeyBuilder()
-
-
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
-
getNamesList
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
- Specified by:
getNamesList
in interfaceGrpcKeyBuilderOrBuilder
-
getNamesOrBuilderList
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
- Specified by:
getNamesOrBuilderList
in interfaceGrpcKeyBuilderOrBuilder
-
getNamesCount
public int getNamesCount()repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
- Specified by:
getNamesCount
in interfaceGrpcKeyBuilderOrBuilder
-
getNames
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
- Specified by:
getNames
in interfaceGrpcKeyBuilderOrBuilder
-
getNamesOrBuilder
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
- Specified by:
getNamesOrBuilder
in interfaceGrpcKeyBuilderOrBuilder
-
hasExtraKeys
public boolean hasExtraKeys().grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
- Specified by:
hasExtraKeys
in interfaceGrpcKeyBuilderOrBuilder
- Returns:
- Whether the extraKeys field is set.
-
getExtraKeys
.grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
- Specified by:
getExtraKeys
in interfaceGrpcKeyBuilderOrBuilder
- Returns:
- The extraKeys.
-
getExtraKeysOrBuilder
.grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
- Specified by:
getExtraKeysOrBuilder
in interfaceGrpcKeyBuilderOrBuilder
-
getHeadersList
Extract keys from all listed headers. For gRPC, it is an error to specify "required_match" on the NameMatcher protos.
repeated .grpc.lookup.v1.NameMatcher headers = 2;
- Specified by:
getHeadersList
in interfaceGrpcKeyBuilderOrBuilder
-
getHeadersOrBuilderList
Extract keys from all listed headers. For gRPC, it is an error to specify "required_match" on the NameMatcher protos.
repeated .grpc.lookup.v1.NameMatcher headers = 2;
- Specified by:
getHeadersOrBuilderList
in interfaceGrpcKeyBuilderOrBuilder
-
getHeadersCount
public int getHeadersCount()Extract keys from all listed headers. For gRPC, it is an error to specify "required_match" on the NameMatcher protos.
repeated .grpc.lookup.v1.NameMatcher headers = 2;
- Specified by:
getHeadersCount
in interfaceGrpcKeyBuilderOrBuilder
-
getHeaders
Extract keys from all listed headers. For gRPC, it is an error to specify "required_match" on the NameMatcher protos.
repeated .grpc.lookup.v1.NameMatcher headers = 2;
- Specified by:
getHeaders
in interfaceGrpcKeyBuilderOrBuilder
-
getHeadersOrBuilder
Extract keys from all listed headers. For gRPC, it is an error to specify "required_match" on the NameMatcher protos.
repeated .grpc.lookup.v1.NameMatcher headers = 2;
- Specified by:
getHeadersOrBuilder
in interfaceGrpcKeyBuilderOrBuilder
-
internalGetConstantKeys
-
getConstantKeysCount
public int getConstantKeysCount()Description copied from interface:GrpcKeyBuilderOrBuilder
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 the actual method, but need to separately cache and request all the matched methods.
map<string, string> constant_keys = 4;
- Specified by:
getConstantKeysCount
in interfaceGrpcKeyBuilderOrBuilder
-
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 the actual method, but need to separately cache and request all the matched methods.
map<string, string> constant_keys = 4;
- Specified by:
containsConstantKeys
in interfaceGrpcKeyBuilderOrBuilder
-
getConstantKeys
Deprecated.UsegetConstantKeysMap()
instead.- Specified by:
getConstantKeys
in interfaceGrpcKeyBuilderOrBuilder
-
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 the actual method, but need to separately cache and request all the matched methods.
map<string, string> constant_keys = 4;
- Specified by:
getConstantKeysMap
in interfaceGrpcKeyBuilderOrBuilder
-
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 the actual method, but need to separately cache and request all the matched methods.
map<string, string> constant_keys = 4;
- Specified by:
getConstantKeysOrDefault
in interfaceGrpcKeyBuilderOrBuilder
-
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 the actual method, but need to separately cache and request all the matched methods.
map<string, string> constant_keys = 4;
- Specified by:
getConstantKeysOrThrow
in interfaceGrpcKeyBuilderOrBuilder
-
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 GrpcKeyBuilder parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcKeyBuilder parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcKeyBuilder parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcKeyBuilder parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcKeyBuilder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcKeyBuilder parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GrpcKeyBuilder parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static GrpcKeyBuilder parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static GrpcKeyBuilder parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GrpcKeyBuilder 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 GrpcKeyBuilder.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
-