Package com.google.cloud.billing.v1.stub
Class GrpcCloudBillingStub
- java.lang.Object
-
- com.google.cloud.billing.v1.stub.CloudBillingStub
-
- com.google.cloud.billing.v1.stub.GrpcCloudBillingStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcCloudBillingStub extends CloudBillingStub
gRPC stub implementation for the CloudBilling service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcCloudBillingStub(CloudBillingStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcCloudBillingStub, using the given settings.protected
GrpcCloudBillingStub(CloudBillingStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcCloudBillingStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcCloudBillingStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcCloudBillingStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcCloudBillingStub
create(CloudBillingStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateBillingAccountRequest,BillingAccount>
createBillingAccountCallable()
com.google.api.gax.rpc.UnaryCallable<GetBillingAccountRequest,BillingAccount>
getBillingAccountCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicyCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
com.google.api.gax.rpc.UnaryCallable<GetProjectBillingInfoRequest,ProjectBillingInfo>
getProjectBillingInfoCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListBillingAccountsRequest,ListBillingAccountsResponse>
listBillingAccountsCallable()
com.google.api.gax.rpc.UnaryCallable<ListBillingAccountsRequest,CloudBillingClient.ListBillingAccountsPagedResponse>
listBillingAccountsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListProjectBillingInfoRequest,ListProjectBillingInfoResponse>
listProjectBillingInfoCallable()
com.google.api.gax.rpc.UnaryCallable<ListProjectBillingInfoRequest,CloudBillingClient.ListProjectBillingInfoPagedResponse>
listProjectBillingInfoPagedCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicyCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateBillingAccountRequest,BillingAccount>
updateBillingAccountCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateProjectBillingInfoRequest,ProjectBillingInfo>
updateProjectBillingInfoCallable()
-
-
-
Constructor Detail
-
GrpcCloudBillingStub
protected GrpcCloudBillingStub(CloudBillingStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcCloudBillingStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcCloudBillingStub
protected GrpcCloudBillingStub(CloudBillingStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcCloudBillingStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcCloudBillingStub create(CloudBillingStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcCloudBillingStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcCloudBillingStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
getBillingAccountCallable
public com.google.api.gax.rpc.UnaryCallable<GetBillingAccountRequest,BillingAccount> getBillingAccountCallable()
- Overrides:
getBillingAccountCallable
in classCloudBillingStub
-
listBillingAccountsCallable
public com.google.api.gax.rpc.UnaryCallable<ListBillingAccountsRequest,ListBillingAccountsResponse> listBillingAccountsCallable()
- Overrides:
listBillingAccountsCallable
in classCloudBillingStub
-
listBillingAccountsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListBillingAccountsRequest,CloudBillingClient.ListBillingAccountsPagedResponse> listBillingAccountsPagedCallable()
- Overrides:
listBillingAccountsPagedCallable
in classCloudBillingStub
-
updateBillingAccountCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateBillingAccountRequest,BillingAccount> updateBillingAccountCallable()
- Overrides:
updateBillingAccountCallable
in classCloudBillingStub
-
createBillingAccountCallable
public com.google.api.gax.rpc.UnaryCallable<CreateBillingAccountRequest,BillingAccount> createBillingAccountCallable()
- Overrides:
createBillingAccountCallable
in classCloudBillingStub
-
listProjectBillingInfoCallable
public com.google.api.gax.rpc.UnaryCallable<ListProjectBillingInfoRequest,ListProjectBillingInfoResponse> listProjectBillingInfoCallable()
- Overrides:
listProjectBillingInfoCallable
in classCloudBillingStub
-
listProjectBillingInfoPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListProjectBillingInfoRequest,CloudBillingClient.ListProjectBillingInfoPagedResponse> listProjectBillingInfoPagedCallable()
- Overrides:
listProjectBillingInfoPagedCallable
in classCloudBillingStub
-
getProjectBillingInfoCallable
public com.google.api.gax.rpc.UnaryCallable<GetProjectBillingInfoRequest,ProjectBillingInfo> getProjectBillingInfoCallable()
- Overrides:
getProjectBillingInfoCallable
in classCloudBillingStub
-
updateProjectBillingInfoCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateProjectBillingInfoRequest,ProjectBillingInfo> updateProjectBillingInfoCallable()
- Overrides:
updateProjectBillingInfoCallable
in classCloudBillingStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classCloudBillingStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classCloudBillingStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classCloudBillingStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classCloudBillingStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-