Class MethodName (2.43.0)

public abstract class MethodName

A value class to represent the name of the RPC method in an ApiTracer.

Inheritance

java.lang.Object > MethodName

Static Methods

of(String serviceName, String methodName)

public static MethodName of(String serviceName, String methodName)

Creates a new instance of the RPC method name.

Parameters
NameDescription
serviceNameString

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.

methodNameString

The name of the logical operation being traced.

Returns
TypeDescription
MethodName

Constructors

MethodName()

public MethodName()

Methods

getMethodName()

public abstract String getMethodName()

The name of the logical operation being traced. ie. ReadRows.

Returns
TypeDescription
String

getServiceName()

public abstract String getServiceName()

The name of the service. ie BigtableData

Returns
TypeDescription
String

toString()

public String toString()
Returns
TypeDescription
String
Overrides