Package io.grpc.lookup.v1
Interface GrpcKeyBuilderOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GrpcKeyBuilder
,GrpcKeyBuilder.Builder
public interface GrpcKeyBuilderOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
You can optionally set one or more specific key/value pairs to be added to the key_map.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..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;
boolean
.grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getNamesList
List<GrpcKeyBuilder.Name> getNamesList()repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
-
getNames
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
-
getNamesCount
int getNamesCount()repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
-
getNamesOrBuilderList
List<? extends GrpcKeyBuilder.NameOrBuilder> getNamesOrBuilderList()repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
-
getNamesOrBuilder
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
-
hasExtraKeys
boolean hasExtraKeys().grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
- Returns:
- Whether the extraKeys field is set.
-
getExtraKeys
GrpcKeyBuilder.ExtraKeys getExtraKeys().grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
- Returns:
- The extraKeys.
-
getExtraKeysOrBuilder
GrpcKeyBuilder.ExtraKeysOrBuilder getExtraKeysOrBuilder().grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
-
getHeadersList
List<NameMatcher> 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;
-
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;
-
getHeadersCount
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;
-
getHeadersOrBuilderList
List<? extends NameMatcherOrBuilder> 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;
-
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;
-
getConstantKeysCount
int getConstantKeysCount()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;
-
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;
-
getConstantKeys
Deprecated.UsegetConstantKeysMap()
instead. -
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;
-
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;
-
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;
-