Class GrpcFoldersStub (1.26.0)

public class GrpcFoldersStub extends FoldersStub

gRPC stub implementation for the Folders service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > FoldersStub > GrpcFoldersStub

Static Methods

create(ClientContext clientContext)

public static final GrpcFoldersStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcFoldersStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcFoldersStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcFoldersStub
Exceptions
TypeDescription
IOException

create(FoldersStubSettings settings)

public static final GrpcFoldersStub create(FoldersStubSettings settings)
Parameter
NameDescription
settingsFoldersStubSettings
Returns
TypeDescription
GrpcFoldersStub
Exceptions
TypeDescription
IOException

Constructors

GrpcFoldersStub(FoldersStubSettings settings, ClientContext clientContext)

protected GrpcFoldersStub(FoldersStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcFoldersStub, 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.

Parameters
NameDescription
settingsFoldersStubSettings
clientContextClientContext

GrpcFoldersStub(FoldersStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcFoldersStub(FoldersStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcFoldersStub, 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.

Parameters
NameDescription
settingsFoldersStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createFolderCallable()

public UnaryCallable<CreateFolderRequest,Operation> createFolderCallable()
Returns
TypeDescription
UnaryCallable<CreateFolderRequest,Operation>
Overrides

createFolderOperationCallable()

public OperationCallable<CreateFolderRequest,Folder,CreateFolderMetadata> createFolderOperationCallable()
Returns
TypeDescription
OperationCallable<CreateFolderRequest,Folder,CreateFolderMetadata>
Overrides

deleteFolderCallable()

public UnaryCallable<DeleteFolderRequest,Operation> deleteFolderCallable()
Returns
TypeDescription
UnaryCallable<DeleteFolderRequest,Operation>
Overrides

deleteFolderOperationCallable()

public OperationCallable<DeleteFolderRequest,Folder,DeleteFolderMetadata> deleteFolderOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteFolderRequest,Folder,DeleteFolderMetadata>
Overrides

getFolderCallable()

public UnaryCallable<GetFolderRequest,Folder> getFolderCallable()
Returns
TypeDescription
UnaryCallable<GetFolderRequest,Folder>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listFoldersCallable()

public UnaryCallable<ListFoldersRequest,ListFoldersResponse> listFoldersCallable()
Returns
TypeDescription
UnaryCallable<ListFoldersRequest,ListFoldersResponse>
Overrides

listFoldersPagedCallable()

public UnaryCallable<ListFoldersRequest,FoldersClient.ListFoldersPagedResponse> listFoldersPagedCallable()
Returns
TypeDescription
UnaryCallable<ListFoldersRequest,ListFoldersPagedResponse>
Overrides

moveFolderCallable()

public UnaryCallable<MoveFolderRequest,Operation> moveFolderCallable()
Returns
TypeDescription
UnaryCallable<MoveFolderRequest,Operation>
Overrides

moveFolderOperationCallable()

public OperationCallable<MoveFolderRequest,Folder,MoveFolderMetadata> moveFolderOperationCallable()
Returns
TypeDescription
OperationCallable<MoveFolderRequest,Folder,MoveFolderMetadata>
Overrides

searchFoldersCallable()

public UnaryCallable<SearchFoldersRequest,SearchFoldersResponse> searchFoldersCallable()
Returns
TypeDescription
UnaryCallable<SearchFoldersRequest,SearchFoldersResponse>
Overrides

searchFoldersPagedCallable()

public UnaryCallable<SearchFoldersRequest,FoldersClient.SearchFoldersPagedResponse> searchFoldersPagedCallable()
Returns
TypeDescription
UnaryCallable<SearchFoldersRequest,SearchFoldersPagedResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

undeleteFolderCallable()

public UnaryCallable<UndeleteFolderRequest,Operation> undeleteFolderCallable()
Returns
TypeDescription
UnaryCallable<UndeleteFolderRequest,Operation>
Overrides

undeleteFolderOperationCallable()

public OperationCallable<UndeleteFolderRequest,Folder,UndeleteFolderMetadata> undeleteFolderOperationCallable()
Returns
TypeDescription
OperationCallable<UndeleteFolderRequest,Folder,UndeleteFolderMetadata>
Overrides

updateFolderCallable()

public UnaryCallable<UpdateFolderRequest,Operation> updateFolderCallable()
Returns
TypeDescription
UnaryCallable<UpdateFolderRequest,Operation>
Overrides

updateFolderOperationCallable()

public OperationCallable<UpdateFolderRequest,Folder,UpdateFolderMetadata> updateFolderOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateFolderRequest,Folder,UpdateFolderMetadata>
Overrides