Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -48,6 +48,8 @@
* calls that map to API methods. Sample code to get started:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* WorkflowName name = WorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
* Workflow response = workflowsClient.getWorkflow(name);
Expand Down Expand Up @@ -83,6 +85,8 @@
* <p>To customize credentials:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* WorkflowsSettings workflowsSettings =
* WorkflowsSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -93,6 +97,8 @@
* <p>To customize the endpoint:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* WorkflowsSettings workflowsSettings =
* WorkflowsSettings.newBuilder().setEndpoint(myEndpoint).build();
* WorkflowsClient workflowsClient = WorkflowsClient.create(workflowsSettings);
Expand Down Expand Up @@ -169,6 +175,8 @@ public final OperationsClient getOperationsClient() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* for (Workflow element : workflowsClient.listWorkflows(parent).iterateAll()) {
Expand Down Expand Up @@ -196,6 +204,8 @@ public final ListWorkflowsPagedResponse listWorkflows(LocationName parent) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (Workflow element : workflowsClient.listWorkflows(parent).iterateAll()) {
Expand All @@ -220,6 +230,8 @@ public final ListWorkflowsPagedResponse listWorkflows(String parent) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* ListWorkflowsRequest request =
* ListWorkflowsRequest.newBuilder()
Expand Down Expand Up @@ -249,6 +261,8 @@ public final ListWorkflowsPagedResponse listWorkflows(ListWorkflowsRequest reque
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* ListWorkflowsRequest request =
* ListWorkflowsRequest.newBuilder()
Expand Down Expand Up @@ -278,6 +292,8 @@ public final ListWorkflowsPagedResponse listWorkflows(ListWorkflowsRequest reque
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* ListWorkflowsRequest request =
* ListWorkflowsRequest.newBuilder()
Expand Down Expand Up @@ -313,6 +329,8 @@ public final UnaryCallable<ListWorkflowsRequest, ListWorkflowsResponse> listWork
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* WorkflowName name = WorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
* Workflow response = workflowsClient.getWorkflow(name);
Expand All @@ -336,6 +354,8 @@ public final Workflow getWorkflow(WorkflowName name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* String name = WorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]").toString();
* Workflow response = workflowsClient.getWorkflow(name);
Expand All @@ -358,6 +378,8 @@ public final Workflow getWorkflow(String name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* GetWorkflowRequest request =
* GetWorkflowRequest.newBuilder()
Expand All @@ -381,6 +403,8 @@ public final Workflow getWorkflow(GetWorkflowRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* GetWorkflowRequest request =
* GetWorkflowRequest.newBuilder()
Expand All @@ -405,6 +429,8 @@ public final UnaryCallable<GetWorkflowRequest, Workflow> getWorkflowCallable() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Workflow workflow = Workflow.newBuilder().build();
Expand Down Expand Up @@ -448,6 +474,8 @@ public final OperationFuture<Workflow, OperationMetadata> createWorkflowAsync(
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Workflow workflow = Workflow.newBuilder().build();
Expand Down Expand Up @@ -491,6 +519,8 @@ public final OperationFuture<Workflow, OperationMetadata> createWorkflowAsync(
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* CreateWorkflowRequest request =
* CreateWorkflowRequest.newBuilder()
Expand Down Expand Up @@ -519,6 +549,8 @@ public final OperationFuture<Workflow, OperationMetadata> createWorkflowAsync(
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* CreateWorkflowRequest request =
* CreateWorkflowRequest.newBuilder()
Expand Down Expand Up @@ -547,6 +579,8 @@ public final OperationFuture<Workflow, OperationMetadata> createWorkflowAsync(
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* CreateWorkflowRequest request =
* CreateWorkflowRequest.newBuilder()
Expand All @@ -572,6 +606,8 @@ public final UnaryCallable<CreateWorkflowRequest, Operation> createWorkflowCalla
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* WorkflowName name = WorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
* workflowsClient.deleteWorkflowAsync(name).get();
Expand All @@ -596,6 +632,8 @@ public final OperationFuture<Empty, OperationMetadata> deleteWorkflowAsync(Workf
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* String name = WorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]").toString();
* workflowsClient.deleteWorkflowAsync(name).get();
Expand All @@ -619,6 +657,8 @@ public final OperationFuture<Empty, OperationMetadata> deleteWorkflowAsync(Strin
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* DeleteWorkflowRequest request =
* DeleteWorkflowRequest.newBuilder()
Expand All @@ -644,6 +684,8 @@ public final OperationFuture<Empty, OperationMetadata> deleteWorkflowAsync(
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* DeleteWorkflowRequest request =
* DeleteWorkflowRequest.newBuilder()
Expand All @@ -669,6 +711,8 @@ public final OperationFuture<Empty, OperationMetadata> deleteWorkflowAsync(
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* DeleteWorkflowRequest request =
* DeleteWorkflowRequest.newBuilder()
Expand All @@ -693,6 +737,8 @@ public final UnaryCallable<DeleteWorkflowRequest, Operation> deleteWorkflowCalla
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* Workflow workflow = Workflow.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
Expand Down Expand Up @@ -721,6 +767,8 @@ public final OperationFuture<Workflow, OperationMetadata> updateWorkflowAsync(
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* UpdateWorkflowRequest request =
* UpdateWorkflowRequest.newBuilder()
Expand Down Expand Up @@ -748,6 +796,8 @@ public final OperationFuture<Workflow, OperationMetadata> updateWorkflowAsync(
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* UpdateWorkflowRequest request =
* UpdateWorkflowRequest.newBuilder()
Expand Down Expand Up @@ -775,6 +825,8 @@ public final OperationFuture<Workflow, OperationMetadata> updateWorkflowAsync(
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* UpdateWorkflowRequest request =
* UpdateWorkflowRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -55,6 +55,8 @@
* <p>For example, to set the total timeout of getWorkflow to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* WorkflowsSettings.Builder workflowsSettingsBuilder = WorkflowsSettings.newBuilder();
* workflowsSettingsBuilder
* .getWorkflowSettings()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -27,6 +27,8 @@
* <p>Sample for WorkflowsClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (WorkflowsClient workflowsClient = WorkflowsClient.create()) {
* WorkflowName name = WorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
* Workflow response = workflowsClient.getWorkflow(name);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -81,6 +81,8 @@
* <p>For example, to set the total timeout of getWorkflow to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* WorkflowsStubSettings.Builder workflowsSettingsBuilder = WorkflowsStubSettings.newBuilder();
* workflowsSettingsBuilder
* .getWorkflowSettings()
Expand Down
Loading