Class HttpJsonEnvironmentsStub (1.14.0)

publicclass HttpJsonEnvironmentsStubextendsEnvironmentsStub

REST stub implementation for the Environments service API.

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

Inheritance

java.lang.Object > EnvironmentsStub > HttpJsonEnvironmentsStub

Inherited Members

Static Methods

create(ClientContext clientContext)

publicstaticfinalHttpJsonEnvironmentsStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonEnvironmentsStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

publicstaticfinalHttpJsonEnvironmentsStubcreate(ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonEnvironmentsStub
Exceptions
Type Description
IOException

create(EnvironmentsStubSettings settings)

publicstaticfinalHttpJsonEnvironmentsStubcreate(EnvironmentsStubSettingssettings)
Parameter
Name Description
settings EnvironmentsStubSettings
Returns
Type Description
HttpJsonEnvironmentsStub
Exceptions
Type Description
IOException

getMethodDescriptors()

publicstaticList<ApiMethodDescriptor>getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonEnvironmentsStub(EnvironmentsStubSettings settings, ClientContext clientContext)

protectedHttpJsonEnvironmentsStub(EnvironmentsStubSettingssettings,ClientContextclientContext)

Constructs an instance of HttpJsonEnvironmentsStub, 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
Name Description
settings EnvironmentsStubSettings
clientContext ClientContext

HttpJsonEnvironmentsStub(EnvironmentsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protectedHttpJsonEnvironmentsStub(EnvironmentsStubSettingssettings,ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)

Constructs an instance of HttpJsonEnvironmentsStub, 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
Name Description
settings EnvironmentsStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

publicbooleanawaitTermination(longduration,TimeUnitunit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

publicfinalvoidclose()
Overrides

createEnvironmentCallable()

publicUnaryCallable<CreateEnvironmentRequest,Operation>createEnvironmentCallable()
Returns
Type Description
UnaryCallable<CreateEnvironmentRequest,Operation>
Overrides

createEnvironmentOperationCallable()

publicOperationCallable<CreateEnvironmentRequest,Environment,OperationMetadata>createEnvironmentOperationCallable()
Returns
Type Description
OperationCallable<CreateEnvironmentRequest,Environment,OperationMetadata>
Overrides

deleteEnvironmentCallable()

publicUnaryCallable<DeleteEnvironmentRequest,Operation>deleteEnvironmentCallable()
Returns
Type Description
UnaryCallable<DeleteEnvironmentRequest,Operation>
Overrides

deleteEnvironmentOperationCallable()

publicOperationCallable<DeleteEnvironmentRequest,Empty,OperationMetadata>deleteEnvironmentOperationCallable()
Returns
Type Description
OperationCallable<DeleteEnvironmentRequest,Empty,OperationMetadata>
Overrides

getEnvironmentCallable()

publicUnaryCallable<GetEnvironmentRequest,Environment>getEnvironmentCallable()
Returns
Type Description
UnaryCallable<GetEnvironmentRequest,Environment>
Overrides

getHttpJsonOperationsStub()

publicHttpJsonOperationsStubgetHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

listEnvironmentsCallable()

publicUnaryCallable<ListEnvironmentsRequest,ListEnvironmentsResponse>listEnvironmentsCallable()
Returns
Type Description
UnaryCallable<ListEnvironmentsRequest,ListEnvironmentsResponse>
Overrides

listEnvironmentsPagedCallable()

publicUnaryCallable<ListEnvironmentsRequest,EnvironmentsClient.ListEnvironmentsPagedResponse>listEnvironmentsPagedCallable()
Returns
Type Description
UnaryCallable<ListEnvironmentsRequest,ListEnvironmentsPagedResponse>
Overrides

loadSnapshotCallable()

publicUnaryCallable<LoadSnapshotRequest,Operation>loadSnapshotCallable()
Returns
Type Description
UnaryCallable<LoadSnapshotRequest,Operation>
Overrides

loadSnapshotOperationCallable()

publicOperationCallable<LoadSnapshotRequest,LoadSnapshotResponse,OperationMetadata>loadSnapshotOperationCallable()
Returns
Type Description
OperationCallable<LoadSnapshotRequest,LoadSnapshotResponse,OperationMetadata>
Overrides

saveSnapshotCallable()

publicUnaryCallable<SaveSnapshotRequest,Operation>saveSnapshotCallable()
Returns
Type Description
UnaryCallable<SaveSnapshotRequest,Operation>
Overrides

saveSnapshotOperationCallable()

publicOperationCallable<SaveSnapshotRequest,SaveSnapshotResponse,OperationMetadata>saveSnapshotOperationCallable()
Returns
Type Description
OperationCallable<SaveSnapshotRequest,SaveSnapshotResponse,OperationMetadata>
Overrides

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

updateEnvironmentCallable()

publicUnaryCallable<UpdateEnvironmentRequest,Operation>updateEnvironmentCallable()
Returns
Type Description
UnaryCallable<UpdateEnvironmentRequest,Operation>
Overrides

updateEnvironmentOperationCallable()

publicOperationCallable<UpdateEnvironmentRequest,Environment,OperationMetadata>updateEnvironmentOperationCallable()
Returns
Type Description
OperationCallable<UpdateEnvironmentRequest,Environment,OperationMetadata>
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.