Class GapicMetadata.ServiceForTransport

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.gapic.metadata.GapicMetadata.ServiceForTransport
All Implemented Interfaces:
GapicMetadata.ServiceForTransportOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
GapicMetadata

public static final class GapicMetadata.ServiceForTransport extends com.google.protobuf.GeneratedMessageV3 implements GapicMetadata.ServiceForTransportOrBuilder
 A map from a transport name to ServiceAsClient, which allows
 listing information about the client objects that implement the
 parent RPC service for the specified transport.
 
Protobuf type google.gapic.metadata.GapicMetadata.ServiceForTransport
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getClientsCount

      public int getClientsCount()
      Description copied from interface: GapicMetadata.ServiceForTransportOrBuilder
       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;
      Specified by:
      getClientsCount in interface GapicMetadata.ServiceForTransportOrBuilder
    • containsClients

      public boolean containsClients(String key)
       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;
      Specified by:
      containsClients in interface GapicMetadata.ServiceForTransportOrBuilder
    • getClients

      Deprecated.
      Use getClientsMap() instead.
      Specified by:
      getClients in interface GapicMetadata.ServiceForTransportOrBuilder
    • getClientsMap

      public 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;
      Specified by:
      getClientsMap in interface GapicMetadata.ServiceForTransportOrBuilder
    • getClientsOrDefault

      public 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;
      Specified by:
      getClientsOrDefault in interface GapicMetadata.ServiceForTransportOrBuilder
    • getClientsOrThrow

      public GapicMetadata.ServiceAsClient getClientsOrThrow(String key)
       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;
      Specified by:
      getClientsOrThrow in interface GapicMetadata.ServiceForTransportOrBuilder
    • getApiVersion

      public 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;
      Specified by:
      getApiVersion in interface GapicMetadata.ServiceForTransportOrBuilder
      Returns:
      The apiVersion.
    • getApiVersionBytes

      public 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;
      Specified by:
      getApiVersionBytes in interface GapicMetadata.ServiceForTransportOrBuilder
      Returns:
      The bytes for apiVersion.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static GapicMetadata.ServiceForTransport parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GapicMetadata.ServiceForTransport parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GapicMetadata.ServiceForTransport parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GapicMetadata.ServiceForTransport parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GapicMetadata.ServiceForTransport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GapicMetadata.ServiceForTransport parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GapicMetadata.ServiceForTransport parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GapicMetadata.ServiceForTransport parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GapicMetadata.ServiceForTransport parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GapicMetadata.ServiceForTransport parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GapicMetadata.ServiceForTransport parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GapicMetadata.ServiceForTransport parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public GapicMetadata.ServiceForTransport.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static GapicMetadata.ServiceForTransport.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected GapicMetadata.ServiceForTransport.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static GapicMetadata.ServiceForTransport getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GapicMetadata.ServiceForTransport> parser()
    • getParserForType

      public com.google.protobuf.Parser<GapicMetadata.ServiceForTransport> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public GapicMetadata.ServiceForTransport getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder