Class DesignCenterClient (0.3.0)

GitHub RepositoryProduct Reference

Service Description: Service describing handlers for resources

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
   Space response = designCenterClient.getSpace(name);
 }
 

Note: close() needs to be called on the DesignCenterClient 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

GetSpace

Gets details about a space.

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

  • getSpace(GetSpaceRequest request)

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

  • getSpace(SpaceName name)

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

  • getSpaceCallable()

ListSpaces

Lists spaces in a given project and location.

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

  • listSpaces(ListSpacesRequest request)

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

  • listSpaces(LocationName parent)

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

  • listSpacesPagedCallable()

  • listSpacesCallable()

CreateSpace

Creates a space.

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

  • createSpace(CreateSpaceRequest request)

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

  • createSpace(LocationName parent, Space space, String spaceId)

  • createSpace(String parent, Space space, String spaceId)

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

  • createSpaceCallable()

UpdateSpace

Updates a space.

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

  • updateSpace(UpdateSpaceRequest request)

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

  • updateSpace(Space space, 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.

  • updateSpaceCallable()

DeleteSpace

Deletes a space.

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

  • deleteSpace(DeleteSpaceRequest request)

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

  • deleteSpace(SpaceName name)

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

  • deleteSpaceCallable()

GetApplicationTemplate

Gets details about an application template.

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

  • getApplicationTemplate(GetApplicationTemplateRequest request)

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

  • getApplicationTemplate(ApplicationTemplateName name)

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

  • getApplicationTemplateCallable()

ListApplicationTemplates

Lists application templates in a given space.

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

  • listApplicationTemplates(ListApplicationTemplatesRequest request)

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

  • listApplicationTemplates(SpaceName parent)

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

  • listApplicationTemplatesPagedCallable()

  • listApplicationTemplatesCallable()

CreateApplicationTemplate

Creates an application template.

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

  • createApplicationTemplate(CreateApplicationTemplateRequest request)

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

  • createApplicationTemplate(SpaceName parent, ApplicationTemplate applicationTemplate, String applicationTemplateId)

  • createApplicationTemplate(String parent, ApplicationTemplate applicationTemplate, String applicationTemplateId)

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

  • createApplicationTemplateCallable()

UpdateApplicationTemplate

Updates an application template.

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

  • updateApplicationTemplate(UpdateApplicationTemplateRequest request)

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

  • updateApplicationTemplate(ApplicationTemplate applicationTemplate, 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.

  • updateApplicationTemplateCallable()

ImportApplicationTemplate

Imports to an existing application template from a given shared template.

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

  • importApplicationTemplate(ImportApplicationTemplateRequest request)

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

  • importApplicationTemplate(ApplicationTemplateName name, ApplicationTemplateRevisionName applicationTemplateRevisionUri)

  • importApplicationTemplate(ApplicationTemplateName name, String applicationTemplateRevisionUri)

  • importApplicationTemplate(String name, ApplicationTemplateRevisionName applicationTemplateRevisionUri)

  • importApplicationTemplate(String name, String applicationTemplateRevisionUri)

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

  • importApplicationTemplateCallable()

DeleteApplicationTemplate

Deletes an application template.

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

  • deleteApplicationTemplate(DeleteApplicationTemplateRequest request)

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

  • deleteApplicationTemplate(ApplicationTemplateName name)

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

  • deleteApplicationTemplateCallable()

CommitApplicationTemplate

Commits an application template to create a new revision.

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

  • commitApplicationTemplate(CommitApplicationTemplateRequest request)

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

  • commitApplicationTemplate(ApplicationTemplateName name)

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

  • commitApplicationTemplateCallable()

SnapshotApplicationTemplate

Snapshots an application template to create a new revision asynchronously.

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

  • snapshotApplicationTemplateAsync(SnapshotApplicationTemplateRequest request)

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

  • snapshotApplicationTemplateAsync(ApplicationTemplateName name)

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

  • snapshotApplicationTemplateOperationCallable()

  • snapshotApplicationTemplateCallable()

GenerateApplicationTemplateIaC

Generates Terraform files for an application template. This is a SYNCHRONOUS operation and returns the generated IaC directly in the response. It does NOT download external module sources; it only uses remote sources.

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

  • generateApplicationTemplateIaC(GenerateApplicationTemplateIaCRequest request)

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

  • generateApplicationTemplateIaC(ApplicationTemplateName name)

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

  • generateApplicationTemplateIaCCallable()

ExportApplicationTemplateIaC

Exports Terraform files for an application template. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.

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

  • exportApplicationTemplateIaCAsync(ExportApplicationTemplateIaCRequest request)

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

  • exportApplicationTemplateIaCAsync(ApplicationTemplateName name)

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

  • exportApplicationTemplateIaCOperationCallable()

  • exportApplicationTemplateIaCCallable()

GenerateApplicationTemplateRevisionIaC

Generates Terraform files for an application template revision. This is a SYNCHRONOUS operation and returns the generated IaC directly in the response. It does NOT download external module sources; it only uses remote sources.

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

  • generateApplicationTemplateRevisionIaC(GenerateApplicationTemplateRevisionIaCRequest request)

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

  • generateApplicationTemplateRevisionIaC(ApplicationTemplateRevisionName name)

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

  • generateApplicationTemplateRevisionIaCCallable()

ExportApplicationTemplateRevisionIaC

Exports Terraform files for an application template revision. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.

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

  • exportApplicationTemplateRevisionIaCAsync(ExportApplicationTemplateRevisionIaCRequest request)

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

  • exportApplicationTemplateRevisionIaCAsync(ApplicationTemplateRevisionName name)

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

  • exportApplicationTemplateRevisionIaCOperationCallable()

  • exportApplicationTemplateRevisionIaCCallable()

GetComponent

Gets details about a Component.

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

  • getComponent(GetComponentRequest request)

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

  • getComponent(ComponentName name)

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

  • getComponentCallable()

ListComponents

Lists components in an application template.

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

  • listComponents(ListComponentsRequest request)

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

  • listComponents(ApplicationTemplateName parent)

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

  • listComponentsPagedCallable()

  • listComponentsCallable()

CreateComponent

Creates a component.

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

  • createComponent(CreateComponentRequest request)

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

  • createComponent(ApplicationTemplateName parent, Component component, String componentId)

  • createComponent(String parent, Component component, String componentId)

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

  • createComponentCallable()

UpdateComponent

Updates a component.

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

  • updateComponent(UpdateComponentRequest request)

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

  • updateComponent(Component component, 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.

  • updateComponentCallable()

DeleteComponent

Deletes a component.

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

  • deleteComponent(DeleteComponentRequest request)

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

  • deleteComponent(ComponentName name)

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

  • deleteComponentCallable()

GetConnection

Gets details about a connection.

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

  • getConnection(GetConnectionRequest request)

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

  • getConnection(ConnectionName name)

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

  • getConnectionCallable()

ListConnections

Lists connections in an application template.

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

  • listConnections(ListConnectionsRequest request)

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

  • listConnections(ComponentName parent)

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

  • listConnectionsPagedCallable()

  • listConnectionsCallable()

CreateConnection

Creates a connection.

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

  • createConnection(CreateConnectionRequest request)

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

  • createConnection(ComponentName parent, Connection connection, String connectionId)

  • createConnection(String parent, Connection connection, String connectionId)

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

  • createConnectionCallable()

UpdateConnection

Updates a connection.

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

  • updateConnection(UpdateConnectionRequest request)

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

  • updateConnection(Connection connection, 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.

  • updateConnectionCallable()

DeleteConnection

Deletes a connection.

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

  • deleteConnection(DeleteConnectionRequest request)

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

  • deleteConnection(ConnectionName name)

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

  • deleteConnectionCallable()

GetApplicationTemplateRevision

Gets details about an application template revision.

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

  • getApplicationTemplateRevision(GetApplicationTemplateRevisionRequest request)

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

  • getApplicationTemplateRevision(ApplicationTemplateRevisionName name)

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

  • getApplicationTemplateRevisionCallable()

ListApplicationTemplateRevisions

Lists application template revisions in a given application template.

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

  • listApplicationTemplateRevisions(ListApplicationTemplateRevisionsRequest request)

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

  • listApplicationTemplateRevisions(ApplicationTemplateName parent)

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

  • listApplicationTemplateRevisionsPagedCallable()

  • listApplicationTemplateRevisionsCallable()

DeleteApplicationTemplateRevision

Deletes an application template revision.

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

  • deleteApplicationTemplateRevision(DeleteApplicationTemplateRevisionRequest request)

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

  • deleteApplicationTemplateRevision(ApplicationTemplateRevisionName name)

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

  • deleteApplicationTemplateRevisionCallable()

GetCatalog

Gets details about a catalog.

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

  • getCatalog(GetCatalogRequest request)

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

  • getCatalog(CatalogName name)

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

  • getCatalogCallable()

ListCatalogs

Lists catalogs in a given space.

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

  • listCatalogs(ListCatalogsRequest request)

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

  • listCatalogs(SpaceName parent)

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

  • listCatalogsPagedCallable()

  • listCatalogsCallable()

CreateCatalog

Creates a catalog.

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

  • createCatalog(CreateCatalogRequest request)

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

  • createCatalog(SpaceName parent, Catalog catalog, String catalogId)

  • createCatalog(String parent, Catalog catalog, String catalogId)

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

  • createCatalogCallable()

UpdateCatalog

Updates a catalog.

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

  • updateCatalog(UpdateCatalogRequest request)

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

  • updateCatalog(Catalog catalog, 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.

  • updateCatalogCallable()

DeleteCatalog

Deletes a catalog.

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

  • deleteCatalogAsync(DeleteCatalogRequest request)

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

  • deleteCatalogAsync(CatalogName name)

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

  • deleteCatalogOperationCallable()

  • deleteCatalogCallable()

CreateCatalogTemplate

Adds a template to a catalog.

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

  • createCatalogTemplate(CreateCatalogTemplateRequest request)

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

  • createCatalogTemplate(CatalogName parent, CatalogTemplate catalogTemplate, String catalogTemplateId)

  • createCatalogTemplate(String parent, CatalogTemplate catalogTemplate, String catalogTemplateId)

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

  • createCatalogTemplateCallable()

GetCatalogTemplate

Gets a catalog template.

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

  • getCatalogTemplate(GetCatalogTemplateRequest request)

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

  • getCatalogTemplate(CatalogTemplateName name)

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

  • getCatalogTemplateCallable()

ListCatalogTemplates

Lists catalog templates.

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

  • listCatalogTemplates(ListCatalogTemplatesRequest request)

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

  • listCatalogTemplates(CatalogName parent)

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

  • listCatalogTemplatesPagedCallable()

  • listCatalogTemplatesCallable()

UpdateCatalogTemplate

Updates a catalog template resource.

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

  • updateCatalogTemplate(UpdateCatalogTemplateRequest request)

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

  • updateCatalogTemplate(CatalogTemplate catalogTemplate, 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.

  • updateCatalogTemplateCallable()

DeleteCatalogTemplate

Deletes a catalog template.

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

  • deleteCatalogTemplateAsync(DeleteCatalogTemplateRequest request)

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

  • deleteCatalogTemplateAsync(CatalogTemplateName name)

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

  • deleteCatalogTemplateOperationCallable()

  • deleteCatalogTemplateCallable()

CreateShare

Shares a catalog from one space to another space.

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

  • createShareAsync(CreateShareRequest request)

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

  • createShareAsync(CatalogName parent, Share share, String shareId)

  • createShareAsync(String parent, Share share, String shareId)

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

  • createShareOperationCallable()

  • createShareCallable()

ListShares

Lists catalog share objects for the space.

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

  • listShares(ListSharesRequest request)

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

  • listShares(CatalogName parent)

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

  • listSharesPagedCallable()

  • listSharesCallable()

GetShare

Get catalog share object for the space.

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

  • getShare(GetShareRequest request)

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

  • getShare(ShareName name)

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

  • getShareCallable()

DeleteShare

Deletes a catalog share.

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

  • deleteShareAsync(DeleteShareRequest request)

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

  • deleteShareAsync(ShareName name)

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

  • deleteShareOperationCallable()

  • deleteShareCallable()

SyncShare

Synchronizes a share and updates the destination workspace to reflect. reflect the most recent changes to the catalog.

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

  • syncShareAsync(SyncShareRequest request)

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

  • syncShareAsync(ShareName name)

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

  • syncShareOperationCallable()

  • syncShareCallable()

GetSharedTemplate

Gets details about a shared template.

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

  • getSharedTemplate(GetSharedTemplateRequest request)

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

  • getSharedTemplate(SharedTemplateName name)

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

  • getSharedTemplateCallable()

ListSharedTemplates

Lists shared templates in a given space.

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

  • listSharedTemplates(ListSharedTemplatesRequest request)

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

  • listSharedTemplates(SpaceName parent)

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

  • listSharedTemplatesPagedCallable()

  • listSharedTemplatesCallable()

GetSharedTemplateRevision

Gets details about a shared template revision.

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

  • getSharedTemplateRevision(GetSharedTemplateRevisionRequest request)

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

  • getSharedTemplateRevision(SharedTemplateRevisionName name)

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

  • getSharedTemplateRevisionCallable()

ListSharedTemplateRevisions

Lists shared template revisions in a given space.

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

  • listSharedTemplateRevisions(ListSharedTemplateRevisionsRequest request)

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

  • listSharedTemplateRevisions(SharedTemplateName parent)

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

  • listSharedTemplateRevisionsPagedCallable()

  • listSharedTemplateRevisionsCallable()

CreateCatalogTemplateRevision

Creates a template revision.

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

  • createCatalogTemplateRevisionAsync(CreateCatalogTemplateRevisionRequest request)

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

  • createCatalogTemplateRevisionAsync(CatalogTemplateName parent, CatalogTemplateRevision catalogTemplateRevision, String catalogTemplateRevisionId)

  • createCatalogTemplateRevisionAsync(String parent, CatalogTemplateRevision catalogTemplateRevision, String catalogTemplateRevisionId)

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

  • createCatalogTemplateRevisionOperationCallable()

  • createCatalogTemplateRevisionCallable()

GetCatalogTemplateRevision

Gets details about a template revision.

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

  • getCatalogTemplateRevision(GetCatalogTemplateRevisionRequest request)

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

  • getCatalogTemplateRevision(CatalogTemplateRevisionName name)

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

  • getCatalogTemplateRevisionCallable()

ListCatalogTemplateRevisions

Lists template revisions.

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

  • listCatalogTemplateRevisions(ListCatalogTemplateRevisionsRequest request)

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

  • listCatalogTemplateRevisions(CatalogTemplateName parent)

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

  • listCatalogTemplateRevisionsPagedCallable()

  • listCatalogTemplateRevisionsCallable()

DeleteCatalogTemplateRevision

Deletes a template revision.

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

  • deleteCatalogTemplateRevisionAsync(DeleteCatalogTemplateRevisionRequest request)

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

  • deleteCatalogTemplateRevisionAsync(CatalogTemplateRevisionName name)

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

  • deleteCatalogTemplateRevisionOperationCallable()

  • deleteCatalogTemplateRevisionCallable()

CreateApplication

Creates an application.

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

  • createApplication(CreateApplicationRequest request)

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

  • createApplication(SpaceName parent, Application application, String applicationId)

  • createApplication(String parent, Application application, String applicationId)

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

  • createApplicationCallable()

GetApplication

Gets details about an application.

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

  • getApplication(GetApplicationRequest request)

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

  • getApplication(ApplicationName name)

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

  • getApplicationCallable()

ListApplications

Lists applications in a given space.

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

  • listApplications(ListApplicationsRequest request)

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

  • listApplications(SpaceName parent)

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

  • listApplicationsPagedCallable()

  • listApplicationsCallable()

UpdateApplication

Updates an application.

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

  • updateApplication(UpdateApplicationRequest request)

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

  • updateApplication(Application application, 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.

  • updateApplicationCallable()

DeleteApplication

Deletes an application.

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

  • deleteApplicationAsync(DeleteApplicationRequest request)

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

  • deleteApplicationAsync(ApplicationName name)

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

  • deleteApplicationOperationCallable()

  • deleteApplicationCallable()

DeployApplication

Deploys an application.

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

  • deployApplicationAsync(DeployApplicationRequest request)

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

  • deployApplicationAsync(ApplicationName name)

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

  • deployApplicationOperationCallable()

  • deployApplicationCallable()

PreviewApplication

Previews deployment of an application.

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

  • previewApplicationAsync(PreviewApplicationRequest request)

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

  • previewApplicationAsync(ApplicationName name)

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

  • previewApplicationOperationCallable()

  • previewApplicationCallable()

FetchApplicationAssessmentReport

Fetches the assessment report of a deployed application if present.

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

  • fetchApplicationAssessmentReport(FetchApplicationAssessmentReportRequest request)

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

  • fetchApplicationAssessmentReport(ApplicationName name)

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

  • fetchApplicationAssessmentReportCallable()

GenerateApplicationAssessmentReport

Generate Assessment Reports of an application.

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

  • generateApplicationAssessmentReportAsync(GenerateApplicationAssessmentReportRequest request)

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

  • generateApplicationAssessmentReportAsync(ApplicationName name)

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

  • generateApplicationAssessmentReportOperationCallable()

  • generateApplicationAssessmentReportCallable()

GenerateApplicationTemplateAssessmentReport

Generate Assessment Reports of an application template.

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

  • generateApplicationTemplateAssessmentReportAsync(GenerateApplicationTemplateAssessmentReportRequest request)

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

  • generateApplicationTemplateAssessmentReportAsync(ApplicationTemplateName name)

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

  • generateApplicationTemplateAssessmentReportOperationCallable()

  • generateApplicationTemplateAssessmentReportCallable()

GenerateAssessmentReport

Deprecated: Use GenerateTerraformPlanAssessmentReport instead.

Generate a best practice report for a given Terraform plan.

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

  • generateAssessmentReportAsync(GenerateAssessmentReportRequest request)

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

  • generateAssessmentReportAsync(SpaceName spaceName)

  • generateAssessmentReportAsync(String spaceName)

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

  • generateAssessmentReportOperationCallable()

  • generateAssessmentReportCallable()

GenerateTerraformPlanAssessmentReport

Generate a Terraform plan assessment report for a given Terraform plan.

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

  • generateTerraformPlanAssessmentReportAsync(GenerateTerraformPlanAssessmentReportRequest request)

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

  • generateTerraformPlanAssessmentReportAsync(SpaceName name, ByteString terraformPlan)

  • generateTerraformPlanAssessmentReportAsync(String name, ByteString terraformPlan)

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

  • generateTerraformPlanAssessmentReportOperationCallable()

  • generateTerraformPlanAssessmentReportCallable()

GetPolicy

Policy related APIs. Get a policy for an application template.

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

  • getPolicy(GetPolicyRequest request)

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

  • getPolicy(PolicyName name)

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

  • getPolicyCallable()

ListPolicies

Lists policies for an application template.

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

  • listPolicies(ListPoliciesRequest request)

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

  • listPolicies(ApplicationTemplateName parent)

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

  • listPoliciesPagedCallable()

  • listPoliciesCallable()

CreatePolicy

Creates a policy for an application template.

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

  • createPolicy(CreatePolicyRequest request)

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

  • createPolicy(ApplicationTemplateName parent, Policy policy, String policyId)

  • createPolicy(String parent, Policy policy, String policyId)

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

  • createPolicyCallable()

UpdatePolicy

Updates a policy.

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

  • updatePolicy(UpdatePolicyRequest request)

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

  • updatePolicy(Policy policy, 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.

  • updatePolicyCallable()

DeletePolicy

Deletes a policy.

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

  • deletePolicy(DeletePolicyRequest request)

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

  • deletePolicy(PolicyName name)

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

  • deletePolicyCallable()

FetchFrameworks

Fetches all frameworks for assessment report.

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

  • fetchFrameworks(FetchFrameworksRequest request)

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

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

  • fetchFrameworksPagedCallable()

  • fetchFrameworksCallable()

GenerateApplicationIaC

Generates Terraform files for an application.

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

  • generateApplicationIaC(GenerateApplicationIaCRequest request)

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

  • generateApplicationIaC(ApplicationName name)

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

  • generateApplicationIaCCallable()

ExportApplicationIaC

Exports Terraform files for an application asynchronously.

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

  • exportApplicationIaCAsync(ExportApplicationIaCRequest request)

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

  • exportApplicationIaCAsync(ApplicationName name)

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

  • exportApplicationIaCOperationCallable()

  • exportApplicationIaCCallable()

ImportApplicationTemplateIaC

Imports IaC for an application template.

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

  • importApplicationTemplateIaC(ImportApplicationTemplateIaCRequest request)

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

  • importApplicationTemplateIaC(ApplicationTemplateName name)

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

  • importApplicationTemplateIaCCallable()

IngestApplicationTemplateIaC

Ingests IaC for an application template asynchronously.

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

  • ingestApplicationTemplateIaCAsync(IngestApplicationTemplateIaCRequest request)

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

  • ingestApplicationTemplateIaCAsync(ApplicationTemplateName name)

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

  • ingestApplicationTemplateIaCOperationCallable()

  • ingestApplicationTemplateIaCCallable()

ImportApplicationIaC

Imports IaC for an application resource.

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

  • importApplicationIaC(ImportApplicationIaCRequest request)

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

  • importApplicationIaC(ApplicationName name)

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

  • importApplicationIaCCallable()

RegisterAppHubApplicationResources

Register deployed resources from terraform state file with App Hub without needing a space.

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

  • registerAppHubApplicationResourcesAsync(RegisterAppHubApplicationResourcesRequest request)

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

  • registerAppHubApplicationResourcesAsync(LocationName parent, String apphubApplication, String tfstateContent)

  • registerAppHubApplicationResourcesAsync(String parent, String apphubApplication, String tfstateContent)

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

  • registerAppHubApplicationResourcesOperationCallable()

  • registerAppHubApplicationResourcesCallable()

ListApplicationTemplateSystemRevisions

Lists application template system revisions in a given application template.

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

  • listApplicationTemplateSystemRevisions(ListApplicationTemplateSystemRevisionsRequest request)

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

  • listApplicationTemplateSystemRevisions(ApplicationTemplateName parent)

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

  • listApplicationTemplateSystemRevisionsPagedCallable()

  • listApplicationTemplateSystemRevisionsCallable()

GetApplicationTemplateSystemRevision

Gets the given application template system revision.

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

  • getApplicationTemplateSystemRevision(GetApplicationTemplateSystemRevisionRequest request)

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

  • getApplicationTemplateSystemRevision(ApplicationTemplateSystemRevisionName name)

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

  • getApplicationTemplateSystemRevisionCallable()

RecommendIAMRoles

Gets recommended IAM roles for an application.

Evaluates the infrastructure resources defined by an application (including its template configuration and parameters) to determine the set of IAM roles and Google Cloud APIs that you must configure before you deploy across target projects.

The operation is asynchronous and returns a google.longrunning.Operation. Upon completion, the operation result contains a RecommendIAMRolesResponse with project-level IAM role and API recommendations.

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

  • recommendIAMRolesAsync(RecommendIAMRolesRequest request)

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

  • recommendIAMRolesAsync(ApplicationName name)

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

  • recommendIAMRolesOperationCallable()

  • recommendIAMRolesCallable()

ListLocations

Lists information about the supported locations for this service.

This method lists locations based on the resource scope provided inthe ListLocationsRequest.name field: ***Global locations**: If name is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If name follows the formatprojects/{project}, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project.

For gRPC and client library implementations, the resource name ispassed as the name field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

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

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIEDerrors.

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

  • setIamPolicy(SetIamPolicyRequest request)

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

  • setIamPolicyCallable()

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

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

  • getIamPolicy(GetIamPolicyRequest request)

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

  • getIamPolicyCallable()

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a NOT_FOUND error.

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

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

  • testIamPermissions(TestIamPermissionsRequest request)

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

  • testIamPermissionsCallable()

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 DesignCenterSettings 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
 DesignCenterSettings designCenterSettings =
     DesignCenterSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 DesignCenterClient designCenterClient = DesignCenterClient.create(designCenterSettings);
 

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
 DesignCenterSettings designCenterSettings =
     DesignCenterSettings.newBuilder().setEndpoint(myEndpoint).build();
 DesignCenterClient designCenterClient = DesignCenterClient.create(designCenterSettings);
 

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
 DesignCenterSettings designCenterSettings = DesignCenterSettings.newHttpJsonBuilder().build();
 DesignCenterClient designCenterClient = DesignCenterClient.create(designCenterSettings);
 

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

Inheritance

java.lang.Object > DesignCenterClient

Static Methods

create()

public static final DesignCenterClient create()

Constructs an instance of DesignCenterClient with default settings.

Returns
Type Description
DesignCenterClient
Exceptions
Type Description
IOException

create(DesignCenterSettings settings)

public static final DesignCenterClient create(DesignCenterSettings settings)

Constructs an instance of DesignCenterClient, 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 DesignCenterSettings
Returns
Type Description
DesignCenterClient
Exceptions
Type Description
IOException

create(DesignCenterStub stub)

public static final DesignCenterClient create(DesignCenterStub stub)

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

Parameter
Name Description
stub DesignCenterStub
Returns
Type Description
DesignCenterClient

Constructors

DesignCenterClient(DesignCenterSettings settings)

protected DesignCenterClient(DesignCenterSettings settings)

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

DesignCenterClient(DesignCenterStub stub)

protected DesignCenterClient(DesignCenterStub stub)
Parameter
Name Description
stub DesignCenterStub

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

commitApplicationTemplate(@Nullable ApplicationTemplateName name)

public final ApplicationTemplateRevision commitApplicationTemplate(@Nullable ApplicationTemplateName name)

Commits an application template to create a new revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName name =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   ApplicationTemplateRevision response = designCenterClient.commitApplicationTemplate(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The name of the application template.

Returns
Type Description
ApplicationTemplateRevision

commitApplicationTemplate(CommitApplicationTemplateRequest request)

public final ApplicationTemplateRevision commitApplicationTemplate(CommitApplicationTemplateRequest request)

Commits an application template to create a new revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CommitApplicationTemplateRequest request =
       CommitApplicationTemplateRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .build();
   ApplicationTemplateRevision response = designCenterClient.commitApplicationTemplate(request);
 }
 
Parameter
Name Description
request CommitApplicationTemplateRequest

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

Returns
Type Description
ApplicationTemplateRevision

commitApplicationTemplate(String name)

public final ApplicationTemplateRevision commitApplicationTemplate(String name)

Commits an application template to create a new revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   ApplicationTemplateRevision response = designCenterClient.commitApplicationTemplate(name);
 }
 
Parameter
Name Description
name String

Required. The name of the application template.

Returns
Type Description
ApplicationTemplateRevision

commitApplicationTemplateCallable()

public final UnaryCallable<CommitApplicationTemplateRequest,ApplicationTemplateRevision> commitApplicationTemplateCallable()

Commits an application template to create a new revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CommitApplicationTemplateRequest request =
       CommitApplicationTemplateRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .build();
   ApiFuture<ApplicationTemplateRevision> future =
       designCenterClient.commitApplicationTemplateCallable().futureCall(request);
   // Do something.
   ApplicationTemplateRevision response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CommitApplicationTemplateRequest,ApplicationTemplateRevision>

createApplication(@Nullable SpaceName parent, Application application, String applicationId)

public final Application createApplication(@Nullable SpaceName parent, Application application, String applicationId)

Creates an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
   Application application = Application.newBuilder().build();
   String applicationId = "applicationId-1011352949";
   Application response =
       designCenterClient.createApplication(parent, application, applicationId);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.SpaceName

Required. The parent resource in which to create the application. Format: projects/$project/locations/$location/spaces/$space

application Application

Required. The application to create.

applicationId String

Required. The ID of the application to create.

Returns
Type Description
Application

createApplication(CreateApplicationRequest request)

public final Application createApplication(CreateApplicationRequest request)

Creates an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateApplicationRequest request =
       CreateApplicationRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setApplicationId("applicationId-1011352949")
           .setApplication(Application.newBuilder().build())
           .build();
   Application response = designCenterClient.createApplication(request);
 }
 
Parameter
Name Description
request CreateApplicationRequest

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

Returns
Type Description
Application

createApplication(String parent, Application application, String applicationId)

public final Application createApplication(String parent, Application application, String applicationId)

Creates an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
   Application application = Application.newBuilder().build();
   String applicationId = "applicationId-1011352949";
   Application response =
       designCenterClient.createApplication(parent, application, applicationId);
 }
 
Parameters
Name Description
parent String

Required. The parent resource in which to create the application. Format: projects/$project/locations/$location/spaces/$space

application Application

Required. The application to create.

applicationId String

Required. The ID of the application to create.

Returns
Type Description
Application

createApplicationCallable()

public final UnaryCallable<CreateApplicationRequest,Application> createApplicationCallable()

Creates an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateApplicationRequest request =
       CreateApplicationRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setApplicationId("applicationId-1011352949")
           .setApplication(Application.newBuilder().build())
           .build();
   ApiFuture<Application> future =
       designCenterClient.createApplicationCallable().futureCall(request);
   // Do something.
   Application response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateApplicationRequest,Application>

createApplicationTemplate(@Nullable SpaceName parent, ApplicationTemplate applicationTemplate, String applicationTemplateId)

public final ApplicationTemplate createApplicationTemplate(@Nullable SpaceName parent, ApplicationTemplate applicationTemplate, String applicationTemplateId)

Creates an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
   ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build();
   String applicationTemplateId = "applicationTemplateId-1557848923";
   ApplicationTemplate response =
       designCenterClient.createApplicationTemplate(
           parent, applicationTemplate, applicationTemplateId);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.SpaceName

Required. The parent resource in which to create the application template.

applicationTemplate ApplicationTemplate

Required. The application template to create.

applicationTemplateId String

Required. The ID of the application template to create.

Returns
Type Description
ApplicationTemplate

createApplicationTemplate(CreateApplicationTemplateRequest request)

public final ApplicationTemplate createApplicationTemplate(CreateApplicationTemplateRequest request)

Creates an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateApplicationTemplateRequest request =
       CreateApplicationTemplateRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setApplicationTemplateId("applicationTemplateId-1557848923")
           .setApplicationTemplate(ApplicationTemplate.newBuilder().build())
           .build();
   ApplicationTemplate response = designCenterClient.createApplicationTemplate(request);
 }
 
Parameter
Name Description
request CreateApplicationTemplateRequest

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

Returns
Type Description
ApplicationTemplate

createApplicationTemplate(String parent, ApplicationTemplate applicationTemplate, String applicationTemplateId)

public final ApplicationTemplate createApplicationTemplate(String parent, ApplicationTemplate applicationTemplate, String applicationTemplateId)

Creates an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
   ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build();
   String applicationTemplateId = "applicationTemplateId-1557848923";
   ApplicationTemplate response =
       designCenterClient.createApplicationTemplate(
           parent, applicationTemplate, applicationTemplateId);
 }
 
Parameters
Name Description
parent String

Required. The parent resource in which to create the application template.

applicationTemplate ApplicationTemplate

Required. The application template to create.

applicationTemplateId String

Required. The ID of the application template to create.

Returns
Type Description
ApplicationTemplate

createApplicationTemplateCallable()

public final UnaryCallable<CreateApplicationTemplateRequest,ApplicationTemplate> createApplicationTemplateCallable()

Creates an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateApplicationTemplateRequest request =
       CreateApplicationTemplateRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setApplicationTemplateId("applicationTemplateId-1557848923")
           .setApplicationTemplate(ApplicationTemplate.newBuilder().build())
           .build();
   ApiFuture<ApplicationTemplate> future =
       designCenterClient.createApplicationTemplateCallable().futureCall(request);
   // Do something.
   ApplicationTemplate response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateApplicationTemplateRequest,ApplicationTemplate>

createCatalog(@Nullable SpaceName parent, Catalog catalog, String catalogId)

public final Catalog createCatalog(@Nullable SpaceName parent, Catalog catalog, String catalogId)

Creates a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
   Catalog catalog = Catalog.newBuilder().build();
   String catalogId = "catalogId1455933204";
   Catalog response = designCenterClient.createCatalog(parent, catalog, catalogId);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.SpaceName

Required. The parent space in which a catalog is created in the following format: projects/$project/locations/$location/spaces/$space

catalog Catalog

Required. The catalog to create.

catalogId String

Required. The ID of the catalog to create.

Returns
Type Description
Catalog

createCatalog(CreateCatalogRequest request)

public final Catalog createCatalog(CreateCatalogRequest request)

Creates a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateCatalogRequest request =
       CreateCatalogRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setCatalogId("catalogId1455933204")
           .setCatalog(Catalog.newBuilder().build())
           .build();
   Catalog response = designCenterClient.createCatalog(request);
 }
 
Parameter
Name Description
request CreateCatalogRequest

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

Returns
Type Description
Catalog

createCatalog(String parent, Catalog catalog, String catalogId)

public final Catalog createCatalog(String parent, Catalog catalog, String catalogId)

Creates a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
   Catalog catalog = Catalog.newBuilder().build();
   String catalogId = "catalogId1455933204";
   Catalog response = designCenterClient.createCatalog(parent, catalog, catalogId);
 }
 
Parameters
Name Description
parent String

Required. The parent space in which a catalog is created in the following format: projects/$project/locations/$location/spaces/$space

catalog Catalog

Required. The catalog to create.

catalogId String

Required. The ID of the catalog to create.

Returns
Type Description
Catalog

createCatalogCallable()

public final UnaryCallable<CreateCatalogRequest,Catalog> createCatalogCallable()

Creates a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateCatalogRequest request =
       CreateCatalogRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setCatalogId("catalogId1455933204")
           .setCatalog(Catalog.newBuilder().build())
           .build();
   ApiFuture<Catalog> future = designCenterClient.createCatalogCallable().futureCall(request);
   // Do something.
   Catalog response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateCatalogRequest,Catalog>

createCatalogTemplate(@Nullable CatalogName parent, CatalogTemplate catalogTemplate, String catalogTemplateId)

public final CatalogTemplate createCatalogTemplate(@Nullable CatalogName parent, CatalogTemplate catalogTemplate, String catalogTemplateId)

Adds a template to a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]");
   CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build();
   String catalogTemplateId = "catalogTemplateId-1740091346";
   CatalogTemplate response =
       designCenterClient.createCatalogTemplate(parent, catalogTemplate, catalogTemplateId);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.CatalogName

Required. The parent resource in which the catalog template is created.

catalogTemplate CatalogTemplate

Required. The catalog template to create.

catalogTemplateId String

Required. The ID of the catalog template to create. The ID is appended to the catalog template's name.

Returns
Type Description
CatalogTemplate

createCatalogTemplate(CreateCatalogTemplateRequest request)

public final CatalogTemplate createCatalogTemplate(CreateCatalogTemplateRequest request)

Adds a template to a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateCatalogTemplateRequest request =
       CreateCatalogTemplateRequest.newBuilder()
           .setParent(
               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .setCatalogTemplateId("catalogTemplateId-1740091346")
           .setCatalogTemplate(CatalogTemplate.newBuilder().build())
           .build();
   CatalogTemplate response = designCenterClient.createCatalogTemplate(request);
 }
 
Parameter
Name Description
request CreateCatalogTemplateRequest

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

Returns
Type Description
CatalogTemplate

createCatalogTemplate(String parent, CatalogTemplate catalogTemplate, String catalogTemplateId)

public final CatalogTemplate createCatalogTemplate(String parent, CatalogTemplate catalogTemplate, String catalogTemplateId)

Adds a template to a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString();
   CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build();
   String catalogTemplateId = "catalogTemplateId-1740091346";
   CatalogTemplate response =
       designCenterClient.createCatalogTemplate(parent, catalogTemplate, catalogTemplateId);
 }
 
Parameters
Name Description
parent String

Required. The parent resource in which the catalog template is created.

catalogTemplate CatalogTemplate

Required. The catalog template to create.

catalogTemplateId String

Required. The ID of the catalog template to create. The ID is appended to the catalog template's name.

Returns
Type Description
CatalogTemplate

createCatalogTemplateCallable()

public final UnaryCallable<CreateCatalogTemplateRequest,CatalogTemplate> createCatalogTemplateCallable()

Adds a template to a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateCatalogTemplateRequest request =
       CreateCatalogTemplateRequest.newBuilder()
           .setParent(
               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .setCatalogTemplateId("catalogTemplateId-1740091346")
           .setCatalogTemplate(CatalogTemplate.newBuilder().build())
           .build();
   ApiFuture<CatalogTemplate> future =
       designCenterClient.createCatalogTemplateCallable().futureCall(request);
   // Do something.
   CatalogTemplate response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateCatalogTemplateRequest,CatalogTemplate>

createCatalogTemplateRevisionAsync(@Nullable CatalogTemplateName parent, CatalogTemplateRevision catalogTemplateRevision, String catalogTemplateRevisionId)

public final OperationFuture<CatalogTemplateRevision,OperationMetadata> createCatalogTemplateRevisionAsync(@Nullable CatalogTemplateName parent, CatalogTemplateRevision catalogTemplateRevision, String catalogTemplateRevisionId)

Creates a template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CatalogTemplateName parent =
       CatalogTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]");
   CatalogTemplateRevision catalogTemplateRevision =
       CatalogTemplateRevision.newBuilder().build();
   String catalogTemplateRevisionId = "catalogTemplateRevisionId1620031081";
   CatalogTemplateRevision response =
       designCenterClient
           .createCatalogTemplateRevisionAsync(
               parent, catalogTemplateRevision, catalogTemplateRevisionId)
           .get();
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.CatalogTemplateName

Required. The parent in which the catalog template revisions request is created in following format: projects/$project/locations/$location/spaces/$space/templates/$template

catalogTemplateRevision CatalogTemplateRevision

Required. The template revision to create.

catalogTemplateRevisionId String

Required. The ID of the template revision to create.

Returns
Type Description
OperationFuture<CatalogTemplateRevision,OperationMetadata>

createCatalogTemplateRevisionAsync(CreateCatalogTemplateRevisionRequest request)

public final OperationFuture<CatalogTemplateRevision,OperationMetadata> createCatalogTemplateRevisionAsync(CreateCatalogTemplateRevisionRequest request)

Creates a template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateCatalogTemplateRevisionRequest request =
       CreateCatalogTemplateRevisionRequest.newBuilder()
           .setParent(
               CatalogTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
                   .toString())
           .setCatalogTemplateRevisionId("catalogTemplateRevisionId1620031081")
           .setCatalogTemplateRevision(CatalogTemplateRevision.newBuilder().build())
           .build();
   CatalogTemplateRevision response =
       designCenterClient.createCatalogTemplateRevisionAsync(request).get();
 }
 
Parameter
Name Description
request CreateCatalogTemplateRevisionRequest

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

Returns
Type Description
OperationFuture<CatalogTemplateRevision,OperationMetadata>

createCatalogTemplateRevisionAsync(String parent, CatalogTemplateRevision catalogTemplateRevision, String catalogTemplateRevisionId)

public final OperationFuture<CatalogTemplateRevision,OperationMetadata> createCatalogTemplateRevisionAsync(String parent, CatalogTemplateRevision catalogTemplateRevision, String catalogTemplateRevisionId)

Creates a template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent =
       CatalogTemplateName.of(
               "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
           .toString();
   CatalogTemplateRevision catalogTemplateRevision =
       CatalogTemplateRevision.newBuilder().build();
   String catalogTemplateRevisionId = "catalogTemplateRevisionId1620031081";
   CatalogTemplateRevision response =
       designCenterClient
           .createCatalogTemplateRevisionAsync(
               parent, catalogTemplateRevision, catalogTemplateRevisionId)
           .get();
 }
 
Parameters
Name Description
parent String

Required. The parent in which the catalog template revisions request is created in following format: projects/$project/locations/$location/spaces/$space/templates/$template

catalogTemplateRevision CatalogTemplateRevision

Required. The template revision to create.

catalogTemplateRevisionId String

Required. The ID of the template revision to create.

Returns
Type Description
OperationFuture<CatalogTemplateRevision,OperationMetadata>

createCatalogTemplateRevisionCallable()

public final UnaryCallable<CreateCatalogTemplateRevisionRequest,Operation> createCatalogTemplateRevisionCallable()

Creates a template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateCatalogTemplateRevisionRequest request =
       CreateCatalogTemplateRevisionRequest.newBuilder()
           .setParent(
               CatalogTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
                   .toString())
           .setCatalogTemplateRevisionId("catalogTemplateRevisionId1620031081")
           .setCatalogTemplateRevision(CatalogTemplateRevision.newBuilder().build())
           .build();
   ApiFuture<Operation> future =
       designCenterClient.createCatalogTemplateRevisionCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateCatalogTemplateRevisionRequest,Operation>

createCatalogTemplateRevisionOperationCallable()

public final OperationCallable<CreateCatalogTemplateRevisionRequest,CatalogTemplateRevision,OperationMetadata> createCatalogTemplateRevisionOperationCallable()

Creates a template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateCatalogTemplateRevisionRequest request =
       CreateCatalogTemplateRevisionRequest.newBuilder()
           .setParent(
               CatalogTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
                   .toString())
           .setCatalogTemplateRevisionId("catalogTemplateRevisionId1620031081")
           .setCatalogTemplateRevision(CatalogTemplateRevision.newBuilder().build())
           .build();
   OperationFuture<CatalogTemplateRevision, OperationMetadata> future =
       designCenterClient.createCatalogTemplateRevisionOperationCallable().futureCall(request);
   // Do something.
   CatalogTemplateRevision response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateCatalogTemplateRevisionRequest,CatalogTemplateRevision,OperationMetadata>

createComponent(@Nullable ApplicationTemplateName parent, Component component, String componentId)

public final Component createComponent(@Nullable ApplicationTemplateName parent, Component component, String componentId)

Creates a component.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName parent =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   Component component = Component.newBuilder().build();
   String componentId = "componentId-985933064";
   Component response = designCenterClient.createComponent(parent, component, componentId);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The parent resource in which to create the component.

component Component

Required. The component to create.

componentId String

Required. The ID of the component to create.

Returns
Type Description
Component

createComponent(CreateComponentRequest request)

public final Component createComponent(CreateComponentRequest request)

Creates a component.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateComponentRequest request =
       CreateComponentRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setComponentId("componentId-985933064")
           .setComponent(Component.newBuilder().build())
           .build();
   Component response = designCenterClient.createComponent(request);
 }
 
Parameter
Name Description
request CreateComponentRequest

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

Returns
Type Description
Component

createComponent(String parent, Component component, String componentId)

public final Component createComponent(String parent, Component component, String componentId)

Creates a component.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   Component component = Component.newBuilder().build();
   String componentId = "componentId-985933064";
   Component response = designCenterClient.createComponent(parent, component, componentId);
 }
 
Parameters
Name Description
parent String

Required. The parent resource in which to create the component.

component Component

Required. The component to create.

componentId String

Required. The ID of the component to create.

Returns
Type Description
Component

createComponentCallable()

public final UnaryCallable<CreateComponentRequest,Component> createComponentCallable()

Creates a component.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateComponentRequest request =
       CreateComponentRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setComponentId("componentId-985933064")
           .setComponent(Component.newBuilder().build())
           .build();
   ApiFuture<Component> future =
       designCenterClient.createComponentCallable().futureCall(request);
   // Do something.
   Component response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateComponentRequest,Component>

createConnection(@Nullable ComponentName parent, Connection connection, String connectionId)

public final Connection createConnection(@Nullable ComponentName parent, Connection connection, String connectionId)

Creates a connection.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ComponentName parent =
       ComponentName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]");
   Connection connection = Connection.newBuilder().build();
   String connectionId = "connectionId1923106969";
   Connection response = designCenterClient.createConnection(parent, connection, connectionId);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ComponentName

Required. The parent resource in which to create a connection.

connection Connection

Required. The connection to create.

connectionId String

Required. The ID of the connection to create.

Returns
Type Description
Connection

createConnection(CreateConnectionRequest request)

public final Connection createConnection(CreateConnectionRequest request)

Creates a connection.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateConnectionRequest request =
       CreateConnectionRequest.newBuilder()
           .setParent(
               ComponentName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[COMPONENT]")
                   .toString())
           .setConnectionId("connectionId1923106969")
           .setConnection(Connection.newBuilder().build())
           .build();
   Connection response = designCenterClient.createConnection(request);
 }
 
Parameter
Name Description
request CreateConnectionRequest

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

Returns
Type Description
Connection

createConnection(String parent, Connection connection, String connectionId)

public final Connection createConnection(String parent, Connection connection, String connectionId)

Creates a connection.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent =
       ComponentName.of(
               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]")
           .toString();
   Connection connection = Connection.newBuilder().build();
   String connectionId = "connectionId1923106969";
   Connection response = designCenterClient.createConnection(parent, connection, connectionId);
 }
 
Parameters
Name Description
parent String

Required. The parent resource in which to create a connection.

connection Connection

Required. The connection to create.

connectionId String

Required. The ID of the connection to create.

Returns
Type Description
Connection

createConnectionCallable()

public final UnaryCallable<CreateConnectionRequest,Connection> createConnectionCallable()

Creates a connection.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateConnectionRequest request =
       CreateConnectionRequest.newBuilder()
           .setParent(
               ComponentName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[COMPONENT]")
                   .toString())
           .setConnectionId("connectionId1923106969")
           .setConnection(Connection.newBuilder().build())
           .build();
   ApiFuture<Connection> future =
       designCenterClient.createConnectionCallable().futureCall(request);
   // Do something.
   Connection response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateConnectionRequest,Connection>

createPolicy(@Nullable ApplicationTemplateName parent, Policy policy, String policyId)

public final Policy createPolicy(@Nullable ApplicationTemplateName parent, Policy policy, String policyId)

Creates a policy for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName parent =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   Policy policy = Policy.newBuilder().build();
   String policyId = "policyId546908653";
   Policy response = designCenterClient.createPolicy(parent, policy, policyId);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The parent resource in which to create the policy in the following format: projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate

policy Policy

Required. The policy to create.

policyId String

Required. The ID of the policy to create.

Returns
Type Description
Policy

createPolicy(CreatePolicyRequest request)

public final Policy createPolicy(CreatePolicyRequest request)

Creates a policy for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreatePolicyRequest request =
       CreatePolicyRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setPolicyId("policyId546908653")
           .setPolicy(Policy.newBuilder().build())
           .build();
   Policy response = designCenterClient.createPolicy(request);
 }
 
Parameter
Name Description
request CreatePolicyRequest

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

Returns
Type Description
Policy

createPolicy(String parent, Policy policy, String policyId)

public final Policy createPolicy(String parent, Policy policy, String policyId)

Creates a policy for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   Policy policy = Policy.newBuilder().build();
   String policyId = "policyId546908653";
   Policy response = designCenterClient.createPolicy(parent, policy, policyId);
 }
 
Parameters
Name Description
parent String

Required. The parent resource in which to create the policy in the following format: projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate

policy Policy

Required. The policy to create.

policyId String

Required. The ID of the policy to create.

Returns
Type Description
Policy

createPolicyCallable()

public final UnaryCallable<CreatePolicyRequest,Policy> createPolicyCallable()

Creates a policy for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreatePolicyRequest request =
       CreatePolicyRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setPolicyId("policyId546908653")
           .setPolicy(Policy.newBuilder().build())
           .build();
   ApiFuture<Policy> future = designCenterClient.createPolicyCallable().futureCall(request);
   // Do something.
   Policy response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreatePolicyRequest,Policy>

createShareAsync(@Nullable CatalogName parent, Share share, String shareId)

public final OperationFuture<Share,OperationMetadata> createShareAsync(@Nullable CatalogName parent, Share share, String shareId)

Shares a catalog from one space to another space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]");
   Share share = Share.newBuilder().build();
   String shareId = "shareId2054217050";
   Share response = designCenterClient.createShareAsync(parent, share, shareId).get();
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.CatalogName

Required. The parent resource in which shares are created.

share Share

Required. The share to create.

shareId String

Required. The ID of the share to create.

Returns
Type Description
OperationFuture<Share,OperationMetadata>

createShareAsync(CreateShareRequest request)

public final OperationFuture<Share,OperationMetadata> createShareAsync(CreateShareRequest request)

Shares a catalog from one space to another space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateShareRequest request =
       CreateShareRequest.newBuilder()
           .setParent(
               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .setShareId("shareId2054217050")
           .setShare(Share.newBuilder().build())
           .build();
   Share response = designCenterClient.createShareAsync(request).get();
 }
 
Parameter
Name Description
request CreateShareRequest

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

Returns
Type Description
OperationFuture<Share,OperationMetadata>

createShareAsync(String parent, Share share, String shareId)

public final OperationFuture<Share,OperationMetadata> createShareAsync(String parent, Share share, String shareId)

Shares a catalog from one space to another space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString();
   Share share = Share.newBuilder().build();
   String shareId = "shareId2054217050";
   Share response = designCenterClient.createShareAsync(parent, share, shareId).get();
 }
 
Parameters
Name Description
parent String

Required. The parent resource in which shares are created.

share Share

Required. The share to create.

shareId String

Required. The ID of the share to create.

Returns
Type Description
OperationFuture<Share,OperationMetadata>

createShareCallable()

public final UnaryCallable<CreateShareRequest,Operation> createShareCallable()

Shares a catalog from one space to another space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateShareRequest request =
       CreateShareRequest.newBuilder()
           .setParent(
               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .setShareId("shareId2054217050")
           .setShare(Share.newBuilder().build())
           .build();
   ApiFuture<Operation> future = designCenterClient.createShareCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateShareRequest,Operation>

createShareOperationCallable()

public final OperationCallable<CreateShareRequest,Share,OperationMetadata> createShareOperationCallable()

Shares a catalog from one space to another space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateShareRequest request =
       CreateShareRequest.newBuilder()
           .setParent(
               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .setShareId("shareId2054217050")
           .setShare(Share.newBuilder().build())
           .build();
   OperationFuture<Share, OperationMetadata> future =
       designCenterClient.createShareOperationCallable().futureCall(request);
   // Do something.
   Share response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateShareRequest,Share,OperationMetadata>

createSpace(@Nullable LocationName parent, Space space, String spaceId)

public final Space createSpace(@Nullable LocationName parent, Space space, String spaceId)

Creates a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   Space space = Space.newBuilder().build();
   String spaceId = "spaceId-2012163903";
   Space response = designCenterClient.createSpace(parent, space, spaceId);
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.LocationName

Required. The parent in which to create a space.

space Space

Required. The space to create.

spaceId String

Required. The ID of the space to create.

Returns
Type Description
Space

createSpace(CreateSpaceRequest request)

public final Space createSpace(CreateSpaceRequest request)

Creates a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateSpaceRequest request =
       CreateSpaceRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setSpaceId("spaceId-2012163903")
           .setSpace(Space.newBuilder().build())
           .build();
   Space response = designCenterClient.createSpace(request);
 }
 
Parameter
Name Description
request CreateSpaceRequest

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

Returns
Type Description
Space

createSpace(String parent, Space space, String spaceId)

public final Space createSpace(String parent, Space space, String spaceId)

Creates a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   Space space = Space.newBuilder().build();
   String spaceId = "spaceId-2012163903";
   Space response = designCenterClient.createSpace(parent, space, spaceId);
 }
 
Parameters
Name Description
parent String

Required. The parent in which to create a space.

space Space

Required. The space to create.

spaceId String

Required. The ID of the space to create.

Returns
Type Description
Space

createSpaceCallable()

public final UnaryCallable<CreateSpaceRequest,Space> createSpaceCallable()

Creates a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CreateSpaceRequest request =
       CreateSpaceRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setSpaceId("spaceId-2012163903")
           .setSpace(Space.newBuilder().build())
           .build();
   ApiFuture<Space> future = designCenterClient.createSpaceCallable().futureCall(request);
   // Do something.
   Space response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateSpaceRequest,Space>

deleteApplicationAsync(@Nullable ApplicationName name)

public final OperationFuture<Empty,OperationMetadata> deleteApplicationAsync(@Nullable ApplicationName name)

Deletes an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationName name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
   designCenterClient.deleteApplicationAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationName

Required. The application name. Format: projects/$project/locations/$location/spaces/$space/applications/$application

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteApplicationAsync(DeleteApplicationRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteApplicationAsync(DeleteApplicationRequest request)

Deletes an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteApplicationRequest request =
       DeleteApplicationRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setForce(true)
           .build();
   designCenterClient.deleteApplicationAsync(request).get();
 }
 
Parameter
Name Description
request DeleteApplicationRequest

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

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteApplicationAsync(String name)

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

Deletes an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
   designCenterClient.deleteApplicationAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The application name. Format: projects/$project/locations/$location/spaces/$space/applications/$application

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteApplicationCallable()

public final UnaryCallable<DeleteApplicationRequest,Operation> deleteApplicationCallable()

Deletes an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteApplicationRequest request =
       DeleteApplicationRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setForce(true)
           .build();
   ApiFuture<Operation> future =
       designCenterClient.deleteApplicationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteApplicationRequest,Operation>

deleteApplicationOperationCallable()

public final OperationCallable<DeleteApplicationRequest,Empty,OperationMetadata> deleteApplicationOperationCallable()

Deletes an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteApplicationRequest request =
       DeleteApplicationRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setForce(true)
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       designCenterClient.deleteApplicationOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteApplicationRequest,Empty,OperationMetadata>

deleteApplicationTemplate(@Nullable ApplicationTemplateName name)

public final void deleteApplicationTemplate(@Nullable ApplicationTemplateName name)

Deletes an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName name =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   designCenterClient.deleteApplicationTemplate(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The application template name.

deleteApplicationTemplate(DeleteApplicationTemplateRequest request)

public final void deleteApplicationTemplate(DeleteApplicationTemplateRequest request)

Deletes an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteApplicationTemplateRequest request =
       DeleteApplicationTemplateRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setForce(true)
           .build();
   designCenterClient.deleteApplicationTemplate(request);
 }
 
Parameter
Name Description
request DeleteApplicationTemplateRequest

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

deleteApplicationTemplate(String name)

public final void deleteApplicationTemplate(String name)

Deletes an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   designCenterClient.deleteApplicationTemplate(name);
 }
 
Parameter
Name Description
name String

Required. The application template name.

deleteApplicationTemplateCallable()

public final UnaryCallable<DeleteApplicationTemplateRequest,Empty> deleteApplicationTemplateCallable()

Deletes an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteApplicationTemplateRequest request =
       DeleteApplicationTemplateRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setForce(true)
           .build();
   ApiFuture<Empty> future =
       designCenterClient.deleteApplicationTemplateCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteApplicationTemplateRequest,Empty>

deleteApplicationTemplateRevision(@Nullable ApplicationTemplateRevisionName name)

public final void deleteApplicationTemplateRevision(@Nullable ApplicationTemplateRevisionName name)

Deletes an application template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateRevisionName name =
       ApplicationTemplateRevisionName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]");
   designCenterClient.deleteApplicationTemplateRevision(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName

Required. The application template revision name.

deleteApplicationTemplateRevision(DeleteApplicationTemplateRevisionRequest request)

public final void deleteApplicationTemplateRevision(DeleteApplicationTemplateRevisionRequest request)

Deletes an application template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteApplicationTemplateRevisionRequest request =
       DeleteApplicationTemplateRevisionRequest.newBuilder()
           .setName(
               ApplicationTemplateRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[REVISION]")
                   .toString())
           .build();
   designCenterClient.deleteApplicationTemplateRevision(request);
 }
 
Parameter
Name Description
request DeleteApplicationTemplateRevisionRequest

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

deleteApplicationTemplateRevision(String name)

public final void deleteApplicationTemplateRevision(String name)

Deletes an application template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateRevisionName.of(
               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]")
           .toString();
   designCenterClient.deleteApplicationTemplateRevision(name);
 }
 
Parameter
Name Description
name String

Required. The application template revision name.

deleteApplicationTemplateRevisionCallable()

public final UnaryCallable<DeleteApplicationTemplateRevisionRequest,Empty> deleteApplicationTemplateRevisionCallable()

Deletes an application template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteApplicationTemplateRevisionRequest request =
       DeleteApplicationTemplateRevisionRequest.newBuilder()
           .setName(
               ApplicationTemplateRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[REVISION]")
                   .toString())
           .build();
   ApiFuture<Empty> future =
       designCenterClient.deleteApplicationTemplateRevisionCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteApplicationTemplateRevisionRequest,Empty>

deleteCatalogAsync(@Nullable CatalogName name)

public final OperationFuture<Empty,OperationMetadata> deleteCatalogAsync(@Nullable CatalogName name)

Deletes a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CatalogName name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]");
   designCenterClient.deleteCatalogAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.CatalogName

Required. The catalog name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteCatalogAsync(DeleteCatalogRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteCatalogAsync(DeleteCatalogRequest request)

Deletes a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteCatalogRequest request =
       DeleteCatalogRequest.newBuilder()
           .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .setForce(true)
           .build();
   designCenterClient.deleteCatalogAsync(request).get();
 }
 
Parameter
Name Description
request DeleteCatalogRequest

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

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteCatalogAsync(String name)

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

Deletes a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString();
   designCenterClient.deleteCatalogAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The catalog name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteCatalogCallable()

public final UnaryCallable<DeleteCatalogRequest,Operation> deleteCatalogCallable()

Deletes a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteCatalogRequest request =
       DeleteCatalogRequest.newBuilder()
           .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .setForce(true)
           .build();
   ApiFuture<Operation> future = designCenterClient.deleteCatalogCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteCatalogRequest,Operation>

deleteCatalogOperationCallable()

public final OperationCallable<DeleteCatalogRequest,Empty,OperationMetadata> deleteCatalogOperationCallable()

Deletes a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteCatalogRequest request =
       DeleteCatalogRequest.newBuilder()
           .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .setForce(true)
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       designCenterClient.deleteCatalogOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteCatalogRequest,Empty,OperationMetadata>

deleteCatalogTemplateAsync(@Nullable CatalogTemplateName name)

public final OperationFuture<Empty,OperationMetadata> deleteCatalogTemplateAsync(@Nullable CatalogTemplateName name)

Deletes a catalog template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CatalogTemplateName name =
       CatalogTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]");
   designCenterClient.deleteCatalogTemplateAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.CatalogTemplateName

Required. The catalog template name. Format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteCatalogTemplateAsync(DeleteCatalogTemplateRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteCatalogTemplateAsync(DeleteCatalogTemplateRequest request)

Deletes a catalog template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteCatalogTemplateRequest request =
       DeleteCatalogTemplateRequest.newBuilder()
           .setName(
               CatalogTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
                   .toString())
           .setForce(true)
           .build();
   designCenterClient.deleteCatalogTemplateAsync(request).get();
 }
 
Parameter
Name Description
request DeleteCatalogTemplateRequest

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

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteCatalogTemplateAsync(String name)

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

Deletes a catalog template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       CatalogTemplateName.of(
               "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
           .toString();
   designCenterClient.deleteCatalogTemplateAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The catalog template name. Format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteCatalogTemplateCallable()

public final UnaryCallable<DeleteCatalogTemplateRequest,Operation> deleteCatalogTemplateCallable()

Deletes a catalog template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteCatalogTemplateRequest request =
       DeleteCatalogTemplateRequest.newBuilder()
           .setName(
               CatalogTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
                   .toString())
           .setForce(true)
           .build();
   ApiFuture<Operation> future =
       designCenterClient.deleteCatalogTemplateCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteCatalogTemplateRequest,Operation>

deleteCatalogTemplateOperationCallable()

public final OperationCallable<DeleteCatalogTemplateRequest,Empty,OperationMetadata> deleteCatalogTemplateOperationCallable()

Deletes a catalog template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteCatalogTemplateRequest request =
       DeleteCatalogTemplateRequest.newBuilder()
           .setName(
               CatalogTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
                   .toString())
           .setForce(true)
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       designCenterClient.deleteCatalogTemplateOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteCatalogTemplateRequest,Empty,OperationMetadata>

deleteCatalogTemplateRevisionAsync(@Nullable CatalogTemplateRevisionName name)

public final OperationFuture<Empty,OperationMetadata> deleteCatalogTemplateRevisionAsync(@Nullable CatalogTemplateRevisionName name)

Deletes a template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CatalogTemplateRevisionName name =
       CatalogTemplateRevisionName.of(
           "[PROJECT]",
           "[LOCATION]",
           "[SPACE]",
           "[CATALOG]",
           "[CATALOG_TEMPLATE]",
           "[REVISION]");
   designCenterClient.deleteCatalogTemplateRevisionAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.CatalogTemplateRevisionName

Required. The template revision name.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteCatalogTemplateRevisionAsync(DeleteCatalogTemplateRevisionRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteCatalogTemplateRevisionAsync(DeleteCatalogTemplateRevisionRequest request)

Deletes a template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteCatalogTemplateRevisionRequest request =
       DeleteCatalogTemplateRevisionRequest.newBuilder()
           .setName(
               CatalogTemplateRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[CATALOG]",
                       "[CATALOG_TEMPLATE]",
                       "[REVISION]")
                   .toString())
           .build();
   designCenterClient.deleteCatalogTemplateRevisionAsync(request).get();
 }
 
Parameter
Name Description
request DeleteCatalogTemplateRevisionRequest

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

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteCatalogTemplateRevisionAsync(String name)

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

Deletes a template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       CatalogTemplateRevisionName.of(
               "[PROJECT]",
               "[LOCATION]",
               "[SPACE]",
               "[CATALOG]",
               "[CATALOG_TEMPLATE]",
               "[REVISION]")
           .toString();
   designCenterClient.deleteCatalogTemplateRevisionAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The template revision name.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteCatalogTemplateRevisionCallable()

public final UnaryCallable<DeleteCatalogTemplateRevisionRequest,Operation> deleteCatalogTemplateRevisionCallable()

Deletes a template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteCatalogTemplateRevisionRequest request =
       DeleteCatalogTemplateRevisionRequest.newBuilder()
           .setName(
               CatalogTemplateRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[CATALOG]",
                       "[CATALOG_TEMPLATE]",
                       "[REVISION]")
                   .toString())
           .build();
   ApiFuture<Operation> future =
       designCenterClient.deleteCatalogTemplateRevisionCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteCatalogTemplateRevisionRequest,Operation>

deleteCatalogTemplateRevisionOperationCallable()

public final OperationCallable<DeleteCatalogTemplateRevisionRequest,Empty,OperationMetadata> deleteCatalogTemplateRevisionOperationCallable()

Deletes a template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteCatalogTemplateRevisionRequest request =
       DeleteCatalogTemplateRevisionRequest.newBuilder()
           .setName(
               CatalogTemplateRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[CATALOG]",
                       "[CATALOG_TEMPLATE]",
                       "[REVISION]")
                   .toString())
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       designCenterClient.deleteCatalogTemplateRevisionOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteCatalogTemplateRevisionRequest,Empty,OperationMetadata>

deleteComponent(@Nullable ComponentName name)

public final void deleteComponent(@Nullable ComponentName name)

Deletes a component.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ComponentName name =
       ComponentName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]");
   designCenterClient.deleteComponent(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ComponentName

Required. The component name.

deleteComponent(DeleteComponentRequest request)

public final void deleteComponent(DeleteComponentRequest request)

Deletes a component.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteComponentRequest request =
       DeleteComponentRequest.newBuilder()
           .setName(
               ComponentName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[COMPONENT]")
                   .toString())
           .setForce(true)
           .build();
   designCenterClient.deleteComponent(request);
 }
 
Parameter
Name Description
request DeleteComponentRequest

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

deleteComponent(String name)

public final void deleteComponent(String name)

Deletes a component.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ComponentName.of(
               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]")
           .toString();
   designCenterClient.deleteComponent(name);
 }
 
Parameter
Name Description
name String

Required. The component name.

deleteComponentCallable()

public final UnaryCallable<DeleteComponentRequest,Empty> deleteComponentCallable()

Deletes a component.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteComponentRequest request =
       DeleteComponentRequest.newBuilder()
           .setName(
               ComponentName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[COMPONENT]")
                   .toString())
           .setForce(true)
           .build();
   ApiFuture<Empty> future = designCenterClient.deleteComponentCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteComponentRequest,Empty>

deleteConnection(@Nullable ConnectionName name)

public final void deleteConnection(@Nullable ConnectionName name)

Deletes a connection.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ConnectionName name =
       ConnectionName.of(
           "[PROJECT]",
           "[LOCATION]",
           "[SPACE]",
           "[APPLICATION_TEMPLATE]",
           "[COMPONENT]",
           "[CONNECTION]");
   designCenterClient.deleteConnection(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ConnectionName

Required. The connection name.

deleteConnection(DeleteConnectionRequest request)

public final void deleteConnection(DeleteConnectionRequest request)

Deletes a connection.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteConnectionRequest request =
       DeleteConnectionRequest.newBuilder()
           .setName(
               ConnectionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[COMPONENT]",
                       "[CONNECTION]")
                   .toString())
           .build();
   designCenterClient.deleteConnection(request);
 }
 
Parameter
Name Description
request DeleteConnectionRequest

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

deleteConnection(String name)

public final void deleteConnection(String name)

Deletes a connection.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ConnectionName.of(
               "[PROJECT]",
               "[LOCATION]",
               "[SPACE]",
               "[APPLICATION_TEMPLATE]",
               "[COMPONENT]",
               "[CONNECTION]")
           .toString();
   designCenterClient.deleteConnection(name);
 }
 
Parameter
Name Description
name String

Required. The connection name.

deleteConnectionCallable()

public final UnaryCallable<DeleteConnectionRequest,Empty> deleteConnectionCallable()

Deletes a connection.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteConnectionRequest request =
       DeleteConnectionRequest.newBuilder()
           .setName(
               ConnectionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[COMPONENT]",
                       "[CONNECTION]")
                   .toString())
           .build();
   ApiFuture<Empty> future = designCenterClient.deleteConnectionCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteConnectionRequest,Empty>

deletePolicy(@Nullable PolicyName name)

public final void deletePolicy(@Nullable PolicyName name)

Deletes a policy.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   PolicyName name =
       PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]");
   designCenterClient.deletePolicy(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.PolicyName

Required. The policy name in the following format: projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy

deletePolicy(DeletePolicyRequest request)

public final void deletePolicy(DeletePolicyRequest request)

Deletes a policy.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeletePolicyRequest request =
       DeletePolicyRequest.newBuilder()
           .setName(
               PolicyName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[POLICY]")
                   .toString())
           .build();
   designCenterClient.deletePolicy(request);
 }
 
Parameter
Name Description
request DeletePolicyRequest

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

deletePolicy(String name)

public final void deletePolicy(String name)

Deletes a policy.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]")
           .toString();
   designCenterClient.deletePolicy(name);
 }
 
Parameter
Name Description
name String

Required. The policy name in the following format: projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy

deletePolicyCallable()

public final UnaryCallable<DeletePolicyRequest,Empty> deletePolicyCallable()

Deletes a policy.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeletePolicyRequest request =
       DeletePolicyRequest.newBuilder()
           .setName(
               PolicyName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[POLICY]")
                   .toString())
           .build();
   ApiFuture<Empty> future = designCenterClient.deletePolicyCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeletePolicyRequest,Empty>

deleteShareAsync(@Nullable ShareName name)

public final OperationFuture<Empty,OperationMetadata> deleteShareAsync(@Nullable ShareName name)

Deletes a catalog share.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]");
   designCenterClient.deleteShareAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ShareName

Required. The share name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteShareAsync(DeleteShareRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteShareAsync(DeleteShareRequest request)

Deletes a catalog share.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteShareRequest request =
       DeleteShareRequest.newBuilder()
           .setName(
               ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]")
                   .toString())
           .build();
   designCenterClient.deleteShareAsync(request).get();
 }
 
Parameter
Name Description
request DeleteShareRequest

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

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteShareAsync(String name)

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

Deletes a catalog share.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]").toString();
   designCenterClient.deleteShareAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The share name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteShareCallable()

public final UnaryCallable<DeleteShareRequest,Operation> deleteShareCallable()

Deletes a catalog share.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteShareRequest request =
       DeleteShareRequest.newBuilder()
           .setName(
               ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]")
                   .toString())
           .build();
   ApiFuture<Operation> future = designCenterClient.deleteShareCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteShareRequest,Operation>

deleteShareOperationCallable()

public final OperationCallable<DeleteShareRequest,Empty,OperationMetadata> deleteShareOperationCallable()

Deletes a catalog share.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteShareRequest request =
       DeleteShareRequest.newBuilder()
           .setName(
               ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]")
                   .toString())
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       designCenterClient.deleteShareOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteShareRequest,Empty,OperationMetadata>

deleteSpace(@Nullable SpaceName name)

public final void deleteSpace(@Nullable SpaceName name)

Deletes a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
   designCenterClient.deleteSpace(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.SpaceName

Required. The space name.

deleteSpace(DeleteSpaceRequest request)

public final void deleteSpace(DeleteSpaceRequest request)

Deletes a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteSpaceRequest request =
       DeleteSpaceRequest.newBuilder()
           .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setForce(true)
           .build();
   designCenterClient.deleteSpace(request);
 }
 
Parameter
Name Description
request DeleteSpaceRequest

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

deleteSpace(String name)

public final void deleteSpace(String name)

Deletes a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
   designCenterClient.deleteSpace(name);
 }
 
Parameter
Name Description
name String

Required. The space name.

deleteSpaceCallable()

public final UnaryCallable<DeleteSpaceRequest,Empty> deleteSpaceCallable()

Deletes a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeleteSpaceRequest request =
       DeleteSpaceRequest.newBuilder()
           .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setForce(true)
           .build();
   ApiFuture<Empty> future = designCenterClient.deleteSpaceCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteSpaceRequest,Empty>

deployApplicationAsync(@Nullable ApplicationName name)

public final OperationFuture<DeployApplicationResponse,OperationMetadata> deployApplicationAsync(@Nullable ApplicationName name)

Deploys an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationName name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
   DeployApplicationResponse response = designCenterClient.deployApplicationAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationName

Required. The application name. Format: projects/$project/locations/$location/spaces/$space/applications/$application

Returns
Type Description
OperationFuture<DeployApplicationResponse,OperationMetadata>

deployApplicationAsync(DeployApplicationRequest request)

public final OperationFuture<DeployApplicationResponse,OperationMetadata> deployApplicationAsync(DeployApplicationRequest request)

Deploys an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeployApplicationRequest request =
       DeployApplicationRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setReplace(true)
           .setWorkerPool("workerPool-384405318")
           .setServiceAccount("serviceAccount1079137720")
           .setValidateOnly(true)
           .build();
   DeployApplicationResponse response = designCenterClient.deployApplicationAsync(request).get();
 }
 
Parameter
Name Description
request DeployApplicationRequest

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

Returns
Type Description
OperationFuture<DeployApplicationResponse,OperationMetadata>

deployApplicationAsync(String name)

public final OperationFuture<DeployApplicationResponse,OperationMetadata> deployApplicationAsync(String name)

Deploys an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
   DeployApplicationResponse response = designCenterClient.deployApplicationAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The application name. Format: projects/$project/locations/$location/spaces/$space/applications/$application

Returns
Type Description
OperationFuture<DeployApplicationResponse,OperationMetadata>

deployApplicationCallable()

public final UnaryCallable<DeployApplicationRequest,Operation> deployApplicationCallable()

Deploys an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeployApplicationRequest request =
       DeployApplicationRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setReplace(true)
           .setWorkerPool("workerPool-384405318")
           .setServiceAccount("serviceAccount1079137720")
           .setValidateOnly(true)
           .build();
   ApiFuture<Operation> future =
       designCenterClient.deployApplicationCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<DeployApplicationRequest,Operation>

deployApplicationOperationCallable()

public final OperationCallable<DeployApplicationRequest,DeployApplicationResponse,OperationMetadata> deployApplicationOperationCallable()

Deploys an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   DeployApplicationRequest request =
       DeployApplicationRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setReplace(true)
           .setWorkerPool("workerPool-384405318")
           .setServiceAccount("serviceAccount1079137720")
           .setValidateOnly(true)
           .build();
   OperationFuture<DeployApplicationResponse, OperationMetadata> future =
       designCenterClient.deployApplicationOperationCallable().futureCall(request);
   // Do something.
   DeployApplicationResponse response = future.get();
 }
 
Returns
Type Description
OperationCallable<DeployApplicationRequest,DeployApplicationResponse,OperationMetadata>

exportApplicationIaCAsync(@Nullable ApplicationName name)

public final OperationFuture<ExportApplicationIaCResponse,OperationMetadata> exportApplicationIaCAsync(@Nullable ApplicationName name)

Exports Terraform files for an application asynchronously.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationName name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
   ExportApplicationIaCResponse response =
       designCenterClient.exportApplicationIaCAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationName

Required. The name of the application.

Returns
Type Description
OperationFuture<ExportApplicationIaCResponse,OperationMetadata>

exportApplicationIaCAsync(ExportApplicationIaCRequest request)

public final OperationFuture<ExportApplicationIaCResponse,OperationMetadata> exportApplicationIaCAsync(ExportApplicationIaCRequest request)

Exports Terraform files for an application asynchronously.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ExportApplicationIaCRequest request =
       ExportApplicationIaCRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setIacFormat(IACFormat.forNumber(0))
           .setArtifactLocation(ArtifactLocation.newBuilder().build())
           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
           .build();
   ExportApplicationIaCResponse response =
       designCenterClient.exportApplicationIaCAsync(request).get();
 }
 
Parameter
Name Description
request ExportApplicationIaCRequest

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

Returns
Type Description
OperationFuture<ExportApplicationIaCResponse,OperationMetadata>

exportApplicationIaCAsync(String name)

public final OperationFuture<ExportApplicationIaCResponse,OperationMetadata> exportApplicationIaCAsync(String name)

Exports Terraform files for an application asynchronously.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
   ExportApplicationIaCResponse response =
       designCenterClient.exportApplicationIaCAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the application.

Returns
Type Description
OperationFuture<ExportApplicationIaCResponse,OperationMetadata>

exportApplicationIaCCallable()

public final UnaryCallable<ExportApplicationIaCRequest,Operation> exportApplicationIaCCallable()

Exports Terraform files for an application asynchronously.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ExportApplicationIaCRequest request =
       ExportApplicationIaCRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setIacFormat(IACFormat.forNumber(0))
           .setArtifactLocation(ArtifactLocation.newBuilder().build())
           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
           .build();
   ApiFuture<Operation> future =
       designCenterClient.exportApplicationIaCCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<ExportApplicationIaCRequest,Operation>

exportApplicationIaCOperationCallable()

public final OperationCallable<ExportApplicationIaCRequest,ExportApplicationIaCResponse,OperationMetadata> exportApplicationIaCOperationCallable()

Exports Terraform files for an application asynchronously.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ExportApplicationIaCRequest request =
       ExportApplicationIaCRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setIacFormat(IACFormat.forNumber(0))
           .setArtifactLocation(ArtifactLocation.newBuilder().build())
           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
           .build();
   OperationFuture<ExportApplicationIaCResponse, OperationMetadata> future =
       designCenterClient.exportApplicationIaCOperationCallable().futureCall(request);
   // Do something.
   ExportApplicationIaCResponse response = future.get();
 }
 
Returns
Type Description
OperationCallable<ExportApplicationIaCRequest,ExportApplicationIaCResponse,OperationMetadata>

exportApplicationTemplateIaCAsync(@Nullable ApplicationTemplateName name)

public final OperationFuture<ExportApplicationTemplateIaCResponse,OperationMetadata> exportApplicationTemplateIaCAsync(@Nullable ApplicationTemplateName name)

Exports Terraform files for an application template. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName name =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   ExportApplicationTemplateIaCResponse response =
       designCenterClient.exportApplicationTemplateIaCAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The name of the application template.

Returns
Type Description
OperationFuture<ExportApplicationTemplateIaCResponse,OperationMetadata>

exportApplicationTemplateIaCAsync(ExportApplicationTemplateIaCRequest request)

public final OperationFuture<ExportApplicationTemplateIaCResponse,OperationMetadata> exportApplicationTemplateIaCAsync(ExportApplicationTemplateIaCRequest request)

Exports Terraform files for an application template. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ExportApplicationTemplateIaCRequest request =
       ExportApplicationTemplateIaCRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setArtifactLocation(ArtifactLocation.newBuilder().build())
           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
           .build();
   ExportApplicationTemplateIaCResponse response =
       designCenterClient.exportApplicationTemplateIaCAsync(request).get();
 }
 
Parameter
Name Description
request ExportApplicationTemplateIaCRequest

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

Returns
Type Description
OperationFuture<ExportApplicationTemplateIaCResponse,OperationMetadata>

exportApplicationTemplateIaCAsync(String name)

public final OperationFuture<ExportApplicationTemplateIaCResponse,OperationMetadata> exportApplicationTemplateIaCAsync(String name)

Exports Terraform files for an application template. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   ExportApplicationTemplateIaCResponse response =
       designCenterClient.exportApplicationTemplateIaCAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the application template.

Returns
Type Description
OperationFuture<ExportApplicationTemplateIaCResponse,OperationMetadata>

exportApplicationTemplateIaCCallable()

public final UnaryCallable<ExportApplicationTemplateIaCRequest,Operation> exportApplicationTemplateIaCCallable()

Exports Terraform files for an application template. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ExportApplicationTemplateIaCRequest request =
       ExportApplicationTemplateIaCRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setArtifactLocation(ArtifactLocation.newBuilder().build())
           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
           .build();
   ApiFuture<Operation> future =
       designCenterClient.exportApplicationTemplateIaCCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<ExportApplicationTemplateIaCRequest,Operation>

exportApplicationTemplateIaCOperationCallable()

public final OperationCallable<ExportApplicationTemplateIaCRequest,ExportApplicationTemplateIaCResponse,OperationMetadata> exportApplicationTemplateIaCOperationCallable()

Exports Terraform files for an application template. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ExportApplicationTemplateIaCRequest request =
       ExportApplicationTemplateIaCRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setArtifactLocation(ArtifactLocation.newBuilder().build())
           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
           .build();
   OperationFuture<ExportApplicationTemplateIaCResponse, OperationMetadata> future =
       designCenterClient.exportApplicationTemplateIaCOperationCallable().futureCall(request);
   // Do something.
   ExportApplicationTemplateIaCResponse response = future.get();
 }
 
Returns
Type Description
OperationCallable<ExportApplicationTemplateIaCRequest,ExportApplicationTemplateIaCResponse,OperationMetadata>

exportApplicationTemplateRevisionIaCAsync(@Nullable ApplicationTemplateRevisionName name)

public final OperationFuture<ExportApplicationTemplateRevisionIaCResponse,OperationMetadata> exportApplicationTemplateRevisionIaCAsync(@Nullable ApplicationTemplateRevisionName name)

Exports Terraform files for an application template revision. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateRevisionName name =
       ApplicationTemplateRevisionName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]");
   ExportApplicationTemplateRevisionIaCResponse response =
       designCenterClient.exportApplicationTemplateRevisionIaCAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName

Required. The name of the application template revision.

Returns
Type Description
OperationFuture<ExportApplicationTemplateRevisionIaCResponse,OperationMetadata>

exportApplicationTemplateRevisionIaCAsync(ExportApplicationTemplateRevisionIaCRequest request)

public final OperationFuture<ExportApplicationTemplateRevisionIaCResponse,OperationMetadata> exportApplicationTemplateRevisionIaCAsync(ExportApplicationTemplateRevisionIaCRequest request)

Exports Terraform files for an application template revision. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ExportApplicationTemplateRevisionIaCRequest request =
       ExportApplicationTemplateRevisionIaCRequest.newBuilder()
           .setName(
               ApplicationTemplateRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[REVISION]")
                   .toString())
           .setArtifactLocation(ArtifactLocation.newBuilder().build())
           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
           .build();
   ExportApplicationTemplateRevisionIaCResponse response =
       designCenterClient.exportApplicationTemplateRevisionIaCAsync(request).get();
 }
 
Parameter
Name Description
request ExportApplicationTemplateRevisionIaCRequest

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

Returns
Type Description
OperationFuture<ExportApplicationTemplateRevisionIaCResponse,OperationMetadata>

exportApplicationTemplateRevisionIaCAsync(String name)

public final OperationFuture<ExportApplicationTemplateRevisionIaCResponse,OperationMetadata> exportApplicationTemplateRevisionIaCAsync(String name)

Exports Terraform files for an application template revision. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateRevisionName.of(
               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]")
           .toString();
   ExportApplicationTemplateRevisionIaCResponse response =
       designCenterClient.exportApplicationTemplateRevisionIaCAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the application template revision.

Returns
Type Description
OperationFuture<ExportApplicationTemplateRevisionIaCResponse,OperationMetadata>

exportApplicationTemplateRevisionIaCCallable()

public final UnaryCallable<ExportApplicationTemplateRevisionIaCRequest,Operation> exportApplicationTemplateRevisionIaCCallable()

Exports Terraform files for an application template revision. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ExportApplicationTemplateRevisionIaCRequest request =
       ExportApplicationTemplateRevisionIaCRequest.newBuilder()
           .setName(
               ApplicationTemplateRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[REVISION]")
                   .toString())
           .setArtifactLocation(ArtifactLocation.newBuilder().build())
           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
           .build();
   ApiFuture<Operation> future =
       designCenterClient.exportApplicationTemplateRevisionIaCCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<ExportApplicationTemplateRevisionIaCRequest,Operation>

exportApplicationTemplateRevisionIaCOperationCallable()

public final OperationCallable<ExportApplicationTemplateRevisionIaCRequest,ExportApplicationTemplateRevisionIaCResponse,OperationMetadata> exportApplicationTemplateRevisionIaCOperationCallable()

Exports Terraform files for an application template revision. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ExportApplicationTemplateRevisionIaCRequest request =
       ExportApplicationTemplateRevisionIaCRequest.newBuilder()
           .setName(
               ApplicationTemplateRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[REVISION]")
                   .toString())
           .setArtifactLocation(ArtifactLocation.newBuilder().build())
           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
           .build();
   OperationFuture<ExportApplicationTemplateRevisionIaCResponse, OperationMetadata> future =
       designCenterClient
           .exportApplicationTemplateRevisionIaCOperationCallable()
           .futureCall(request);
   // Do something.
   ExportApplicationTemplateRevisionIaCResponse response = future.get();
 }
 
Returns
Type Description
OperationCallable<ExportApplicationTemplateRevisionIaCRequest,ExportApplicationTemplateRevisionIaCResponse,OperationMetadata>

fetchApplicationAssessmentReport(@Nullable ApplicationName name)

public final FetchApplicationAssessmentReportResponse fetchApplicationAssessmentReport(@Nullable ApplicationName name)

Fetches the assessment report of a deployed application if present.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationName name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
   FetchApplicationAssessmentReportResponse response =
       designCenterClient.fetchApplicationAssessmentReport(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationName

Required. The application name in the following format: projects/$project/locations/$location/spaces/$space/applications/$application

Returns
Type Description
FetchApplicationAssessmentReportResponse

fetchApplicationAssessmentReport(FetchApplicationAssessmentReportRequest request)

public final FetchApplicationAssessmentReportResponse fetchApplicationAssessmentReport(FetchApplicationAssessmentReportRequest request)

Fetches the assessment report of a deployed application if present.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   FetchApplicationAssessmentReportRequest request =
       FetchApplicationAssessmentReportRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .build();
   FetchApplicationAssessmentReportResponse response =
       designCenterClient.fetchApplicationAssessmentReport(request);
 }
 
Parameter
Name Description
request FetchApplicationAssessmentReportRequest

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

Returns
Type Description
FetchApplicationAssessmentReportResponse

fetchApplicationAssessmentReport(String name)

public final FetchApplicationAssessmentReportResponse fetchApplicationAssessmentReport(String name)

Fetches the assessment report of a deployed application if present.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
   FetchApplicationAssessmentReportResponse response =
       designCenterClient.fetchApplicationAssessmentReport(name);
 }
 
Parameter
Name Description
name String

Required. The application name in the following format: projects/$project/locations/$location/spaces/$space/applications/$application

Returns
Type Description
FetchApplicationAssessmentReportResponse

fetchApplicationAssessmentReportCallable()

public final UnaryCallable<FetchApplicationAssessmentReportRequest,FetchApplicationAssessmentReportResponse> fetchApplicationAssessmentReportCallable()

Fetches the assessment report of a deployed application if present.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   FetchApplicationAssessmentReportRequest request =
       FetchApplicationAssessmentReportRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .build();
   ApiFuture<FetchApplicationAssessmentReportResponse> future =
       designCenterClient.fetchApplicationAssessmentReportCallable().futureCall(request);
   // Do something.
   FetchApplicationAssessmentReportResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<FetchApplicationAssessmentReportRequest,FetchApplicationAssessmentReportResponse>

fetchFrameworks(FetchFrameworksRequest request)

public final DesignCenterClient.FetchFrameworksPagedResponse fetchFrameworks(FetchFrameworksRequest request)

Fetches all frameworks for assessment report.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   FetchFrameworksRequest request =
       FetchFrameworksRequest.newBuilder()
           .setParent("parent-995424086")
           .addAllProjects(new ArrayList<String>())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .build();
   for (Framework element : designCenterClient.fetchFrameworks(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request FetchFrameworksRequest

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

Returns
Type Description
DesignCenterClient.FetchFrameworksPagedResponse

fetchFrameworks(String parent)

public final DesignCenterClient.FetchFrameworksPagedResponse fetchFrameworks(String parent)

Fetches all frameworks for assessment report.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent = "parent-995424086";
   for (Framework element : designCenterClient.fetchFrameworks(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent resource name. Format: projects/{project}/locations/{location}

Returns
Type Description
DesignCenterClient.FetchFrameworksPagedResponse

fetchFrameworksCallable()

public final UnaryCallable<FetchFrameworksRequest,FetchFrameworksResponse> fetchFrameworksCallable()

Fetches all frameworks for assessment report.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   FetchFrameworksRequest request =
       FetchFrameworksRequest.newBuilder()
           .setParent("parent-995424086")
           .addAllProjects(new ArrayList<String>())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .build();
   while (true) {
     FetchFrameworksResponse response =
         designCenterClient.fetchFrameworksCallable().call(request);
     for (Framework element : response.getFrameworksList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<FetchFrameworksRequest,FetchFrameworksResponse>

fetchFrameworksPagedCallable()

public final UnaryCallable<FetchFrameworksRequest,DesignCenterClient.FetchFrameworksPagedResponse> fetchFrameworksPagedCallable()

Fetches all frameworks for assessment report.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   FetchFrameworksRequest request =
       FetchFrameworksRequest.newBuilder()
           .setParent("parent-995424086")
           .addAllProjects(new ArrayList<String>())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .build();
   ApiFuture<Framework> future =
       designCenterClient.fetchFrameworksPagedCallable().futureCall(request);
   // Do something.
   for (Framework element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<FetchFrameworksRequest,FetchFrameworksPagedResponse>

generateApplicationAssessmentReportAsync(@Nullable ApplicationName name)

public final OperationFuture<GenerateApplicationAssessmentReportResponse,OperationMetadata> generateApplicationAssessmentReportAsync(@Nullable ApplicationName name)

Generate Assessment Reports of an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationName name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
   GenerateApplicationAssessmentReportResponse response =
       designCenterClient.generateApplicationAssessmentReportAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationName

Required. The application name in the following format: projects/$project/locations/$location/spaces/$space/applications/$application

Returns
Type Description
OperationFuture<GenerateApplicationAssessmentReportResponse,OperationMetadata>

generateApplicationAssessmentReportAsync(GenerateApplicationAssessmentReportRequest request)

public final OperationFuture<GenerateApplicationAssessmentReportResponse,OperationMetadata> generateApplicationAssessmentReportAsync(GenerateApplicationAssessmentReportRequest request)

Generate Assessment Reports of an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateApplicationAssessmentReportRequest request =
       GenerateApplicationAssessmentReportRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .build();
   GenerateApplicationAssessmentReportResponse response =
       designCenterClient.generateApplicationAssessmentReportAsync(request).get();
 }
 
Parameter
Name Description
request GenerateApplicationAssessmentReportRequest

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

Returns
Type Description
OperationFuture<GenerateApplicationAssessmentReportResponse,OperationMetadata>

generateApplicationAssessmentReportAsync(String name)

public final OperationFuture<GenerateApplicationAssessmentReportResponse,OperationMetadata> generateApplicationAssessmentReportAsync(String name)

Generate Assessment Reports of an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
   GenerateApplicationAssessmentReportResponse response =
       designCenterClient.generateApplicationAssessmentReportAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The application name in the following format: projects/$project/locations/$location/spaces/$space/applications/$application

Returns
Type Description
OperationFuture<GenerateApplicationAssessmentReportResponse,OperationMetadata>

generateApplicationAssessmentReportCallable()

public final UnaryCallable<GenerateApplicationAssessmentReportRequest,Operation> generateApplicationAssessmentReportCallable()

Generate Assessment Reports of an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateApplicationAssessmentReportRequest request =
       GenerateApplicationAssessmentReportRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .build();
   ApiFuture<Operation> future =
       designCenterClient.generateApplicationAssessmentReportCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GenerateApplicationAssessmentReportRequest,Operation>

generateApplicationAssessmentReportOperationCallable()

public final OperationCallable<GenerateApplicationAssessmentReportRequest,GenerateApplicationAssessmentReportResponse,OperationMetadata> generateApplicationAssessmentReportOperationCallable()

Generate Assessment Reports of an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateApplicationAssessmentReportRequest request =
       GenerateApplicationAssessmentReportRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .build();
   OperationFuture<GenerateApplicationAssessmentReportResponse, OperationMetadata> future =
       designCenterClient
           .generateApplicationAssessmentReportOperationCallable()
           .futureCall(request);
   // Do something.
   GenerateApplicationAssessmentReportResponse response = future.get();
 }
 
Returns
Type Description
OperationCallable<GenerateApplicationAssessmentReportRequest,GenerateApplicationAssessmentReportResponse,OperationMetadata>

generateApplicationIaC(@Nullable ApplicationName name)

public final GenerateApplicationIaCResponse generateApplicationIaC(@Nullable ApplicationName name)

Generates Terraform files for an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationName name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
   GenerateApplicationIaCResponse response = designCenterClient.generateApplicationIaC(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationName

Required. The name of the application.

Returns
Type Description
GenerateApplicationIaCResponse

generateApplicationIaC(GenerateApplicationIaCRequest request)

public final GenerateApplicationIaCResponse generateApplicationIaC(GenerateApplicationIaCRequest request)

Generates Terraform files for an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateApplicationIaCRequest request =
       GenerateApplicationIaCRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setIacFormat(IACFormat.forNumber(0))
           .setGcsUri("gcsUri-1251224875")
           .setArtifactLocation(ArtifactLocation.newBuilder().build())
           .build();
   GenerateApplicationIaCResponse response = designCenterClient.generateApplicationIaC(request);
 }
 
Parameter
Name Description
request GenerateApplicationIaCRequest

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

Returns
Type Description
GenerateApplicationIaCResponse

generateApplicationIaC(String name)

public final GenerateApplicationIaCResponse generateApplicationIaC(String name)

Generates Terraform files for an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
   GenerateApplicationIaCResponse response = designCenterClient.generateApplicationIaC(name);
 }
 
Parameter
Name Description
name String

Required. The name of the application.

Returns
Type Description
GenerateApplicationIaCResponse

generateApplicationIaCCallable()

public final UnaryCallable<GenerateApplicationIaCRequest,GenerateApplicationIaCResponse> generateApplicationIaCCallable()

Generates Terraform files for an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateApplicationIaCRequest request =
       GenerateApplicationIaCRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setIacFormat(IACFormat.forNumber(0))
           .setGcsUri("gcsUri-1251224875")
           .setArtifactLocation(ArtifactLocation.newBuilder().build())
           .build();
   ApiFuture<GenerateApplicationIaCResponse> future =
       designCenterClient.generateApplicationIaCCallable().futureCall(request);
   // Do something.
   GenerateApplicationIaCResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GenerateApplicationIaCRequest,GenerateApplicationIaCResponse>

generateApplicationTemplateAssessmentReportAsync(@Nullable ApplicationTemplateName name)

public final OperationFuture<GenerateApplicationTemplateAssessmentReportResponse,OperationMetadata> generateApplicationTemplateAssessmentReportAsync(@Nullable ApplicationTemplateName name)

Generate Assessment Reports of an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName name =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   GenerateApplicationTemplateAssessmentReportResponse response =
       designCenterClient.generateApplicationTemplateAssessmentReportAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The application template name in the following format: projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate

Returns
Type Description
OperationFuture<GenerateApplicationTemplateAssessmentReportResponse,OperationMetadata>

generateApplicationTemplateAssessmentReportAsync(GenerateApplicationTemplateAssessmentReportRequest request)

public final OperationFuture<GenerateApplicationTemplateAssessmentReportResponse,OperationMetadata> generateApplicationTemplateAssessmentReportAsync(GenerateApplicationTemplateAssessmentReportRequest request)

Generate Assessment Reports of an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateApplicationTemplateAssessmentReportRequest request =
       GenerateApplicationTemplateAssessmentReportRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setServiceAccount("serviceAccount1079137720")
           .build();
   GenerateApplicationTemplateAssessmentReportResponse response =
       designCenterClient.generateApplicationTemplateAssessmentReportAsync(request).get();
 }
 
Parameter
Name Description
request GenerateApplicationTemplateAssessmentReportRequest

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

Returns
Type Description
OperationFuture<GenerateApplicationTemplateAssessmentReportResponse,OperationMetadata>

generateApplicationTemplateAssessmentReportAsync(String name)

public final OperationFuture<GenerateApplicationTemplateAssessmentReportResponse,OperationMetadata> generateApplicationTemplateAssessmentReportAsync(String name)

Generate Assessment Reports of an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   GenerateApplicationTemplateAssessmentReportResponse response =
       designCenterClient.generateApplicationTemplateAssessmentReportAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The application template name in the following format: projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate

Returns
Type Description
OperationFuture<GenerateApplicationTemplateAssessmentReportResponse,OperationMetadata>

generateApplicationTemplateAssessmentReportCallable()

public final UnaryCallable<GenerateApplicationTemplateAssessmentReportRequest,Operation> generateApplicationTemplateAssessmentReportCallable()

Generate Assessment Reports of an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateApplicationTemplateAssessmentReportRequest request =
       GenerateApplicationTemplateAssessmentReportRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setServiceAccount("serviceAccount1079137720")
           .build();
   ApiFuture<Operation> future =
       designCenterClient
           .generateApplicationTemplateAssessmentReportCallable()
           .futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GenerateApplicationTemplateAssessmentReportRequest,Operation>

generateApplicationTemplateAssessmentReportOperationCallable()

public final OperationCallable<GenerateApplicationTemplateAssessmentReportRequest,GenerateApplicationTemplateAssessmentReportResponse,OperationMetadata> generateApplicationTemplateAssessmentReportOperationCallable()

Generate Assessment Reports of an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateApplicationTemplateAssessmentReportRequest request =
       GenerateApplicationTemplateAssessmentReportRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setServiceAccount("serviceAccount1079137720")
           .build();
   OperationFuture<GenerateApplicationTemplateAssessmentReportResponse, OperationMetadata>
       future =
           designCenterClient
               .generateApplicationTemplateAssessmentReportOperationCallable()
               .futureCall(request);
   // Do something.
   GenerateApplicationTemplateAssessmentReportResponse response = future.get();
 }
 
Returns
Type Description
OperationCallable<GenerateApplicationTemplateAssessmentReportRequest,GenerateApplicationTemplateAssessmentReportResponse,OperationMetadata>

generateApplicationTemplateIaC(@Nullable ApplicationTemplateName name)

public final GenerateApplicationTemplateIaCResponse generateApplicationTemplateIaC(@Nullable ApplicationTemplateName name)

Generates Terraform files for an application template. This is a SYNCHRONOUS operation and returns the generated IaC directly in the response. It does NOT download external module sources; it only uses remote sources.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName name =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   GenerateApplicationTemplateIaCResponse response =
       designCenterClient.generateApplicationTemplateIaC(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The name of the application template.

Returns
Type Description
GenerateApplicationTemplateIaCResponse

generateApplicationTemplateIaC(GenerateApplicationTemplateIaCRequest request)

public final GenerateApplicationTemplateIaCResponse generateApplicationTemplateIaC(GenerateApplicationTemplateIaCRequest request)

Generates Terraform files for an application template. This is a SYNCHRONOUS operation and returns the generated IaC directly in the response. It does NOT download external module sources; it only uses remote sources.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateApplicationTemplateIaCRequest request =
       GenerateApplicationTemplateIaCRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setGcsUri("gcsUri-1251224875")
           .setArtifactLocation(ArtifactLocation.newBuilder().build())
           .build();
   GenerateApplicationTemplateIaCResponse response =
       designCenterClient.generateApplicationTemplateIaC(request);
 }
 
Parameter
Name Description
request GenerateApplicationTemplateIaCRequest

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

Returns
Type Description
GenerateApplicationTemplateIaCResponse

generateApplicationTemplateIaC(String name)

public final GenerateApplicationTemplateIaCResponse generateApplicationTemplateIaC(String name)

Generates Terraform files for an application template. This is a SYNCHRONOUS operation and returns the generated IaC directly in the response. It does NOT download external module sources; it only uses remote sources.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   GenerateApplicationTemplateIaCResponse response =
       designCenterClient.generateApplicationTemplateIaC(name);
 }
 
Parameter
Name Description
name String

Required. The name of the application template.

Returns
Type Description
GenerateApplicationTemplateIaCResponse

generateApplicationTemplateIaCCallable()

public final UnaryCallable<GenerateApplicationTemplateIaCRequest,GenerateApplicationTemplateIaCResponse> generateApplicationTemplateIaCCallable()

Generates Terraform files for an application template. This is a SYNCHRONOUS operation and returns the generated IaC directly in the response. It does NOT download external module sources; it only uses remote sources.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateApplicationTemplateIaCRequest request =
       GenerateApplicationTemplateIaCRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setGcsUri("gcsUri-1251224875")
           .setArtifactLocation(ArtifactLocation.newBuilder().build())
           .build();
   ApiFuture<GenerateApplicationTemplateIaCResponse> future =
       designCenterClient.generateApplicationTemplateIaCCallable().futureCall(request);
   // Do something.
   GenerateApplicationTemplateIaCResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GenerateApplicationTemplateIaCRequest,GenerateApplicationTemplateIaCResponse>

generateApplicationTemplateRevisionIaC(@Nullable ApplicationTemplateRevisionName name)

public final GenerateApplicationTemplateRevisionIaCResponse generateApplicationTemplateRevisionIaC(@Nullable ApplicationTemplateRevisionName name)

Generates Terraform files for an application template revision. This is a SYNCHRONOUS operation and returns the generated IaC directly in the response. It does NOT download external module sources; it only uses remote sources.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateRevisionName name =
       ApplicationTemplateRevisionName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]");
   GenerateApplicationTemplateRevisionIaCResponse response =
       designCenterClient.generateApplicationTemplateRevisionIaC(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName

Required. The name of the application template revision.

Returns
Type Description
GenerateApplicationTemplateRevisionIaCResponse

generateApplicationTemplateRevisionIaC(GenerateApplicationTemplateRevisionIaCRequest request)

public final GenerateApplicationTemplateRevisionIaCResponse generateApplicationTemplateRevisionIaC(GenerateApplicationTemplateRevisionIaCRequest request)

Generates Terraform files for an application template revision. This is a SYNCHRONOUS operation and returns the generated IaC directly in the response. It does NOT download external module sources; it only uses remote sources.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateApplicationTemplateRevisionIaCRequest request =
       GenerateApplicationTemplateRevisionIaCRequest.newBuilder()
           .setName(
               ApplicationTemplateRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[REVISION]")
                   .toString())
           .setArtifactLocation(ArtifactLocation.newBuilder().build())
           .build();
   GenerateApplicationTemplateRevisionIaCResponse response =
       designCenterClient.generateApplicationTemplateRevisionIaC(request);
 }
 
Parameter
Name Description
request GenerateApplicationTemplateRevisionIaCRequest

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

Returns
Type Description
GenerateApplicationTemplateRevisionIaCResponse

generateApplicationTemplateRevisionIaC(String name)

public final GenerateApplicationTemplateRevisionIaCResponse generateApplicationTemplateRevisionIaC(String name)

Generates Terraform files for an application template revision. This is a SYNCHRONOUS operation and returns the generated IaC directly in the response. It does NOT download external module sources; it only uses remote sources.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateRevisionName.of(
               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]")
           .toString();
   GenerateApplicationTemplateRevisionIaCResponse response =
       designCenterClient.generateApplicationTemplateRevisionIaC(name);
 }
 
Parameter
Name Description
name String

Required. The name of the application template revision.

Returns
Type Description
GenerateApplicationTemplateRevisionIaCResponse

generateApplicationTemplateRevisionIaCCallable()

public final UnaryCallable<GenerateApplicationTemplateRevisionIaCRequest,GenerateApplicationTemplateRevisionIaCResponse> generateApplicationTemplateRevisionIaCCallable()

Generates Terraform files for an application template revision. This is a SYNCHRONOUS operation and returns the generated IaC directly in the response. It does NOT download external module sources; it only uses remote sources.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateApplicationTemplateRevisionIaCRequest request =
       GenerateApplicationTemplateRevisionIaCRequest.newBuilder()
           .setName(
               ApplicationTemplateRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[REVISION]")
                   .toString())
           .setArtifactLocation(ArtifactLocation.newBuilder().build())
           .build();
   ApiFuture<GenerateApplicationTemplateRevisionIaCResponse> future =
       designCenterClient.generateApplicationTemplateRevisionIaCCallable().futureCall(request);
   // Do something.
   GenerateApplicationTemplateRevisionIaCResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GenerateApplicationTemplateRevisionIaCRequest,GenerateApplicationTemplateRevisionIaCResponse>

generateAssessmentReportAsync(@Nullable SpaceName spaceName) (deprecated)

public final OperationFuture<GenerateAssessmentReportResponse,OperationMetadata> generateAssessmentReportAsync(@Nullable SpaceName spaceName)

Deprecated. This method is deprecated and will be removed in the next major version update.

Deprecated: Use GenerateTerraformPlanAssessmentReport instead.

Generate a best practice report for a given Terraform plan.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SpaceName spaceName = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
   GenerateAssessmentReportResponse response =
       designCenterClient.generateAssessmentReportAsync(spaceName).get();
 }
 
Parameter
Name Description
spaceName @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.SpaceName

Required. The name of the space at which Generate Assessment Report is called. Format: projects/$project/locations/$location/spaces/$space

Returns
Type Description
OperationFuture<GenerateAssessmentReportResponse,OperationMetadata>

generateAssessmentReportAsync(GenerateAssessmentReportRequest request) (deprecated)

public final OperationFuture<GenerateAssessmentReportResponse,OperationMetadata> generateAssessmentReportAsync(GenerateAssessmentReportRequest request)

Deprecated. This method is deprecated and will be removed in the next major version update.

Deprecated: Use GenerateTerraformPlanAssessmentReport instead.

Generate a best practice report for a given Terraform plan.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateAssessmentReportRequest request =
       GenerateAssessmentReportRequest.newBuilder()
           .setTerraformPlan(ByteString.EMPTY)
           .addAllAdditionalFrameworks(new ArrayList<String>())
           .setSpaceName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .build();
   GenerateAssessmentReportResponse response =
       designCenterClient.generateAssessmentReportAsync(request).get();
 }
 
Parameter
Name Description
request GenerateAssessmentReportRequest

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

Returns
Type Description
OperationFuture<GenerateAssessmentReportResponse,OperationMetadata>

generateAssessmentReportAsync(String spaceName) (deprecated)

public final OperationFuture<GenerateAssessmentReportResponse,OperationMetadata> generateAssessmentReportAsync(String spaceName)

Deprecated. This method is deprecated and will be removed in the next major version update.

Deprecated: Use GenerateTerraformPlanAssessmentReport instead.

Generate a best practice report for a given Terraform plan.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String spaceName = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
   GenerateAssessmentReportResponse response =
       designCenterClient.generateAssessmentReportAsync(spaceName).get();
 }
 
Parameter
Name Description
spaceName String

Required. The name of the space at which Generate Assessment Report is called. Format: projects/$project/locations/$location/spaces/$space

Returns
Type Description
OperationFuture<GenerateAssessmentReportResponse,OperationMetadata>

generateAssessmentReportCallable() (deprecated)

public final UnaryCallable<GenerateAssessmentReportRequest,Operation> generateAssessmentReportCallable()

Deprecated. This method is deprecated and will be removed in the next major version update.

Deprecated: Use GenerateTerraformPlanAssessmentReport instead.

Generate a best practice report for a given Terraform plan.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateAssessmentReportRequest request =
       GenerateAssessmentReportRequest.newBuilder()
           .setTerraformPlan(ByteString.EMPTY)
           .addAllAdditionalFrameworks(new ArrayList<String>())
           .setSpaceName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .build();
   ApiFuture<Operation> future =
       designCenterClient.generateAssessmentReportCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GenerateAssessmentReportRequest,Operation>

generateAssessmentReportOperationCallable() (deprecated)

public final OperationCallable<GenerateAssessmentReportRequest,GenerateAssessmentReportResponse,OperationMetadata> generateAssessmentReportOperationCallable()

Deprecated. This method is deprecated and will be removed in the next major version update.

Deprecated: Use GenerateTerraformPlanAssessmentReport instead.

Generate a best practice report for a given Terraform plan.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateAssessmentReportRequest request =
       GenerateAssessmentReportRequest.newBuilder()
           .setTerraformPlan(ByteString.EMPTY)
           .addAllAdditionalFrameworks(new ArrayList<String>())
           .setSpaceName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .build();
   OperationFuture<GenerateAssessmentReportResponse, OperationMetadata> future =
       designCenterClient.generateAssessmentReportOperationCallable().futureCall(request);
   // Do something.
   GenerateAssessmentReportResponse response = future.get();
 }
 
Returns
Type Description
OperationCallable<GenerateAssessmentReportRequest,GenerateAssessmentReportResponse,OperationMetadata>

generateTerraformPlanAssessmentReportAsync(@Nullable SpaceName name, ByteString terraformPlan)

public final OperationFuture<GenerateTerraformPlanAssessmentReportResponse,OperationMetadata> generateTerraformPlanAssessmentReportAsync(@Nullable SpaceName name, ByteString terraformPlan)

Generate a Terraform plan assessment report for a given Terraform plan.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
   ByteString terraformPlan = ByteString.EMPTY;
   GenerateTerraformPlanAssessmentReportResponse response =
       designCenterClient.generateTerraformPlanAssessmentReportAsync(name, terraformPlan).get();
 }
 
Parameters
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.SpaceName

Required. The parent resource in which to generate the assessment report. Format: projects/$project/locations/$location/spaces/$space

terraformPlan ByteString

Required. The raw JSON representation of the generated Terraform plan, provided as bytes.

Returns
Type Description
OperationFuture<GenerateTerraformPlanAssessmentReportResponse,OperationMetadata>

generateTerraformPlanAssessmentReportAsync(GenerateTerraformPlanAssessmentReportRequest request)

public final OperationFuture<GenerateTerraformPlanAssessmentReportResponse,OperationMetadata> generateTerraformPlanAssessmentReportAsync(GenerateTerraformPlanAssessmentReportRequest request)

Generate a Terraform plan assessment report for a given Terraform plan.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateTerraformPlanAssessmentReportRequest request =
       GenerateTerraformPlanAssessmentReportRequest.newBuilder()
           .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setTerraformPlan(ByteString.EMPTY)
           .addAllAdditionalFrameworks(new ArrayList<String>())
           .build();
   GenerateTerraformPlanAssessmentReportResponse response =
       designCenterClient.generateTerraformPlanAssessmentReportAsync(request).get();
 }
 
Parameter
Name Description
request GenerateTerraformPlanAssessmentReportRequest

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

Returns
Type Description
OperationFuture<GenerateTerraformPlanAssessmentReportResponse,OperationMetadata>

generateTerraformPlanAssessmentReportAsync(String name, ByteString terraformPlan)

public final OperationFuture<GenerateTerraformPlanAssessmentReportResponse,OperationMetadata> generateTerraformPlanAssessmentReportAsync(String name, ByteString terraformPlan)

Generate a Terraform plan assessment report for a given Terraform plan.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
   ByteString terraformPlan = ByteString.EMPTY;
   GenerateTerraformPlanAssessmentReportResponse response =
       designCenterClient.generateTerraformPlanAssessmentReportAsync(name, terraformPlan).get();
 }
 
Parameters
Name Description
name String

Required. The parent resource in which to generate the assessment report. Format: projects/$project/locations/$location/spaces/$space

terraformPlan ByteString

Required. The raw JSON representation of the generated Terraform plan, provided as bytes.

Returns
Type Description
OperationFuture<GenerateTerraformPlanAssessmentReportResponse,OperationMetadata>

generateTerraformPlanAssessmentReportCallable()

public final UnaryCallable<GenerateTerraformPlanAssessmentReportRequest,Operation> generateTerraformPlanAssessmentReportCallable()

Generate a Terraform plan assessment report for a given Terraform plan.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateTerraformPlanAssessmentReportRequest request =
       GenerateTerraformPlanAssessmentReportRequest.newBuilder()
           .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setTerraformPlan(ByteString.EMPTY)
           .addAllAdditionalFrameworks(new ArrayList<String>())
           .build();
   ApiFuture<Operation> future =
       designCenterClient.generateTerraformPlanAssessmentReportCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GenerateTerraformPlanAssessmentReportRequest,Operation>

generateTerraformPlanAssessmentReportOperationCallable()

public final OperationCallable<GenerateTerraformPlanAssessmentReportRequest,GenerateTerraformPlanAssessmentReportResponse,OperationMetadata> generateTerraformPlanAssessmentReportOperationCallable()

Generate a Terraform plan assessment report for a given Terraform plan.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GenerateTerraformPlanAssessmentReportRequest request =
       GenerateTerraformPlanAssessmentReportRequest.newBuilder()
           .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setTerraformPlan(ByteString.EMPTY)
           .addAllAdditionalFrameworks(new ArrayList<String>())
           .build();
   OperationFuture<GenerateTerraformPlanAssessmentReportResponse, OperationMetadata> future =
       designCenterClient
           .generateTerraformPlanAssessmentReportOperationCallable()
           .futureCall(request);
   // Do something.
   GenerateTerraformPlanAssessmentReportResponse response = future.get();
 }
 
Returns
Type Description
OperationCallable<GenerateTerraformPlanAssessmentReportRequest,GenerateTerraformPlanAssessmentReportResponse,OperationMetadata>

getApplication(@Nullable ApplicationName name)

public final Application getApplication(@Nullable ApplicationName name)

Gets details about an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationName name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
   Application response = designCenterClient.getApplication(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationName

Required. The application name. Format: projects/$project/locations/$location/spaces/$space/applications/$application

Returns
Type Description
Application

getApplication(GetApplicationRequest request)

public final Application getApplication(GetApplicationRequest request)

Gets details about an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetApplicationRequest request =
       GetApplicationRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .build();
   Application response = designCenterClient.getApplication(request);
 }
 
Parameter
Name Description
request GetApplicationRequest

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

Returns
Type Description
Application

getApplication(String name)

public final Application getApplication(String name)

Gets details about an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
   Application response = designCenterClient.getApplication(name);
 }
 
Parameter
Name Description
name String

Required. The application name. Format: projects/$project/locations/$location/spaces/$space/applications/$application

Returns
Type Description
Application

getApplicationCallable()

public final UnaryCallable<GetApplicationRequest,Application> getApplicationCallable()

Gets details about an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetApplicationRequest request =
       GetApplicationRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .build();
   ApiFuture<Application> future =
       designCenterClient.getApplicationCallable().futureCall(request);
   // Do something.
   Application response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetApplicationRequest,Application>

getApplicationTemplate(@Nullable ApplicationTemplateName name)

public final ApplicationTemplate getApplicationTemplate(@Nullable ApplicationTemplateName name)

Gets details about an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName name =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   ApplicationTemplate response = designCenterClient.getApplicationTemplate(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The application template name.

Returns
Type Description
ApplicationTemplate

getApplicationTemplate(GetApplicationTemplateRequest request)

public final ApplicationTemplate getApplicationTemplate(GetApplicationTemplateRequest request)

Gets details about an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetApplicationTemplateRequest request =
       GetApplicationTemplateRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .build();
   ApplicationTemplate response = designCenterClient.getApplicationTemplate(request);
 }
 
Parameter
Name Description
request GetApplicationTemplateRequest

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

Returns
Type Description
ApplicationTemplate

getApplicationTemplate(String name)

public final ApplicationTemplate getApplicationTemplate(String name)

Gets details about an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   ApplicationTemplate response = designCenterClient.getApplicationTemplate(name);
 }
 
Parameter
Name Description
name String

Required. The application template name.

Returns
Type Description
ApplicationTemplate

getApplicationTemplateCallable()

public final UnaryCallable<GetApplicationTemplateRequest,ApplicationTemplate> getApplicationTemplateCallable()

Gets details about an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetApplicationTemplateRequest request =
       GetApplicationTemplateRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .build();
   ApiFuture<ApplicationTemplate> future =
       designCenterClient.getApplicationTemplateCallable().futureCall(request);
   // Do something.
   ApplicationTemplate response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetApplicationTemplateRequest,ApplicationTemplate>

getApplicationTemplateRevision(@Nullable ApplicationTemplateRevisionName name)

public final ApplicationTemplateRevision getApplicationTemplateRevision(@Nullable ApplicationTemplateRevisionName name)

Gets details about an application template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateRevisionName name =
       ApplicationTemplateRevisionName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]");
   ApplicationTemplateRevision response =
       designCenterClient.getApplicationTemplateRevision(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName

Required. The application template revision name.

Returns
Type Description
ApplicationTemplateRevision

getApplicationTemplateRevision(GetApplicationTemplateRevisionRequest request)

public final ApplicationTemplateRevision getApplicationTemplateRevision(GetApplicationTemplateRevisionRequest request)

Gets details about an application template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetApplicationTemplateRevisionRequest request =
       GetApplicationTemplateRevisionRequest.newBuilder()
           .setName(
               ApplicationTemplateRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[REVISION]")
                   .toString())
           .build();
   ApplicationTemplateRevision response =
       designCenterClient.getApplicationTemplateRevision(request);
 }
 
Parameter
Name Description
request GetApplicationTemplateRevisionRequest

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

Returns
Type Description
ApplicationTemplateRevision

getApplicationTemplateRevision(String name)

public final ApplicationTemplateRevision getApplicationTemplateRevision(String name)

Gets details about an application template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateRevisionName.of(
               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]")
           .toString();
   ApplicationTemplateRevision response =
       designCenterClient.getApplicationTemplateRevision(name);
 }
 
Parameter
Name Description
name String

Required. The application template revision name.

Returns
Type Description
ApplicationTemplateRevision

getApplicationTemplateRevisionCallable()

public final UnaryCallable<GetApplicationTemplateRevisionRequest,ApplicationTemplateRevision> getApplicationTemplateRevisionCallable()

Gets details about an application template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetApplicationTemplateRevisionRequest request =
       GetApplicationTemplateRevisionRequest.newBuilder()
           .setName(
               ApplicationTemplateRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[REVISION]")
                   .toString())
           .build();
   ApiFuture<ApplicationTemplateRevision> future =
       designCenterClient.getApplicationTemplateRevisionCallable().futureCall(request);
   // Do something.
   ApplicationTemplateRevision response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetApplicationTemplateRevisionRequest,ApplicationTemplateRevision>

getApplicationTemplateSystemRevision(@Nullable ApplicationTemplateSystemRevisionName name)

public final ApplicationTemplateSystemRevision getApplicationTemplateSystemRevision(@Nullable ApplicationTemplateSystemRevisionName name)

Gets the given application template system revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateSystemRevisionName name =
       ApplicationTemplateSystemRevisionName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[SYSTEM_REVISION]");
   ApplicationTemplateSystemRevision response =
       designCenterClient.getApplicationTemplateSystemRevision(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevisionName

Required. The name of the ApplicationTemplateSystemRevision to retrieve. Format: projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}

Returns
Type Description
ApplicationTemplateSystemRevision

getApplicationTemplateSystemRevision(GetApplicationTemplateSystemRevisionRequest request)

public final ApplicationTemplateSystemRevision getApplicationTemplateSystemRevision(GetApplicationTemplateSystemRevisionRequest request)

Gets the given application template system revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetApplicationTemplateSystemRevisionRequest request =
       GetApplicationTemplateSystemRevisionRequest.newBuilder()
           .setName(
               ApplicationTemplateSystemRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[SYSTEM_REVISION]")
                   .toString())
           .build();
   ApplicationTemplateSystemRevision response =
       designCenterClient.getApplicationTemplateSystemRevision(request);
 }
 
Parameter
Name Description
request GetApplicationTemplateSystemRevisionRequest

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

Returns
Type Description
ApplicationTemplateSystemRevision

getApplicationTemplateSystemRevision(String name)

public final ApplicationTemplateSystemRevision getApplicationTemplateSystemRevision(String name)

Gets the given application template system revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateSystemRevisionName.of(
               "[PROJECT]",
               "[LOCATION]",
               "[SPACE]",
               "[APPLICATION_TEMPLATE]",
               "[SYSTEM_REVISION]")
           .toString();
   ApplicationTemplateSystemRevision response =
       designCenterClient.getApplicationTemplateSystemRevision(name);
 }
 
Parameter
Name Description
name String

Required. The name of the ApplicationTemplateSystemRevision to retrieve. Format: projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}

Returns
Type Description
ApplicationTemplateSystemRevision

getApplicationTemplateSystemRevisionCallable()

public final UnaryCallable<GetApplicationTemplateSystemRevisionRequest,ApplicationTemplateSystemRevision> getApplicationTemplateSystemRevisionCallable()

Gets the given application template system revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetApplicationTemplateSystemRevisionRequest request =
       GetApplicationTemplateSystemRevisionRequest.newBuilder()
           .setName(
               ApplicationTemplateSystemRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[SYSTEM_REVISION]")
                   .toString())
           .build();
   ApiFuture<ApplicationTemplateSystemRevision> future =
       designCenterClient.getApplicationTemplateSystemRevisionCallable().futureCall(request);
   // Do something.
   ApplicationTemplateSystemRevision response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetApplicationTemplateSystemRevisionRequest,ApplicationTemplateSystemRevision>

getCatalog(@Nullable CatalogName name)

public final Catalog getCatalog(@Nullable CatalogName name)

Gets details about a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CatalogName name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]");
   Catalog response = designCenterClient.getCatalog(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.CatalogName

Required. The catalog name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog

Returns
Type Description
Catalog

getCatalog(GetCatalogRequest request)

public final Catalog getCatalog(GetCatalogRequest request)

Gets details about a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetCatalogRequest request =
       GetCatalogRequest.newBuilder()
           .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .build();
   Catalog response = designCenterClient.getCatalog(request);
 }
 
Parameter
Name Description
request GetCatalogRequest

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

Returns
Type Description
Catalog

getCatalog(String name)

public final Catalog getCatalog(String name)

Gets details about a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString();
   Catalog response = designCenterClient.getCatalog(name);
 }
 
Parameter
Name Description
name String

Required. The catalog name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog

Returns
Type Description
Catalog

getCatalogCallable()

public final UnaryCallable<GetCatalogRequest,Catalog> getCatalogCallable()

Gets details about a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetCatalogRequest request =
       GetCatalogRequest.newBuilder()
           .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .build();
   ApiFuture<Catalog> future = designCenterClient.getCatalogCallable().futureCall(request);
   // Do something.
   Catalog response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetCatalogRequest,Catalog>

getCatalogTemplate(@Nullable CatalogTemplateName name)

public final CatalogTemplate getCatalogTemplate(@Nullable CatalogTemplateName name)

Gets a catalog template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CatalogTemplateName name =
       CatalogTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]");
   CatalogTemplate response = designCenterClient.getCatalogTemplate(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.CatalogTemplateName

Required. The catalog template name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template

Returns
Type Description
CatalogTemplate

getCatalogTemplate(GetCatalogTemplateRequest request)

public final CatalogTemplate getCatalogTemplate(GetCatalogTemplateRequest request)

Gets a catalog template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetCatalogTemplateRequest request =
       GetCatalogTemplateRequest.newBuilder()
           .setName(
               CatalogTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
                   .toString())
           .build();
   CatalogTemplate response = designCenterClient.getCatalogTemplate(request);
 }
 
Parameter
Name Description
request GetCatalogTemplateRequest

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

Returns
Type Description
CatalogTemplate

getCatalogTemplate(String name)

public final CatalogTemplate getCatalogTemplate(String name)

Gets a catalog template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       CatalogTemplateName.of(
               "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
           .toString();
   CatalogTemplate response = designCenterClient.getCatalogTemplate(name);
 }
 
Parameter
Name Description
name String

Required. The catalog template name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template

Returns
Type Description
CatalogTemplate

getCatalogTemplateCallable()

public final UnaryCallable<GetCatalogTemplateRequest,CatalogTemplate> getCatalogTemplateCallable()

Gets a catalog template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetCatalogTemplateRequest request =
       GetCatalogTemplateRequest.newBuilder()
           .setName(
               CatalogTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
                   .toString())
           .build();
   ApiFuture<CatalogTemplate> future =
       designCenterClient.getCatalogTemplateCallable().futureCall(request);
   // Do something.
   CatalogTemplate response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetCatalogTemplateRequest,CatalogTemplate>

getCatalogTemplateRevision(@Nullable CatalogTemplateRevisionName name)

public final CatalogTemplateRevision getCatalogTemplateRevision(@Nullable CatalogTemplateRevisionName name)

Gets details about a template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CatalogTemplateRevisionName name =
       CatalogTemplateRevisionName.of(
           "[PROJECT]",
           "[LOCATION]",
           "[SPACE]",
           "[CATALOG]",
           "[CATALOG_TEMPLATE]",
           "[REVISION]");
   CatalogTemplateRevision response = designCenterClient.getCatalogTemplateRevision(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.CatalogTemplateRevisionName

Required. The catalog template revisions name.

Returns
Type Description
CatalogTemplateRevision

getCatalogTemplateRevision(GetCatalogTemplateRevisionRequest request)

public final CatalogTemplateRevision getCatalogTemplateRevision(GetCatalogTemplateRevisionRequest request)

Gets details about a template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetCatalogTemplateRevisionRequest request =
       GetCatalogTemplateRevisionRequest.newBuilder()
           .setName(
               CatalogTemplateRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[CATALOG]",
                       "[CATALOG_TEMPLATE]",
                       "[REVISION]")
                   .toString())
           .build();
   CatalogTemplateRevision response = designCenterClient.getCatalogTemplateRevision(request);
 }
 
Parameter
Name Description
request GetCatalogTemplateRevisionRequest

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

Returns
Type Description
CatalogTemplateRevision

getCatalogTemplateRevision(String name)

public final CatalogTemplateRevision getCatalogTemplateRevision(String name)

Gets details about a template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       CatalogTemplateRevisionName.of(
               "[PROJECT]",
               "[LOCATION]",
               "[SPACE]",
               "[CATALOG]",
               "[CATALOG_TEMPLATE]",
               "[REVISION]")
           .toString();
   CatalogTemplateRevision response = designCenterClient.getCatalogTemplateRevision(name);
 }
 
Parameter
Name Description
name String

Required. The catalog template revisions name.

Returns
Type Description
CatalogTemplateRevision

getCatalogTemplateRevisionCallable()

public final UnaryCallable<GetCatalogTemplateRevisionRequest,CatalogTemplateRevision> getCatalogTemplateRevisionCallable()

Gets details about a template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetCatalogTemplateRevisionRequest request =
       GetCatalogTemplateRevisionRequest.newBuilder()
           .setName(
               CatalogTemplateRevisionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[CATALOG]",
                       "[CATALOG_TEMPLATE]",
                       "[REVISION]")
                   .toString())
           .build();
   ApiFuture<CatalogTemplateRevision> future =
       designCenterClient.getCatalogTemplateRevisionCallable().futureCall(request);
   // Do something.
   CatalogTemplateRevision response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetCatalogTemplateRevisionRequest,CatalogTemplateRevision>

getComponent(@Nullable ComponentName name)

public final Component getComponent(@Nullable ComponentName name)

Gets details about a Component.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ComponentName name =
       ComponentName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]");
   Component response = designCenterClient.getComponent(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ComponentName

Required. The component name.

Returns
Type Description
Component

getComponent(GetComponentRequest request)

public final Component getComponent(GetComponentRequest request)

Gets details about a Component.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetComponentRequest request =
       GetComponentRequest.newBuilder()
           .setName(
               ComponentName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[COMPONENT]")
                   .toString())
           .build();
   Component response = designCenterClient.getComponent(request);
 }
 
Parameter
Name Description
request GetComponentRequest

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

Returns
Type Description
Component

getComponent(String name)

public final Component getComponent(String name)

Gets details about a Component.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ComponentName.of(
               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]")
           .toString();
   Component response = designCenterClient.getComponent(name);
 }
 
Parameter
Name Description
name String

Required. The component name.

Returns
Type Description
Component

getComponentCallable()

public final UnaryCallable<GetComponentRequest,Component> getComponentCallable()

Gets details about a Component.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetComponentRequest request =
       GetComponentRequest.newBuilder()
           .setName(
               ComponentName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[COMPONENT]")
                   .toString())
           .build();
   ApiFuture<Component> future = designCenterClient.getComponentCallable().futureCall(request);
   // Do something.
   Component response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetComponentRequest,Component>

getConnection(@Nullable ConnectionName name)

public final Connection getConnection(@Nullable ConnectionName name)

Gets details about a connection.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ConnectionName name =
       ConnectionName.of(
           "[PROJECT]",
           "[LOCATION]",
           "[SPACE]",
           "[APPLICATION_TEMPLATE]",
           "[COMPONENT]",
           "[CONNECTION]");
   Connection response = designCenterClient.getConnection(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ConnectionName

Required. Name of the resource

Returns
Type Description
Connection

getConnection(GetConnectionRequest request)

public final Connection getConnection(GetConnectionRequest request)

Gets details about a connection.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetConnectionRequest request =
       GetConnectionRequest.newBuilder()
           .setName(
               ConnectionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[COMPONENT]",
                       "[CONNECTION]")
                   .toString())
           .build();
   Connection response = designCenterClient.getConnection(request);
 }
 
Parameter
Name Description
request GetConnectionRequest

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

Returns
Type Description
Connection

getConnection(String name)

public final Connection getConnection(String name)

Gets details about a connection.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ConnectionName.of(
               "[PROJECT]",
               "[LOCATION]",
               "[SPACE]",
               "[APPLICATION_TEMPLATE]",
               "[COMPONENT]",
               "[CONNECTION]")
           .toString();
   Connection response = designCenterClient.getConnection(name);
 }
 
Parameter
Name Description
name String

Required. Name of the resource

Returns
Type Description
Connection

getConnectionCallable()

public final UnaryCallable<GetConnectionRequest,Connection> getConnectionCallable()

Gets details about a connection.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetConnectionRequest request =
       GetConnectionRequest.newBuilder()
           .setName(
               ConnectionName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[COMPONENT]",
                       "[CONNECTION]")
                   .toString())
           .build();
   ApiFuture<Connection> future = designCenterClient.getConnectionCallable().futureCall(request);
   // Do something.
   Connection response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetConnectionRequest,Connection>

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

getIamPolicy(GetIamPolicyRequest request)

public final Policy getIamPolicy(GetIamPolicyRequest request)

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetIamPolicyRequest request =
       GetIamPolicyRequest.newBuilder()
           .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setOptions(GetPolicyOptions.newBuilder().build())
           .build();
   Policy response = designCenterClient.getIamPolicy(request);
 }
 
Parameter
Name Description
request com.google.iam.v1.GetIamPolicyRequest

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

Returns
Type Description
com.google.iam.v1.Policy

getIamPolicyCallable()

public final UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetIamPolicyRequest request =
       GetIamPolicyRequest.newBuilder()
           .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setOptions(GetPolicyOptions.newBuilder().build())
           .build();
   ApiFuture<Policy> future = designCenterClient.getIamPolicyCallable().futureCall(request);
   // Do something.
   Policy response = future.get();
 }
 
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
   Location response = designCenterClient.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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
   ApiFuture<Location> future = designCenterClient.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

getPolicy(@Nullable PolicyName name)

public final Policy getPolicy(@Nullable PolicyName name)

Policy related APIs. Get a policy for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   PolicyName name =
       PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]");
   Policy response = designCenterClient.getPolicy(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.PolicyName

Required. The policy name in the following format: projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy

Returns
Type Description
Policy

getPolicy(GetPolicyRequest request)

public final Policy getPolicy(GetPolicyRequest request)

Policy related APIs. Get a policy for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetPolicyRequest request =
       GetPolicyRequest.newBuilder()
           .setName(
               PolicyName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[POLICY]")
                   .toString())
           .build();
   Policy response = designCenterClient.getPolicy(request);
 }
 
Parameter
Name Description
request GetPolicyRequest

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

Returns
Type Description
Policy

getPolicy(String name)

public final Policy getPolicy(String name)

Policy related APIs. Get a policy for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]")
           .toString();
   Policy response = designCenterClient.getPolicy(name);
 }
 
Parameter
Name Description
name String

Required. The policy name in the following format: projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy

Returns
Type Description
Policy

getPolicyCallable()

public final UnaryCallable<GetPolicyRequest,Policy> getPolicyCallable()

Policy related APIs. Get a policy for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetPolicyRequest request =
       GetPolicyRequest.newBuilder()
           .setName(
               PolicyName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[POLICY]")
                   .toString())
           .build();
   ApiFuture<Policy> future = designCenterClient.getPolicyCallable().futureCall(request);
   // Do something.
   Policy response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetPolicyRequest,Policy>

getSettings()

public final @Nullable DesignCenterSettings getSettings()
Returns
Type Description
@org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.DesignCenterSettings

getShare(@Nullable ShareName name)

public final Share getShare(@Nullable ShareName name)

Get catalog share object for the space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]");
   Share response = designCenterClient.getShare(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ShareName

Required. The share name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share

Returns
Type Description
Share

getShare(GetShareRequest request)

public final Share getShare(GetShareRequest request)

Get catalog share object for the space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetShareRequest request =
       GetShareRequest.newBuilder()
           .setName(
               ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]")
                   .toString())
           .build();
   Share response = designCenterClient.getShare(request);
 }
 
Parameter
Name Description
request GetShareRequest

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

Returns
Type Description
Share

getShare(String name)

public final Share getShare(String name)

Get catalog share object for the space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]").toString();
   Share response = designCenterClient.getShare(name);
 }
 
Parameter
Name Description
name String

Required. The share name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share

Returns
Type Description
Share

getShareCallable()

public final UnaryCallable<GetShareRequest,Share> getShareCallable()

Get catalog share object for the space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetShareRequest request =
       GetShareRequest.newBuilder()
           .setName(
               ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]")
                   .toString())
           .build();
   ApiFuture<Share> future = designCenterClient.getShareCallable().futureCall(request);
   // Do something.
   Share response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetShareRequest,Share>

getSharedTemplate(@Nullable SharedTemplateName name)

public final SharedTemplate getSharedTemplate(@Nullable SharedTemplateName name)

Gets details about a shared template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SharedTemplateName name =
       SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]");
   SharedTemplate response = designCenterClient.getSharedTemplate(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.SharedTemplateName

Required. The shared template name. Format: projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate

Returns
Type Description
SharedTemplate

getSharedTemplate(GetSharedTemplateRequest request)

public final SharedTemplate getSharedTemplate(GetSharedTemplateRequest request)

Gets details about a shared template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetSharedTemplateRequest request =
       GetSharedTemplateRequest.newBuilder()
           .setName(
               SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]")
                   .toString())
           .build();
   SharedTemplate response = designCenterClient.getSharedTemplate(request);
 }
 
Parameter
Name Description
request GetSharedTemplateRequest

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

Returns
Type Description
SharedTemplate

getSharedTemplate(String name)

