Class GDCHardwareManagementClient (0.9.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()

DeleteSite

Deletes a site.

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

  • deleteSiteAsync(DeleteSiteRequest request)

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

  • deleteSiteAsync(SiteName name)

  • deleteSiteAsync(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.

  • deleteSiteOperationCallable()

  • deleteSiteCallable()

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()

RecordActionOnComment

Record Action on a Comment. If the Action specified in the request is READ, the viewed time in the comment is set to the time the request was received. If the comment is already marked as read, subsequent calls will be ignored. If the Action is UNREAD, the viewed time is cleared from the comment.

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

  • recordActionOnComment(RecordActionOnCommentRequest request)

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

  • recordActionOnComment(CommentName name, RecordActionOnCommentRequest.ActionType actionType)

  • recordActionOnComment(String name, RecordActionOnCommentRequest.ActionType actionType)

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

  • recordActionOnCommentCallable()

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>

deleteSiteAsync(DeleteSiteRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteSiteAsync(DeleteSiteRequest request)

Deletes 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()) {
   DeleteSiteRequest request =
       DeleteSiteRequest.newBuilder()
           .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString())
           .setRequestId("requestId693933066")
           .build();
   gDCHardwareManagementClient.deleteSiteAsync(request).get();
 }
 
Parameter
Name Description
request DeleteSiteRequest

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

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteSiteAsync(SiteName name)

public final OperationFuture<Empty,OperationMetadata> deleteSiteAsync(SiteName name)

Deletes 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]");
   gDCHardwareManagementClient.deleteSiteAsync(name).get();
 }
 
Parameter
Name Description
name SiteName

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

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteSiteAsync(String name)

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

Deletes 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();
   gDCHardwareManagementClient.deleteSiteAsync(name).get();
 }
 
Parameter
Name Description
name String

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

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteSiteCallable()

public final UnaryCallable<DeleteSiteRequest,Operation> deleteSiteCallable()

Deletes 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()) {
   DeleteSiteRequest request =
       DeleteSiteRequest.newBuilder()
           .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString())
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       gDCHardwareManagementClient.deleteSiteCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteSiteRequest,Operation>

deleteSiteOperationCallable()

public final OperationCallable<DeleteSiteRequest,Empty,OperationMetadata> deleteSiteOperationCallable()

Deletes 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()) {
   DeleteSiteRequest request =
       DeleteSiteRequest.newBuilder()
           .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString())
           .setRequestId("requestId693933066")
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       gDCHardwareManagementClient.deleteSiteOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteSiteRequest,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