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
@Generated
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 classA GrpcKeyBuilder applies to a given gRPC service, name, and headers.private static final classstatic final classIf 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 interfacestatic final classTo match, one of the given Name fields must match; the service and method fields are specified as fixed strings.static interfaceNested 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.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intstatic final intprivate static final GrpcKeyBuilderstatic final intprivate GrpcKeyBuilder.ExtraKeysprivate List<NameMatcher> static final intprivate byteprivate List<GrpcKeyBuilder.Name> static final intprivate static final com.google.protobuf.Parser<GrpcKeyBuilder> private static final longFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateGrpcKeyBuilder(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanYou can optionally set one or more specific key/value pairs to be added to the key_map.booleanDeprecated.intYou 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 GrpcKeyBuilderstatic final com.google.protobuf.Descriptors.Descriptorcom.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.intExtract 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;intrepeated .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> intboolean.grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic GrpcKeyBuilder.Builderstatic GrpcKeyBuilder.BuildernewBuilder(GrpcKeyBuilder prototype) protected GrpcKeyBuilder.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static GrpcKeyBuilderparseDelimitedFrom(InputStream input) static GrpcKeyBuilderparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcKeyBuilderparseFrom(byte[] data) static GrpcKeyBuilderparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcKeyBuilderparseFrom(com.google.protobuf.ByteString data) static GrpcKeyBuilderparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcKeyBuilderparseFrom(com.google.protobuf.CodedInputStream input) static GrpcKeyBuilderparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcKeyBuilderparseFrom(InputStream input) static GrpcKeyBuilderparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcKeyBuilderparseFrom(ByteBuffer data) static GrpcKeyBuilderparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GrpcKeyBuilder> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, 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() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
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
-
getNamesList
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;- Specified by:
getNamesListin interfaceGrpcKeyBuilderOrBuilder
-
getNamesOrBuilderList
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;- Specified by:
getNamesOrBuilderListin interfaceGrpcKeyBuilderOrBuilder
-
getNamesCount
public int getNamesCount()repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;- Specified by:
getNamesCountin interfaceGrpcKeyBuilderOrBuilder
-
getNames
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;- Specified by:
getNamesin interfaceGrpcKeyBuilderOrBuilder
-
getNamesOrBuilder
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;- Specified by:
getNamesOrBuilderin interfaceGrpcKeyBuilderOrBuilder
-
hasExtraKeys
public boolean hasExtraKeys().grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;- Specified by:
hasExtraKeysin interfaceGrpcKeyBuilderOrBuilder- Returns:
- Whether the extraKeys field is set.
-
getExtraKeys
.grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;- Specified by:
getExtraKeysin interfaceGrpcKeyBuilderOrBuilder- Returns:
- The extraKeys.
-
getExtraKeysOrBuilder
.grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;- Specified by:
getExtraKeysOrBuilderin 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:
getHeadersListin 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:
getHeadersOrBuilderListin 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:
getHeadersCountin 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:
getHeadersin 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:
getHeadersOrBuilderin interfaceGrpcKeyBuilderOrBuilder
-
internalGetConstantKeys
-
getConstantKeysCount
public int getConstantKeysCount()Description copied from interface:GrpcKeyBuilderOrBuilderYou 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:
getConstantKeysCountin 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:
containsConstantKeysin interfaceGrpcKeyBuilderOrBuilder
-
getConstantKeys
Deprecated.UsegetConstantKeysMap()instead.- Specified by:
getConstantKeysin 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:
getConstantKeysMapin 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:
getConstantKeysOrDefaultin 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:
getConstantKeysOrThrowin interfaceGrpcKeyBuilderOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GrpcKeyBuilder.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-