public final SharedTemplate getSharedTemplate(String name)

Gets details about a shared template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]")
           .toString();
   SharedTemplate response = designCenterClient.getSharedTemplate(name);
 }
 
Parameter
Name Description
name String

Required. The shared template name. Format: projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate

Returns
Type Description
SharedTemplate

getSharedTemplateCallable()

public final UnaryCallable<GetSharedTemplateRequest,SharedTemplate> getSharedTemplateCallable()

Gets details about a shared template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetSharedTemplateRequest request =
       GetSharedTemplateRequest.newBuilder()
           .setName(
               SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]")
                   .toString())
           .build();
   ApiFuture<SharedTemplate> future =
       designCenterClient.getSharedTemplateCallable().futureCall(request);
   // Do something.
   SharedTemplate response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetSharedTemplateRequest,SharedTemplate>

getSharedTemplateRevision(@Nullable SharedTemplateRevisionName name)

public final SharedTemplateRevision getSharedTemplateRevision(@Nullable SharedTemplateRevisionName name)

Gets details about a shared template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SharedTemplateRevisionName name =
       SharedTemplateRevisionName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]");
   SharedTemplateRevision response = designCenterClient.getSharedTemplateRevision(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.SharedTemplateRevisionName

Required. The shared template revision name, in the following format: projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision

Returns
Type Description
SharedTemplateRevision

getSharedTemplateRevision(GetSharedTemplateRevisionRequest request)

public final SharedTemplateRevision getSharedTemplateRevision(GetSharedTemplateRevisionRequest request)

Gets details about a shared template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetSharedTemplateRevisionRequest request =
       GetSharedTemplateRevisionRequest.newBuilder()
           .setName(
               SharedTemplateRevisionName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]")
                   .toString())
           .build();
   SharedTemplateRevision response = designCenterClient.getSharedTemplateRevision(request);
 }
 
Parameter
Name Description
request GetSharedTemplateRevisionRequest

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

Returns
Type Description
SharedTemplateRevision

getSharedTemplateRevision(String name)

public final SharedTemplateRevision getSharedTemplateRevision(String name)

Gets details about a shared template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       SharedTemplateRevisionName.of(
               "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]")
           .toString();
   SharedTemplateRevision response = designCenterClient.getSharedTemplateRevision(name);
 }
 
Parameter
Name Description
name String

Required. The shared template revision name, in the following format: projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision

Returns
Type Description
SharedTemplateRevision

getSharedTemplateRevisionCallable()

public final UnaryCallable<GetSharedTemplateRevisionRequest,SharedTemplateRevision> getSharedTemplateRevisionCallable()

Gets details about a shared template revision.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetSharedTemplateRevisionRequest request =
       GetSharedTemplateRevisionRequest.newBuilder()
           .setName(
               SharedTemplateRevisionName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]")
                   .toString())
           .build();
   ApiFuture<SharedTemplateRevision> future =
       designCenterClient.getSharedTemplateRevisionCallable().futureCall(request);
   // Do something.
   SharedTemplateRevision response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetSharedTemplateRevisionRequest,SharedTemplateRevision>

getSpace(@Nullable SpaceName name)

public final Space getSpace(@Nullable SpaceName name)

Gets details about a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
   Space response = designCenterClient.getSpace(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.SpaceName

Required. The space name.

Returns
Type Description
Space

getSpace(GetSpaceRequest request)

public final Space getSpace(GetSpaceRequest request)

Gets details about a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetSpaceRequest request =
       GetSpaceRequest.newBuilder()
           .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .build();
   Space response = designCenterClient.getSpace(request);
 }
 
Parameter
Name Description
request GetSpaceRequest

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

Returns
Type Description
Space

getSpace(String name)

public final Space getSpace(String name)

Gets details about a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
   Space response = designCenterClient.getSpace(name);
 }
 
Parameter
Name Description
name String

Required. The space name.

Returns
Type Description
Space

getSpaceCallable()

public final UnaryCallable<GetSpaceRequest,Space> getSpaceCallable()

Gets details about a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   GetSpaceRequest request =
       GetSpaceRequest.newBuilder()
           .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .build();
   ApiFuture<Space> future = designCenterClient.getSpaceCallable().futureCall(request);
   // Do something.
   Space response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetSpaceRequest,Space>

getStub()

public DesignCenterStub getStub()
Returns
Type Description
DesignCenterStub

importApplicationIaC(@Nullable ApplicationName name)

public final ImportApplicationIaCResponse importApplicationIaC(@Nullable ApplicationName name)

Imports IaC for an application resource.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationName name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
   ImportApplicationIaCResponse response = designCenterClient.importApplicationIaC(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationName

Required. The name of the application.

Returns
Type Description
ImportApplicationIaCResponse

importApplicationIaC(ImportApplicationIaCRequest request)

public final ImportApplicationIaCResponse importApplicationIaC(ImportApplicationIaCRequest request)

Imports IaC for an application resource.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ImportApplicationIaCRequest request =
       ImportApplicationIaCRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setAllowPartialImport(true)
           .setValidateIac(true)
           .build();
   ImportApplicationIaCResponse response = designCenterClient.importApplicationIaC(request);
 }
 
Parameter
Name Description
request ImportApplicationIaCRequest

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

Returns
Type Description
ImportApplicationIaCResponse

importApplicationIaC(String name)

public final ImportApplicationIaCResponse importApplicationIaC(String name)

Imports IaC for an application resource.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
   ImportApplicationIaCResponse response = designCenterClient.importApplicationIaC(name);
 }
 
Parameter
Name Description
name String

Required. The name of the application.

Returns
Type Description
ImportApplicationIaCResponse

importApplicationIaCCallable()

public final UnaryCallable<ImportApplicationIaCRequest,ImportApplicationIaCResponse> importApplicationIaCCallable()

Imports IaC for an application resource.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ImportApplicationIaCRequest request =
       ImportApplicationIaCRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setAllowPartialImport(true)
           .setValidateIac(true)
           .build();
   ApiFuture<ImportApplicationIaCResponse> future =
       designCenterClient.importApplicationIaCCallable().futureCall(request);
   // Do something.
   ImportApplicationIaCResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<ImportApplicationIaCRequest,ImportApplicationIaCResponse>

importApplicationTemplate(@Nullable ApplicationTemplateName name, @Nullable ApplicationTemplateRevisionName applicationTemplateRevisionUri)

public final ApplicationTemplate importApplicationTemplate(@Nullable ApplicationTemplateName name, @Nullable ApplicationTemplateRevisionName applicationTemplateRevisionUri)

Imports to an existing application template from a given shared template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName name =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   ApplicationTemplateRevisionName applicationTemplateRevisionUri =
       ApplicationTemplateRevisionName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]");
   ApplicationTemplate response =
       designCenterClient.importApplicationTemplate(name, applicationTemplateRevisionUri);
 }
 
Parameters
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The name of the application template.

applicationTemplateRevisionUri @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName

Optional. The source URI for application template revision.

Returns
Type Description
ApplicationTemplate

importApplicationTemplate(@Nullable ApplicationTemplateName name, String applicationTemplateRevisionUri)

public final ApplicationTemplate importApplicationTemplate(@Nullable ApplicationTemplateName name, String applicationTemplateRevisionUri)

Imports to an existing application template from a given shared template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName name =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   String applicationTemplateRevisionUri =
       ApplicationTemplateRevisionName.of(
               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]")
           .toString();
   ApplicationTemplate response =
       designCenterClient.importApplicationTemplate(name, applicationTemplateRevisionUri);
 }
 
Parameters
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The name of the application template.

applicationTemplateRevisionUri String

Optional. The source URI for application template revision.

Returns
Type Description
ApplicationTemplate

importApplicationTemplate(ImportApplicationTemplateRequest request)

public final ApplicationTemplate importApplicationTemplate(ImportApplicationTemplateRequest request)

Imports to an existing application template from a given shared template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ImportApplicationTemplateRequest request =
       ImportApplicationTemplateRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .putAllAnnotations(new HashMap<String, String>())
           .build();
   ApplicationTemplate response = designCenterClient.importApplicationTemplate(request);
 }
 
Parameter
Name Description
request ImportApplicationTemplateRequest

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

Returns
Type Description
ApplicationTemplate

importApplicationTemplate(String name, @Nullable ApplicationTemplateRevisionName applicationTemplateRevisionUri)

public final ApplicationTemplate importApplicationTemplate(String name, @Nullable ApplicationTemplateRevisionName applicationTemplateRevisionUri)

Imports to an existing application template from a given shared template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   ApplicationTemplateRevisionName applicationTemplateRevisionUri =
       ApplicationTemplateRevisionName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]");
   ApplicationTemplate response =
       designCenterClient.importApplicationTemplate(name, applicationTemplateRevisionUri);
 }
 
Parameters
Name Description
name String

Required. The name of the application template.

applicationTemplateRevisionUri @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName

Optional. The source URI for application template revision.

Returns
Type Description
ApplicationTemplate

importApplicationTemplate(String name, String applicationTemplateRevisionUri)

public final ApplicationTemplate importApplicationTemplate(String name, String applicationTemplateRevisionUri)

Imports to an existing application template from a given shared template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   String applicationTemplateRevisionUri =
       ApplicationTemplateRevisionName.of(
               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]")
           .toString();
   ApplicationTemplate response =
       designCenterClient.importApplicationTemplate(name, applicationTemplateRevisionUri);
 }
 
Parameters
Name Description
name String

Required. The name of the application template.

applicationTemplateRevisionUri String

Optional. The source URI for application template revision.

Returns
Type Description
ApplicationTemplate

importApplicationTemplateCallable()

public final UnaryCallable<ImportApplicationTemplateRequest,ApplicationTemplate> importApplicationTemplateCallable()

Imports to an existing application template from a given shared template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ImportApplicationTemplateRequest request =
       ImportApplicationTemplateRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .putAllAnnotations(new HashMap<String, String>())
           .build();
   ApiFuture<ApplicationTemplate> future =
       designCenterClient.importApplicationTemplateCallable().futureCall(request);
   // Do something.
   ApplicationTemplate response = future.get();
 }
 
Returns
Type Description
UnaryCallable<ImportApplicationTemplateRequest,ApplicationTemplate>

importApplicationTemplateIaC(@Nullable ApplicationTemplateName name)

public final ImportApplicationTemplateIaCResponse importApplicationTemplateIaC(@Nullable ApplicationTemplateName name)

Imports IaC for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName name =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   ImportApplicationTemplateIaCResponse response =
       designCenterClient.importApplicationTemplateIaC(name);
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The name of the application template.

Returns
Type Description
ImportApplicationTemplateIaCResponse

importApplicationTemplateIaC(ImportApplicationTemplateIaCRequest request)

public final ImportApplicationTemplateIaCResponse importApplicationTemplateIaC(ImportApplicationTemplateIaCRequest request)

Imports IaC for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ImportApplicationTemplateIaCRequest request =
       ImportApplicationTemplateIaCRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setAllowPartialImport(true)
           .setValidateIac(true)
           .build();
   ImportApplicationTemplateIaCResponse response =
       designCenterClient.importApplicationTemplateIaC(request);
 }
 
Parameter
Name Description
request ImportApplicationTemplateIaCRequest

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

Returns
Type Description
ImportApplicationTemplateIaCResponse

importApplicationTemplateIaC(String name)

public final ImportApplicationTemplateIaCResponse importApplicationTemplateIaC(String name)

Imports IaC for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   ImportApplicationTemplateIaCResponse response =
       designCenterClient.importApplicationTemplateIaC(name);
 }
 
Parameter
Name Description
name String

Required. The name of the application template.

Returns
Type Description
ImportApplicationTemplateIaCResponse

importApplicationTemplateIaCCallable()

public final UnaryCallable<ImportApplicationTemplateIaCRequest,ImportApplicationTemplateIaCResponse> importApplicationTemplateIaCCallable()

Imports IaC for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ImportApplicationTemplateIaCRequest request =
       ImportApplicationTemplateIaCRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setAllowPartialImport(true)
           .setValidateIac(true)
           .build();
   ApiFuture<ImportApplicationTemplateIaCResponse> future =
       designCenterClient.importApplicationTemplateIaCCallable().futureCall(request);
   // Do something.
   ImportApplicationTemplateIaCResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<ImportApplicationTemplateIaCRequest,ImportApplicationTemplateIaCResponse>

ingestApplicationTemplateIaCAsync(@Nullable ApplicationTemplateName name)

public final OperationFuture<IngestApplicationTemplateIaCResponse,OperationMetadata> ingestApplicationTemplateIaCAsync(@Nullable ApplicationTemplateName name)

Ingests IaC for an application template asynchronously.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName name =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   IngestApplicationTemplateIaCResponse response =
       designCenterClient.ingestApplicationTemplateIaCAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The name of the application template.

Returns
Type Description
OperationFuture<IngestApplicationTemplateIaCResponse,OperationMetadata>

ingestApplicationTemplateIaCAsync(IngestApplicationTemplateIaCRequest request)

public final OperationFuture<IngestApplicationTemplateIaCResponse,OperationMetadata> ingestApplicationTemplateIaCAsync(IngestApplicationTemplateIaCRequest request)

Ingests IaC for an application template asynchronously.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   IngestApplicationTemplateIaCRequest request =
       IngestApplicationTemplateIaCRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setValidateCatalogCompatibility(true)
           .setRawTerraformImportEnabled(true)
           .build();
   IngestApplicationTemplateIaCResponse response =
       designCenterClient.ingestApplicationTemplateIaCAsync(request).get();
 }
 
Parameter
Name Description
request IngestApplicationTemplateIaCRequest

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

Returns
Type Description
OperationFuture<IngestApplicationTemplateIaCResponse,OperationMetadata>

ingestApplicationTemplateIaCAsync(String name)

public final OperationFuture<IngestApplicationTemplateIaCResponse,OperationMetadata> ingestApplicationTemplateIaCAsync(String name)

Ingests IaC for an application template asynchronously.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   IngestApplicationTemplateIaCResponse response =
       designCenterClient.ingestApplicationTemplateIaCAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the application template.

Returns
Type Description
OperationFuture<IngestApplicationTemplateIaCResponse,OperationMetadata>

ingestApplicationTemplateIaCCallable()

public final UnaryCallable<IngestApplicationTemplateIaCRequest,Operation> ingestApplicationTemplateIaCCallable()

Ingests IaC for an application template asynchronously.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   IngestApplicationTemplateIaCRequest request =
       IngestApplicationTemplateIaCRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setValidateCatalogCompatibility(true)
           .setRawTerraformImportEnabled(true)
           .build();
   ApiFuture<Operation> future =
       designCenterClient.ingestApplicationTemplateIaCCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<IngestApplicationTemplateIaCRequest,Operation>

ingestApplicationTemplateIaCOperationCallable()

public final OperationCallable<IngestApplicationTemplateIaCRequest,IngestApplicationTemplateIaCResponse,OperationMetadata> ingestApplicationTemplateIaCOperationCallable()

Ingests IaC for an application template asynchronously.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   IngestApplicationTemplateIaCRequest request =
       IngestApplicationTemplateIaCRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setValidateCatalogCompatibility(true)
           .setRawTerraformImportEnabled(true)
           .build();
   OperationFuture<IngestApplicationTemplateIaCResponse, OperationMetadata> future =
       designCenterClient.ingestApplicationTemplateIaCOperationCallable().futureCall(request);
   // Do something.
   IngestApplicationTemplateIaCResponse response = future.get();
 }
 
Returns
Type Description
OperationCallable<IngestApplicationTemplateIaCRequest,IngestApplicationTemplateIaCResponse,OperationMetadata>

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listApplicationTemplateRevisions(@Nullable ApplicationTemplateName parent)

public final DesignCenterClient.ListApplicationTemplateRevisionsPagedResponse listApplicationTemplateRevisions(@Nullable ApplicationTemplateName parent)

