Class HttpJsonFoldersStub (1.34.0)

public class HttpJsonFoldersStub extends FoldersStub

REST stub implementation for the Folders service API.

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

Inheritance

java.lang.Object > FoldersStub > HttpJsonFoldersStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonFoldersStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonFoldersStub
Exceptions
TypeDescription
IOException

create(FoldersStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonFoldersStub(FoldersStubSettings settings, ClientContext clientContext)

protected HttpJsonFoldersStub(FoldersStubSettings settings, ClientContext clientContext)

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

HttpJsonFoldersStub(FoldersStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonFoldersStub(FoldersStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonFoldersStub, 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
callableFactoryHttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
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