Package com.google.gapic.metadata
Interface GapicMetadata.ServiceForTransportOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GapicMetadata.ServiceForTransport,GapicMetadata.ServiceForTransport.Builder
- Enclosing class:
- GapicMetadata
public static interface GapicMetadata.ServiceForTransportOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsClients(String key) Map of transport name to ServiceAsClient.The API version for the interface definition found in the `google.api.api_version` annotation of this proto-defined service during code generation.com.google.protobuf.ByteStringThe API version for the interface definition found in the `google.api.api_version` annotation of this proto-defined service during code generation.Deprecated.intMap of transport name to ServiceAsClient.Map of transport name to ServiceAsClient.getClientsOrDefault(String key, GapicMetadata.ServiceAsClient defaultValue) Map of transport name to ServiceAsClient.getClientsOrThrow(String key) Map of transport name to ServiceAsClient.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getClientsCount
int getClientsCount()Map of transport name to ServiceAsClient. The key name is the transport, lower-cased with no separators (e.g. "grpc", "rest").
map<string, .google.gapic.metadata.GapicMetadata.ServiceAsClient> clients = 1; -
containsClients
Map of transport name to ServiceAsClient. The key name is the transport, lower-cased with no separators (e.g. "grpc", "rest").
map<string, .google.gapic.metadata.GapicMetadata.ServiceAsClient> clients = 1; -
getClients
Deprecated.UsegetClientsMap()instead. -
getClientsMap
Map<String,GapicMetadata.ServiceAsClient> getClientsMap()Map of transport name to ServiceAsClient. The key name is the transport, lower-cased with no separators (e.g. "grpc", "rest").
map<string, .google.gapic.metadata.GapicMetadata.ServiceAsClient> clients = 1; -
getClientsOrDefault
GapicMetadata.ServiceAsClient getClientsOrDefault(String key, GapicMetadata.ServiceAsClient defaultValue) Map of transport name to ServiceAsClient. The key name is the transport, lower-cased with no separators (e.g. "grpc", "rest").
map<string, .google.gapic.metadata.GapicMetadata.ServiceAsClient> clients = 1; -
getClientsOrThrow
Map of transport name to ServiceAsClient. The key name is the transport, lower-cased with no separators (e.g. "grpc", "rest").
map<string, .google.gapic.metadata.GapicMetadata.ServiceAsClient> clients = 1; -
getApiVersion
String getApiVersion()The API version for the interface definition found in the `google.api.api_version` annotation of this proto-defined service during code generation. This is the value populated by the client in the API version request parameter as per [AIP-4236](https://google.aip.dev/client-libraries/4236).
string api_version = 2;- Returns:
- The apiVersion.
-
getApiVersionBytes
com.google.protobuf.ByteString getApiVersionBytes()The API version for the interface definition found in the `google.api.api_version` annotation of this proto-defined service during code generation. This is the value populated by the client in the API version request parameter as per [AIP-4236](https://google.aip.dev/client-libraries/4236).
string api_version = 2;- Returns:
- The bytes for apiVersion.
-