diff --git a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java
index 1198df31..1dfd1bcb 100644
--- a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java
+++ b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.google.cloud.workflows.v1beta;
import com.google.api.core.ApiFunction;
@@ -39,7 +40,7 @@
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
-// AUTO-GENERATED DOCUMENTATION AND SERVICE
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Service Description: Workflows is used to deploy and execute workflow programs. Workflows makes
* sure the program executes reliably, despite hardware and networking interruptions.
@@ -47,16 +48,7 @@
*
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:
*
- *
Note: close() needs to be called on the workflowsClient object to clean up resources such as
+ *
Note: close() needs to be called on the WorkflowsClient object to clean up resources such as
* threads. In the example above, try-with-resources is used, which automatically calls close().
*
*
The surface of this class includes several types of Java methods for each of the API's
@@ -84,30 +76,26 @@
*
*
Please refer to the GitHub repository's samples for more quickstart code snippets.
*/
-@Generated("by gapic-generator")
@BetaApi
+@Generated("by gapic-generator")
public class WorkflowsClient implements BackgroundResource {
private final WorkflowsSettings settings;
private final WorkflowsStub stub;
@@ -128,7 +116,7 @@ public static final WorkflowsClient create(WorkflowsSettings settings) throws IO
/**
* Constructs an instance of WorkflowsClient, using the given stub for making calls. This is for
- * advanced usage - prefer to use WorkflowsSettings}.
+ * advanced usage - prefer using create(WorkflowsSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final WorkflowsClient create(WorkflowsStub stub) {
@@ -165,27 +153,14 @@ public WorkflowsStub getStub() {
* Returns the OperationsClient that can be used to query the status of a long-running operation
* returned by another API method call.
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationsClient getOperationsClient() {
return operationsClient;
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists Workflows in a given project and location. The default order is not specified.
*
- *
- *
* @param parent Required. Project and location from which the workflows should be listed. Format:
* projects/{project}/locations/{location}
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -198,21 +173,10 @@ public final ListWorkflowsPagedResponse listWorkflows(LocationName parent) {
return listWorkflows(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists Workflows in a given project and location. The default order is not specified.
*
- *
- *
* @param parent Required. Project and location from which the workflows should be listed. Format:
* projects/{project}/locations/{location}
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -222,24 +186,10 @@ public final ListWorkflowsPagedResponse listWorkflows(String parent) {
return listWorkflows(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists Workflows in a given project and location. The default order is not specified.
*
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -247,75 +197,31 @@ public final ListWorkflowsPagedResponse listWorkflows(ListWorkflowsRequest reque
return listWorkflowsPagedCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists Workflows in a given project and location. The default order is not specified.
*
*
*/
public final UnaryCallable
listWorkflowsPagedCallable() {
return stub.listWorkflowsPagedCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists Workflows in a given project and location. The default order is not specified.
*
*
*/
public final UnaryCallable listWorkflowsCallable() {
return stub.listWorkflowsCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets details of a single Workflow.
*
- *
- *
* @param name Required. Name of the workflow which information should be retrieved. Format:
* projects/{project}/locations/{location}/workflows/{workflow}
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -326,19 +232,10 @@ public final Workflow getWorkflow(WorkflowName name) {
return getWorkflow(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets details of a single Workflow.
*
- *
- *
* @param name Required. Name of the workflow which information should be retrieved. Format:
* projects/{project}/locations/{location}/workflows/{workflow}
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -348,22 +245,10 @@ public final Workflow getWorkflow(String name) {
return getWorkflow(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets details of a single Workflow.
*
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -371,57 +256,37 @@ public final Workflow getWorkflow(GetWorkflowRequest request) {
return getWorkflowCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets details of a single Workflow.
*
*
*/
public final UnaryCallable getWorkflowCallable() {
return stub.getWorkflowCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new workflow. If a workflow with the specified name already exists in the specified
* project and location, the long running operation will return
* [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
*
- *
- *
* @param parent Required. Project and location in which the workflow should be created. Format:
* projects/{project}/locations/{location}
* @param workflow Required. Workflow to be created.
- * @param workflowId Required. The ID of the workflow to be created. It has to fulfill the
+ * @param workflow_id Required. The ID of the workflow to be created. It has to fulfill the
* following requirements:
- *
* Must contain only letters, numbers, underscores and hyphens. * Must start with
- * a letter. * Must be between 1-64 characters. * Must end with a number or a letter.
- * * Must be unique within the customer project and location.
+ *
+ *
Must contain only letters, numbers, underscores and hyphens.
+ *
Must start with a letter.
+ *
Must be between 1-64 characters.
+ *
Must end with a number or a letter.
+ *
Must be unique within the customer project and location.
+ *
+ *
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture createWorkflowAsync(
LocationName parent, Workflow workflow, String workflowId) {
CreateWorkflowRequest request =
@@ -433,35 +298,27 @@ public final OperationFuture createWorkflowAsync(
return createWorkflowAsync(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new workflow. If a workflow with the specified name already exists in the specified
* project and location, the long running operation will return
* [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
*
- *
- *
* @param parent Required. Project and location in which the workflow should be created. Format:
* projects/{project}/locations/{location}
* @param workflow Required. Workflow to be created.
- * @param workflowId Required. The ID of the workflow to be created. It has to fulfill the
+ * @param workflow_id Required. The ID of the workflow to be created. It has to fulfill the
* following requirements:
- *
* Must contain only letters, numbers, underscores and hyphens. * Must start with
- * a letter. * Must be between 1-64 characters. * Must end with a number or a letter.
- * * Must be unique within the customer project and location.
+ *
+ *
Must contain only letters, numbers, underscores and hyphens.
+ *
Must start with a letter.
+ *
Must be between 1-64 characters.
+ *
Must end with a number or a letter.
+ *
Must be unique within the customer project and location.
+ *
+ *
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture createWorkflowAsync(
String parent, Workflow workflow, String workflowId) {
CreateWorkflowRequest request =
@@ -473,245 +330,121 @@ public final OperationFuture createWorkflowAsync(
return createWorkflowAsync(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new workflow. If a workflow with the specified name already exists in the specified
* project and location, the long running operation will return
* [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
*
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture createWorkflowAsync(
CreateWorkflowRequest request) {
return createWorkflowOperationCallable().futureCall(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new workflow. If a workflow with the specified name already exists in the specified
* project and location, the long running operation will return
* [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
*
*
*/
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public final OperationCallable
createWorkflowOperationCallable() {
return stub.createWorkflowOperationCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new workflow. If a workflow with the specified name already exists in the specified
* project and location, the long running operation will return
* [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
*
*
*/
public final UnaryCallable createWorkflowCallable() {
return stub.createWorkflowCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a workflow with the specified name. This method also cancels and deletes all running
* executions of the workflow.
*
- *
- *
* @param name Required. Name of the workflow to be deleted. Format:
* projects/{project}/locations/{location}/workflows/{workflow}
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture deleteWorkflowAsync(WorkflowName name) {
DeleteWorkflowRequest request =
DeleteWorkflowRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return deleteWorkflowAsync(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a workflow with the specified name. This method also cancels and deletes all running
* executions of the workflow.
*
- *
- *
* @param name Required. Name of the workflow to be deleted. Format:
* projects/{project}/locations/{location}/workflows/{workflow}
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture deleteWorkflowAsync(String name) {
DeleteWorkflowRequest request = DeleteWorkflowRequest.newBuilder().setName(name).build();
return deleteWorkflowAsync(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a workflow with the specified name. This method also cancels and deletes all running
* executions of the workflow.
*
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture deleteWorkflowAsync(
DeleteWorkflowRequest request) {
return deleteWorkflowOperationCallable().futureCall(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a workflow with the specified name. This method also cancels and deletes all running
* executions of the workflow.
*
*
*/
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public final OperationCallable
deleteWorkflowOperationCallable() {
return stub.deleteWorkflowOperationCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a workflow with the specified name. This method also cancels and deletes all running
* executions of the workflow.
*
*
*/
public final UnaryCallable deleteWorkflowCallable() {
return stub.deleteWorkflowCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates an existing workflow. Running this method has no impact on already running executions
* of the workflow. A new revision of the workflow may be created as a result of a successful
* update operation. In that case, such revision will be used in new workflow executions.
*
- *
- *
* @param workflow Required. Workflow to be updated.
- * @param updateMask List of fields to be updated. If not present, the entire workflow will be
+ * @param update_mask List of fields to be updated. If not present, the entire workflow will be
* updated.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture updateWorkflowAsync(
Workflow workflow, FieldMask updateMask) {
UpdateWorkflowRequest request =
@@ -719,79 +452,40 @@ public final OperationFuture updateWorkflowAsync(
return updateWorkflowAsync(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates an existing workflow. Running this method has no impact on already running executions
* of the workflow. A new revision of the workflow may be created as a result of a successful
* update operation. In that case, such revision will be used in new workflow executions.
*
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture updateWorkflowAsync(
UpdateWorkflowRequest request) {
return updateWorkflowOperationCallable().futureCall(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates an existing workflow. Running this method has no impact on already running executions
* of the workflow. A new revision of the workflow may be created as a result of a successful
* update operation. In that case, such revision will be used in new workflow executions.
*
*
*/
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public final OperationCallable
updateWorkflowOperationCallable() {
return stub.updateWorkflowOperationCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates an existing workflow. Running this method has no impact on already running executions
* of the workflow. A new revision of the workflow may be created as a result of a successful
* update operation. In that case, such revision will be used in new workflow executions.
*
*
*/
public final UnaryCallable updateWorkflowCallable() {
return stub.updateWorkflowCallable();
diff --git a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java
index a160c792..a7647064 100644
--- a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java
+++ b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.google.cloud.workflows.v1beta;
import static com.google.cloud.workflows.v1beta.WorkflowsClient.ListWorkflowsPagedResponse;
@@ -36,7 +37,7 @@
import java.util.List;
import javax.annotation.Generated;
-// AUTO-GENERATED DOCUMENTATION AND CLASS
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Settings class to configure an instance of {@link WorkflowsClient}.
*
@@ -53,23 +54,23 @@
*
*
For example, to set the total timeout of getWorkflow to 30 seconds:
*
- *
+ * }
*/
-@Generated("by gapic-generator")
-@BetaApi
+@Generated("by gapic-generator-java")
public class WorkflowsSettings extends ClientSettings {
+
/** Returns the object with the settings used for calls to listWorkflows. */
public PagedCallSettings
listWorkflowsSettings() {
@@ -87,8 +88,6 @@ public UnaryCallSettings createWorkflowSetting
}
/** Returns the object with the settings used for calls to createWorkflow. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings
createWorkflowOperationSettings() {
return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();
@@ -100,8 +99,6 @@ public UnaryCallSettings deleteWorkflowSetting
}
/** Returns the object with the settings used for calls to deleteWorkflow. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings
deleteWorkflowOperationSettings() {
return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowOperationSettings();
@@ -113,8 +110,6 @@ public UnaryCallSettings updateWorkflowSetting
}
/** Returns the object with the settings used for calls to updateWorkflow. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings
updateWorkflowOperationSettings() {
return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowOperationSettings();
@@ -179,18 +174,15 @@ protected WorkflowsSettings(Builder settingsBuilder) throws IOException {
/** Builder for WorkflowsSettings. */
public static class Builder extends ClientSettings.Builder {
+
protected Builder() throws IOException {
- this((ClientContext) null);
+ this(((ClientContext) null));
}
protected Builder(ClientContext clientContext) {
super(WorkflowsStubSettings.newBuilder(clientContext));
}
- private static Builder createDefault() {
- return new Builder(WorkflowsStubSettings.newBuilder());
- }
-
protected Builder(WorkflowsSettings settings) {
super(settings.getStubSettings().toBuilder());
}
@@ -199,11 +191,15 @@ protected Builder(WorkflowsStubSettings.Builder stubSettings) {
super(stubSettings);
}
+ private static Builder createDefault() {
+ return new Builder(WorkflowsStubSettings.newBuilder());
+ }
+
public WorkflowsStubSettings.Builder getStubSettingsBuilder() {
return ((WorkflowsStubSettings.Builder) getStubSettings());
}
- // NEXT_MAJOR_VER: remove 'throws Exception'
+ // NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
@@ -234,8 +230,6 @@ public UnaryCallSettings.Builder createWorkflo
}
/** Returns the builder for the settings used for calls to createWorkflow. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder
createWorkflowOperationSettings() {
return getStubSettingsBuilder().createWorkflowOperationSettings();
@@ -247,8 +241,6 @@ public UnaryCallSettings.Builder deleteWorkflo
}
/** Returns the builder for the settings used for calls to deleteWorkflow. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder
deleteWorkflowOperationSettings() {
return getStubSettingsBuilder().deleteWorkflowOperationSettings();
@@ -260,8 +252,6 @@ public UnaryCallSettings.Builder updateWorkflo
}
/** Returns the builder for the settings used for calls to updateWorkflow. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder
updateWorkflowOperationSettings() {
return getStubSettingsBuilder().updateWorkflowOperationSettings();
diff --git a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/package-info.java b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/package-info.java
index f8aedba1..cea98754 100644
--- a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/package-info.java
+++ b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/package-info.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -15,27 +15,16 @@
*/
/**
- * A client to Workflows API.
+ * The interfaces provided are listed below, along with usage samples.
*
- *
The interfaces provided are listed below, along with usage samples.
- *
- *
Service Description: Workflows is used to deploy and execute workflow programs. Workflows
* makes sure the program executes reliably, despite hardware and networking interruptions.
*
*
*/
-@Generated("by gapic-generator")
+@Generated("by gapic-generator-java")
package com.google.cloud.workflows.v1beta;
import javax.annotation.Generated;
diff --git a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsCallableFactory.java b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsCallableFactory.java
index 732aaaeb..ea19e425 100644
--- a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsCallableFactory.java
+++ b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsCallableFactory.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.google.cloud.workflows.v1beta.stub;
-import com.google.api.core.BetaApi;
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcCallableFactory;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
@@ -31,18 +31,19 @@
import com.google.api.gax.rpc.StreamingCallSettings;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.Operation;
import com.google.longrunning.stub.OperationsStub;
import javax.annotation.Generated;
-// AUTO-GENERATED DOCUMENTATION AND CLASS
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
- * gRPC callable factory implementation for Workflows API.
+ * gRPC callable factory implementation for the Workflows service API.
*
*
This class is for advanced usage.
*/
@Generated("by gapic-generator")
-@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public class GrpcWorkflowsCallableFactory implements GrpcStubCallableFactory {
+
@Override
public UnaryCallable createUnaryCallable(
GrpcCallSettings grpcCallSettings,
@@ -55,61 +56,58 @@ public UnaryCallable createUnaryCalla
public
UnaryCallable createPagedCallable(
GrpcCallSettings grpcCallSettings,
- PagedCallSettings pagedCallSettings,
+ PagedCallSettings callSettings,
ClientContext clientContext) {
- return GrpcCallableFactory.createPagedCallable(
- grpcCallSettings, pagedCallSettings, clientContext);
+ return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext);
}
@Override
public UnaryCallable createBatchingCallable(
GrpcCallSettings grpcCallSettings,
- BatchingCallSettings batchingCallSettings,
+ BatchingCallSettings callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createBatchingCallable(
- grpcCallSettings, batchingCallSettings, clientContext);
+ grpcCallSettings, callSettings, clientContext);
}
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
@Override
public
OperationCallable createOperationCallable(
- GrpcCallSettings grpcCallSettings,
- OperationCallSettings operationCallSettings,
+ GrpcCallSettings grpcCallSettings,
+ OperationCallSettings callSettings,
ClientContext clientContext,
OperationsStub operationsStub) {
return GrpcCallableFactory.createOperationCallable(
- grpcCallSettings, operationCallSettings, clientContext, operationsStub);
+ grpcCallSettings, callSettings, clientContext, operationsStub);
}
@Override
public
BidiStreamingCallable createBidiStreamingCallable(
GrpcCallSettings grpcCallSettings,
- StreamingCallSettings streamingCallSettings,
+ StreamingCallSettings callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createBidiStreamingCallable(
- grpcCallSettings, streamingCallSettings, clientContext);
+ grpcCallSettings, callSettings, clientContext);
}
@Override
public
ServerStreamingCallable createServerStreamingCallable(
GrpcCallSettings grpcCallSettings,
- ServerStreamingCallSettings streamingCallSettings,
+ ServerStreamingCallSettings callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createServerStreamingCallable(
- grpcCallSettings, streamingCallSettings, clientContext);
+ grpcCallSettings, callSettings, clientContext);
}
@Override
public
ClientStreamingCallable createClientStreamingCallable(
GrpcCallSettings grpcCallSettings,
- StreamingCallSettings streamingCallSettings,
+ StreamingCallSettings callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createClientStreamingCallable(
- grpcCallSettings, streamingCallSettings, clientContext);
+ grpcCallSettings, callSettings, clientContext);
}
}
diff --git a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java
index fa8d6fc3..f3b4b971 100644
--- a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java
+++ b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.google.cloud.workflows.v1beta.stub;
import static com.google.cloud.workflows.v1beta.WorkflowsClient.ListWorkflowsPagedResponse;
-import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.core.BackgroundResourceAggregation;
import com.google.api.gax.grpc.GrpcCallSettings;
@@ -45,16 +45,14 @@
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
-// AUTO-GENERATED DOCUMENTATION AND CLASS
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
- * gRPC stub implementation for Workflows API.
+ * gRPC stub implementation for the Workflows service API.
*
*
This class is for advanced usage and reflects the underlying API directly.
*/
-@Generated("by gapic-generator")
-@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+@Generated("by gapic-generator-java")
public class GrpcWorkflowsStub extends WorkflowsStub {
-
private static final MethodDescriptor
listWorkflowsMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -65,6 +63,7 @@ public class GrpcWorkflowsStub extends WorkflowsStub {
.setResponseMarshaller(
ProtoUtils.marshaller(ListWorkflowsResponse.getDefaultInstance()))
.build();
+
private static final MethodDescriptor getWorkflowMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
@@ -72,6 +71,7 @@ public class GrpcWorkflowsStub extends WorkflowsStub {
.setRequestMarshaller(ProtoUtils.marshaller(GetWorkflowRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Workflow.getDefaultInstance()))
.build();
+
private static final MethodDescriptor
createWorkflowMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -81,6 +81,7 @@ public class GrpcWorkflowsStub extends WorkflowsStub {
ProtoUtils.marshaller(CreateWorkflowRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
+
private static final MethodDescriptor
deleteWorkflowMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -90,6 +91,7 @@ public class GrpcWorkflowsStub extends WorkflowsStub {
ProtoUtils.marshaller(DeleteWorkflowRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
+
private static final MethodDescriptor
updateWorkflowMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -100,9 +102,6 @@ public class GrpcWorkflowsStub extends WorkflowsStub {
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
- private final BackgroundResource backgroundResources;
- private final GrpcOperationsStub operationsStub;
-
private final UnaryCallable listWorkflowsCallable;
private final UnaryCallable
listWorkflowsPagedCallable;
@@ -117,6 +116,8 @@ public class GrpcWorkflowsStub extends WorkflowsStub {
private final OperationCallable
updateWorkflowOperationCallable;
+ private final BackgroundResource backgroundResources;
+ private final GrpcOperationsStub operationsStub;
private final GrpcStubCallableFactory callableFactory;
public static final GrpcWorkflowsStub create(WorkflowsStubSettings settings) throws IOException {
@@ -133,21 +134,11 @@ public static final GrpcWorkflowsStub create(
WorkflowsStubSettings.newBuilder().build(), clientContext, callableFactory);
}
- /**
- * Constructs an instance of GrpcWorkflowsStub, 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.
- */
protected GrpcWorkflowsStub(WorkflowsStubSettings settings, ClientContext clientContext)
throws IOException {
this(settings, clientContext, new GrpcWorkflowsCallableFactory());
}
- /**
- * Constructs an instance of GrpcWorkflowsStub, 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.
- */
protected GrpcWorkflowsStub(
WorkflowsStubSettings settings,
ClientContext clientContext,
@@ -239,7 +230,7 @@ public Map extract(UpdateWorkflowRequest request) {
createWorkflowTransportSettings,
settings.createWorkflowOperationSettings(),
clientContext,
- this.operationsStub);
+ operationsStub);
this.deleteWorkflowCallable =
callableFactory.createUnaryCallable(
deleteWorkflowTransportSettings, settings.deleteWorkflowSettings(), clientContext);
@@ -248,7 +239,7 @@ public Map extract(UpdateWorkflowRequest request) {
deleteWorkflowTransportSettings,
settings.deleteWorkflowOperationSettings(),
clientContext,
- this.operationsStub);
+ operationsStub);
this.updateWorkflowCallable =
callableFactory.createUnaryCallable(
updateWorkflowTransportSettings, settings.updateWorkflowSettings(), clientContext);
@@ -257,59 +248,56 @@ public Map extract(UpdateWorkflowRequest request) {
updateWorkflowTransportSettings,
settings.updateWorkflowOperationSettings(),
clientContext,
- this.operationsStub);
+ operationsStub);
- backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
+ this.backgroundResources =
+ new BackgroundResourceAggregation(clientContext.getBackgroundResources());
}
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public GrpcOperationsStub getOperationsStub() {
return operationsStub;
}
+ public UnaryCallable listWorkflowsCallable() {
+ return listWorkflowsCallable;
+ }
+
public UnaryCallable
listWorkflowsPagedCallable() {
return listWorkflowsPagedCallable;
}
- public UnaryCallable listWorkflowsCallable() {
- return listWorkflowsCallable;
- }
-
public UnaryCallable getWorkflowCallable() {
return getWorkflowCallable;
}
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+ public UnaryCallable createWorkflowCallable() {
+ return createWorkflowCallable;
+ }
+
public OperationCallable
createWorkflowOperationCallable() {
return createWorkflowOperationCallable;
}
- public UnaryCallable createWorkflowCallable() {
- return createWorkflowCallable;
+ public UnaryCallable deleteWorkflowCallable() {
+ return deleteWorkflowCallable;
}
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable
deleteWorkflowOperationCallable() {
return deleteWorkflowOperationCallable;
}
- public UnaryCallable deleteWorkflowCallable() {
- return deleteWorkflowCallable;
+ public UnaryCallable updateWorkflowCallable() {
+ return updateWorkflowCallable;
}
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable
updateWorkflowOperationCallable() {
return updateWorkflowOperationCallable;
}
- public UnaryCallable updateWorkflowCallable() {
- return updateWorkflowCallable;
- }
-
@Override
public final void close() {
shutdown();
diff --git a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java
index 675445f3..65a32d3e 100644
--- a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java
+++ b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.google.cloud.workflows.v1beta.stub;
import static com.google.cloud.workflows.v1beta.WorkflowsClient.ListWorkflowsPagedResponse;
-import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
@@ -34,17 +34,15 @@
import com.google.protobuf.Empty;
import javax.annotation.Generated;
-// AUTO-GENERATED DOCUMENTATION AND CLASS
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
- * Base stub class for Workflows API.
+ * Base stub class for the Workflows service API.
*
*
This class is for advanced usage and reflects the underlying API directly.
*/
@Generated("by gapic-generator")
-@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public abstract class WorkflowsStub implements BackgroundResource {
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationsStub getOperationsStub() {
throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
}
@@ -62,7 +60,6 @@ public UnaryCallable getWorkflowCallable() {
throw new UnsupportedOperationException("Not implemented: getWorkflowCallable()");
}
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable
createWorkflowOperationCallable() {
throw new UnsupportedOperationException("Not implemented: createWorkflowOperationCallable()");
@@ -72,7 +69,6 @@ public UnaryCallable createWorkflowCallable()
throw new UnsupportedOperationException("Not implemented: createWorkflowCallable()");
}
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable
deleteWorkflowOperationCallable() {
throw new UnsupportedOperationException("Not implemented: deleteWorkflowOperationCallable()");
@@ -82,7 +78,6 @@ public UnaryCallable deleteWorkflowCallable()
throw new UnsupportedOperationException("Not implemented: deleteWorkflowCallable()");
}
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable
updateWorkflowOperationCallable() {
throw new UnsupportedOperationException("Not implemented: updateWorkflowOperationCallable()");
diff --git a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java
index bfa79e98..9a31ccd7 100644
--- a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java
+++ b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.google.cloud.workflows.v1beta.stub;
import static com.google.cloud.workflows.v1beta.WorkflowsClient.ListWorkflowsPagedResponse;
@@ -62,7 +63,7 @@
import javax.annotation.Generated;
import org.threeten.bp.Duration;
-// AUTO-GENERATED DOCUMENTATION AND CLASS
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Settings class to configure an instance of {@link WorkflowsStub}.
*
@@ -79,22 +80,22 @@
*
*
For example, to set the total timeout of getWorkflow to 30 seconds:
*
- *