Class ServiceUsageGrpc (2.42.0)

public final class ServiceUsageGrpc

Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use. See Service Usage API

Inheritance

java.lang.Object > ServiceUsageGrpc

Static Fields

SERVICE_NAME

public static final String SERVICE_NAME
Field Value
Type Description
String

Static Methods

bindService(ServiceUsageGrpc.AsyncService service)

public static final ServerServiceDefinition bindService(ServiceUsageGrpc.AsyncService service)
Parameter
Name Description
service ServiceUsageGrpc.AsyncService
Returns
Type Description
io.grpc.ServerServiceDefinition

getBatchEnableServicesMethod()

public static MethodDescriptor<BatchEnableServicesRequest,Operation> getBatchEnableServicesMethod()
Returns
Type Description
io.grpc.MethodDescriptor<BatchEnableServicesRequest,Operation>

getBatchGetServicesMethod()

public static MethodDescriptor<BatchGetServicesRequest,BatchGetServicesResponse> getBatchGetServicesMethod()
Returns
Type Description
io.grpc.MethodDescriptor<BatchGetServicesRequest,BatchGetServicesResponse>

getDisableServiceMethod()

public static MethodDescriptor<DisableServiceRequest,Operation> getDisableServiceMethod()
Returns
Type Description
io.grpc.MethodDescriptor<DisableServiceRequest,Operation>

getEnableServiceMethod()

public static MethodDescriptor<EnableServiceRequest,Operation> getEnableServiceMethod()
Returns
Type Description
io.grpc.MethodDescriptor<EnableServiceRequest,Operation>

getGetServiceMethod()

public static MethodDescriptor<GetServiceRequest,Service> getGetServiceMethod()
Returns
Type Description
io.grpc.MethodDescriptor<GetServiceRequest,Service>

getListServicesMethod()

public static MethodDescriptor<ListServicesRequest,ListServicesResponse> getListServicesMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ListServicesRequest,ListServicesResponse>

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
Type Description
io.grpc.ServiceDescriptor

newBlockingStub(Channel channel)

public static ServiceUsageGrpc.ServiceUsageBlockingStub newBlockingStub(Channel channel)

Creates a new blocking-style stub that supports unary and streaming output calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
ServiceUsageGrpc.ServiceUsageBlockingStub

newFutureStub(Channel channel)

public static ServiceUsageGrpc.ServiceUsageFutureStub newFutureStub(Channel channel)

Creates a new ListenableFuture-style stub that supports unary calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
ServiceUsageGrpc.ServiceUsageFutureStub

newStub(Channel channel)

public static ServiceUsageGrpc.ServiceUsageStub newStub(Channel channel)

Creates a new async stub that supports all call types for the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
ServiceUsageGrpc.ServiceUsageStub