Class GDCHardwareManagementClient (0.2.0)

GitHub RepositoryProduct ReferenceRPC Documentation

Service Description: The GDC Hardware Management service.

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
   Order response = gDCHardwareManagementClient.getOrder(name);
 }
 

Note: close() needs to be called on the GDCHardwareManagementClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

Methods
Method Description Method Variants

ListOrders

Lists orders in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listOrders(ListOrdersRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listOrders(LocationName parent)

  • listOrders(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listOrdersPagedCallable()

  • listOrdersCallable()

GetOrder

Gets details of an order.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getOrder(GetOrderRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getOrder(OrderName name)

  • getOrder(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getOrderCallable()

CreateOrder

Creates a new order in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createOrderAsync(CreateOrderRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createOrderAsync(LocationName parent, Order order, String orderId)

  • createOrderAsync(String parent, Order order, String orderId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createOrderOperationCallable()

  • createOrderCallable()

UpdateOrder

Updates the parameters of an order.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateOrderAsync(UpdateOrderRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateOrderAsync(Order order, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateOrderOperationCallable()

  • updateOrderCallable()

DeleteOrder

Deletes an order.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteOrderAsync(DeleteOrderRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteOrderAsync(OrderName name)

  • deleteOrderAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteOrderOperationCallable()

  • deleteOrderCallable()

SubmitOrder

Submits an order.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • submitOrderAsync(SubmitOrderRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • submitOrderAsync(OrderName name)

  • submitOrderAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • submitOrderOperationCallable()

  • submitOrderCallable()

ListSites

Lists sites in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listSites(ListSitesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listSites(LocationName parent)

  • listSites(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listSitesPagedCallable()

  • listSitesCallable()

GetSite

Gets details of a site.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getSite(GetSiteRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getSite(SiteName name)

  • getSite(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getSiteCallable()

CreateSite

Creates a new site in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createSiteAsync(CreateSiteRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createSiteAsync(LocationName parent, Site site, String siteId)

  • createSiteAsync(String parent, Site site, String siteId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createSiteOperationCallable()

  • createSiteCallable()

UpdateSite

Updates the parameters of a site.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateSiteAsync(UpdateSiteRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateSiteAsync(Site site, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateSiteOperationCallable()

  • updateSiteCallable()

ListHardwareGroups

Lists hardware groups in a given order.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listHardwareGroups(ListHardwareGroupsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listHardwareGroups(OrderName parent)

  • listHardwareGroups(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listHardwareGroupsPagedCallable()

  • listHardwareGroupsCallable()

GetHardwareGroup

Gets details of a hardware group.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getHardwareGroup(GetHardwareGroupRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getHardwareGroup(HardwareGroupName name)

  • getHardwareGroup(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getHardwareGroupCallable()

CreateHardwareGroup

Creates a new hardware group in a given order.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createHardwareGroupAsync(CreateHardwareGroupRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createHardwareGroupAsync(OrderName parent, HardwareGroup hardwareGroup, String hardwareGroupId)

  • createHardwareGroupAsync(String parent, HardwareGroup hardwareGroup, String hardwareGroupId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createHardwareGroupOperationCallable()

  • createHardwareGroupCallable()

UpdateHardwareGroup

Updates the parameters of a hardware group.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateHardwareGroupAsync(UpdateHardwareGroupRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateHardwareGroupAsync(HardwareGroup hardwareGroup, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateHardwareGroupOperationCallable()

  • updateHardwareGroupCallable()

DeleteHardwareGroup

Deletes a hardware group.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteHardwareGroupAsync(DeleteHardwareGroupRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteHardwareGroupAsync(HardwareGroupName name)

  • deleteHardwareGroupAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteHardwareGroupOperationCallable()

  • deleteHardwareGroupCallable()

ListHardware

Lists hardware in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listHardware(ListHardwareRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listHardware(LocationName parent)

  • listHardware(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listHardwarePagedCallable()

  • listHardwareCallable()

GetHardware

Gets hardware details.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getHardware(GetHardwareRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getHardware(HardwareName name)

  • getHardware(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getHardwareCallable()

CreateHardware

Creates new hardware in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createHardwareAsync(CreateHardwareRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createHardwareAsync(LocationName parent, Hardware hardware, String hardwareId)

  • createHardwareAsync(String parent, Hardware hardware, String hardwareId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createHardwareOperationCallable()

  • createHardwareCallable()

UpdateHardware

Updates hardware parameters.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateHardwareAsync(UpdateHardwareRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateHardwareAsync(Hardware hardware, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateHardwareOperationCallable()

  • updateHardwareCallable()

DeleteHardware

Deletes hardware.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteHardwareAsync(DeleteHardwareRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteHardwareAsync(HardwareName name)

  • deleteHardwareAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteHardwareOperationCallable()

  • deleteHardwareCallable()

ListComments

Lists the comments on an order.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listComments(ListCommentsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listComments(OrderName parent)

  • listComments(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listCommentsPagedCallable()

  • listCommentsCallable()

GetComment

Gets the content of a comment.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getComment(GetCommentRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getComment(CommentName name)

  • getComment(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getCommentCallable()

CreateComment

Creates a new comment on an order.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createCommentAsync(CreateCommentRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createCommentAsync(OrderName parent, Comment comment, String commentId)

  • createCommentAsync(String parent, Comment comment, String commentId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createCommentOperationCallable()

  • createCommentCallable()

ListChangeLogEntries

Lists the changes made to an order.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listChangeLogEntries(ListChangeLogEntriesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listChangeLogEntries(OrderName parent)

  • listChangeLogEntries(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listChangeLogEntriesPagedCallable()

  • listChangeLogEntriesCallable()

GetChangeLogEntry

Gets details of a change to an order.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getChangeLogEntry(GetChangeLogEntryRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getChangeLogEntry(ChangeLogEntryName name)

  • getChangeLogEntry(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getChangeLogEntryCallable()

ListSkus

Lists SKUs for a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listSkus(ListSkusRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listSkus(LocationName parent)

  • listSkus(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listSkusPagedCallable()

  • listSkusCallable()

GetSku

Gets details of an SKU.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getSku(GetSkuRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getSku(SkuName name)

  • getSku(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getSkuCallable()

ListZones

Lists zones in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listZones(ListZonesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listZones(LocationName parent)

  • listZones(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listZonesPagedCallable()

  • listZonesCallable()

GetZone

Gets details of a zone.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getZone(GetZoneRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getZone(ZoneName name)

  • getZone(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getZoneCallable()

CreateZone

Creates a new zone in a given project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createZoneAsync(CreateZoneRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createZoneAsync(LocationName parent, Zone zone, String zoneId)

  • createZoneAsync(String parent, Zone zone, String zoneId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createZoneOperationCallable()

  • createZoneCallable()

UpdateZone

Updates the parameters of a zone.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateZoneAsync(UpdateZoneRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateZoneAsync(Zone zone, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateZoneOperationCallable()

  • updateZoneCallable()

DeleteZone

Deletes a zone.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteZoneAsync(DeleteZoneRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteZoneAsync(ZoneName name)

  • deleteZoneAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteZoneOperationCallable()

  • deleteZoneCallable()

SignalZoneState

Signals the state of a zone.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • signalZoneStateAsync(SignalZoneStateRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • signalZoneStateAsync(ZoneName name, SignalZoneStateRequest.StateSignal stateSignal)

  • signalZoneStateAsync(String name, SignalZoneStateRequest.StateSignal stateSignal)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • signalZoneStateOperationCallable()

  • signalZoneStateCallable()

ListLocations

Lists information about the supported locations for this service.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listLocations(ListLocationsRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listLocationsPagedCallable()

  • listLocationsCallable()

GetLocation

Gets information about a location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getLocation(GetLocationRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getLocationCallable()

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of GDCHardwareManagementSettings to create(). For example:

To customize credentials:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 GDCHardwareManagementSettings gDCHardwareManagementSettings =
     GDCHardwareManagementSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create(gDCHardwareManagementSettings);
 

To customize the endpoint:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 GDCHardwareManagementSettings gDCHardwareManagementSettings =
     GDCHardwareManagementSettings.newBuilder().setEndpoint(myEndpoint).build();
 GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create(gDCHardwareManagementSettings);
 

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 GDCHardwareManagementSettings gDCHardwareManagementSettings =
     GDCHardwareManagementSettings.newHttpJsonBuilder().build();
 GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create(gDCHardwareManagementSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

Inheritance

java.lang.Object > GDCHardwareManagementClient

Static Methods

create()

public static final GDCHardwareManagementClient create()

Constructs an instance of GDCHardwareManagementClient with default settings.

Returns
Type Description
GDCHardwareManagementClient
Exceptions
Type Description
IOException

create(GDCHardwareManagementSettings settings)

public static final GDCHardwareManagementClient create(GDCHardwareManagementSettings settings)

Constructs an instance of GDCHardwareManagementClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.

Parameter
Name Description
settings GDCHardwareManagementSettings
Returns
Type Description
GDCHardwareManagementClient
Exceptions
Type Description
IOException

create(GDCHardwareManagementStub stub)

public static final GDCHardwareManagementClient create(GDCHardwareManagementStub stub)

Constructs an instance of GDCHardwareManagementClient, using the given stub for making calls. This is for advanced usage - prefer using create(GDCHardwareManagementSettings).

Parameter
Name Description
stub GDCHardwareManagementStub
Returns
Type Description
GDCHardwareManagementClient

Constructors

GDCHardwareManagementClient(GDCHardwareManagementSettings settings)

protected GDCHardwareManagementClient(GDCHardwareManagementSettings settings)

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

Parameter
Name Description
settings GDCHardwareManagementSettings

GDCHardwareManagementClient(GDCHardwareManagementStub stub)

protected GDCHardwareManagementClient(GDCHardwareManagementStub stub)
Parameter
Name Description
stub GDCHardwareManagementStub

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()

createCommentAsync(CreateCommentRequest request)

public final OperationFuture<Comment,OperationMetadata> createCommentAsync(CreateCommentRequest request)

Creates a new comment on an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateCommentRequest request =
       CreateCommentRequest.newBuilder()
           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setCommentId("commentId-1495016486")
           .setComment(Comment.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   Comment response = gDCHardwareManagementClient.createCommentAsync(request).get();
 }
 
Parameter
Name Description
request CreateCommentRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Comment,OperationMetadata>

createCommentAsync(OrderName parent, Comment comment, String commentId)

public final OperationFuture<Comment,OperationMetadata> createCommentAsync(OrderName parent, Comment comment, String commentId)

Creates a new comment on an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
   Comment comment = Comment.newBuilder().build();
   String commentId = "commentId-1495016486";
   Comment response =
       gDCHardwareManagementClient.createCommentAsync(parent, comment, commentId).get();
 }
 
Parameters
Name Description
parent OrderName

Required. The order to create the comment on. Format: projects/{project}/locations/{location}/orders/{order}

comment Comment

Required. The comment to create.

commentId String

Optional. ID used to uniquely identify the Comment within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The comment.name field in the request will be ignored.

Returns
Type Description
OperationFuture<Comment,OperationMetadata>

createCommentAsync(String parent, Comment comment, String commentId)

public final OperationFuture<Comment,OperationMetadata> createCommentAsync(String parent, Comment comment, String commentId)

Creates a new comment on an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
   Comment comment = Comment.newBuilder().build();
   String commentId = "commentId-1495016486";
   Comment response =
       gDCHardwareManagementClient.createCommentAsync(parent, comment, commentId).get();
 }
 
Parameters
Name Description
parent String

Required. The order to create the comment on. Format: projects/{project}/locations/{location}/orders/{order}

comment Comment

Required. The comment to create.

commentId String

Optional. ID used to uniquely identify the Comment within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The comment.name field in the request will be ignored.

Returns
Type Description
OperationFuture<Comment,OperationMetadata>

createCommentCallable()

public final UnaryCallable<CreateCommentRequest,Operation> createCommentCallable()

Creates a new comment on an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateCommentRequest request =
       CreateCommentRequest.newBuilder()
           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setCommentId("commentId-1495016486")
           .setComment(Comment.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.createCommentCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateCommentRequest,Operation>

createCommentOperationCallable()

public final OperationCallable<CreateCommentRequest,Comment,OperationMetadata> createCommentOperationCallable()

Creates a new comment on an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateCommentRequest request =
       CreateCommentRequest.newBuilder()
           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setCommentId("commentId-1495016486")
           .setComment(Comment.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Comment, OperationMetadata> future =
       gDCHardwareManagementClient.createCommentOperationCallable().futureCall(request);
   // Do something.
   Comment response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateCommentRequest,Comment,OperationMetadata>

createHardwareAsync(CreateHardwareRequest request)

public final OperationFuture<Hardware,OperationMetadata> createHardwareAsync(CreateHardwareRequest request)

Creates new hardware in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateHardwareRequest request =
       CreateHardwareRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setHardwareId("hardwareId680924451")
           .setHardware(Hardware.newBuilder().build())
           .build();
   Hardware response = gDCHardwareManagementClient.createHardwareAsync(request).get();
 }
 
Parameter
Name Description
request CreateHardwareRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Hardware,OperationMetadata>

createHardwareAsync(LocationName parent, Hardware hardware, String hardwareId)

public final OperationFuture<Hardware,OperationMetadata> createHardwareAsync(LocationName parent, Hardware hardware, String hardwareId)

Creates new hardware in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   Hardware hardware = Hardware.newBuilder().build();
   String hardwareId = "hardwareId680924451";
   Hardware response =
       gDCHardwareManagementClient.createHardwareAsync(parent, hardware, hardwareId).get();
 }
 
Parameters
Name Description
parent LocationName

Required. The project and location to create hardware in. Format: projects/{project}/locations/{location}

hardware Hardware

Required. The resource to create.

hardwareId String

Optional. ID used to uniquely identify the Hardware within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware.name field in the request will be ignored.

Returns
Type Description
OperationFuture<Hardware,OperationMetadata>

createHardwareAsync(String parent, Hardware hardware, String hardwareId)

public final OperationFuture<Hardware,OperationMetadata> createHardwareAsync(String parent, Hardware hardware, String hardwareId)

Creates new hardware in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   Hardware hardware = Hardware.newBuilder().build();
   String hardwareId = "hardwareId680924451";
   Hardware response =
       gDCHardwareManagementClient.createHardwareAsync(parent, hardware, hardwareId).get();
 }
 
Parameters
Name Description
parent String

Required. The project and location to create hardware in. Format: projects/{project}/locations/{location}

hardware Hardware

Required. The resource to create.

hardwareId String

Optional. ID used to uniquely identify the Hardware within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware.name field in the request will be ignored.

Returns
Type Description
OperationFuture<Hardware,OperationMetadata>

createHardwareCallable()

public final UnaryCallable<CreateHardwareRequest,Operation> createHardwareCallable()

Creates new hardware in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateHardwareRequest request =
       CreateHardwareRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setHardwareId("hardwareId680924451")
           .setHardware(Hardware.newBuilder().build())
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.createHardwareCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateHardwareRequest,Operation>

createHardwareGroupAsync(CreateHardwareGroupRequest request)

public final OperationFuture<HardwareGroup,OperationMetadata> createHardwareGroupAsync(CreateHardwareGroupRequest request)

Creates a new hardware group in a given order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateHardwareGroupRequest request =
       CreateHardwareGroupRequest.newBuilder()
           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setHardwareGroupId("hardwareGroupId-1961682702")
           .setHardwareGroup(HardwareGroup.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   HardwareGroup response = gDCHardwareManagementClient.createHardwareGroupAsync(request).get();
 }
 
Parameter
Name Description
request CreateHardwareGroupRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<HardwareGroup,OperationMetadata>

createHardwareGroupAsync(OrderName parent, HardwareGroup hardwareGroup, String hardwareGroupId)

public final OperationFuture<HardwareGroup,OperationMetadata> createHardwareGroupAsync(OrderName parent, HardwareGroup hardwareGroup, String hardwareGroupId)

Creates a new hardware group in a given order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
   HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build();
   String hardwareGroupId = "hardwareGroupId-1961682702";
   HardwareGroup response =
       gDCHardwareManagementClient
           .createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId)
           .get();
 }
 
Parameters
Name Description
parent OrderName

Required. The order to create the hardware group in. Format: projects/{project}/locations/{location}/orders/{order}

hardwareGroup HardwareGroup

Required. The hardware group to create.

hardwareGroupId String

Optional. ID used to uniquely identify the HardwareGroup within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware_group.name field in the request will be ignored.

Returns
Type Description
OperationFuture<HardwareGroup,OperationMetadata>

createHardwareGroupAsync(String parent, HardwareGroup hardwareGroup, String hardwareGroupId)

public final OperationFuture<HardwareGroup,OperationMetadata> createHardwareGroupAsync(String parent, HardwareGroup hardwareGroup, String hardwareGroupId)

Creates a new hardware group in a given order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
   HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build();
   String hardwareGroupId = "hardwareGroupId-1961682702";
   HardwareGroup response =
       gDCHardwareManagementClient
           .createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId)
           .get();
 }
 
Parameters
Name Description
parent String

Required. The order to create the hardware group in. Format: projects/{project}/locations/{location}/orders/{order}

hardwareGroup HardwareGroup

Required. The hardware group to create.

hardwareGroupId String

Optional. ID used to uniquely identify the HardwareGroup within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The hardware_group.name field in the request will be ignored.

Returns
Type Description
OperationFuture<HardwareGroup,OperationMetadata>

createHardwareGroupCallable()

public final UnaryCallable<CreateHardwareGroupRequest,Operation> createHardwareGroupCallable()

Creates a new hardware group in a given order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateHardwareGroupRequest request =
       CreateHardwareGroupRequest.newBuilder()
           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setHardwareGroupId("hardwareGroupId-1961682702")
           .setHardwareGroup(HardwareGroup.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.createHardwareGroupCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateHardwareGroupRequest,Operation>

createHardwareGroupOperationCallable()

public final OperationCallable<CreateHardwareGroupRequest,HardwareGroup,OperationMetadata> createHardwareGroupOperationCallable()

Creates a new hardware group in a given order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateHardwareGroupRequest request =
       CreateHardwareGroupRequest.newBuilder()
           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setHardwareGroupId("hardwareGroupId-1961682702")
           .setHardwareGroup(HardwareGroup.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<HardwareGroup, OperationMetadata> future =
       gDCHardwareManagementClient.createHardwareGroupOperationCallable().futureCall(request);
   // Do something.
   HardwareGroup response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateHardwareGroupRequest,HardwareGroup,OperationMetadata>

createHardwareOperationCallable()

public final OperationCallable<CreateHardwareRequest,Hardware,OperationMetadata> createHardwareOperationCallable()

Creates new hardware in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateHardwareRequest request =
       CreateHardwareRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setHardwareId("hardwareId680924451")
           .setHardware(Hardware.newBuilder().build())
           .build();
   OperationFuture<Hardware, OperationMetadata> future =
       gDCHardwareManagementClient.createHardwareOperationCallable().futureCall(request);
   // Do something.
   Hardware response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateHardwareRequest,Hardware,OperationMetadata>

createOrderAsync(CreateOrderRequest request)

public final OperationFuture<Order,OperationMetadata> createOrderAsync(CreateOrderRequest request)

Creates a new order in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateOrderRequest request =
       CreateOrderRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setOrderId("orderId-1207110391")
           .setOrder(Order.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   Order response = gDCHardwareManagementClient.createOrderAsync(request).get();
 }
 
Parameter
Name Description
request CreateOrderRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Order,OperationMetadata>

createOrderAsync(LocationName parent, Order order, String orderId)

public final OperationFuture<Order,OperationMetadata> createOrderAsync(LocationName parent, Order order, String orderId)

Creates a new order in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   Order order = Order.newBuilder().build();
   String orderId = "orderId-1207110391";
   Order response = gDCHardwareManagementClient.createOrderAsync(parent, order, orderId).get();
 }
 
Parameters
Name Description
parent LocationName

Required. The project and location to create the order in. Format: projects/{project}/locations/{location}

order Order

Required. The order to create.

orderId String

Optional. ID used to uniquely identify the Order within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The order.name field in the request will be ignored.

Returns
Type Description
OperationFuture<Order,OperationMetadata>

createOrderAsync(String parent, Order order, String orderId)

public final OperationFuture<Order,OperationMetadata> createOrderAsync(String parent, Order order, String orderId)

Creates a new order in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   Order order = Order.newBuilder().build();
   String orderId = "orderId-1207110391";
   Order response = gDCHardwareManagementClient.createOrderAsync(parent, order, orderId).get();
 }
 
Parameters
Name Description
parent String

Required. The project and location to create the order in. Format: projects/{project}/locations/{location}

order Order

Required. The order to create.

orderId String

Optional. ID used to uniquely identify the Order within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The order.name field in the request will be ignored.

Returns
Type Description
OperationFuture<Order,OperationMetadata>

createOrderCallable()

public final UnaryCallable<CreateOrderRequest,Operation> createOrderCallable()

Creates a new order in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateOrderRequest request =
       CreateOrderRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setOrderId("orderId-1207110391")
           .setOrder(Order.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.createOrderCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateOrderRequest,Operation>

createOrderOperationCallable()

public final OperationCallable<CreateOrderRequest,Order,OperationMetadata> createOrderOperationCallable()

Creates a new order in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateOrderRequest request =
       CreateOrderRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setOrderId("orderId-1207110391")
           .setOrder(Order.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Order, OperationMetadata> future =
       gDCHardwareManagementClient.createOrderOperationCallable().futureCall(request);
   // Do something.
   Order response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateOrderRequest,Order,OperationMetadata>

createSiteAsync(CreateSiteRequest request)

public final OperationFuture<Site,OperationMetadata> createSiteAsync(CreateSiteRequest request)

Creates a new site in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateSiteRequest request =
       CreateSiteRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setSiteId("siteId-902090046")
           .setSite(Site.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   Site response = gDCHardwareManagementClient.createSiteAsync(request).get();
 }
 
Parameter
Name Description
request CreateSiteRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Site,OperationMetadata>

createSiteAsync(LocationName parent, Site site, String siteId)

public final OperationFuture<Site,OperationMetadata> createSiteAsync(LocationName parent, Site site, String siteId)

Creates a new site in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   Site site = Site.newBuilder().build();
   String siteId = "siteId-902090046";
   Site response = gDCHardwareManagementClient.createSiteAsync(parent, site, siteId).get();
 }
 
Parameters
Name Description
parent LocationName

Required. The project and location to create the site in. Format: projects/{project}/locations/{location}

site Site

Required. The site to create.

siteId String

Optional. ID used to uniquely identify the Site within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The site.name field in the request will be ignored.

Returns
Type Description
OperationFuture<Site,OperationMetadata>

createSiteAsync(String parent, Site site, String siteId)

public final OperationFuture<Site,OperationMetadata> createSiteAsync(String parent, Site site, String siteId)

Creates a new site in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   Site site = Site.newBuilder().build();
   String siteId = "siteId-902090046";
   Site response = gDCHardwareManagementClient.createSiteAsync(parent, site, siteId).get();
 }
 
Parameters
Name Description
parent String

Required. The project and location to create the site in. Format: projects/{project}/locations/{location}

site Site

Required. The site to create.

siteId String

Optional. ID used to uniquely identify the Site within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The site.name field in the request will be ignored.

Returns
Type Description
OperationFuture<Site,OperationMetadata>

createSiteCallable()

public final UnaryCallable<CreateSiteRequest,Operation> createSiteCallable()

Creates a new site in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateSiteRequest request =
       CreateSiteRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setSiteId("siteId-902090046")
           .setSite(Site.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.createSiteCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateSiteRequest,Operation>

createSiteOperationCallable()

public final OperationCallable<CreateSiteRequest,Site,OperationMetadata> createSiteOperationCallable()

Creates a new site in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateSiteRequest request =
       CreateSiteRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setSiteId("siteId-902090046")
           .setSite(Site.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Site, OperationMetadata> future =
       gDCHardwareManagementClient.createSiteOperationCallable().futureCall(request);
   // Do something.
   Site response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateSiteRequest,Site,OperationMetadata>

createZoneAsync(CreateZoneRequest request)

public final OperationFuture<Zone,OperationMetadata> createZoneAsync(CreateZoneRequest request)

Creates a new zone in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateZoneRequest request =
       CreateZoneRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setZoneId("zoneId-696323609")
           .setZone(Zone.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   Zone response = gDCHardwareManagementClient.createZoneAsync(request).get();
 }
 
Parameter
Name Description
request CreateZoneRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Zone,OperationMetadata>

createZoneAsync(LocationName parent, Zone zone, String zoneId)

public final OperationFuture<Zone,OperationMetadata> createZoneAsync(LocationName parent, Zone zone, String zoneId)

Creates a new zone in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   Zone zone = Zone.newBuilder().build();
   String zoneId = "zoneId-696323609";
   Zone response = gDCHardwareManagementClient.createZoneAsync(parent, zone, zoneId).get();
 }
 
Parameters
Name Description
parent LocationName

Required. The project and location to create the zone in. Format: projects/{project}/locations/{location}

zone Zone

Required. The zone to create.

zoneId String

Optional. ID used to uniquely identify the Zone within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The zone.name field in the request will be ignored.

Returns
Type Description
OperationFuture<Zone,OperationMetadata>

createZoneAsync(String parent, Zone zone, String zoneId)

public final OperationFuture<Zone,OperationMetadata> createZoneAsync(String parent, Zone zone, String zoneId)

Creates a new zone in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   Zone zone = Zone.newBuilder().build();
   String zoneId = "zoneId-696323609";
   Zone response = gDCHardwareManagementClient.createZoneAsync(parent, zone, zoneId).get();
 }
 
Parameters
Name Description
parent String

Required. The project and location to create the zone in. Format: projects/{project}/locations/{location}

zone Zone

Required. The zone to create.

zoneId String

Optional. ID used to uniquely identify the Zone within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The zone.name field in the request will be ignored.

Returns
Type Description
OperationFuture<Zone,OperationMetadata>

createZoneCallable()

public final UnaryCallable<CreateZoneRequest,Operation> createZoneCallable()

Creates a new zone in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateZoneRequest request =
       CreateZoneRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setZoneId("zoneId-696323609")
           .setZone(Zone.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.createZoneCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateZoneRequest,Operation>

createZoneOperationCallable()

public final OperationCallable<CreateZoneRequest,Zone,OperationMetadata> createZoneOperationCallable()

Creates a new zone in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CreateZoneRequest request =
       CreateZoneRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setZoneId("zoneId-696323609")
           .setZone(Zone.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Zone, OperationMetadata> future =
       gDCHardwareManagementClient.createZoneOperationCallable().futureCall(request);
   // Do something.
   Zone response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateZoneRequest,Zone,OperationMetadata>

deleteHardwareAsync(DeleteHardwareRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteHardwareAsync(DeleteHardwareRequest request)

Deletes hardware.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   DeleteHardwareRequest request =
       DeleteHardwareRequest.newBuilder()
           .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString())
           .setRequestId("requestId693933066")
           .build();
   gDCHardwareManagementClient.deleteHardwareAsync(request).get();
 }
 
Parameter
Name Description
request DeleteHardwareRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteHardwareAsync(HardwareName name)

public final OperationFuture<Empty,OperationMetadata> deleteHardwareAsync(HardwareName name)

Deletes hardware.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]");
   gDCHardwareManagementClient.deleteHardwareAsync(name).get();
 }
 
Parameter
Name Description
name HardwareName

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteHardwareAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteHardwareAsync(String name)

Deletes hardware.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString();
   gDCHardwareManagementClient.deleteHardwareAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteHardwareCallable()

public final UnaryCallable<DeleteHardwareRequest,Operation> deleteHardwareCallable()

Deletes hardware.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   DeleteHardwareRequest request =
       DeleteHardwareRequest.newBuilder()
           .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.deleteHardwareCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteHardwareRequest,Operation>

deleteHardwareGroupAsync(DeleteHardwareGroupRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteHardwareGroupAsync(DeleteHardwareGroupRequest request)

Deletes a hardware group.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   DeleteHardwareGroupRequest request =
       DeleteHardwareGroupRequest.newBuilder()
           .setName(
               HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]")
                   .toString())
           .setRequestId("requestId693933066")
           .build();
   gDCHardwareManagementClient.deleteHardwareGroupAsync(request).get();
 }
 
Parameter
Name Description
request DeleteHardwareGroupRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteHardwareGroupAsync(HardwareGroupName name)

public final OperationFuture<Empty,OperationMetadata> deleteHardwareGroupAsync(HardwareGroupName name)

Deletes a hardware group.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   HardwareGroupName name =
       HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]");
   gDCHardwareManagementClient.deleteHardwareGroupAsync(name).get();
 }
 
Parameter
Name Description
name HardwareGroupName

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteHardwareGroupAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteHardwareGroupAsync(String name)

Deletes a hardware group.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String name =
       HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]").toString();
   gDCHardwareManagementClient.deleteHardwareGroupAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteHardwareGroupCallable()

public final UnaryCallable<DeleteHardwareGroupRequest,Operation> deleteHardwareGroupCallable()

Deletes a hardware group.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   DeleteHardwareGroupRequest request =
       DeleteHardwareGroupRequest.newBuilder()
           .setName(
               HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]")
                   .toString())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.deleteHardwareGroupCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteHardwareGroupRequest,Operation>

deleteHardwareGroupOperationCallable()

public final OperationCallable<DeleteHardwareGroupRequest,Empty,OperationMetadata> deleteHardwareGroupOperationCallable()

Deletes a hardware group.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   DeleteHardwareGroupRequest request =
       DeleteHardwareGroupRequest.newBuilder()
           .setName(
               HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]")
                   .toString())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       gDCHardwareManagementClient.deleteHardwareGroupOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteHardwareGroupRequest,Empty,OperationMetadata>

deleteHardwareOperationCallable()

public final OperationCallable<DeleteHardwareRequest,Empty,OperationMetadata> deleteHardwareOperationCallable()

Deletes hardware.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   DeleteHardwareRequest request =
       DeleteHardwareRequest.newBuilder()
           .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       gDCHardwareManagementClient.deleteHardwareOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteHardwareRequest,Empty,OperationMetadata>

deleteOrderAsync(DeleteOrderRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteOrderAsync(DeleteOrderRequest request)

Deletes an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   DeleteOrderRequest request =
       DeleteOrderRequest.newBuilder()
           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setRequestId("requestId693933066")
           .setForce(true)
           .build();
   gDCHardwareManagementClient.deleteOrderAsync(request).get();
 }
 
Parameter
Name Description
request DeleteOrderRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteOrderAsync(OrderName name)

public final OperationFuture<Empty,OperationMetadata> deleteOrderAsync(OrderName name)

Deletes an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
   gDCHardwareManagementClient.deleteOrderAsync(name).get();
 }
 
Parameter
Name Description
name OrderName

Required. The name of the order. Format: projects/{project}/locations/{location}/orders/{order}

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteOrderAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteOrderAsync(String name)

Deletes an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
   gDCHardwareManagementClient.deleteOrderAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the order. Format: projects/{project}/locations/{location}/orders/{order}

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteOrderCallable()

public final UnaryCallable<DeleteOrderRequest,Operation> deleteOrderCallable()

Deletes an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   DeleteOrderRequest request =
       DeleteOrderRequest.newBuilder()
           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setRequestId("requestId693933066")
           .setForce(true)
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.deleteOrderCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteOrderRequest,Operation>

deleteOrderOperationCallable()

public final OperationCallable<DeleteOrderRequest,Empty,OperationMetadata> deleteOrderOperationCallable()

Deletes an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   DeleteOrderRequest request =
       DeleteOrderRequest.newBuilder()
           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setRequestId("requestId693933066")
           .setForce(true)
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       gDCHardwareManagementClient.deleteOrderOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteOrderRequest,Empty,OperationMetadata>

deleteZoneAsync(DeleteZoneRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteZoneAsync(DeleteZoneRequest request)

Deletes a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   DeleteZoneRequest request =
       DeleteZoneRequest.newBuilder()
           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
           .setRequestId("requestId693933066")
           .build();
   gDCHardwareManagementClient.deleteZoneAsync(request).get();
 }
 
Parameter
Name Description
request DeleteZoneRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteZoneAsync(ZoneName name)

public final OperationFuture<Empty,OperationMetadata> deleteZoneAsync(ZoneName name)

Deletes a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
   gDCHardwareManagementClient.deleteZoneAsync(name).get();
 }
 
Parameter
Name Description
name ZoneName

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteZoneAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteZoneAsync(String name)

Deletes a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
   gDCHardwareManagementClient.deleteZoneAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteZoneCallable()

public final UnaryCallable<DeleteZoneRequest,Operation> deleteZoneCallable()

Deletes a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   DeleteZoneRequest request =
       DeleteZoneRequest.newBuilder()
           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.deleteZoneCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteZoneRequest,Operation>

deleteZoneOperationCallable()

public final OperationCallable<DeleteZoneRequest,Empty,OperationMetadata> deleteZoneOperationCallable()

Deletes a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   DeleteZoneRequest request =
       DeleteZoneRequest.newBuilder()
           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       gDCHardwareManagementClient.deleteZoneOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteZoneRequest,Empty,OperationMetadata>

getChangeLogEntry(ChangeLogEntryName name)

public final ChangeLogEntry getChangeLogEntry(ChangeLogEntryName name)

Gets details of a change to an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ChangeLogEntryName name =
       ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]");
   ChangeLogEntry response = gDCHardwareManagementClient.getChangeLogEntry(name);
 }
 
Parameter
Name Description
name ChangeLogEntryName

Required. The name of the change log entry. Format: projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}

Returns
Type Description
ChangeLogEntry

getChangeLogEntry(GetChangeLogEntryRequest request)

public final ChangeLogEntry getChangeLogEntry(GetChangeLogEntryRequest request)

Gets details of a change to an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetChangeLogEntryRequest request =
       GetChangeLogEntryRequest.newBuilder()
           .setName(
               ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]")
                   .toString())
           .build();
   ChangeLogEntry response = gDCHardwareManagementClient.getChangeLogEntry(request);
 }
 
Parameter
Name Description
request GetChangeLogEntryRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
ChangeLogEntry

getChangeLogEntry(String name)

public final ChangeLogEntry getChangeLogEntry(String name)

Gets details of a change to an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String name =
       ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]")
           .toString();
   ChangeLogEntry response = gDCHardwareManagementClient.getChangeLogEntry(name);
 }
 
Parameter
Name Description
name String

Required. The name of the change log entry. Format: projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}

Returns
Type Description
ChangeLogEntry

getChangeLogEntryCallable()

public final UnaryCallable<GetChangeLogEntryRequest,ChangeLogEntry> getChangeLogEntryCallable()

Gets details of a change to an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetChangeLogEntryRequest request =
       GetChangeLogEntryRequest.newBuilder()
           .setName(
               ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]")
                   .toString())
           .build();
   ApiFuture<ChangeLogEntry> future =
       gDCHardwareManagementClient.getChangeLogEntryCallable().futureCall(request);
   // Do something.
   ChangeLogEntry response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetChangeLogEntryRequest,ChangeLogEntry>

getComment(CommentName name)

public final Comment getComment(CommentName name)

Gets the content of a comment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   CommentName name = CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]");
   Comment response = gDCHardwareManagementClient.getComment(name);
 }
 
Parameter
Name Description
name CommentName

Required. The name of the comment. Format: projects/{project}/locations/{location}/orders/{order}/comments/{comment}

Returns
Type Description
Comment

getComment(GetCommentRequest request)

public final Comment getComment(GetCommentRequest request)

Gets the content of a comment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetCommentRequest request =
       GetCommentRequest.newBuilder()
           .setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString())
           .build();
   Comment response = gDCHardwareManagementClient.getComment(request);
 }
 
Parameter
Name Description
request GetCommentRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Comment

getComment(String name)

public final Comment getComment(String name)

Gets the content of a comment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String name = CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString();
   Comment response = gDCHardwareManagementClient.getComment(name);
 }
 
Parameter
Name Description
name String

Required. The name of the comment. Format: projects/{project}/locations/{location}/orders/{order}/comments/{comment}

Returns
Type Description
Comment

getCommentCallable()

public final UnaryCallable<GetCommentRequest,Comment> getCommentCallable()

Gets the content of a comment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetCommentRequest request =
       GetCommentRequest.newBuilder()
           .setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString())
           .build();
   ApiFuture<Comment> future =
       gDCHardwareManagementClient.getCommentCallable().futureCall(request);
   // Do something.
   Comment response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetCommentRequest,Comment>

getHardware(GetHardwareRequest request)

public final Hardware getHardware(GetHardwareRequest request)

Gets hardware details.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetHardwareRequest request =
       GetHardwareRequest.newBuilder()
           .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString())
           .build();
   Hardware response = gDCHardwareManagementClient.getHardware(request);
 }
 
Parameter
Name Description
request GetHardwareRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Hardware

getHardware(HardwareName name)

public final Hardware getHardware(HardwareName name)

Gets hardware details.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]");
   Hardware response = gDCHardwareManagementClient.getHardware(name);
 }
 
Parameter
Name Description
name HardwareName

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

Returns
Type Description
Hardware

getHardware(String name)

public final Hardware getHardware(String name)

Gets hardware details.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString();
   Hardware response = gDCHardwareManagementClient.getHardware(name);
 }
 
Parameter
Name Description
name String

Required. The name of the hardware. Format: projects/{project}/locations/{location}/hardware/{hardware}

Returns
Type Description
Hardware

getHardwareCallable()

public final UnaryCallable<GetHardwareRequest,Hardware> getHardwareCallable()

Gets hardware details.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetHardwareRequest request =
       GetHardwareRequest.newBuilder()
           .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString())
           .build();
   ApiFuture<Hardware> future =
       gDCHardwareManagementClient.getHardwareCallable().futureCall(request);
   // Do something.
   Hardware response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetHardwareRequest,Hardware>

getHardwareGroup(GetHardwareGroupRequest request)

public final HardwareGroup getHardwareGroup(GetHardwareGroupRequest request)

Gets details of a hardware group.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetHardwareGroupRequest request =
       GetHardwareGroupRequest.newBuilder()
           .setName(
               HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]")
                   .toString())
           .build();
   HardwareGroup response = gDCHardwareManagementClient.getHardwareGroup(request);
 }
 
Parameter
Name Description
request GetHardwareGroupRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
HardwareGroup

getHardwareGroup(HardwareGroupName name)

public final HardwareGroup getHardwareGroup(HardwareGroupName name)

Gets details of a hardware group.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   HardwareGroupName name =
       HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]");
   HardwareGroup response = gDCHardwareManagementClient.getHardwareGroup(name);
 }
 
Parameter
Name Description
name HardwareGroupName

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

Returns
Type Description
HardwareGroup

getHardwareGroup(String name)

public final HardwareGroup getHardwareGroup(String name)

Gets details of a hardware group.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String name =
       HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]").toString();
   HardwareGroup response = gDCHardwareManagementClient.getHardwareGroup(name);
 }
 
Parameter
Name Description
name String

Required. The name of the hardware group. Format: projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}

Returns
Type Description
HardwareGroup

getHardwareGroupCallable()

public final UnaryCallable<GetHardwareGroupRequest,HardwareGroup> getHardwareGroupCallable()

Gets details of a hardware group.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetHardwareGroupRequest request =
       GetHardwareGroupRequest.newBuilder()
           .setName(
               HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]")
                   .toString())
           .build();
   ApiFuture<HardwareGroup> future =
       gDCHardwareManagementClient.getHardwareGroupCallable().futureCall(request);
   // Do something.
   HardwareGroup response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetHardwareGroupRequest,HardwareGroup>

getHttpJsonOperationsClient()

public final OperationsClient getHttpJsonOperationsClient()

Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.

Returns
Type Description
OperationsClient

getLocation(GetLocationRequest request)

public final Location getLocation(GetLocationRequest request)

Gets information about a location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
   Location response = gDCHardwareManagementClient.getLocation(request);
 }
 
Parameter
Name Description
request com.google.cloud.location.GetLocationRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
com.google.cloud.location.Location

getLocationCallable()

public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()

Gets information about a location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
   ApiFuture<Location> future =
       gDCHardwareManagementClient.getLocationCallable().futureCall(request);
   // Do something.
   Location response = future.get();
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getOperationsClient()

public final OperationsClient getOperationsClient()

Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.

Returns
Type Description
OperationsClient

getOrder(GetOrderRequest request)

public final Order getOrder(GetOrderRequest request)

Gets details of an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetOrderRequest request =
       GetOrderRequest.newBuilder()
           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .build();
   Order response = gDCHardwareManagementClient.getOrder(request);
 }
 
Parameter
Name Description
request GetOrderRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Order

getOrder(OrderName name)

public final Order getOrder(OrderName name)

Gets details of an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
   Order response = gDCHardwareManagementClient.getOrder(name);
 }
 
Parameter
Name Description
name OrderName

Required. Name of the resource

Returns
Type Description
Order

getOrder(String name)

public final Order getOrder(String name)

Gets details of an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
   Order response = gDCHardwareManagementClient.getOrder(name);
 }
 
Parameter
Name Description
name String

Required. Name of the resource

Returns
Type Description
Order

getOrderCallable()

public final UnaryCallable<GetOrderRequest,Order> getOrderCallable()

Gets details of an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetOrderRequest request =
       GetOrderRequest.newBuilder()
           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .build();
   ApiFuture<Order> future = gDCHardwareManagementClient.getOrderCallable().futureCall(request);
   // Do something.
   Order response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetOrderRequest,Order>

getSettings()

public final GDCHardwareManagementSettings getSettings()
Returns
Type Description
GDCHardwareManagementSettings

getSite(GetSiteRequest request)

public final Site getSite(GetSiteRequest request)

Gets details of a site.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetSiteRequest request =
       GetSiteRequest.newBuilder()
           .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString())
           .build();
   Site response = gDCHardwareManagementClient.getSite(request);
 }
 
Parameter
Name Description
request GetSiteRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Site

getSite(SiteName name)

public final Site getSite(SiteName name)

Gets details of a site.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   SiteName name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]");
   Site response = gDCHardwareManagementClient.getSite(name);
 }
 
Parameter
Name Description
name SiteName

Required. The name of the site. Format: projects/{project}/locations/{location}/sites/{site}

Returns
Type Description
Site

getSite(String name)

public final Site getSite(String name)

Gets details of a site.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString();
   Site response = gDCHardwareManagementClient.getSite(name);
 }
 
Parameter
Name Description
name String

Required. The name of the site. Format: projects/{project}/locations/{location}/sites/{site}

Returns
Type Description
Site

getSiteCallable()

public final UnaryCallable<GetSiteRequest,Site> getSiteCallable()

Gets details of a site.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetSiteRequest request =
       GetSiteRequest.newBuilder()
           .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString())
           .build();
   ApiFuture<Site> future = gDCHardwareManagementClient.getSiteCallable().futureCall(request);
   // Do something.
   Site response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetSiteRequest,Site>

getSku(GetSkuRequest request)

public final Sku getSku(GetSkuRequest request)

Gets details of an SKU.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetSkuRequest request =
       GetSkuRequest.newBuilder()
           .setName(SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]").toString())
           .build();
   Sku response = gDCHardwareManagementClient.getSku(request);
 }
 
Parameter
Name Description
request GetSkuRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Sku

getSku(SkuName name)

public final Sku getSku(SkuName name)

Gets details of an SKU.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   SkuName name = SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]");
   Sku response = gDCHardwareManagementClient.getSku(name);
 }
 
Parameter
Name Description
name SkuName

Required. The name of the SKU. Format: projects/{project}/locations/{location}/skus/{sku}

Returns
Type Description
Sku

getSku(String name)

public final Sku getSku(String name)

Gets details of an SKU.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String name = SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]").toString();
   Sku response = gDCHardwareManagementClient.getSku(name);
 }
 
Parameter
Name Description
name String

Required. The name of the SKU. Format: projects/{project}/locations/{location}/skus/{sku}

Returns
Type Description
Sku

getSkuCallable()

public final UnaryCallable<GetSkuRequest,Sku> getSkuCallable()

Gets details of an SKU.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetSkuRequest request =
       GetSkuRequest.newBuilder()
           .setName(SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]").toString())
           .build();
   ApiFuture<Sku> future = gDCHardwareManagementClient.getSkuCallable().futureCall(request);
   // Do something.
   Sku response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetSkuRequest,Sku>

getStub()

public GDCHardwareManagementStub getStub()
Returns
Type Description
GDCHardwareManagementStub

getZone(GetZoneRequest request)

public final Zone getZone(GetZoneRequest request)

Gets details of a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetZoneRequest request =
       GetZoneRequest.newBuilder()
           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
           .build();
   Zone response = gDCHardwareManagementClient.getZone(request);
 }
 
Parameter
Name Description
request GetZoneRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Zone

getZone(ZoneName name)

public final Zone getZone(ZoneName name)

Gets details of a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
   Zone response = gDCHardwareManagementClient.getZone(name);
 }
 
Parameter
Name Description
name ZoneName

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

Returns
Type Description
Zone

getZone(String name)

public final Zone getZone(String name)

Gets details of a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
   Zone response = gDCHardwareManagementClient.getZone(name);
 }
 
