Annotation Interface ServiceClientDescriptor


@Retention(RUNTIME) @Target(METHOD) public @interface ServiceClientDescriptor
Declares a factory method for building service clients. The return type of the method should be the service client class. The service client must support a method create(ClientSettings).
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends com.google.api.gax.rpc.ClientSettings>
    Specifies the instance of ClientSettings to use with the service client returned by the annotated method.
  • Element Details

    • settingsClass

      Class<? extends com.google.api.gax.rpc.ClientSettings> settingsClass
      Specifies the instance of ClientSettings to use with the service client returned by the annotated method. The instance must support a static method newBuilder() which returns ClientSettings.Builder.