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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsConstantKeys(java.lang.String key)
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>
getConstantKeys()
Deprecated.int
getConstantKeysCount()
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.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.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.GrpcKeyBuilder.ExtraKeys
getExtraKeys()
.grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
GrpcKeyBuilder.ExtraKeysOrBuilder
getExtraKeysOrBuilder()
.grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
NameMatcher
getHeaders(int index)
Extract keys from all listed headers.int
getHeadersCount()
Extract keys from all listed headers.java.util.List<NameMatcher>
getHeadersList()
Extract keys from all listed headers.NameMatcherOrBuilder
getHeadersOrBuilder(int index)
Extract keys from all listed headers.java.util.List<? extends NameMatcherOrBuilder>
getHeadersOrBuilderList()
Extract keys from all listed headers.GrpcKeyBuilder.Name
getNames(int index)
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
int
getNamesCount()
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
java.util.List<GrpcKeyBuilder.Name>
getNamesList()
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
GrpcKeyBuilder.NameOrBuilder
getNamesOrBuilder(int index)
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
java.util.List<? extends GrpcKeyBuilder.NameOrBuilder>
getNamesOrBuilderList()
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
boolean
hasExtraKeys()
.grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getNamesList
java.util.List<GrpcKeyBuilder.Name> getNamesList()
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
-
getNames
GrpcKeyBuilder.Name getNames(int index)
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
-
getNamesCount
int getNamesCount()
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
-
getNamesOrBuilderList
java.util.List<? extends GrpcKeyBuilder.NameOrBuilder> getNamesOrBuilderList()
repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
-
getNamesOrBuilder
GrpcKeyBuilder.NameOrBuilder getNamesOrBuilder(int index)
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
java.util.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
NameMatcher getHeaders(int index)
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
java.util.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
NameMatcherOrBuilder getHeadersOrBuilder(int index)
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
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 the actual method, but need to separately cache and request all the matched methods.
map<string, string> constant_keys = 4;
-
getConstantKeys
@Deprecated java.util.Map<java.lang.String,java.lang.String> getConstantKeys()
Deprecated.UsegetConstantKeysMap()
instead.
-
getConstantKeysMap
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 the actual method, but need to separately cache and request all the matched methods.
map<string, string> constant_keys = 4;
-
getConstantKeysOrDefault
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 the actual method, but need to separately cache and request all the matched methods.
map<string, string> constant_keys = 4;
-
getConstantKeysOrThrow
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 the actual method, but need to separately cache and request all the matched methods.
map<string, string> constant_keys = 4;
-
-