Parameter
Name Description
name String

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

Returns
Type Description
Zone

getZoneCallable()

public final UnaryCallable<GetZoneRequest,Zone> getZoneCallable()

Gets details of a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   GetZoneRequest request =
       GetZoneRequest.newBuilder()
           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
           .build();
   ApiFuture<Zone> future = gDCHardwareManagementClient.getZoneCallable().futureCall(request);
   // Do something.
   Zone response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetZoneRequest,Zone>

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listChangeLogEntries(ListChangeLogEntriesRequest request)

public final GDCHardwareManagementClient.ListChangeLogEntriesPagedResponse listChangeLogEntries(ListChangeLogEntriesRequest request)

Lists the changes made to an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListChangeLogEntriesRequest request =
       ListChangeLogEntriesRequest.newBuilder()
           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (ChangeLogEntry element :
       gDCHardwareManagementClient.listChangeLogEntries(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListChangeLogEntriesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
GDCHardwareManagementClient.ListChangeLogEntriesPagedResponse

listChangeLogEntries(OrderName parent)

public final GDCHardwareManagementClient.ListChangeLogEntriesPagedResponse listChangeLogEntries(OrderName parent)

Lists the changes made to an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
   for (ChangeLogEntry element :
       gDCHardwareManagementClient.listChangeLogEntries(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent OrderName

Required. The order to list change log entries for. Format: projects/{project}/locations/{location}/orders/{order}

Returns
Type Description
GDCHardwareManagementClient.ListChangeLogEntriesPagedResponse

listChangeLogEntries(String parent)

public final GDCHardwareManagementClient.ListChangeLogEntriesPagedResponse listChangeLogEntries(String parent)

Lists the changes made to an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
   for (ChangeLogEntry element :
       gDCHardwareManagementClient.listChangeLogEntries(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The order to list change log entries for. Format: projects/{project}/locations/{location}/orders/{order}

Returns
Type Description
GDCHardwareManagementClient.ListChangeLogEntriesPagedResponse

listChangeLogEntriesCallable()

public final UnaryCallable<ListChangeLogEntriesRequest,ListChangeLogEntriesResponse> listChangeLogEntriesCallable()

Lists the changes made to an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListChangeLogEntriesRequest request =
       ListChangeLogEntriesRequest.newBuilder()
           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListChangeLogEntriesResponse response =
         gDCHardwareManagementClient.listChangeLogEntriesCallable().call(request);
     for (ChangeLogEntry element : response.getChangeLogEntriesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListChangeLogEntriesRequest,ListChangeLogEntriesResponse>

listChangeLogEntriesPagedCallable()

public final UnaryCallable<ListChangeLogEntriesRequest,GDCHardwareManagementClient.ListChangeLogEntriesPagedResponse> listChangeLogEntriesPagedCallable()

Lists the changes made to an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListChangeLogEntriesRequest request =
       ListChangeLogEntriesRequest.newBuilder()
           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<ChangeLogEntry> future =
       gDCHardwareManagementClient.listChangeLogEntriesPagedCallable().futureCall(request);
   // Do something.
   for (ChangeLogEntry element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListChangeLogEntriesRequest,ListChangeLogEntriesPagedResponse>

listComments(ListCommentsRequest request)

public final GDCHardwareManagementClient.ListCommentsPagedResponse listComments(ListCommentsRequest request)

Lists the comments on an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListCommentsRequest request =
       ListCommentsRequest.newBuilder()
           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (Comment element : gDCHardwareManagementClient.listComments(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListCommentsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
GDCHardwareManagementClient.ListCommentsPagedResponse

listComments(OrderName parent)

public final GDCHardwareManagementClient.ListCommentsPagedResponse listComments(OrderName parent)

Lists the comments on an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
   for (Comment element : gDCHardwareManagementClient.listComments(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent OrderName

Required. The order to list comments on. Format: projects/{project}/locations/{location}/orders/{order}

Returns
Type Description
GDCHardwareManagementClient.ListCommentsPagedResponse

listComments(String parent)

public final GDCHardwareManagementClient.ListCommentsPagedResponse listComments(String parent)

Lists the comments on an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
   for (Comment element : gDCHardwareManagementClient.listComments(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The order to list comments on. Format: projects/{project}/locations/{location}/orders/{order}

Returns
Type Description
GDCHardwareManagementClient.ListCommentsPagedResponse

listCommentsCallable()

public final UnaryCallable<ListCommentsRequest,ListCommentsResponse> listCommentsCallable()

Lists the comments on an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListCommentsRequest request =
       ListCommentsRequest.newBuilder()
           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListCommentsResponse response =
         gDCHardwareManagementClient.listCommentsCallable().call(request);
     for (Comment element : response.getCommentsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListCommentsRequest,ListCommentsResponse>

listCommentsPagedCallable()

public final UnaryCallable<ListCommentsRequest,GDCHardwareManagementClient.ListCommentsPagedResponse> listCommentsPagedCallable()

Lists the comments on an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListCommentsRequest request =
       ListCommentsRequest.newBuilder()
           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<Comment> future =
       gDCHardwareManagementClient.listCommentsPagedCallable().futureCall(request);
   // Do something.
   for (Comment element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListCommentsRequest,ListCommentsPagedResponse>

listHardware(ListHardwareRequest request)

public final GDCHardwareManagementClient.ListHardwarePagedResponse listHardware(ListHardwareRequest request)

Lists hardware in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListHardwareRequest request =
       ListHardwareRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (Hardware element : gDCHardwareManagementClient.listHardware(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListHardwareRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
GDCHardwareManagementClient.ListHardwarePagedResponse

listHardware(LocationName parent)

public final GDCHardwareManagementClient.ListHardwarePagedResponse listHardware(LocationName parent)

Lists hardware in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (Hardware element : gDCHardwareManagementClient.listHardware(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. The project and location to list hardware in. Format: projects/{project}/locations/{location}

Returns
Type Description
GDCHardwareManagementClient.ListHardwarePagedResponse

listHardware(String parent)

public final GDCHardwareManagementClient.ListHardwarePagedResponse listHardware(String parent)

Lists hardware in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (Hardware element : gDCHardwareManagementClient.listHardware(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The project and location to list hardware in. Format: projects/{project}/locations/{location}

Returns
Type Description
GDCHardwareManagementClient.ListHardwarePagedResponse

listHardwareCallable()

public final UnaryCallable<ListHardwareRequest,ListHardwareResponse> listHardwareCallable()

Lists hardware in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListHardwareRequest request =
       ListHardwareRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListHardwareResponse response =
         gDCHardwareManagementClient.listHardwareCallable().call(request);
     for (Hardware element : response.getHardwareList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListHardwareRequest,ListHardwareResponse>

listHardwareGroups(ListHardwareGroupsRequest request)

public final GDCHardwareManagementClient.ListHardwareGroupsPagedResponse listHardwareGroups(ListHardwareGroupsRequest request)

Lists hardware groups in a given order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListHardwareGroupsRequest request =
       ListHardwareGroupsRequest.newBuilder()
           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (HardwareGroup element :
       gDCHardwareManagementClient.listHardwareGroups(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListHardwareGroupsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
GDCHardwareManagementClient.ListHardwareGroupsPagedResponse

listHardwareGroups(OrderName parent)

public final GDCHardwareManagementClient.ListHardwareGroupsPagedResponse listHardwareGroups(OrderName parent)

Lists hardware groups in a given order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
   for (HardwareGroup element :
       gDCHardwareManagementClient.listHardwareGroups(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent OrderName

Required. The order to list hardware groups in. Format: projects/{project}/locations/{location}/orders/{order}

Returns
Type Description
GDCHardwareManagementClient.ListHardwareGroupsPagedResponse

listHardwareGroups(String parent)

public final GDCHardwareManagementClient.ListHardwareGroupsPagedResponse listHardwareGroups(String parent)

Lists hardware groups in a given order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
   for (HardwareGroup element :
       gDCHardwareManagementClient.listHardwareGroups(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The order to list hardware groups in. Format: projects/{project}/locations/{location}/orders/{order}

Returns
Type Description
GDCHardwareManagementClient.ListHardwareGroupsPagedResponse

listHardwareGroupsCallable()

public final UnaryCallable<ListHardwareGroupsRequest,ListHardwareGroupsResponse> listHardwareGroupsCallable()

Lists hardware groups in a given order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListHardwareGroupsRequest request =
       ListHardwareGroupsRequest.newBuilder()
           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListHardwareGroupsResponse response =
         gDCHardwareManagementClient.listHardwareGroupsCallable().call(request);
     for (HardwareGroup element : response.getHardwareGroupsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListHardwareGroupsRequest,ListHardwareGroupsResponse>

listHardwareGroupsPagedCallable()

public final UnaryCallable<ListHardwareGroupsRequest,GDCHardwareManagementClient.ListHardwareGroupsPagedResponse> listHardwareGroupsPagedCallable()

Lists hardware groups in a given order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListHardwareGroupsRequest request =
       ListHardwareGroupsRequest.newBuilder()
           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<HardwareGroup> future =
       gDCHardwareManagementClient.listHardwareGroupsPagedCallable().futureCall(request);
   // Do something.
   for (HardwareGroup element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListHardwareGroupsRequest,ListHardwareGroupsPagedResponse>

listHardwarePagedCallable()

public final UnaryCallable<ListHardwareRequest,GDCHardwareManagementClient.ListHardwarePagedResponse> listHardwarePagedCallable()

Lists hardware in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListHardwareRequest request =
       ListHardwareRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<Hardware> future =
       gDCHardwareManagementClient.listHardwarePagedCallable().futureCall(request);
   // Do something.
   for (Hardware element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListHardwareRequest,ListHardwarePagedResponse>

listLocations(ListLocationsRequest request)

public final GDCHardwareManagementClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)

Lists information about the supported locations for this service.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (Location element : gDCHardwareManagementClient.listLocations(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request com.google.cloud.location.ListLocationsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
GDCHardwareManagementClient.ListLocationsPagedResponse

listLocationsCallable()

public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()

Lists information about the supported locations for this service.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListLocationsResponse response =
         gDCHardwareManagementClient.listLocationsCallable().call(request);
     for (Location element : response.getLocationsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>

listLocationsPagedCallable()

public final UnaryCallable<ListLocationsRequest,GDCHardwareManagementClient.ListLocationsPagedResponse> listLocationsPagedCallable()

Lists information about the supported locations for this service.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<Location> future =
       gDCHardwareManagementClient.listLocationsPagedCallable().futureCall(request);
   // Do something.
   for (Location element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>

listOrders(ListOrdersRequest request)

public final GDCHardwareManagementClient.ListOrdersPagedResponse listOrders(ListOrdersRequest request)

Lists orders in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListOrdersRequest request =
       ListOrdersRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (Order element : gDCHardwareManagementClient.listOrders(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListOrdersRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
GDCHardwareManagementClient.ListOrdersPagedResponse

listOrders(LocationName parent)

public final GDCHardwareManagementClient.ListOrdersPagedResponse listOrders(LocationName parent)

Lists orders in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (Order element : gDCHardwareManagementClient.listOrders(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. The project and location to list orders in. Format: projects/{project}/locations/{location}

Returns
Type Description
GDCHardwareManagementClient.ListOrdersPagedResponse

listOrders(String parent)

public final GDCHardwareManagementClient.ListOrdersPagedResponse listOrders(String parent)

Lists orders in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (Order element : gDCHardwareManagementClient.listOrders(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The project and location to list orders in. Format: projects/{project}/locations/{location}

Returns
Type Description
GDCHardwareManagementClient.ListOrdersPagedResponse

listOrdersCallable()

public final UnaryCallable<ListOrdersRequest,ListOrdersResponse> listOrdersCallable()

Lists orders in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListOrdersRequest request =
       ListOrdersRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListOrdersResponse response =
         gDCHardwareManagementClient.listOrdersCallable().call(request);
     for (Order element : response.getOrdersList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListOrdersRequest,ListOrdersResponse>

listOrdersPagedCallable()

public final UnaryCallable<ListOrdersRequest,GDCHardwareManagementClient.ListOrdersPagedResponse> listOrdersPagedCallable()

Lists orders in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListOrdersRequest request =
       ListOrdersRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<Order> future =
       gDCHardwareManagementClient.listOrdersPagedCallable().futureCall(request);
   // Do something.
   for (Order element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListOrdersRequest,ListOrdersPagedResponse>

listSites(ListSitesRequest request)

public final GDCHardwareManagementClient.ListSitesPagedResponse listSites(ListSitesRequest request)

Lists sites in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListSitesRequest request =
       ListSitesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (Site element : gDCHardwareManagementClient.listSites(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListSitesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
GDCHardwareManagementClient.ListSitesPagedResponse

listSites(LocationName parent)

public final GDCHardwareManagementClient.ListSitesPagedResponse listSites(LocationName parent)

Lists sites in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (Site element : gDCHardwareManagementClient.listSites(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. The project and location to list sites in. Format: projects/{project}/locations/{location}

Returns
Type Description
GDCHardwareManagementClient.ListSitesPagedResponse

listSites(String parent)

public final GDCHardwareManagementClient.ListSitesPagedResponse listSites(String parent)

Lists sites in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (Site element : gDCHardwareManagementClient.listSites(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The project and location to list sites in. Format: projects/{project}/locations/{location}

Returns
Type Description
GDCHardwareManagementClient.ListSitesPagedResponse

listSitesCallable()

public final UnaryCallable<ListSitesRequest,ListSitesResponse> listSitesCallable()

Lists sites in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListSitesRequest request =
       ListSitesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListSitesResponse response = gDCHardwareManagementClient.listSitesCallable().call(request);
     for (Site element : response.getSitesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListSitesRequest,ListSitesResponse>

listSitesPagedCallable()

public final UnaryCallable<ListSitesRequest,GDCHardwareManagementClient.ListSitesPagedResponse> listSitesPagedCallable()

Lists sites in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListSitesRequest request =
       ListSitesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<Site> future =
       gDCHardwareManagementClient.listSitesPagedCallable().futureCall(request);
   // Do something.
   for (Site element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListSitesRequest,ListSitesPagedResponse>

listSkus(ListSkusRequest request)

public final GDCHardwareManagementClient.ListSkusPagedResponse listSkus(ListSkusRequest request)

Lists SKUs for a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListSkusRequest request =
       ListSkusRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (Sku element : gDCHardwareManagementClient.listSkus(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListSkusRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
GDCHardwareManagementClient.ListSkusPagedResponse

listSkus(LocationName parent)

public final GDCHardwareManagementClient.ListSkusPagedResponse listSkus(LocationName parent)

Lists SKUs for a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (Sku element : gDCHardwareManagementClient.listSkus(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. The project and location to list SKUs in. Format: projects/{project}/locations/{location}

Returns
Type Description
GDCHardwareManagementClient.ListSkusPagedResponse

listSkus(String parent)

public final GDCHardwareManagementClient.ListSkusPagedResponse listSkus(String parent)

Lists SKUs for a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (Sku element : gDCHardwareManagementClient.listSkus(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The project and location to list SKUs in. Format: projects/{project}/locations/{location}

Returns
Type Description
GDCHardwareManagementClient.ListSkusPagedResponse

listSkusCallable()

public final UnaryCallable<ListSkusRequest,ListSkusResponse> listSkusCallable()

Lists SKUs for a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListSkusRequest request =
       ListSkusRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListSkusResponse response = gDCHardwareManagementClient.listSkusCallable().call(request);
     for (Sku element : response.getSkusList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListSkusRequest,ListSkusResponse>

listSkusPagedCallable()

public final UnaryCallable<ListSkusRequest,GDCHardwareManagementClient.ListSkusPagedResponse> listSkusPagedCallable()

Lists SKUs for a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListSkusRequest request =
       ListSkusRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<Sku> future =
       gDCHardwareManagementClient.listSkusPagedCallable().futureCall(request);
   // Do something.
   for (Sku element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListSkusRequest,ListSkusPagedResponse>

listZones(ListZonesRequest request)

public final GDCHardwareManagementClient.ListZonesPagedResponse listZones(ListZonesRequest request)

Lists zones in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListZonesRequest request =
       ListZonesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (Zone element : gDCHardwareManagementClient.listZones(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListZonesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
GDCHardwareManagementClient.ListZonesPagedResponse

listZones(LocationName parent)

public final GDCHardwareManagementClient.ListZonesPagedResponse listZones(LocationName parent)

Lists zones in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (Zone element : gDCHardwareManagementClient.listZones(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. The project and location to list zones in. Format: projects/{project}/locations/{location}

Returns
Type Description
GDCHardwareManagementClient.ListZonesPagedResponse

listZones(String parent)

public final GDCHardwareManagementClient.ListZonesPagedResponse listZones(String parent)

Lists zones in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (Zone element : gDCHardwareManagementClient.listZones(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The project and location to list zones in. Format: projects/{project}/locations/{location}

Returns
Type Description
GDCHardwareManagementClient.ListZonesPagedResponse

listZonesCallable()

public final UnaryCallable<ListZonesRequest,ListZonesResponse> listZonesCallable()

Lists zones in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListZonesRequest request =
       ListZonesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListZonesResponse response = gDCHardwareManagementClient.listZonesCallable().call(request);
     for (Zone element : response.getZonesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListZonesRequest,ListZonesResponse>

listZonesPagedCallable()

public final UnaryCallable<ListZonesRequest,GDCHardwareManagementClient.ListZonesPagedResponse> listZonesPagedCallable()

Lists zones in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ListZonesRequest request =
       ListZonesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<Zone> future =
       gDCHardwareManagementClient.listZonesPagedCallable().futureCall(request);
   // Do something.
   for (Zone element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListZonesRequest,ListZonesPagedResponse>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

signalZoneStateAsync(SignalZoneStateRequest request)

public final OperationFuture<Zone,OperationMetadata> signalZoneStateAsync(SignalZoneStateRequest request)

Signals the state of a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   SignalZoneStateRequest request =
       SignalZoneStateRequest.newBuilder()
           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
           .setRequestId("requestId693933066")
           .build();
   Zone response = gDCHardwareManagementClient.signalZoneStateAsync(request).get();
 }
 
Parameter
Name Description
request SignalZoneStateRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Zone,OperationMetadata>

signalZoneStateAsync(ZoneName name, SignalZoneStateRequest.StateSignal stateSignal)

public final OperationFuture<Zone,OperationMetadata> signalZoneStateAsync(ZoneName name, SignalZoneStateRequest.StateSignal stateSignal)

Signals the state of a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
   SignalZoneStateRequest.StateSignal stateSignal =
       SignalZoneStateRequest.StateSignal.forNumber(0);
   Zone response = gDCHardwareManagementClient.signalZoneStateAsync(name, stateSignal).get();
 }
 
Parameters
Name Description
name ZoneName

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

stateSignal SignalZoneStateRequest.StateSignal

Required. The state signal to send for this zone.

Returns
Type Description
OperationFuture<Zone,OperationMetadata>

signalZoneStateAsync(String name, SignalZoneStateRequest.StateSignal stateSignal)

public final OperationFuture<Zone,OperationMetadata> signalZoneStateAsync(String name, SignalZoneStateRequest.StateSignal stateSignal)

Signals the state of a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
   SignalZoneStateRequest.StateSignal stateSignal =
       SignalZoneStateRequest.StateSignal.forNumber(0);
   Zone response = gDCHardwareManagementClient.signalZoneStateAsync(name, stateSignal).get();
 }
 
Parameters
Name Description
name String

Required. The name of the zone. Format: projects/{project}/locations/{location}/zones/{zone}

stateSignal SignalZoneStateRequest.StateSignal

Required. The state signal to send for this zone.

Returns
Type Description
OperationFuture<Zone,OperationMetadata>

signalZoneStateCallable()

public final UnaryCallable<SignalZoneStateRequest,Operation> signalZoneStateCallable()

Signals the state of a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   SignalZoneStateRequest request =
       SignalZoneStateRequest.newBuilder()
           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.signalZoneStateCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<SignalZoneStateRequest,Operation>

signalZoneStateOperationCallable()

public final OperationCallable<SignalZoneStateRequest,Zone,OperationMetadata> signalZoneStateOperationCallable()

Signals the state of a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   SignalZoneStateRequest request =
       SignalZoneStateRequest.newBuilder()
           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Zone, OperationMetadata> future =
       gDCHardwareManagementClient.signalZoneStateOperationCallable().futureCall(request);
   // Do something.
   Zone response = future.get();
 }
 
Returns
Type Description
OperationCallable<SignalZoneStateRequest,Zone,OperationMetadata>

submitOrderAsync(OrderName name)

public final OperationFuture<Order,OperationMetadata> submitOrderAsync(OrderName name)

Submits an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
   Order response = gDCHardwareManagementClient.submitOrderAsync(name).get();
 }
 
Parameter
Name Description
name OrderName

Required. The name of the order. Format: projects/{project}/locations/{location}/orders/{order}

Returns
Type Description
OperationFuture<Order,OperationMetadata>

submitOrderAsync(SubmitOrderRequest request)

public final OperationFuture<Order,OperationMetadata> submitOrderAsync(SubmitOrderRequest request)

Submits an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   SubmitOrderRequest request =
       SubmitOrderRequest.newBuilder()
           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setRequestId("requestId693933066")
           .build();
   Order response = gDCHardwareManagementClient.submitOrderAsync(request).get();
 }
 
Parameter
Name Description
request SubmitOrderRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Order,OperationMetadata>

submitOrderAsync(String name)

public final OperationFuture<Order,OperationMetadata> submitOrderAsync(String name)

Submits an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   String name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
   Order response = gDCHardwareManagementClient.submitOrderAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the order. Format: projects/{project}/locations/{location}/orders/{order}

Returns
Type Description
OperationFuture<Order,OperationMetadata>

submitOrderCallable()

public final UnaryCallable<SubmitOrderRequest,Operation> submitOrderCallable()

Submits an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   SubmitOrderRequest request =
       SubmitOrderRequest.newBuilder()
           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.submitOrderCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<SubmitOrderRequest,Operation>

submitOrderOperationCallable()

public final OperationCallable<SubmitOrderRequest,Order,OperationMetadata> submitOrderOperationCallable()

Submits an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   SubmitOrderRequest request =
       SubmitOrderRequest.newBuilder()
           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Order, OperationMetadata> future =
       gDCHardwareManagementClient.submitOrderOperationCallable().futureCall(request);
   // Do something.
   Order response = future.get();
 }
 
Returns
Type Description
OperationCallable<SubmitOrderRequest,Order,OperationMetadata>

updateHardwareAsync(Hardware hardware, FieldMask updateMask)

public final OperationFuture<Hardware,OperationMetadata> updateHardwareAsync(Hardware hardware, FieldMask updateMask)

Updates hardware parameters.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   Hardware hardware = Hardware.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Hardware response =
       gDCHardwareManagementClient.updateHardwareAsync(hardware, updateMask).get();
 }
 
Parameters
Name Description
hardware Hardware

Required. The hardware to update.

updateMask FieldMask

Required. A mask to specify the fields in the Hardware to overwrite with this update. The fields specified in the update_mask are relative to the hardware, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten.

Returns
Type Description
OperationFuture<Hardware,OperationMetadata>

updateHardwareAsync(UpdateHardwareRequest request)

public final OperationFuture<Hardware,OperationMetadata> updateHardwareAsync(UpdateHardwareRequest request)

Updates hardware parameters.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   UpdateHardwareRequest request =
       UpdateHardwareRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setHardware(Hardware.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   Hardware response = gDCHardwareManagementClient.updateHardwareAsync(request).get();
 }
 
Parameter
Name Description
request UpdateHardwareRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Hardware,OperationMetadata>

updateHardwareCallable()

public final UnaryCallable<UpdateHardwareRequest,Operation> updateHardwareCallable()

Updates hardware parameters.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   UpdateHardwareRequest request =
       UpdateHardwareRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setHardware(Hardware.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.updateHardwareCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateHardwareRequest,Operation>

updateHardwareGroupAsync(HardwareGroup hardwareGroup, FieldMask updateMask)

public final OperationFuture<HardwareGroup,OperationMetadata> updateHardwareGroupAsync(HardwareGroup hardwareGroup, FieldMask updateMask)

Updates the parameters of a hardware group.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   HardwareGroup response =
       gDCHardwareManagementClient.updateHardwareGroupAsync(hardwareGroup, updateMask).get();
 }
 
Parameters
Name Description
hardwareGroup HardwareGroup

Required. The hardware group to update.

updateMask FieldMask

Required. A mask to specify the fields in the HardwareGroup to overwrite with this update. The fields specified in the update_mask are relative to the hardware group, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten.

Returns
Type Description
OperationFuture<HardwareGroup,OperationMetadata>

updateHardwareGroupAsync(UpdateHardwareGroupRequest request)

public final OperationFuture<HardwareGroup,OperationMetadata> updateHardwareGroupAsync(UpdateHardwareGroupRequest request)

Updates the parameters of a hardware group.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   UpdateHardwareGroupRequest request =
       UpdateHardwareGroupRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setHardwareGroup(HardwareGroup.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   HardwareGroup response = gDCHardwareManagementClient.updateHardwareGroupAsync(request).get();
 }
 
Parameter
Name Description
request UpdateHardwareGroupRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<HardwareGroup,OperationMetadata>

updateHardwareGroupCallable()

public final UnaryCallable<UpdateHardwareGroupRequest,Operation> updateHardwareGroupCallable()

Updates the parameters of a hardware group.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   UpdateHardwareGroupRequest request =
       UpdateHardwareGroupRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setHardwareGroup(HardwareGroup.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.updateHardwareGroupCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateHardwareGroupRequest,Operation>

updateHardwareGroupOperationCallable()

public final OperationCallable<UpdateHardwareGroupRequest,HardwareGroup,OperationMetadata> updateHardwareGroupOperationCallable()

Updates the parameters of a hardware group.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   UpdateHardwareGroupRequest request =
       UpdateHardwareGroupRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setHardwareGroup(HardwareGroup.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<HardwareGroup, OperationMetadata> future =
       gDCHardwareManagementClient.updateHardwareGroupOperationCallable().futureCall(request);
   // Do something.
   HardwareGroup response = future.get();
 }
 
Returns
Type Description
OperationCallable<UpdateHardwareGroupRequest,HardwareGroup,OperationMetadata>

updateHardwareOperationCallable()

public final OperationCallable<UpdateHardwareRequest,Hardware,OperationMetadata> updateHardwareOperationCallable()

Updates hardware parameters.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   UpdateHardwareRequest request =
       UpdateHardwareRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setHardware(Hardware.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Hardware, OperationMetadata> future =
       gDCHardwareManagementClient.updateHardwareOperationCallable().futureCall(request);
   // Do something.
   Hardware response = future.get();
 }
 
Returns
Type Description
OperationCallable<UpdateHardwareRequest,Hardware,OperationMetadata>

updateOrderAsync(Order order, FieldMask updateMask)

public final OperationFuture<Order,OperationMetadata> updateOrderAsync(Order order, FieldMask updateMask)

Updates the parameters of an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   Order order = Order.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Order response = gDCHardwareManagementClient.updateOrderAsync(order, updateMask).get();
 }
 
Parameters
Name Description
order Order

Required. The order to update.

updateMask FieldMask

Required. A mask to specify the fields in the Order to overwrite with this update. The fields specified in the update_mask are relative to the order, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten.

Returns
Type Description
OperationFuture<Order,OperationMetadata>

updateOrderAsync(UpdateOrderRequest request)

public final OperationFuture<Order,OperationMetadata> updateOrderAsync(UpdateOrderRequest request)

Updates the parameters of an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   UpdateOrderRequest request =
       UpdateOrderRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setOrder(Order.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   Order response = gDCHardwareManagementClient.updateOrderAsync(request).get();
 }
 
Parameter
Name Description
request UpdateOrderRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Order,OperationMetadata>

updateOrderCallable()

public final UnaryCallable<UpdateOrderRequest,Operation> updateOrderCallable()

Updates the parameters of an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   UpdateOrderRequest request =
       UpdateOrderRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setOrder(Order.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.updateOrderCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateOrderRequest,Operation>

updateOrderOperationCallable()

public final OperationCallable<UpdateOrderRequest,Order,OperationMetadata> updateOrderOperationCallable()

Updates the parameters of an order.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   UpdateOrderRequest request =
       UpdateOrderRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setOrder(Order.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Order, OperationMetadata> future =
       gDCHardwareManagementClient.updateOrderOperationCallable().futureCall(request);
   // Do something.
   Order response = future.get();
 }
 
Returns
Type Description
OperationCallable<UpdateOrderRequest,Order,OperationMetadata>

updateSiteAsync(Site site, FieldMask updateMask)

public final OperationFuture<Site,OperationMetadata> updateSiteAsync(Site site, FieldMask updateMask)

Updates the parameters of a site.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   Site site = Site.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Site response = gDCHardwareManagementClient.updateSiteAsync(site, updateMask).get();
 }
 
Parameters
Name Description
site Site

Required. The site to update.

updateMask FieldMask

Required. A mask to specify the fields in the Site to overwrite with this update. The fields specified in the update_mask are relative to the site, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten.

Returns
Type Description
OperationFuture<Site,OperationMetadata>

updateSiteAsync(UpdateSiteRequest request)

public final OperationFuture<Site,OperationMetadata> updateSiteAsync(UpdateSiteRequest request)

Updates the parameters of a site.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   UpdateSiteRequest request =
       UpdateSiteRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setSite(Site.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   Site response = gDCHardwareManagementClient.updateSiteAsync(request).get();
 }
 
Parameter
Name Description
request UpdateSiteRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Site,OperationMetadata>

updateSiteCallable()

public final UnaryCallable<UpdateSiteRequest,Operation> updateSiteCallable()

Updates the parameters of a site.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   UpdateSiteRequest request =
       UpdateSiteRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setSite(Site.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.updateSiteCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateSiteRequest,Operation>

updateSiteOperationCallable()

public final OperationCallable<UpdateSiteRequest,Site,OperationMetadata> updateSiteOperationCallable()

Updates the parameters of a site.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   UpdateSiteRequest request =
       UpdateSiteRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setSite(Site.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Site, OperationMetadata> future =
       gDCHardwareManagementClient.updateSiteOperationCallable().futureCall(request);
   // Do something.
   Site response = future.get();
 }
 
Returns
Type Description
OperationCallable<UpdateSiteRequest,Site,OperationMetadata>

updateZoneAsync(UpdateZoneRequest request)

public final OperationFuture<Zone,OperationMetadata> updateZoneAsync(UpdateZoneRequest request)

Updates the parameters of a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   UpdateZoneRequest request =
       UpdateZoneRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setZone(Zone.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   Zone response = gDCHardwareManagementClient.updateZoneAsync(request).get();
 }
 
Parameter
Name Description
request UpdateZoneRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Zone,OperationMetadata>

updateZoneAsync(Zone zone, FieldMask updateMask)

public final OperationFuture<Zone,OperationMetadata> updateZoneAsync(Zone zone, FieldMask updateMask)

Updates the parameters of a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   Zone zone = Zone.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Zone response = gDCHardwareManagementClient.updateZoneAsync(zone, updateMask).get();
 }
 
Parameters
Name Description
zone Zone

Required. The zone to update.

updateMask FieldMask

Required. A mask to specify the fields in the Zone to overwrite with this update. The fields specified in the update_mask are relative to the zone, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask then all fields will be overwritten.

Returns
Type Description
OperationFuture<Zone,OperationMetadata>

updateZoneCallable()

public final UnaryCallable<UpdateZoneRequest,Operation> updateZoneCallable()

Updates the parameters of a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   UpdateZoneRequest request =
       UpdateZoneRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setZone(Zone.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.updateZoneCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateZoneRequest,Operation>

updateZoneOperationCallable()

public final OperationCallable<UpdateZoneRequest,Zone,OperationMetadata> updateZoneOperationCallable()

Updates the parameters of a zone.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GDCHardwareManagementClient gDCHardwareManagementClient =
     GDCHardwareManagementClient.create()) {
   UpdateZoneRequest request =
       UpdateZoneRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setZone(Zone.newBuilder().build())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Zone, OperationMetadata> future =
       gDCHardwareManagementClient.updateZoneOperationCallable().futureCall(request);
   // Do something.
   Zone response = future.get();
 }
 
Returns
Type Description
OperationCallable<UpdateZoneRequest,Zone,OperationMetadata>