Class MethodName

java.lang.Object
com.google.api.gax.tracing.MethodName

@BetaApi @InternalApi public abstract class MethodName extends Object
A value class to represent the name of the RPC method in an ApiTracer.
  • Constructor Details

    • MethodName

      public MethodName()
  • Method Details

    • of

      public static MethodName of(String serviceName, String methodName)
      Creates a new instance of the RPC method name.
      Parameters:
      serviceName - The name of the service. In general this will be GAPIC generated service name StubSettings.getServiceName(). However, in some cases, when the GAPIC generated service is wrapped, this will be overridden to specify the manually written wrapper's name.
      methodName - The name of the logical operation being traced.
    • getServiceName

      public abstract String getServiceName()
      The name of the service. ie BigtableData
    • getMethodName

      public abstract String getMethodName()
      The name of the logical operation being traced. ie. ReadRows.
    • toString

      public String toString()
      Overrides:
      toString in class Object