Lists application template revisions in a given application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName parent =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   for (ApplicationTemplateRevision element :
       designCenterClient.listApplicationTemplateRevisions(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The parent from which to list application template revisions.

Returns
Type Description
DesignCenterClient.ListApplicationTemplateRevisionsPagedResponse

listApplicationTemplateRevisions(ListApplicationTemplateRevisionsRequest request)

public final DesignCenterClient.ListApplicationTemplateRevisionsPagedResponse listApplicationTemplateRevisions(ListApplicationTemplateRevisionsRequest request)

Lists application template revisions in a given application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListApplicationTemplateRevisionsRequest request =
       ListApplicationTemplateRevisionsRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (ApplicationTemplateRevision element :
       designCenterClient.listApplicationTemplateRevisions(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListApplicationTemplateRevisionsRequest

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

Returns
Type Description
DesignCenterClient.ListApplicationTemplateRevisionsPagedResponse

listApplicationTemplateRevisions(String parent)

public final DesignCenterClient.ListApplicationTemplateRevisionsPagedResponse listApplicationTemplateRevisions(String parent)

Lists application template revisions in a given application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   for (ApplicationTemplateRevision element :
       designCenterClient.listApplicationTemplateRevisions(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent from which to list application template revisions.

Returns
Type Description
DesignCenterClient.ListApplicationTemplateRevisionsPagedResponse

listApplicationTemplateRevisionsCallable()

public final UnaryCallable<ListApplicationTemplateRevisionsRequest,ListApplicationTemplateRevisionsResponse> listApplicationTemplateRevisionsCallable()

Lists application template revisions in a given application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListApplicationTemplateRevisionsRequest request =
       ListApplicationTemplateRevisionsRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListApplicationTemplateRevisionsResponse response =
         designCenterClient.listApplicationTemplateRevisionsCallable().call(request);
     for (ApplicationTemplateRevision element : response.getApplicationTemplateRevisionsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListApplicationTemplateRevisionsRequest,ListApplicationTemplateRevisionsResponse>

listApplicationTemplateRevisionsPagedCallable()

public final UnaryCallable<ListApplicationTemplateRevisionsRequest,DesignCenterClient.ListApplicationTemplateRevisionsPagedResponse> listApplicationTemplateRevisionsPagedCallable()

Lists application template revisions in a given application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListApplicationTemplateRevisionsRequest request =
       ListApplicationTemplateRevisionsRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<ApplicationTemplateRevision> future =
       designCenterClient.listApplicationTemplateRevisionsPagedCallable().futureCall(request);
   // Do something.
   for (ApplicationTemplateRevision element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListApplicationTemplateRevisionsRequest,ListApplicationTemplateRevisionsPagedResponse>

listApplicationTemplateSystemRevisions(@Nullable ApplicationTemplateName parent)

public final DesignCenterClient.ListApplicationTemplateSystemRevisionsPagedResponse listApplicationTemplateSystemRevisions(@Nullable ApplicationTemplateName parent)

Lists application template system revisions in a given application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName parent =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   for (ApplicationTemplateSystemRevision element :
       designCenterClient.listApplicationTemplateSystemRevisions(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The parent Application Template from which to list the system revisions. Format: projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}

Returns
Type Description
DesignCenterClient.ListApplicationTemplateSystemRevisionsPagedResponse

listApplicationTemplateSystemRevisions(ListApplicationTemplateSystemRevisionsRequest request)

public final DesignCenterClient.ListApplicationTemplateSystemRevisionsPagedResponse listApplicationTemplateSystemRevisions(ListApplicationTemplateSystemRevisionsRequest request)

Lists application template system revisions in a given application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListApplicationTemplateSystemRevisionsRequest request =
       ListApplicationTemplateSystemRevisionsRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .build();
   for (ApplicationTemplateSystemRevision element :
       designCenterClient.listApplicationTemplateSystemRevisions(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListApplicationTemplateSystemRevisionsRequest

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

Returns
Type Description
DesignCenterClient.ListApplicationTemplateSystemRevisionsPagedResponse

listApplicationTemplateSystemRevisions(String parent)

public final DesignCenterClient.ListApplicationTemplateSystemRevisionsPagedResponse listApplicationTemplateSystemRevisions(String parent)

Lists application template system revisions in a given application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   for (ApplicationTemplateSystemRevision element :
       designCenterClient.listApplicationTemplateSystemRevisions(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent Application Template from which to list the system revisions. Format: projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}

Returns
Type Description
DesignCenterClient.ListApplicationTemplateSystemRevisionsPagedResponse

listApplicationTemplateSystemRevisionsCallable()

public final UnaryCallable<ListApplicationTemplateSystemRevisionsRequest,ListApplicationTemplateSystemRevisionsResponse> listApplicationTemplateSystemRevisionsCallable()

Lists application template system revisions in a given application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListApplicationTemplateSystemRevisionsRequest request =
       ListApplicationTemplateSystemRevisionsRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .build();
   while (true) {
     ListApplicationTemplateSystemRevisionsResponse response =
         designCenterClient.listApplicationTemplateSystemRevisionsCallable().call(request);
     for (ApplicationTemplateSystemRevision element :
         response.getApplicationTemplateSystemRevisionsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListApplicationTemplateSystemRevisionsRequest,ListApplicationTemplateSystemRevisionsResponse>

listApplicationTemplateSystemRevisionsPagedCallable()

public final UnaryCallable<ListApplicationTemplateSystemRevisionsRequest,DesignCenterClient.ListApplicationTemplateSystemRevisionsPagedResponse> listApplicationTemplateSystemRevisionsPagedCallable()

Lists application template system revisions in a given application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListApplicationTemplateSystemRevisionsRequest request =
       ListApplicationTemplateSystemRevisionsRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .build();
   ApiFuture<ApplicationTemplateSystemRevision> future =
       designCenterClient
           .listApplicationTemplateSystemRevisionsPagedCallable()
           .futureCall(request);
   // Do something.
   for (ApplicationTemplateSystemRevision element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListApplicationTemplateSystemRevisionsRequest,ListApplicationTemplateSystemRevisionsPagedResponse>

listApplicationTemplates(@Nullable SpaceName parent)

public final DesignCenterClient.ListApplicationTemplatesPagedResponse listApplicationTemplates(@Nullable SpaceName parent)

Lists application templates in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
   for (ApplicationTemplate element :
       designCenterClient.listApplicationTemplates(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.SpaceName

Required. The parent resource from which to list application templates.

Returns
Type Description
DesignCenterClient.ListApplicationTemplatesPagedResponse

listApplicationTemplates(ListApplicationTemplatesRequest request)

public final DesignCenterClient.ListApplicationTemplatesPagedResponse listApplicationTemplates(ListApplicationTemplatesRequest request)

Lists application templates in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListApplicationTemplatesRequest request =
       ListApplicationTemplatesRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (ApplicationTemplate element :
       designCenterClient.listApplicationTemplates(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListApplicationTemplatesRequest

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

Returns
Type Description
DesignCenterClient.ListApplicationTemplatesPagedResponse

listApplicationTemplates(String parent)

public final DesignCenterClient.ListApplicationTemplatesPagedResponse listApplicationTemplates(String parent)

Lists application templates in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
   for (ApplicationTemplate element :
       designCenterClient.listApplicationTemplates(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent resource from which to list application templates.

Returns
Type Description
DesignCenterClient.ListApplicationTemplatesPagedResponse

listApplicationTemplatesCallable()

public final UnaryCallable<ListApplicationTemplatesRequest,ListApplicationTemplatesResponse> listApplicationTemplatesCallable()

Lists application templates in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListApplicationTemplatesRequest request =
       ListApplicationTemplatesRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListApplicationTemplatesResponse response =
         designCenterClient.listApplicationTemplatesCallable().call(request);
     for (ApplicationTemplate element : response.getApplicationTemplatesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListApplicationTemplatesRequest,ListApplicationTemplatesResponse>

listApplicationTemplatesPagedCallable()

public final UnaryCallable<ListApplicationTemplatesRequest,DesignCenterClient.ListApplicationTemplatesPagedResponse> listApplicationTemplatesPagedCallable()

Lists application templates in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListApplicationTemplatesRequest request =
       ListApplicationTemplatesRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<ApplicationTemplate> future =
       designCenterClient.listApplicationTemplatesPagedCallable().futureCall(request);
   // Do something.
   for (ApplicationTemplate element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListApplicationTemplatesRequest,ListApplicationTemplatesPagedResponse>

listApplications(@Nullable SpaceName parent)

public final DesignCenterClient.ListApplicationsPagedResponse listApplications(@Nullable SpaceName parent)

Lists applications in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
   for (Application element : designCenterClient.listApplications(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.SpaceName

Required. The parent resource from which to request a list of applications.

Returns
Type Description
DesignCenterClient.ListApplicationsPagedResponse

listApplications(ListApplicationsRequest request)

public final DesignCenterClient.ListApplicationsPagedResponse listApplications(ListApplicationsRequest request)

Lists applications in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListApplicationsRequest request =
       ListApplicationsRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (Application element : designCenterClient.listApplications(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListApplicationsRequest

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

Returns
Type Description
DesignCenterClient.ListApplicationsPagedResponse

listApplications(String parent)

public final DesignCenterClient.ListApplicationsPagedResponse listApplications(String parent)

Lists applications in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
   for (Application element : designCenterClient.listApplications(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent resource from which to request a list of applications.

Returns
Type Description
DesignCenterClient.ListApplicationsPagedResponse

listApplicationsCallable()

public final UnaryCallable<ListApplicationsRequest,ListApplicationsResponse> listApplicationsCallable()

Lists applications in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListApplicationsRequest request =
       ListApplicationsRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListApplicationsResponse response =
         designCenterClient.listApplicationsCallable().call(request);
     for (Application element : response.getApplicationsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListApplicationsRequest,ListApplicationsResponse>

listApplicationsPagedCallable()

public final UnaryCallable<ListApplicationsRequest,DesignCenterClient.ListApplicationsPagedResponse> listApplicationsPagedCallable()

Lists applications in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListApplicationsRequest request =
       ListApplicationsRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<Application> future =
       designCenterClient.listApplicationsPagedCallable().futureCall(request);
   // Do something.
   for (Application element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListApplicationsRequest,ListApplicationsPagedResponse>

listCatalogTemplateRevisions(@Nullable CatalogTemplateName parent)

public final DesignCenterClient.ListCatalogTemplateRevisionsPagedResponse listCatalogTemplateRevisions(@Nullable CatalogTemplateName parent)

Lists template revisions.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CatalogTemplateName parent =
       CatalogTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]");
   for (CatalogTemplateRevision element :
       designCenterClient.listCatalogTemplateRevisions(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.CatalogTemplateName

Required. The parent resource from which a list of catalog template revisions is requested.

Returns
Type Description
DesignCenterClient.ListCatalogTemplateRevisionsPagedResponse

listCatalogTemplateRevisions(ListCatalogTemplateRevisionsRequest request)

public final DesignCenterClient.ListCatalogTemplateRevisionsPagedResponse listCatalogTemplateRevisions(ListCatalogTemplateRevisionsRequest request)

Lists template revisions.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListCatalogTemplateRevisionsRequest request =
       ListCatalogTemplateRevisionsRequest.newBuilder()
           .setParent(
               CatalogTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (CatalogTemplateRevision element :
       designCenterClient.listCatalogTemplateRevisions(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListCatalogTemplateRevisionsRequest

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

Returns
Type Description
DesignCenterClient.ListCatalogTemplateRevisionsPagedResponse

listCatalogTemplateRevisions(String parent)

public final DesignCenterClient.ListCatalogTemplateRevisionsPagedResponse listCatalogTemplateRevisions(String parent)

Lists template revisions.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent =
       CatalogTemplateName.of(
               "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
           .toString();
   for (CatalogTemplateRevision element :
       designCenterClient.listCatalogTemplateRevisions(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent resource from which a list of catalog template revisions is requested.

Returns
Type Description
DesignCenterClient.ListCatalogTemplateRevisionsPagedResponse

listCatalogTemplateRevisionsCallable()

public final UnaryCallable<ListCatalogTemplateRevisionsRequest,ListCatalogTemplateRevisionsResponse> listCatalogTemplateRevisionsCallable()

Lists template revisions.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListCatalogTemplateRevisionsRequest request =
       ListCatalogTemplateRevisionsRequest.newBuilder()
           .setParent(
               CatalogTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListCatalogTemplateRevisionsResponse response =
         designCenterClient.listCatalogTemplateRevisionsCallable().call(request);
     for (CatalogTemplateRevision element : response.getCatalogTemplateRevisionsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListCatalogTemplateRevisionsRequest,ListCatalogTemplateRevisionsResponse>

listCatalogTemplateRevisionsPagedCallable()

public final UnaryCallable<ListCatalogTemplateRevisionsRequest,DesignCenterClient.ListCatalogTemplateRevisionsPagedResponse> listCatalogTemplateRevisionsPagedCallable()

Lists template revisions.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListCatalogTemplateRevisionsRequest request =
       ListCatalogTemplateRevisionsRequest.newBuilder()
           .setParent(
               CatalogTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<CatalogTemplateRevision> future =
       designCenterClient.listCatalogTemplateRevisionsPagedCallable().futureCall(request);
   // Do something.
   for (CatalogTemplateRevision element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListCatalogTemplateRevisionsRequest,ListCatalogTemplateRevisionsPagedResponse>

listCatalogTemplates(@Nullable CatalogName parent)

public final DesignCenterClient.ListCatalogTemplatesPagedResponse listCatalogTemplates(@Nullable CatalogName parent)

Lists catalog templates.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]");
   for (CatalogTemplate element : designCenterClient.listCatalogTemplates(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.CatalogName

Required. The parent from which the catalog templates are listed in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog

Returns
Type Description
DesignCenterClient.ListCatalogTemplatesPagedResponse

listCatalogTemplates(ListCatalogTemplatesRequest request)

public final DesignCenterClient.ListCatalogTemplatesPagedResponse listCatalogTemplates(ListCatalogTemplatesRequest request)

Lists catalog templates.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListCatalogTemplatesRequest request =
       ListCatalogTemplatesRequest.newBuilder()
           .setParent(
               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (CatalogTemplate element :
       designCenterClient.listCatalogTemplates(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListCatalogTemplatesRequest

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

Returns
Type Description
DesignCenterClient.ListCatalogTemplatesPagedResponse

listCatalogTemplates(String parent)

public final DesignCenterClient.ListCatalogTemplatesPagedResponse listCatalogTemplates(String parent)

Lists catalog templates.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString();
   for (CatalogTemplate element : designCenterClient.listCatalogTemplates(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent from which the catalog templates are listed in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog

Returns
Type Description
DesignCenterClient.ListCatalogTemplatesPagedResponse

listCatalogTemplatesCallable()

public final UnaryCallable<ListCatalogTemplatesRequest,ListCatalogTemplatesResponse> listCatalogTemplatesCallable()

Lists catalog templates.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListCatalogTemplatesRequest request =
       ListCatalogTemplatesRequest.newBuilder()
           .setParent(
               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListCatalogTemplatesResponse response =
         designCenterClient.listCatalogTemplatesCallable().call(request);
     for (CatalogTemplate element : response.getCatalogTemplatesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListCatalogTemplatesRequest,ListCatalogTemplatesResponse>

listCatalogTemplatesPagedCallable()

public final UnaryCallable<ListCatalogTemplatesRequest,DesignCenterClient.ListCatalogTemplatesPagedResponse> listCatalogTemplatesPagedCallable()

Lists catalog templates.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListCatalogTemplatesRequest request =
       ListCatalogTemplatesRequest.newBuilder()
           .setParent(
               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<CatalogTemplate> future =
       designCenterClient.listCatalogTemplatesPagedCallable().futureCall(request);
   // Do something.
   for (CatalogTemplate element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListCatalogTemplatesRequest,ListCatalogTemplatesPagedResponse>

listCatalogs(@Nullable SpaceName parent)

public final DesignCenterClient.ListCatalogsPagedResponse listCatalogs(@Nullable SpaceName parent)

Lists catalogs in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
   for (Catalog element : designCenterClient.listCatalogs(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.SpaceName

Required. The parent space from which catalogs are listed. Format: projects/$project/locations/$location/spaces/$space

Returns
Type Description
DesignCenterClient.ListCatalogsPagedResponse

listCatalogs(ListCatalogsRequest request)

public final DesignCenterClient.ListCatalogsPagedResponse listCatalogs(ListCatalogsRequest request)

Lists catalogs in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListCatalogsRequest request =
       ListCatalogsRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (Catalog element : designCenterClient.listCatalogs(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListCatalogsRequest

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

Returns
Type Description
DesignCenterClient.ListCatalogsPagedResponse

listCatalogs(String parent)

public final DesignCenterClient.ListCatalogsPagedResponse listCatalogs(String parent)

Lists catalogs in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
   for (Catalog element : designCenterClient.listCatalogs(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent space from which catalogs are listed. Format: projects/$project/locations/$location/spaces/$space

Returns
Type Description
DesignCenterClient.ListCatalogsPagedResponse

listCatalogsCallable()

public final UnaryCallable<ListCatalogsRequest,ListCatalogsResponse> listCatalogsCallable()

Lists catalogs in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListCatalogsRequest request =
       ListCatalogsRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListCatalogsResponse response = designCenterClient.listCatalogsCallable().call(request);
     for (Catalog element : response.getCatalogsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListCatalogsRequest,ListCatalogsResponse>

listCatalogsPagedCallable()

public final UnaryCallable<ListCatalogsRequest,DesignCenterClient.ListCatalogsPagedResponse> listCatalogsPagedCallable()

Lists catalogs in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListCatalogsRequest request =
       ListCatalogsRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<Catalog> future =
       designCenterClient.listCatalogsPagedCallable().futureCall(request);
   // Do something.
   for (Catalog element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListCatalogsRequest,ListCatalogsPagedResponse>

listComponents(@Nullable ApplicationTemplateName parent)

public final DesignCenterClient.ListComponentsPagedResponse listComponents(@Nullable ApplicationTemplateName parent)

Lists components in an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName parent =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   for (Component element : designCenterClient.listComponents(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The parent resource from which the list of components is requested.

Returns
Type Description
DesignCenterClient.ListComponentsPagedResponse

listComponents(ListComponentsRequest request)

public final DesignCenterClient.ListComponentsPagedResponse listComponents(ListComponentsRequest request)

Lists components in an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListComponentsRequest request =
       ListComponentsRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (Component element : designCenterClient.listComponents(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListComponentsRequest

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

Returns
Type Description
DesignCenterClient.ListComponentsPagedResponse

listComponents(String parent)

public final DesignCenterClient.ListComponentsPagedResponse listComponents(String parent)

Lists components in an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   for (Component element : designCenterClient.listComponents(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent resource from which the list of components is requested.

Returns
Type Description
DesignCenterClient.ListComponentsPagedResponse

listComponentsCallable()

public final UnaryCallable<ListComponentsRequest,ListComponentsResponse> listComponentsCallable()

Lists components in an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListComponentsRequest request =
       ListComponentsRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListComponentsResponse response = designCenterClient.listComponentsCallable().call(request);
     for (Component element : response.getComponentsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListComponentsRequest,ListComponentsResponse>

listComponentsPagedCallable()

public final UnaryCallable<ListComponentsRequest,DesignCenterClient.ListComponentsPagedResponse> listComponentsPagedCallable()

Lists components in an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListComponentsRequest request =
       ListComponentsRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<Component> future =
       designCenterClient.listComponentsPagedCallable().futureCall(request);
   // Do something.
   for (Component element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListComponentsRequest,ListComponentsPagedResponse>

listConnections(@Nullable ComponentName parent)

public final DesignCenterClient.ListConnectionsPagedResponse listConnections(@Nullable ComponentName parent)

Lists connections in an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ComponentName parent =
       ComponentName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]");
   for (Connection element : designCenterClient.listConnections(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ComponentName

Required. The parent resource from which to request a list of connections.

Returns
Type Description
DesignCenterClient.ListConnectionsPagedResponse

listConnections(ListConnectionsRequest request)

public final DesignCenterClient.ListConnectionsPagedResponse listConnections(ListConnectionsRequest request)

Lists connections in an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListConnectionsRequest request =
       ListConnectionsRequest.newBuilder()
           .setParent(
               ComponentName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[COMPONENT]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (Connection element : designCenterClient.listConnections(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListConnectionsRequest

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

Returns
Type Description
DesignCenterClient.ListConnectionsPagedResponse

listConnections(String parent)

public final DesignCenterClient.ListConnectionsPagedResponse listConnections(String parent)

Lists connections in an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent =
       ComponentName.of(
               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]")
           .toString();
   for (Connection element : designCenterClient.listConnections(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent resource from which to request a list of connections.

Returns
Type Description
DesignCenterClient.ListConnectionsPagedResponse

listConnectionsCallable()

public final UnaryCallable<ListConnectionsRequest,ListConnectionsResponse> listConnectionsCallable()

Lists connections in an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListConnectionsRequest request =
       ListConnectionsRequest.newBuilder()
           .setParent(
               ComponentName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[COMPONENT]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListConnectionsResponse response =
         designCenterClient.listConnectionsCallable().call(request);
     for (Connection element : response.getConnectionsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListConnectionsRequest,ListConnectionsResponse>

listConnectionsPagedCallable()

public final UnaryCallable<ListConnectionsRequest,DesignCenterClient.ListConnectionsPagedResponse> listConnectionsPagedCallable()

Lists connections in an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListConnectionsRequest request =
       ListConnectionsRequest.newBuilder()
           .setParent(
               ComponentName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[SPACE]",
                       "[APPLICATION_TEMPLATE]",
                       "[COMPONENT]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<Connection> future =
       designCenterClient.listConnectionsPagedCallable().futureCall(request);
   // Do something.
   for (Connection element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListConnectionsRequest,ListConnectionsPagedResponse>

listLocations(ListLocationsRequest request)

public final DesignCenterClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)

Lists information about the supported locations for this service.

This method lists locations based on the resource scope provided inthe ListLocationsRequest.name field: ***Global locations**: If name is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If name follows the formatprojects/{project}, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project.

For gRPC and client library implementations, the resource name ispassed as the name field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (Location element : designCenterClient.listLocations(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request com.google.cloud.location.ListLocationsRequest

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

Returns
Type Description
DesignCenterClient.ListLocationsPagedResponse

listLocationsCallable()

public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()

Lists information about the supported locations for this service.

This method lists locations based on the resource scope provided inthe ListLocationsRequest.name field: ***Global locations**: If name is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If name follows the formatprojects/{project}, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project.

For gRPC and client library implementations, the resource name ispassed as the name field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListLocationsResponse response = designCenterClient.listLocationsCallable().call(request);
     for (Location element : response.getLocationsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>

listLocationsPagedCallable()

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

Lists information about the supported locations for this service.

This method lists locations based on the resource scope provided inthe ListLocationsRequest.name field: ***Global locations**: If name is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If name follows the formatprojects/{project}, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project.

For gRPC and client library implementations, the resource name ispassed as the name field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<Location> future =
       designCenterClient.listLocationsPagedCallable().futureCall(request);
   // Do something.
   for (Location element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>

listPolicies(@Nullable ApplicationTemplateName parent)

public final DesignCenterClient.ListPoliciesPagedResponse listPolicies(@Nullable ApplicationTemplateName parent)

Lists policies for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName parent =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   for (Policy element : designCenterClient.listPolicies(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The parent application template from which policies are listed in the following format: projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate

Returns
Type Description
DesignCenterClient.ListPoliciesPagedResponse

listPolicies(ListPoliciesRequest request)

public final DesignCenterClient.ListPoliciesPagedResponse listPolicies(ListPoliciesRequest request)

Lists policies for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListPoliciesRequest request =
       ListPoliciesRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (Policy element : designCenterClient.listPolicies(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListPoliciesRequest

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

Returns
Type Description
DesignCenterClient.ListPoliciesPagedResponse

listPolicies(String parent)

public final DesignCenterClient.ListPoliciesPagedResponse listPolicies(String parent)

Lists policies for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   for (Policy element : designCenterClient.listPolicies(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent application template from which policies are listed in the following format: projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate

Returns
Type Description
DesignCenterClient.ListPoliciesPagedResponse

listPoliciesCallable()

public final UnaryCallable<ListPoliciesRequest,ListPoliciesResponse> listPoliciesCallable()

Lists policies for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListPoliciesRequest request =
       ListPoliciesRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListPoliciesResponse response = designCenterClient.listPoliciesCallable().call(request);
     for (Policy element : response.getPoliciesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListPoliciesRequest,ListPoliciesResponse>

listPoliciesPagedCallable()

public final UnaryCallable<ListPoliciesRequest,DesignCenterClient.ListPoliciesPagedResponse> listPoliciesPagedCallable()

Lists policies for an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListPoliciesRequest request =
       ListPoliciesRequest.newBuilder()
           .setParent(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<Policy> future = designCenterClient.listPoliciesPagedCallable().futureCall(request);
   // Do something.
   for (Policy element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListPoliciesRequest,ListPoliciesPagedResponse>

listSharedTemplateRevisions(@Nullable SharedTemplateName parent)

public final DesignCenterClient.ListSharedTemplateRevisionsPagedResponse listSharedTemplateRevisions(@Nullable SharedTemplateName parent)

Lists shared template revisions in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SharedTemplateName parent =
       SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]");
   for (SharedTemplateRevision element :
       designCenterClient.listSharedTemplateRevisions(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.SharedTemplateName

Required. The parent resource from which to list shared template revisions, in the following format: projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate

Returns
Type Description
DesignCenterClient.ListSharedTemplateRevisionsPagedResponse

listSharedTemplateRevisions(ListSharedTemplateRevisionsRequest request)

public final DesignCenterClient.ListSharedTemplateRevisionsPagedResponse listSharedTemplateRevisions(ListSharedTemplateRevisionsRequest request)

Lists shared template revisions in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListSharedTemplateRevisionsRequest request =
       ListSharedTemplateRevisionsRequest.newBuilder()
           .setParent(
               SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (SharedTemplateRevision element :
       designCenterClient.listSharedTemplateRevisions(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListSharedTemplateRevisionsRequest

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

Returns
Type Description
DesignCenterClient.ListSharedTemplateRevisionsPagedResponse

listSharedTemplateRevisions(String parent)

public final DesignCenterClient.ListSharedTemplateRevisionsPagedResponse listSharedTemplateRevisions(String parent)

Lists shared template revisions in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent =
       SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]")
           .toString();
   for (SharedTemplateRevision element :
       designCenterClient.listSharedTemplateRevisions(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent resource from which to list shared template revisions, in the following format: projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate

Returns
Type Description
DesignCenterClient.ListSharedTemplateRevisionsPagedResponse

listSharedTemplateRevisionsCallable()

public final UnaryCallable<ListSharedTemplateRevisionsRequest,ListSharedTemplateRevisionsResponse> listSharedTemplateRevisionsCallable()

Lists shared template revisions in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListSharedTemplateRevisionsRequest request =
       ListSharedTemplateRevisionsRequest.newBuilder()
           .setParent(
               SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListSharedTemplateRevisionsResponse response =
         designCenterClient.listSharedTemplateRevisionsCallable().call(request);
     for (SharedTemplateRevision element : response.getSharedTemplateRevisionsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListSharedTemplateRevisionsRequest,ListSharedTemplateRevisionsResponse>

listSharedTemplateRevisionsPagedCallable()

public final UnaryCallable<ListSharedTemplateRevisionsRequest,DesignCenterClient.ListSharedTemplateRevisionsPagedResponse> listSharedTemplateRevisionsPagedCallable()

Lists shared template revisions in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListSharedTemplateRevisionsRequest request =
       ListSharedTemplateRevisionsRequest.newBuilder()
           .setParent(
               SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]")
                   .toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<SharedTemplateRevision> future =
       designCenterClient.listSharedTemplateRevisionsPagedCallable().futureCall(request);
   // Do something.
   for (SharedTemplateRevision element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListSharedTemplateRevisionsRequest,ListSharedTemplateRevisionsPagedResponse>

listSharedTemplates(@Nullable SpaceName parent)

public final DesignCenterClient.ListSharedTemplatesPagedResponse listSharedTemplates(@Nullable SpaceName parent)

Lists shared templates in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
   for (SharedTemplate element : designCenterClient.listSharedTemplates(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.SpaceName

Required. The parent space for which shared templates are listed in the following format: projects/$project/locations/$location/spaces/$space

Returns
Type Description
DesignCenterClient.ListSharedTemplatesPagedResponse

listSharedTemplates(ListSharedTemplatesRequest request)

public final DesignCenterClient.ListSharedTemplatesPagedResponse listSharedTemplates(ListSharedTemplatesRequest request)

Lists shared templates in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListSharedTemplatesRequest request =
       ListSharedTemplatesRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (SharedTemplate element : designCenterClient.listSharedTemplates(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListSharedTemplatesRequest

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

Returns
Type Description
DesignCenterClient.ListSharedTemplatesPagedResponse

listSharedTemplates(String parent)

public final DesignCenterClient.ListSharedTemplatesPagedResponse listSharedTemplates(String parent)

Lists shared templates in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
   for (SharedTemplate element : designCenterClient.listSharedTemplates(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent space for which shared templates are listed in the following format: projects/$project/locations/$location/spaces/$space

Returns
Type Description
DesignCenterClient.ListSharedTemplatesPagedResponse

listSharedTemplatesCallable()

public final UnaryCallable<ListSharedTemplatesRequest,ListSharedTemplatesResponse> listSharedTemplatesCallable()

Lists shared templates in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListSharedTemplatesRequest request =
       ListSharedTemplatesRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListSharedTemplatesResponse response =
         designCenterClient.listSharedTemplatesCallable().call(request);
     for (SharedTemplate element : response.getSharedTemplatesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListSharedTemplatesRequest,ListSharedTemplatesResponse>

listSharedTemplatesPagedCallable()

public final UnaryCallable<ListSharedTemplatesRequest,DesignCenterClient.ListSharedTemplatesPagedResponse> listSharedTemplatesPagedCallable()

Lists shared templates in a given space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListSharedTemplatesRequest request =
       ListSharedTemplatesRequest.newBuilder()
           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<SharedTemplate> future =
       designCenterClient.listSharedTemplatesPagedCallable().futureCall(request);
   // Do something.
   for (SharedTemplate element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListSharedTemplatesRequest,ListSharedTemplatesPagedResponse>

listShares(@Nullable CatalogName parent)

public final DesignCenterClient.ListSharesPagedResponse listShares(@Nullable CatalogName parent)

Lists catalog share objects for the space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]");
   for (Share element : designCenterClient.listShares(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.CatalogName

Required. The parent resource from which a list of shares is requested.

Returns
Type Description
DesignCenterClient.ListSharesPagedResponse

listShares(ListSharesRequest request)

public final DesignCenterClient.ListSharesPagedResponse listShares(ListSharesRequest request)

Lists catalog share objects for the space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListSharesRequest request =
       ListSharesRequest.newBuilder()
           .setParent(
               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (Share element : designCenterClient.listShares(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListSharesRequest

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

Returns
Type Description
DesignCenterClient.ListSharesPagedResponse

listShares(String parent)

public final DesignCenterClient.ListSharesPagedResponse listShares(String parent)

Lists catalog share objects for the space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString();
   for (Share element : designCenterClient.listShares(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The parent resource from which a list of shares is requested.

Returns
Type Description
DesignCenterClient.ListSharesPagedResponse

listSharesCallable()

public final UnaryCallable<ListSharesRequest,ListSharesResponse> listSharesCallable()

Lists catalog share objects for the space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListSharesRequest request =
       ListSharesRequest.newBuilder()
           .setParent(
               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListSharesResponse response = designCenterClient.listSharesCallable().call(request);
     for (Share element : response.getSharesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListSharesRequest,ListSharesResponse>

listSharesPagedCallable()

public final UnaryCallable<ListSharesRequest,DesignCenterClient.ListSharesPagedResponse> listSharesPagedCallable()

Lists catalog share objects for the space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListSharesRequest request =
       ListSharesRequest.newBuilder()
           .setParent(
               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<Share> future = designCenterClient.listSharesPagedCallable().futureCall(request);
   // Do something.
   for (Share element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListSharesRequest,ListSharesPagedResponse>

listSpaces(@Nullable LocationName parent)

public final DesignCenterClient.ListSpacesPagedResponse listSpaces(@Nullable LocationName parent)

Lists spaces 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (Space element : designCenterClient.listSpaces(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.LocationName

Required. The name of the parent resource, for which spaces are listed.

Returns
Type Description
DesignCenterClient.ListSpacesPagedResponse

listSpaces(ListSpacesRequest request)

public final DesignCenterClient.ListSpacesPagedResponse listSpaces(ListSpacesRequest request)

Lists spaces 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListSpacesRequest request =
       ListSpacesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (Space element : designCenterClient.listSpaces(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListSpacesRequest

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

Returns
Type Description
DesignCenterClient.ListSpacesPagedResponse

listSpaces(String parent)

public final DesignCenterClient.ListSpacesPagedResponse listSpaces(String parent)

Lists spaces 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (Space element : designCenterClient.listSpaces(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The name of the parent resource, for which spaces are listed.

Returns
Type Description
DesignCenterClient.ListSpacesPagedResponse

listSpacesCallable()

public final UnaryCallable<ListSpacesRequest,ListSpacesResponse> listSpacesCallable()

Lists spaces 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListSpacesRequest request =
       ListSpacesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListSpacesResponse response = designCenterClient.listSpacesCallable().call(request);
     for (Space element : response.getSpacesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListSpacesRequest,ListSpacesResponse>

listSpacesPagedCallable()

public final UnaryCallable<ListSpacesRequest,DesignCenterClient.ListSpacesPagedResponse> listSpacesPagedCallable()

Lists spaces 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ListSpacesRequest request =
       ListSpacesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<Space> future = designCenterClient.listSpacesPagedCallable().futureCall(request);
   // Do something.
   for (Space element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListSpacesRequest,ListSpacesPagedResponse>

previewApplicationAsync(@Nullable ApplicationName name)

public final OperationFuture<PreviewApplicationResponse,OperationMetadata> previewApplicationAsync(@Nullable ApplicationName name)

Previews deployment of an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationName name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
   PreviewApplicationResponse response = designCenterClient.previewApplicationAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationName

Required. The application name in the following format: projects/$project/locations/$location/spaces/$space/applications/$application

Returns
Type Description
OperationFuture<PreviewApplicationResponse,OperationMetadata>

previewApplicationAsync(PreviewApplicationRequest request)

public final OperationFuture<PreviewApplicationResponse,OperationMetadata> previewApplicationAsync(PreviewApplicationRequest request)

Previews deployment of an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   PreviewApplicationRequest request =
       PreviewApplicationRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setWorkerPool("workerPool-384405318")
           .setServiceAccount("serviceAccount1079137720")
           .build();
   PreviewApplicationResponse response =
       designCenterClient.previewApplicationAsync(request).get();
 }
 
Parameter
Name Description
request PreviewApplicationRequest

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

Returns
Type Description
OperationFuture<PreviewApplicationResponse,OperationMetadata>

previewApplicationAsync(String name)

public final OperationFuture<PreviewApplicationResponse,OperationMetadata> previewApplicationAsync(String name)

Previews deployment of an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
   PreviewApplicationResponse response = designCenterClient.previewApplicationAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The application name in the following format: projects/$project/locations/$location/spaces/$space/applications/$application

Returns
Type Description
OperationFuture<PreviewApplicationResponse,OperationMetadata>

previewApplicationCallable()

public final UnaryCallable<PreviewApplicationRequest,Operation> previewApplicationCallable()

Previews deployment of an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   PreviewApplicationRequest request =
       PreviewApplicationRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setWorkerPool("workerPool-384405318")
           .setServiceAccount("serviceAccount1079137720")
           .build();
   ApiFuture<Operation> future =
       designCenterClient.previewApplicationCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<PreviewApplicationRequest,Operation>

previewApplicationOperationCallable()

public final OperationCallable<PreviewApplicationRequest,PreviewApplicationResponse,OperationMetadata> previewApplicationOperationCallable()

Previews deployment of an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   PreviewApplicationRequest request =
       PreviewApplicationRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .setWorkerPool("workerPool-384405318")
           .setServiceAccount("serviceAccount1079137720")
           .build();
   OperationFuture<PreviewApplicationResponse, OperationMetadata> future =
       designCenterClient.previewApplicationOperationCallable().futureCall(request);
   // Do something.
   PreviewApplicationResponse response = future.get();
 }
 
Returns
Type Description
OperationCallable<PreviewApplicationRequest,PreviewApplicationResponse,OperationMetadata>

recommendIAMRolesAsync(@Nullable ApplicationName name)

public final OperationFuture<RecommendIAMRolesResponse,OperationMetadata> recommendIAMRolesAsync(@Nullable ApplicationName name)

Gets recommended IAM roles for an application.

Evaluates the infrastructure resources defined by an application (including its template configuration and parameters) to determine the set of IAM roles and Google Cloud APIs that you must configure before you deploy across target projects.

The operation is asynchronous and returns a google.longrunning.Operation. Upon completion, the operation result contains a RecommendIAMRolesResponse with project-level IAM role and API recommendations.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationName name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
   RecommendIAMRolesResponse response = designCenterClient.recommendIAMRolesAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationName

Required. The name of the application resource for which to recommend IAM roles. Format: projects/$project/locations/$location/spaces/$space/applications/$application

Returns
Type Description
OperationFuture<RecommendIAMRolesResponse,OperationMetadata>

recommendIAMRolesAsync(RecommendIAMRolesRequest request)

public final OperationFuture<RecommendIAMRolesResponse,OperationMetadata> recommendIAMRolesAsync(RecommendIAMRolesRequest request)

Gets recommended IAM roles for an application.

Evaluates the infrastructure resources defined by an application (including its template configuration and parameters) to determine the set of IAM roles and Google Cloud APIs that you must configure before you deploy across target projects.

The operation is asynchronous and returns a google.longrunning.Operation. Upon completion, the operation result contains a RecommendIAMRolesResponse with project-level IAM role and API recommendations.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   RecommendIAMRolesRequest request =
       RecommendIAMRolesRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .build();
   RecommendIAMRolesResponse response = designCenterClient.recommendIAMRolesAsync(request).get();
 }
 
Parameter
Name Description
request RecommendIAMRolesRequest

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

Returns
Type Description
OperationFuture<RecommendIAMRolesResponse,OperationMetadata>

recommendIAMRolesAsync(String name)

public final OperationFuture<RecommendIAMRolesResponse,OperationMetadata> recommendIAMRolesAsync(String name)

Gets recommended IAM roles for an application.

Evaluates the infrastructure resources defined by an application (including its template configuration and parameters) to determine the set of IAM roles and Google Cloud APIs that you must configure before you deploy across target projects.

The operation is asynchronous and returns a google.longrunning.Operation. Upon completion, the operation result contains a RecommendIAMRolesResponse with project-level IAM role and API recommendations.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
   RecommendIAMRolesResponse response = designCenterClient.recommendIAMRolesAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the application resource for which to recommend IAM roles. Format: projects/$project/locations/$location/spaces/$space/applications/$application

Returns
Type Description
OperationFuture<RecommendIAMRolesResponse,OperationMetadata>

recommendIAMRolesCallable()

public final UnaryCallable<RecommendIAMRolesRequest,Operation> recommendIAMRolesCallable()

Gets recommended IAM roles for an application.

Evaluates the infrastructure resources defined by an application (including its template configuration and parameters) to determine the set of IAM roles and Google Cloud APIs that you must configure before you deploy across target projects.

The operation is asynchronous and returns a google.longrunning.Operation. Upon completion, the operation result contains a RecommendIAMRolesResponse with project-level IAM role and API recommendations.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   RecommendIAMRolesRequest request =
       RecommendIAMRolesRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .build();
   ApiFuture<Operation> future =
       designCenterClient.recommendIAMRolesCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<RecommendIAMRolesRequest,Operation>

recommendIAMRolesOperationCallable()

public final OperationCallable<RecommendIAMRolesRequest,RecommendIAMRolesResponse,OperationMetadata> recommendIAMRolesOperationCallable()

Gets recommended IAM roles for an application.

Evaluates the infrastructure resources defined by an application (including its template configuration and parameters) to determine the set of IAM roles and Google Cloud APIs that you must configure before you deploy across target projects.

The operation is asynchronous and returns a google.longrunning.Operation. Upon completion, the operation result contains a RecommendIAMRolesResponse with project-level IAM role and API recommendations.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   RecommendIAMRolesRequest request =
       RecommendIAMRolesRequest.newBuilder()
           .setName(
               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
                   .toString())
           .build();
   OperationFuture<RecommendIAMRolesResponse, OperationMetadata> future =
       designCenterClient.recommendIAMRolesOperationCallable().futureCall(request);
   // Do something.
   RecommendIAMRolesResponse response = future.get();
 }
 
Returns
Type Description
OperationCallable<RecommendIAMRolesRequest,RecommendIAMRolesResponse,OperationMetadata>

registerAppHubApplicationResourcesAsync(@Nullable LocationName parent, String apphubApplication, String tfstateContent)

public final OperationFuture<RegisterAppHubApplicationResourcesResponse,OperationMetadata> registerAppHubApplicationResourcesAsync(@Nullable LocationName parent, String apphubApplication, String tfstateContent)

Register deployed resources from terraform state file with App Hub without needing a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   String apphubApplication = "apphubApplication104302972";
   String tfstateContent = "tfstateContent-1547770342";
   RegisterAppHubApplicationResourcesResponse response =
       designCenterClient
           .registerAppHubApplicationResourcesAsync(parent, apphubApplication, tfstateContent)
           .get();
 }
 
Parameters
Name Description
parent @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.LocationName

Required. The parent location. Format: projects/{project}/locations/{location}

apphubApplication String

Required. The name of the AppHub Application. Format: projects/{project}/locations/{location}/applications/{application}

tfstateContent String

Optional. The Terraform state (tfstate) content as a raw string. For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri' field instead.

Returns
Type Description
OperationFuture<RegisterAppHubApplicationResourcesResponse,OperationMetadata>

registerAppHubApplicationResourcesAsync(RegisterAppHubApplicationResourcesRequest request)

public final OperationFuture<RegisterAppHubApplicationResourcesResponse,OperationMetadata> registerAppHubApplicationResourcesAsync(RegisterAppHubApplicationResourcesRequest request)

Register deployed resources from terraform state file with App Hub without needing a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   RegisterAppHubApplicationResourcesRequest request =
       RegisterAppHubApplicationResourcesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setApphubApplication("apphubApplication104302972")
           .build();
   RegisterAppHubApplicationResourcesResponse response =
       designCenterClient.registerAppHubApplicationResourcesAsync(request).get();
 }
 
Parameter
Name Description
request RegisterAppHubApplicationResourcesRequest

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

Returns
Type Description
OperationFuture<RegisterAppHubApplicationResourcesResponse,OperationMetadata>

registerAppHubApplicationResourcesAsync(String parent, String apphubApplication, String tfstateContent)

public final OperationFuture<RegisterAppHubApplicationResourcesResponse,OperationMetadata> registerAppHubApplicationResourcesAsync(String parent, String apphubApplication, String tfstateContent)

Register deployed resources from terraform state file with App Hub without needing a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   String apphubApplication = "apphubApplication104302972";
   String tfstateContent = "tfstateContent-1547770342";
   RegisterAppHubApplicationResourcesResponse response =
       designCenterClient
           .registerAppHubApplicationResourcesAsync(parent, apphubApplication, tfstateContent)
           .get();
 }
 
Parameters
Name Description
parent String

Required. The parent location. Format: projects/{project}/locations/{location}

apphubApplication String

Required. The name of the AppHub Application. Format: projects/{project}/locations/{location}/applications/{application}

tfstateContent String

Optional. The Terraform state (tfstate) content as a raw string. For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri' field instead.

Returns
Type Description
OperationFuture<RegisterAppHubApplicationResourcesResponse,OperationMetadata>

registerAppHubApplicationResourcesCallable()

public final UnaryCallable<RegisterAppHubApplicationResourcesRequest,Operation> registerAppHubApplicationResourcesCallable()

Register deployed resources from terraform state file with App Hub without needing a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   RegisterAppHubApplicationResourcesRequest request =
       RegisterAppHubApplicationResourcesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setApphubApplication("apphubApplication104302972")
           .build();
   ApiFuture<Operation> future =
       designCenterClient.registerAppHubApplicationResourcesCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<RegisterAppHubApplicationResourcesRequest,Operation>

registerAppHubApplicationResourcesOperationCallable()

public final OperationCallable<RegisterAppHubApplicationResourcesRequest,RegisterAppHubApplicationResourcesResponse,OperationMetadata> registerAppHubApplicationResourcesOperationCallable()

Register deployed resources from terraform state file with App Hub without needing a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   RegisterAppHubApplicationResourcesRequest request =
       RegisterAppHubApplicationResourcesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setApphubApplication("apphubApplication104302972")
           .build();
   OperationFuture<RegisterAppHubApplicationResourcesResponse, OperationMetadata> future =
       designCenterClient
           .registerAppHubApplicationResourcesOperationCallable()
           .futureCall(request);
   // Do something.
   RegisterAppHubApplicationResourcesResponse response = future.get();
 }
 
Returns
Type Description
OperationCallable<RegisterAppHubApplicationResourcesRequest,RegisterAppHubApplicationResourcesResponse,OperationMetadata>

setIamPolicy(SetIamPolicyRequest request)

public final Policy setIamPolicy(SetIamPolicyRequest request)

Sets the access control policy on the specified resource. Replacesany existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIEDerrors.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SetIamPolicyRequest request =
       SetIamPolicyRequest.newBuilder()
           .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setPolicy(Policy.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   Policy response = designCenterClient.setIamPolicy(request);
 }
 
Parameter
Name Description
request com.google.iam.v1.SetIamPolicyRequest

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

Returns
Type Description
com.google.iam.v1.Policy

setIamPolicyCallable()

public final UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()

Sets the access control policy on the specified resource. Replacesany existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIEDerrors.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SetIamPolicyRequest request =
       SetIamPolicyRequest.newBuilder()
           .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .setPolicy(Policy.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<Policy> future = designCenterClient.setIamPolicyCallable().futureCall(request);
   // Do something.
   Policy response = future.get();
 }
 
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

snapshotApplicationTemplateAsync(@Nullable ApplicationTemplateName name)

public final OperationFuture<SnapshotApplicationTemplateResponse,OperationMetadata> snapshotApplicationTemplateAsync(@Nullable ApplicationTemplateName name)

Snapshots an application template to create a new revision asynchronously.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplateName name =
       ApplicationTemplateName.of(
           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
   SnapshotApplicationTemplateResponse response =
       designCenterClient.snapshotApplicationTemplateAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ApplicationTemplateName

Required. The name of the application template.

Returns
Type Description
OperationFuture<SnapshotApplicationTemplateResponse,OperationMetadata>

snapshotApplicationTemplateAsync(SnapshotApplicationTemplateRequest request)

public final OperationFuture<SnapshotApplicationTemplateResponse,OperationMetadata> snapshotApplicationTemplateAsync(SnapshotApplicationTemplateRequest request)

Snapshots an application template to create a new revision asynchronously.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SnapshotApplicationTemplateRequest request =
       SnapshotApplicationTemplateRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .build();
   SnapshotApplicationTemplateResponse response =
       designCenterClient.snapshotApplicationTemplateAsync(request).get();
 }
 
Parameter
Name Description
request SnapshotApplicationTemplateRequest

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

Returns
Type Description
OperationFuture<SnapshotApplicationTemplateResponse,OperationMetadata>

snapshotApplicationTemplateAsync(String name)

public final OperationFuture<SnapshotApplicationTemplateResponse,OperationMetadata> snapshotApplicationTemplateAsync(String name)

Snapshots an application template to create a new revision asynchronously.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
           .toString();
   SnapshotApplicationTemplateResponse response =
       designCenterClient.snapshotApplicationTemplateAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the application template.

Returns
Type Description
OperationFuture<SnapshotApplicationTemplateResponse,OperationMetadata>

snapshotApplicationTemplateCallable()

public final UnaryCallable<SnapshotApplicationTemplateRequest,Operation> snapshotApplicationTemplateCallable()

Snapshots an application template to create a new revision asynchronously.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SnapshotApplicationTemplateRequest request =
       SnapshotApplicationTemplateRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .build();
   ApiFuture<Operation> future =
       designCenterClient.snapshotApplicationTemplateCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<SnapshotApplicationTemplateRequest,Operation>

snapshotApplicationTemplateOperationCallable()

public final OperationCallable<SnapshotApplicationTemplateRequest,SnapshotApplicationTemplateResponse,OperationMetadata> snapshotApplicationTemplateOperationCallable()

Snapshots an application template to create a new revision asynchronously.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SnapshotApplicationTemplateRequest request =
       SnapshotApplicationTemplateRequest.newBuilder()
           .setName(
               ApplicationTemplateName.of(
                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
                   .toString())
           .build();
   OperationFuture<SnapshotApplicationTemplateResponse, OperationMetadata> future =
       designCenterClient.snapshotApplicationTemplateOperationCallable().futureCall(request);
   // Do something.
   SnapshotApplicationTemplateResponse response = future.get();
 }
 
Returns
Type Description
OperationCallable<SnapshotApplicationTemplateRequest,SnapshotApplicationTemplateResponse,OperationMetadata>

syncShareAsync(@Nullable ShareName name)

public final OperationFuture<Share,OperationMetadata> syncShareAsync(@Nullable ShareName name)

Synchronizes a share and updates the destination workspace to reflect. reflect the most recent changes to the catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]");
   Share response = designCenterClient.syncShareAsync(name).get();
 }
 
Parameter
Name Description
name @org.jspecify.annotations.Nullable com.google.cloud.designcenter.v1.ShareName

Required. The share name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share

Returns
Type Description
OperationFuture<Share,OperationMetadata>

syncShareAsync(SyncShareRequest request)

public final OperationFuture<Share,OperationMetadata> syncShareAsync(SyncShareRequest request)

Synchronizes a share and updates the destination workspace to reflect. reflect the most recent changes to the catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SyncShareRequest request =
       SyncShareRequest.newBuilder()
           .setName(
               ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]")
                   .toString())
           .build();
   Share response = designCenterClient.syncShareAsync(request).get();
 }
 
Parameter
Name Description
request SyncShareRequest

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

Returns
Type Description
OperationFuture<Share,OperationMetadata>

syncShareAsync(String name)

public final OperationFuture<Share,OperationMetadata> syncShareAsync(String name)

Synchronizes a share and updates the destination workspace to reflect. reflect the most recent changes to the catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   String name =
       ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]").toString();
   Share response = designCenterClient.syncShareAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The share name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share

Returns
Type Description
OperationFuture<Share,OperationMetadata>

syncShareCallable()

public final UnaryCallable<SyncShareRequest,Operation> syncShareCallable()

Synchronizes a share and updates the destination workspace to reflect. reflect the most recent changes to the catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SyncShareRequest request =
       SyncShareRequest.newBuilder()
           .setName(
               ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]")
                   .toString())
           .build();
   ApiFuture<Operation> future = designCenterClient.syncShareCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<SyncShareRequest,Operation>

syncShareOperationCallable()

public final OperationCallable<SyncShareRequest,Share,OperationMetadata> syncShareOperationCallable()

Synchronizes a share and updates the destination workspace to reflect. reflect the most recent changes to the catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   SyncShareRequest request =
       SyncShareRequest.newBuilder()
           .setName(
               ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]")
                   .toString())
           .build();
   OperationFuture<Share, OperationMetadata> future =
       designCenterClient.syncShareOperationCallable().futureCall(request);
   // Do something.
   Share response = future.get();
 }
 
Returns
Type Description
OperationCallable<SyncShareRequest,Share,OperationMetadata>

testIamPermissions(TestIamPermissionsRequest request)

public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request)

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a NOT_FOUND error.

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   TestIamPermissionsRequest request =
       TestIamPermissionsRequest.newBuilder()
           .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .addAllPermissions(new ArrayList<String>())
           .build();
   TestIamPermissionsResponse response = designCenterClient.testIamPermissions(request);
 }
 
Parameter
Name Description
request com.google.iam.v1.TestIamPermissionsRequest

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

Returns
Type Description
com.google.iam.v1.TestIamPermissionsResponse

testIamPermissionsCallable()

public final UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a NOT_FOUND error.

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   TestIamPermissionsRequest request =
       TestIamPermissionsRequest.newBuilder()
           .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
           .addAllPermissions(new ArrayList<String>())
           .build();
   ApiFuture<TestIamPermissionsResponse> future =
       designCenterClient.testIamPermissionsCallable().futureCall(request);
   // Do something.
   TestIamPermissionsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>

updateApplication(Application application, FieldMask updateMask)

public final Application updateApplication(Application application, FieldMask updateMask)

Updates an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   Application application = Application.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Application response = designCenterClient.updateApplication(application, updateMask);
 }
 
Parameters
Name Description
application Application

Required. The application to update.

updateMask FieldMask

Optional. The fields to overwrite in the application update. If you don't provide a mask, all fields are overwritten.

Returns
Type Description
Application

updateApplication(UpdateApplicationRequest request)

public final Application updateApplication(UpdateApplicationRequest request)

Updates an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdateApplicationRequest request =
       UpdateApplicationRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setApplication(Application.newBuilder().build())
           .build();
   Application response = designCenterClient.updateApplication(request);
 }
 
Parameter
Name Description
request UpdateApplicationRequest

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

Returns
Type Description
Application

updateApplicationCallable()

public final UnaryCallable<UpdateApplicationRequest,Application> updateApplicationCallable()

Updates an application.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdateApplicationRequest request =
       UpdateApplicationRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setApplication(Application.newBuilder().build())
           .build();
   ApiFuture<Application> future =
       designCenterClient.updateApplicationCallable().futureCall(request);
   // Do something.
   Application response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateApplicationRequest,Application>

updateApplicationTemplate(ApplicationTemplate applicationTemplate, FieldMask updateMask)

public final ApplicationTemplate updateApplicationTemplate(ApplicationTemplate applicationTemplate, FieldMask updateMask)

Updates an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   ApplicationTemplate response =
       designCenterClient.updateApplicationTemplate(applicationTemplate, updateMask);
 }
 
Parameters
Name Description
applicationTemplate ApplicationTemplate

Required. The application template to update.

updateMask FieldMask

Optional. The fields to overwrite in the application template update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask, all fields are overwritten.

Returns
Type Description
ApplicationTemplate

updateApplicationTemplate(UpdateApplicationTemplateRequest request)

public final ApplicationTemplate updateApplicationTemplate(UpdateApplicationTemplateRequest request)

Updates an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdateApplicationTemplateRequest request =
       UpdateApplicationTemplateRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setApplicationTemplate(ApplicationTemplate.newBuilder().build())
           .build();
   ApplicationTemplate response = designCenterClient.updateApplicationTemplate(request);
 }
 
Parameter
Name Description
request UpdateApplicationTemplateRequest

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

Returns
Type Description
ApplicationTemplate

updateApplicationTemplateCallable()

public final UnaryCallable<UpdateApplicationTemplateRequest,ApplicationTemplate> updateApplicationTemplateCallable()

Updates an application template.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdateApplicationTemplateRequest request =
       UpdateApplicationTemplateRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setApplicationTemplate(ApplicationTemplate.newBuilder().build())
           .build();
   ApiFuture<ApplicationTemplate> future =
       designCenterClient.updateApplicationTemplateCallable().futureCall(request);
   // Do something.
   ApplicationTemplate response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateApplicationTemplateRequest,ApplicationTemplate>

updateCatalog(Catalog catalog, FieldMask updateMask)

public final Catalog updateCatalog(Catalog catalog, FieldMask updateMask)

Updates a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   Catalog catalog = Catalog.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Catalog response = designCenterClient.updateCatalog(catalog, updateMask);
 }
 
Parameters
Name Description
catalog Catalog

Required. The catalog to update.

updateMask FieldMask

Optional. The fields to overwrite in the catalog update. If you don't provide a mask, all fields are overwritten.

Returns
Type Description
Catalog

updateCatalog(UpdateCatalogRequest request)

public final Catalog updateCatalog(UpdateCatalogRequest request)

Updates a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdateCatalogRequest request =
       UpdateCatalogRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setCatalog(Catalog.newBuilder().build())
           .build();
   Catalog response = designCenterClient.updateCatalog(request);
 }
 
Parameter
Name Description
request UpdateCatalogRequest

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

Returns
Type Description
Catalog

updateCatalogCallable()

public final UnaryCallable<UpdateCatalogRequest,Catalog> updateCatalogCallable()

Updates a catalog.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdateCatalogRequest request =
       UpdateCatalogRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setCatalog(Catalog.newBuilder().build())
           .build();
   ApiFuture<Catalog> future = designCenterClient.updateCatalogCallable().futureCall(request);
   // Do something.
   Catalog response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateCatalogRequest,Catalog>

updateCatalogTemplate(CatalogTemplate catalogTemplate, FieldMask updateMask)

public final CatalogTemplate updateCatalogTemplate(CatalogTemplate catalogTemplate, FieldMask updateMask)

Updates a catalog template resource.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   CatalogTemplate response =
       designCenterClient.updateCatalogTemplate(catalogTemplate, updateMask);
 }
 
Parameters
Name Description
catalogTemplate CatalogTemplate

Required. The catalog template to update. Format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template

updateMask FieldMask

Optional. The fields to overwrite in the catalog template update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask, all fields are overwritten.

Returns
Type Description
CatalogTemplate

updateCatalogTemplate(UpdateCatalogTemplateRequest request)

public final CatalogTemplate updateCatalogTemplate(UpdateCatalogTemplateRequest request)

Updates a catalog template resource.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdateCatalogTemplateRequest request =
       UpdateCatalogTemplateRequest.newBuilder()
           .setCatalogTemplate(CatalogTemplate.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   CatalogTemplate response = designCenterClient.updateCatalogTemplate(request);
 }
 
Parameter
Name Description
request UpdateCatalogTemplateRequest

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

Returns
Type Description
CatalogTemplate

updateCatalogTemplateCallable()

public final UnaryCallable<UpdateCatalogTemplateRequest,CatalogTemplate> updateCatalogTemplateCallable()

Updates a catalog template resource.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdateCatalogTemplateRequest request =
       UpdateCatalogTemplateRequest.newBuilder()
           .setCatalogTemplate(CatalogTemplate.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<CatalogTemplate> future =
       designCenterClient.updateCatalogTemplateCallable().futureCall(request);
   // Do something.
   CatalogTemplate response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateCatalogTemplateRequest,CatalogTemplate>

updateComponent(Component component, FieldMask updateMask)

public final Component updateComponent(Component component, FieldMask updateMask)

Updates a component.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   Component component = Component.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Component response = designCenterClient.updateComponent(component, updateMask);
 }
 
Parameters
Name Description
component Component

Required. The component to update.

updateMask FieldMask

Optional. The fields to overwrite in the component update. If you don't provide a mask, all fields are overwritten.

Returns
Type Description
Component

updateComponent(UpdateComponentRequest request)

public final Component updateComponent(UpdateComponentRequest request)

Updates a component.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdateComponentRequest request =
       UpdateComponentRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setComponent(Component.newBuilder().build())
           .build();
   Component response = designCenterClient.updateComponent(request);
 }
 
Parameter
Name Description
request UpdateComponentRequest

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

Returns
Type Description
Component

updateComponentCallable()

public final UnaryCallable<UpdateComponentRequest,Component> updateComponentCallable()

Updates a component.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdateComponentRequest request =
       UpdateComponentRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setComponent(Component.newBuilder().build())
           .build();
   ApiFuture<Component> future =
       designCenterClient.updateComponentCallable().futureCall(request);
   // Do something.
   Component response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateComponentRequest,Component>

updateConnection(Connection connection, FieldMask updateMask)

public final Connection updateConnection(Connection connection, FieldMask updateMask)

Updates a connection.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   Connection connection = Connection.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Connection response = designCenterClient.updateConnection(connection, updateMask);
 }
 
Parameters
Name Description
connection Connection

Required. The connection to update.

updateMask FieldMask

Optional. Fields to overwrite in the connection update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask, all fields are overwritten.

Returns
Type Description
Connection

updateConnection(UpdateConnectionRequest request)

public final Connection updateConnection(UpdateConnectionRequest request)

Updates a connection.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdateConnectionRequest request =
       UpdateConnectionRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setConnection(Connection.newBuilder().build())
           .build();
   Connection response = designCenterClient.updateConnection(request);
 }
 
Parameter
Name Description
request UpdateConnectionRequest

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

Returns
Type Description
Connection

updateConnectionCallable()

public final UnaryCallable<UpdateConnectionRequest,Connection> updateConnectionCallable()

Updates a connection.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdateConnectionRequest request =
       UpdateConnectionRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setConnection(Connection.newBuilder().build())
           .build();
   ApiFuture<Connection> future =
       designCenterClient.updateConnectionCallable().futureCall(request);
   // Do something.
   Connection response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateConnectionRequest,Connection>

updatePolicy(Policy policy, FieldMask updateMask)

public final Policy updatePolicy(Policy policy, FieldMask updateMask)

Updates a policy.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   Policy policy = Policy.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Policy response = designCenterClient.updatePolicy(policy, updateMask);
 }
 
Parameters
Name Description
policy Policy

Required. The policy to update.

updateMask FieldMask

Optional. The fields to overwrite in the policy update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If you don't provide a mask, all fields are overwritten.

Returns
Type Description
Policy

updatePolicy(UpdatePolicyRequest request)

public final Policy updatePolicy(UpdatePolicyRequest request)

Updates a policy.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdatePolicyRequest request =
       UpdatePolicyRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setPolicy(Policy.newBuilder().build())
           .build();
   Policy response = designCenterClient.updatePolicy(request);
 }
 
Parameter
Name Description
request UpdatePolicyRequest

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

Returns
Type Description
Policy

updatePolicyCallable()

public final UnaryCallable<UpdatePolicyRequest,Policy> updatePolicyCallable()

Updates a policy.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdatePolicyRequest request =
       UpdatePolicyRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setPolicy(Policy.newBuilder().build())
           .build();
   ApiFuture<Policy> future = designCenterClient.updatePolicyCallable().futureCall(request);
   // Do something.
   Policy response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdatePolicyRequest,Policy>

updateSpace(Space space, FieldMask updateMask)

public final Space updateSpace(Space space, FieldMask updateMask)

Updates a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   Space space = Space.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Space response = designCenterClient.updateSpace(space, updateMask);
 }
 
Parameters
Name Description
space Space

Required. The space to update.

updateMask FieldMask

Optional. The fields to overwrite in the space update. If you don't provide a mask, all fields are overwritten.

Returns
Type Description
Space

updateSpace(UpdateSpaceRequest request)

public final Space updateSpace(UpdateSpaceRequest request)

Updates a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdateSpaceRequest request =
       UpdateSpaceRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setSpace(Space.newBuilder().build())
           .build();
   Space response = designCenterClient.updateSpace(request);
 }
 
Parameter
Name Description
request UpdateSpaceRequest

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

Returns
Type Description
Space

updateSpaceCallable()

public final UnaryCallable<UpdateSpaceRequest,Space> updateSpaceCallable()

Updates a space.

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
   UpdateSpaceRequest request =
       UpdateSpaceRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setSpace(Space.newBuilder().build())
           .build();
   ApiFuture<Space> future = designCenterClient.updateSpaceCallable().futureCall(request);
   // Do something.
   Space response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateSpaceRequest,Space>