From fc2ba141706b1aff0a089eec9050e1b71d5cd65d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 20 Oct 2021 18:00:21 +0000 Subject: [PATCH] docs: clarified when revision_id of a workflow is updated (#362) - [x] Regenerate this pull request now. PiperOrigin-RevId: 404237609 Source-Link: https://github.com/googleapis/googleapis/commit/2d60c597aa946c646e4dce52c9b8b7863a8ddc81 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ec5a08b7e6d0e3c774516e4169893a5886856423 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWM1YTA4YjdlNmQwZTNjNzc0NTE2ZTQxNjk4OTNhNTg4Njg1NjQyMyJ9 docs: clarified format and semantics of service_account field docs: documented expanded workflow size limit --- .../cloud/workflows/v1/package-info.java | 4 +- .../workflows/v1/CreateWorkflowRequest.java | 8 +- .../workflows/v1/DeleteWorkflowRequest.java | 4 +- .../workflows/v1/GetWorkflowRequest.java | 4 +- .../workflows/v1/ListWorkflowsRequest.java | 16 +- .../workflows/v1/ListWorkflowsResponse.java | 4 +- .../cloud/workflows/v1/OperationMetadata.java | 12 +- .../google/cloud/workflows/v1/Workflow.java | 146 +++++++++--------- .../cloud/workflows/v1/WorkflowOrBuilder.java | 38 ++--- .../google/cloud/workflows/v1/workflows.proto | 22 +-- .../v1beta/CreateWorkflowRequest.java | 8 +- .../v1beta/DeleteWorkflowRequest.java | 4 +- .../workflows/v1beta/GetWorkflowRequest.java | 4 +- .../v1beta/ListWorkflowsRequest.java | 16 +- .../v1beta/ListWorkflowsResponse.java | 4 +- .../workflows/v1beta/OperationMetadata.java | 12 +- .../cloud/workflows/v1beta/Workflow.java | 16 +- 17 files changed, 163 insertions(+), 159 deletions(-) diff --git a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/package-info.java b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/package-info.java index 8068a04d..66bbe13a 100644 --- a/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/package-info.java +++ b/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/package-info.java @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Workflows API + * + *

The interfaces provided are listed below, along with usage samples. * *

======================= WorkflowsClient ======================= * diff --git a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java index 47bff2ef..2773cc90 100644 --- a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java +++ b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java @@ -321,13 +321,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (workflow_ != null) { output.writeMessage(2, getWorkflow()); } - if (!getWorkflowIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflowId_); } unknownFields.writeTo(output); @@ -339,13 +339,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (workflow_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkflow()); } - if (!getWorkflowIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java index f4f28ecf..e056622c 100644 --- a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java +++ b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java index 0e29c688..16acb053 100644 --- a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java +++ b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java @@ -181,7 +181,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -193,7 +193,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java index fe87a084..6e99ed3a 100644 --- a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java +++ b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java @@ -391,19 +391,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } unknownFields.writeTo(output); @@ -415,19 +415,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java index 005233d6..cb76a3e4 100644 --- a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java +++ b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java @@ -341,7 +341,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < workflows_.size(); i++) { output.writeMessage(1, workflows_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachable_.size(); i++) { @@ -359,7 +359,7 @@ public int getSerializedSize() { for (int i = 0; i < workflows_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workflows_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } { diff --git a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java index eb5ff41b..1d5470e6 100644 --- a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java +++ b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java @@ -416,13 +416,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(2, getEndTime()); } - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); } - if (!getVerbBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); } - if (!getApiVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, apiVersion_); } unknownFields.writeTo(output); @@ -440,13 +440,13 @@ public int getSerializedSize() { if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); } - if (!getVerbBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); } - if (!getApiVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, apiVersion_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java index dc158e10..f4833a3d 100644 --- a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java +++ b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java @@ -550,9 +550,9 @@ public com.google.cloud.workflows.v1.Workflow.State getState() { *

    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
-   * following fields of a workflow:
-   * - `source_code`
-   * - `service_account`
+   * following properties of a workflow:
+   * - [Service account][google.cloud.workflows.v1.Workflow.service_account]
+   * - [Workflow code to be executed][google.cloud.workflows.v1.Workflow.source_contents]
    * The format is "000001-a4d", where the first 6 characters define
    * the zero-padded revision ordinal number. They are followed by a hyphen and
    * 3 hexadecimal random characters.
@@ -580,9 +580,9 @@ public java.lang.String getRevisionId() {
    * 
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
-   * following fields of a workflow:
-   * - `source_code`
-   * - `service_account`
+   * following properties of a workflow:
+   * - [Service account][google.cloud.workflows.v1.Workflow.service_account]
+   * - [Workflow code to be executed][google.cloud.workflows.v1.Workflow.source_contents]
    * The format is "000001-a4d", where the first 6 characters define
    * the zero-padded revision ordinal number. They are followed by a hyphen and
    * 3 hexadecimal random characters.
@@ -880,13 +880,13 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    *
    *
    * 
-   * Name of the service account associated with the latest workflow version.
+   * The service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
    * what permissions the workflow has.
-   * Format: projects/{project}/serviceAccounts/{account}
-   * Using `-` as a wildcard for the `{project}` will infer the project from
-   * the account. The `{account}` value can be the `email` address or the
-   * `unique_id` of the service account.
+   * Format: projects/{project}/serviceAccounts/{account} or {account}
+   * Using `-` as a wildcard for the `{project}` or not providing one at all
+   * will infer the project from the account. The `{account}` value can be the
+   * `email` address or the `unique_id` of the service account.
    * If not provided, workflow will use the project's default service account.
    * Modifying this field for an existing workflow results in a new workflow
    * revision.
@@ -912,13 +912,13 @@ public java.lang.String getServiceAccount() {
    *
    *
    * 
-   * Name of the service account associated with the latest workflow version.
+   * The service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
    * what permissions the workflow has.
-   * Format: projects/{project}/serviceAccounts/{account}
-   * Using `-` as a wildcard for the `{project}` will infer the project from
-   * the account. The `{account}` value can be the `email` address or the
-   * `unique_id` of the service account.
+   * Format: projects/{project}/serviceAccounts/{account} or {account}
+   * Using `-` as a wildcard for the `{project}` or not providing one at all
+   * will infer the project from the account. The `{account}` value can be the
+   * `email` address or the `unique_id` of the service account.
    * If not provided, workflow will use the project's default service account.
    * Modifying this field for an existing workflow results in a new workflow
    * revision.
@@ -946,7 +946,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
    *
    *
    * 
-   * Workflow code to be executed. The size limit is 32KB.
+   * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; @@ -960,7 +960,7 @@ public boolean hasSourceContents() { * * *
-   * Workflow code to be executed. The size limit is 32KB.
+   * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; @@ -987,7 +987,7 @@ public java.lang.String getSourceContents() { * * *
-   * Workflow code to be executed. The size limit is 32KB.
+   * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; @@ -1025,16 +1025,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (state_ != com.google.cloud.workflows.v1.Workflow.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } - if (!getRevisionIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, revisionId_); } if (createTime_ != null) { @@ -1048,7 +1048,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); - if (!getServiceAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceAccount_); } if (sourceCodeCase_ == 10) { @@ -1063,16 +1063,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.workflows.v1.Workflow.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } - if (!getRevisionIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, revisionId_); } if (createTime_ != null) { @@ -1094,7 +1094,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); } - if (!getServiceAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccount_); } if (sourceCodeCase_ == 10) { @@ -1902,9 +1902,9 @@ public Builder clearState() { *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
-     * following fields of a workflow:
-     * - `source_code`
-     * - `service_account`
+     * following properties of a workflow:
+     * - [Service account][google.cloud.workflows.v1.Workflow.service_account]
+     * - [Workflow code to be executed][google.cloud.workflows.v1.Workflow.source_contents]
      * The format is "000001-a4d", where the first 6 characters define
      * the zero-padded revision ordinal number. They are followed by a hyphen and
      * 3 hexadecimal random characters.
@@ -1931,9 +1931,9 @@ public java.lang.String getRevisionId() {
      * 
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
-     * following fields of a workflow:
-     * - `source_code`
-     * - `service_account`
+     * following properties of a workflow:
+     * - [Service account][google.cloud.workflows.v1.Workflow.service_account]
+     * - [Workflow code to be executed][google.cloud.workflows.v1.Workflow.source_contents]
      * The format is "000001-a4d", where the first 6 characters define
      * the zero-padded revision ordinal number. They are followed by a hyphen and
      * 3 hexadecimal random characters.
@@ -1960,9 +1960,9 @@ public com.google.protobuf.ByteString getRevisionIdBytes() {
      * 
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
-     * following fields of a workflow:
-     * - `source_code`
-     * - `service_account`
+     * following properties of a workflow:
+     * - [Service account][google.cloud.workflows.v1.Workflow.service_account]
+     * - [Workflow code to be executed][google.cloud.workflows.v1.Workflow.source_contents]
      * The format is "000001-a4d", where the first 6 characters define
      * the zero-padded revision ordinal number. They are followed by a hyphen and
      * 3 hexadecimal random characters.
@@ -1988,9 +1988,9 @@ public Builder setRevisionId(java.lang.String value) {
      * 
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
-     * following fields of a workflow:
-     * - `source_code`
-     * - `service_account`
+     * following properties of a workflow:
+     * - [Service account][google.cloud.workflows.v1.Workflow.service_account]
+     * - [Workflow code to be executed][google.cloud.workflows.v1.Workflow.source_contents]
      * The format is "000001-a4d", where the first 6 characters define
      * the zero-padded revision ordinal number. They are followed by a hyphen and
      * 3 hexadecimal random characters.
@@ -2012,9 +2012,9 @@ public Builder clearRevisionId() {
      * 
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
-     * following fields of a workflow:
-     * - `source_code`
-     * - `service_account`
+     * following properties of a workflow:
+     * - [Service account][google.cloud.workflows.v1.Workflow.service_account]
+     * - [Workflow code to be executed][google.cloud.workflows.v1.Workflow.source_contents]
      * The format is "000001-a4d", where the first 6 characters define
      * the zero-padded revision ordinal number. They are followed by a hyphen and
      * 3 hexadecimal random characters.
@@ -2840,13 +2840,13 @@ public Builder putAllLabels(java.util.Map va
      *
      *
      * 
-     * Name of the service account associated with the latest workflow version.
+     * The service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
      * what permissions the workflow has.
-     * Format: projects/{project}/serviceAccounts/{account}
-     * Using `-` as a wildcard for the `{project}` will infer the project from
-     * the account. The `{account}` value can be the `email` address or the
-     * `unique_id` of the service account.
+     * Format: projects/{project}/serviceAccounts/{account} or {account}
+     * Using `-` as a wildcard for the `{project}` or not providing one at all
+     * will infer the project from the account. The `{account}` value can be the
+     * `email` address or the `unique_id` of the service account.
      * If not provided, workflow will use the project's default service account.
      * Modifying this field for an existing workflow results in a new workflow
      * revision.
@@ -2871,13 +2871,13 @@ public java.lang.String getServiceAccount() {
      *
      *
      * 
-     * Name of the service account associated with the latest workflow version.
+     * The service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
      * what permissions the workflow has.
-     * Format: projects/{project}/serviceAccounts/{account}
-     * Using `-` as a wildcard for the `{project}` will infer the project from
-     * the account. The `{account}` value can be the `email` address or the
-     * `unique_id` of the service account.
+     * Format: projects/{project}/serviceAccounts/{account} or {account}
+     * Using `-` as a wildcard for the `{project}` or not providing one at all
+     * will infer the project from the account. The `{account}` value can be the
+     * `email` address or the `unique_id` of the service account.
      * If not provided, workflow will use the project's default service account.
      * Modifying this field for an existing workflow results in a new workflow
      * revision.
@@ -2902,13 +2902,13 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
      *
      *
      * 
-     * Name of the service account associated with the latest workflow version.
+     * The service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
      * what permissions the workflow has.
-     * Format: projects/{project}/serviceAccounts/{account}
-     * Using `-` as a wildcard for the `{project}` will infer the project from
-     * the account. The `{account}` value can be the `email` address or the
-     * `unique_id` of the service account.
+     * Format: projects/{project}/serviceAccounts/{account} or {account}
+     * Using `-` as a wildcard for the `{project}` or not providing one at all
+     * will infer the project from the account. The `{account}` value can be the
+     * `email` address or the `unique_id` of the service account.
      * If not provided, workflow will use the project's default service account.
      * Modifying this field for an existing workflow results in a new workflow
      * revision.
@@ -2932,13 +2932,13 @@ public Builder setServiceAccount(java.lang.String value) {
      *
      *
      * 
-     * Name of the service account associated with the latest workflow version.
+     * The service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
      * what permissions the workflow has.
-     * Format: projects/{project}/serviceAccounts/{account}
-     * Using `-` as a wildcard for the `{project}` will infer the project from
-     * the account. The `{account}` value can be the `email` address or the
-     * `unique_id` of the service account.
+     * Format: projects/{project}/serviceAccounts/{account} or {account}
+     * Using `-` as a wildcard for the `{project}` or not providing one at all
+     * will infer the project from the account. The `{account}` value can be the
+     * `email` address or the `unique_id` of the service account.
      * If not provided, workflow will use the project's default service account.
      * Modifying this field for an existing workflow results in a new workflow
      * revision.
@@ -2958,13 +2958,13 @@ public Builder clearServiceAccount() {
      *
      *
      * 
-     * Name of the service account associated with the latest workflow version.
+     * The service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
      * what permissions the workflow has.
-     * Format: projects/{project}/serviceAccounts/{account}
-     * Using `-` as a wildcard for the `{project}` will infer the project from
-     * the account. The `{account}` value can be the `email` address or the
-     * `unique_id` of the service account.
+     * Format: projects/{project}/serviceAccounts/{account} or {account}
+     * Using `-` as a wildcard for the `{project}` or not providing one at all
+     * will infer the project from the account. The `{account}` value can be the
+     * `email` address or the `unique_id` of the service account.
      * If not provided, workflow will use the project's default service account.
      * Modifying this field for an existing workflow results in a new workflow
      * revision.
@@ -2990,7 +2990,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Workflow code to be executed. The size limit is 32KB.
+     * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; @@ -3005,7 +3005,7 @@ public boolean hasSourceContents() { * * *
-     * Workflow code to be executed. The size limit is 32KB.
+     * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; @@ -3033,7 +3033,7 @@ public java.lang.String getSourceContents() { * * *
-     * Workflow code to be executed. The size limit is 32KB.
+     * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; @@ -3061,7 +3061,7 @@ public com.google.protobuf.ByteString getSourceContentsBytes() { * * *
-     * Workflow code to be executed. The size limit is 32KB.
+     * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; @@ -3082,7 +3082,7 @@ public Builder setSourceContents(java.lang.String value) { * * *
-     * Workflow code to be executed. The size limit is 32KB.
+     * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; @@ -3101,7 +3101,7 @@ public Builder clearSourceContents() { * * *
-     * Workflow code to be executed. The size limit is 32KB.
+     * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; diff --git a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java index acafeade..d7536b62 100644 --- a/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java +++ b/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java @@ -112,9 +112,9 @@ public interface WorkflowOrBuilder *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
-   * following fields of a workflow:
-   * - `source_code`
-   * - `service_account`
+   * following properties of a workflow:
+   * - [Service account][google.cloud.workflows.v1.Workflow.service_account]
+   * - [Workflow code to be executed][google.cloud.workflows.v1.Workflow.source_contents]
    * The format is "000001-a4d", where the first 6 characters define
    * the zero-padded revision ordinal number. They are followed by a hyphen and
    * 3 hexadecimal random characters.
@@ -131,9 +131,9 @@ public interface WorkflowOrBuilder
    * 
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
-   * following fields of a workflow:
-   * - `source_code`
-   * - `service_account`
+   * following properties of a workflow:
+   * - [Service account][google.cloud.workflows.v1.Workflow.service_account]
+   * - [Workflow code to be executed][google.cloud.workflows.v1.Workflow.source_contents]
    * The format is "000001-a4d", where the first 6 characters define
    * the zero-padded revision ordinal number. They are followed by a hyphen and
    * 3 hexadecimal random characters.
@@ -343,13 +343,13 @@ public interface WorkflowOrBuilder
    *
    *
    * 
-   * Name of the service account associated with the latest workflow version.
+   * The service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
    * what permissions the workflow has.
-   * Format: projects/{project}/serviceAccounts/{account}
-   * Using `-` as a wildcard for the `{project}` will infer the project from
-   * the account. The `{account}` value can be the `email` address or the
-   * `unique_id` of the service account.
+   * Format: projects/{project}/serviceAccounts/{account} or {account}
+   * Using `-` as a wildcard for the `{project}` or not providing one at all
+   * will infer the project from the account. The `{account}` value can be the
+   * `email` address or the `unique_id` of the service account.
    * If not provided, workflow will use the project's default service account.
    * Modifying this field for an existing workflow results in a new workflow
    * revision.
@@ -364,13 +364,13 @@ public interface WorkflowOrBuilder
    *
    *
    * 
-   * Name of the service account associated with the latest workflow version.
+   * The service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
    * what permissions the workflow has.
-   * Format: projects/{project}/serviceAccounts/{account}
-   * Using `-` as a wildcard for the `{project}` will infer the project from
-   * the account. The `{account}` value can be the `email` address or the
-   * `unique_id` of the service account.
+   * Format: projects/{project}/serviceAccounts/{account} or {account}
+   * Using `-` as a wildcard for the `{project}` or not providing one at all
+   * will infer the project from the account. The `{account}` value can be the
+   * `email` address or the `unique_id` of the service account.
    * If not provided, workflow will use the project's default service account.
    * Modifying this field for an existing workflow results in a new workflow
    * revision.
@@ -386,7 +386,7 @@ public interface WorkflowOrBuilder
    *
    *
    * 
-   * Workflow code to be executed. The size limit is 32KB.
+   * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; @@ -398,7 +398,7 @@ public interface WorkflowOrBuilder * * *
-   * Workflow code to be executed. The size limit is 32KB.
+   * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; @@ -410,7 +410,7 @@ public interface WorkflowOrBuilder * * *
-   * Workflow code to be executed. The size limit is 32KB.
+   * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; diff --git a/proto-google-cloud-workflows-v1/src/main/proto/google/cloud/workflows/v1/workflows.proto b/proto-google-cloud-workflows-v1/src/main/proto/google/cloud/workflows/v1/workflows.proto index 7e46c2f6..0b14cb30 100644 --- a/proto-google-cloud-workflows-v1/src/main/proto/google/cloud/workflows/v1/workflows.proto +++ b/proto-google-cloud-workflows-v1/src/main/proto/google/cloud/workflows/v1/workflows.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -130,9 +130,11 @@ message Workflow { // Output only. The revision of the workflow. // A new revision of a workflow is created as a result of updating the - // following fields of a workflow: - // - `source_code` - // - `service_account` + // following properties of a workflow: + // + // - [Service account][google.cloud.workflows.v1.Workflow.service_account] + // - [Workflow code to be executed][google.cloud.workflows.v1.Workflow.source_contents] + // // The format is "000001-a4d", where the first 6 characters define // the zero-padded revision ordinal number. They are followed by a hyphen and // 3 hexadecimal random characters. @@ -155,14 +157,14 @@ message Workflow { // International characters are allowed. map labels = 8; - // Name of the service account associated with the latest workflow version. + // The service account associated with the latest workflow version. // This service account represents the identity of the workflow and determines // what permissions the workflow has. - // Format: projects/{project}/serviceAccounts/{account} + // Format: projects/{project}/serviceAccounts/{account} or {account} // - // Using `-` as a wildcard for the `{project}` will infer the project from - // the account. The `{account}` value can be the `email` address or the - // `unique_id` of the service account. + // Using `-` as a wildcard for the `{project}` or not providing one at all + // will infer the project from the account. The `{account}` value can be the + // `email` address or the `unique_id` of the service account. // // If not provided, workflow will use the project's default service account. // Modifying this field for an existing workflow results in a new workflow @@ -173,7 +175,7 @@ message Workflow { // Modifying this field for an existing workflow results in a new workflow // revision. oneof source_code { - // Workflow code to be executed. The size limit is 32KB. + // Workflow code to be executed. The size limit is 128KB. string source_contents = 10; } } diff --git a/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java b/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java index 13dff27a..84e8334e 100644 --- a/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java +++ b/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java @@ -321,13 +321,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (workflow_ != null) { output.writeMessage(2, getWorkflow()); } - if (!getWorkflowIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflowId_); } unknownFields.writeTo(output); @@ -339,13 +339,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (workflow_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkflow()); } - if (!getWorkflowIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java b/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java index e5f0d9d4..a37ce019 100644 --- a/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java +++ b/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java b/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java index c98846ec..de148dd5 100644 --- a/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java +++ b/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java @@ -181,7 +181,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -193,7 +193,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java b/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java index b9f0b29a..c5e0533c 100644 --- a/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java +++ b/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java @@ -391,19 +391,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } unknownFields.writeTo(output); @@ -415,19 +415,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java b/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java index ed00e8eb..22ef10db 100644 --- a/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java +++ b/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java @@ -341,7 +341,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < workflows_.size(); i++) { output.writeMessage(1, workflows_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachable_.size(); i++) { @@ -359,7 +359,7 @@ public int getSerializedSize() { for (int i = 0; i < workflows_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workflows_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } { diff --git a/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java b/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java index 4ea066ee..fe5022d0 100644 --- a/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java +++ b/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java @@ -416,13 +416,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(2, getEndTime()); } - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); } - if (!getVerbBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); } - if (!getApiVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, apiVersion_); } unknownFields.writeTo(output); @@ -440,13 +440,13 @@ public int getSerializedSize() { if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); } - if (!getVerbBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); } - if (!getApiVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, apiVersion_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java b/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java index 329cc7c3..9b45f704 100644 --- a/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java +++ b/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java @@ -1025,16 +1025,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (state_ != com.google.cloud.workflows.v1beta.Workflow.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } - if (!getRevisionIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, revisionId_); } if (createTime_ != null) { @@ -1048,7 +1048,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); - if (!getServiceAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceAccount_); } if (sourceCodeCase_ == 10) { @@ -1063,16 +1063,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.workflows.v1beta.Workflow.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } - if (!getRevisionIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, revisionId_); } if (createTime_ != null) { @@ -1094,7 +1094,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); } - if (!getServiceAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccount_); } if (sourceCodeCase_ == 10) {