diff --git a/generation_config.yaml b/generation_config.yaml
index a4e2da75e020..57935857f193 100644
--- a/generation_config.yaml
+++ b/generation_config.yaml
@@ -1,5 +1,5 @@
-googleapis_commitish: 3aa565f453bae9dcef06685a6f84b6e48ccdf335
-libraries_bom_version: 26.82.0
+googleapis_commitish: 82539ba8d5fcc72cb2cfe55e4a8d95b946d0f162
+libraries_bom_version: 26.83.0
is_monorepo: true
libraries:
- api_shortname: accessapproval
diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md
index 496bd80cbb12..eb58fe6f1660 100644
--- a/java-accessapproval/README.md
+++ b/java-accessapproval/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
+ * User-definable feature flags for assessment tasks. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.AssessmentFeatureHandle} + */ +@com.google.protobuf.Generated +public final class AssessmentFeatureHandle extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.AssessmentFeatureHandle) + AssessmentFeatureHandleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AssessmentFeatureHandle"); + } + + // Use AssessmentFeatureHandle.newBuilder() to construct. + private AssessmentFeatureHandle(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AssessmentFeatureHandle() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.AssessmentTaskProto + .internal_static_google_cloud_bigquery_migration_v2_AssessmentFeatureHandle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.AssessmentTaskProto + .internal_static_google_cloud_bigquery_migration_v2_AssessmentFeatureHandle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle.class, + com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle.Builder.class); + } + + private int bitField0_; + public static final int ADD_SHAREABLE_DATASET_FIELD_NUMBER = 1; + private boolean addShareableDataset_ = false; + + /** + * + * + *
+ * Optional. Whether to create a dataset containing non-PII data in addition + * to the output dataset. + *+ * + *
optional bool add_shareable_dataset = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the addShareableDataset field is set.
+ */
+ @java.lang.Override
+ public boolean hasAddShareableDataset() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Whether to create a dataset containing non-PII data in addition + * to the output dataset. + *+ * + *
optional bool add_shareable_dataset = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The addShareableDataset.
+ */
+ @java.lang.Override
+ public boolean getAddShareableDataset() {
+ return addShareableDataset_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeBool(1, addShareableDataset_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, addShareableDataset_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle other =
+ (com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle) obj;
+
+ if (hasAddShareableDataset() != other.hasAddShareableDataset()) return false;
+ if (hasAddShareableDataset()) {
+ if (getAddShareableDataset() != other.getAddShareableDataset()) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasAddShareableDataset()) {
+ hash = (37 * hash) + ADD_SHAREABLE_DATASET_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAddShareableDataset());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * User-definable feature flags for assessment tasks. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.AssessmentFeatureHandle} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. Whether to create a dataset containing non-PII data in addition + * to the output dataset. + *+ * + *
optional bool add_shareable_dataset = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the addShareableDataset field is set.
+ */
+ @java.lang.Override
+ public boolean hasAddShareableDataset() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Whether to create a dataset containing non-PII data in addition + * to the output dataset. + *+ * + *
optional bool add_shareable_dataset = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The addShareableDataset.
+ */
+ @java.lang.Override
+ public boolean getAddShareableDataset() {
+ return addShareableDataset_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Whether to create a dataset containing non-PII data in addition + * to the output dataset. + *+ * + *
optional bool add_shareable_dataset = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The addShareableDataset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAddShareableDataset(boolean value) {
+
+ addShareableDataset_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Whether to create a dataset containing non-PII data in addition + * to the output dataset. + *+ * + *
optional bool add_shareable_dataset = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAddShareableDataset() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ addShareableDataset_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.AssessmentFeatureHandle)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.AssessmentFeatureHandle)
+ private static final com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle();
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. Whether to create a dataset containing non-PII data in addition + * to the output dataset. + *+ * + *
optional bool add_shareable_dataset = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the addShareableDataset field is set.
+ */
+ boolean hasAddShareableDataset();
+
+ /**
+ *
+ *
+ * + * Optional. Whether to create a dataset containing non-PII data in addition + * to the output dataset. + *+ * + *
optional bool add_shareable_dataset = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The addShareableDataset.
+ */
+ boolean getAddShareableDataset();
+}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AssessmentTaskDetails.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AssessmentTaskDetails.java
new file mode 100644
index 000000000000..4cf54d24bfbe
--- /dev/null
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AssessmentTaskDetails.java
@@ -0,0 +1,1507 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * 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
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/bigquery/migration/v2/assessment_task.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.bigquery.migration.v2;
+
+/**
+ *
+ *
+ * + * Assessment task config. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.AssessmentTaskDetails} + */ +@com.google.protobuf.Generated +public final class AssessmentTaskDetails extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.AssessmentTaskDetails) + AssessmentTaskDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AssessmentTaskDetails"); + } + + // Use AssessmentTaskDetails.newBuilder() to construct. + private AssessmentTaskDetails(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AssessmentTaskDetails() { + inputPath_ = ""; + outputDataset_ = ""; + querylogsPath_ = ""; + dataSource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.AssessmentTaskProto + .internal_static_google_cloud_bigquery_migration_v2_AssessmentTaskDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.AssessmentTaskProto + .internal_static_google_cloud_bigquery_migration_v2_AssessmentTaskDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails.class, + com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails.Builder.class); + } + + private int bitField0_; + public static final int INPUT_PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputPath_ = ""; + + /** + * + * + *
+ * Required. The Cloud Storage path for assessment input files. + *+ * + *
string input_path = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The inputPath.
+ */
+ @java.lang.Override
+ public java.lang.String getInputPath() {
+ java.lang.Object ref = inputPath_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ inputPath_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The Cloud Storage path for assessment input files. + *+ * + *
string input_path = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for inputPath.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInputPathBytes() {
+ java.lang.Object ref = inputPath_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int OUTPUT_DATASET_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object outputDataset_ = "";
+
+ /**
+ *
+ *
+ * + * Required. The BigQuery dataset for output. + *+ * + *
string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The outputDataset.
+ */
+ @java.lang.Override
+ public java.lang.String getOutputDataset() {
+ java.lang.Object ref = outputDataset_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ outputDataset_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The BigQuery dataset for output. + *+ * + *
string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for outputDataset.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOutputDatasetBytes() {
+ java.lang.Object ref = outputDataset_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputDataset_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int QUERYLOGS_PATH_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object querylogsPath_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. An optional Cloud Storage path to write the query logs (which is + * then used as an input path on the translation task) + *+ * + *
string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The querylogsPath.
+ */
+ @java.lang.Override
+ public java.lang.String getQuerylogsPath() {
+ java.lang.Object ref = querylogsPath_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ querylogsPath_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An optional Cloud Storage path to write the query logs (which is + * then used as an input path on the translation task) + *+ * + *
string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for querylogsPath.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getQuerylogsPathBytes() {
+ java.lang.Object ref = querylogsPath_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ querylogsPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATA_SOURCE_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object dataSource_ = "";
+
+ /**
+ *
+ *
+ * + * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT) + * from which the input data is extracted. + *+ * + *
string data_source = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The dataSource.
+ */
+ @java.lang.Override
+ public java.lang.String getDataSource() {
+ java.lang.Object ref = dataSource_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dataSource_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT) + * from which the input data is extracted. + *+ * + *
string data_source = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for dataSource.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDataSourceBytes() {
+ java.lang.Object ref = dataSource_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ dataSource_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FEATURE_HANDLE_FIELD_NUMBER = 6;
+ private com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle featureHandle_;
+
+ /**
+ *
+ *
+ * + * Optional. A collection of additional feature flags for this assessment. + *+ * + *
+ * optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the featureHandle field is set.
+ */
+ @java.lang.Override
+ public boolean hasFeatureHandle() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of additional feature flags for this assessment. + *+ * + *
+ * optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The featureHandle.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle getFeatureHandle() {
+ return featureHandle_ == null
+ ? com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle.getDefaultInstance()
+ : featureHandle_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of additional feature flags for this assessment. + *+ * + *
+ * optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandleOrBuilder
+ getFeatureHandleOrBuilder() {
+ return featureHandle_ == null
+ ? com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle.getDefaultInstance()
+ : featureHandle_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inputPath_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, inputPath_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputDataset_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, outputDataset_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(querylogsPath_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, querylogsPath_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataSource_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, dataSource_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(6, getFeatureHandle());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inputPath_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, inputPath_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputDataset_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, outputDataset_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(querylogsPath_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, querylogsPath_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataSource_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, dataSource_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getFeatureHandle());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails other =
+ (com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails) obj;
+
+ if (!getInputPath().equals(other.getInputPath())) return false;
+ if (!getOutputDataset().equals(other.getOutputDataset())) return false;
+ if (!getQuerylogsPath().equals(other.getQuerylogsPath())) return false;
+ if (!getDataSource().equals(other.getDataSource())) return false;
+ if (hasFeatureHandle() != other.hasFeatureHandle()) return false;
+ if (hasFeatureHandle()) {
+ if (!getFeatureHandle().equals(other.getFeatureHandle())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + INPUT_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getInputPath().hashCode();
+ hash = (37 * hash) + OUTPUT_DATASET_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputDataset().hashCode();
+ hash = (37 * hash) + QUERYLOGS_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getQuerylogsPath().hashCode();
+ hash = (37 * hash) + DATA_SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getDataSource().hashCode();
+ if (hasFeatureHandle()) {
+ hash = (37 * hash) + FEATURE_HANDLE_FIELD_NUMBER;
+ hash = (53 * hash) + getFeatureHandle().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Assessment task config. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.AssessmentTaskDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The Cloud Storage path for assessment input files. + *+ * + *
string input_path = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The inputPath.
+ */
+ public java.lang.String getInputPath() {
+ java.lang.Object ref = inputPath_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ inputPath_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The Cloud Storage path for assessment input files. + *+ * + *
string input_path = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for inputPath.
+ */
+ public com.google.protobuf.ByteString getInputPathBytes() {
+ java.lang.Object ref = inputPath_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The Cloud Storage path for assessment input files. + *+ * + *
string input_path = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The inputPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInputPath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ inputPath_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The Cloud Storage path for assessment input files. + *+ * + *
string input_path = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInputPath() {
+ inputPath_ = getDefaultInstance().getInputPath();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The Cloud Storage path for assessment input files. + *+ * + *
string input_path = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for inputPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInputPathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ inputPath_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object outputDataset_ = "";
+
+ /**
+ *
+ *
+ * + * Required. The BigQuery dataset for output. + *+ * + *
string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The outputDataset.
+ */
+ public java.lang.String getOutputDataset() {
+ java.lang.Object ref = outputDataset_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ outputDataset_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The BigQuery dataset for output. + *+ * + *
string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for outputDataset.
+ */
+ public com.google.protobuf.ByteString getOutputDatasetBytes() {
+ java.lang.Object ref = outputDataset_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputDataset_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The BigQuery dataset for output. + *+ * + *
string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The outputDataset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputDataset(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ outputDataset_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The BigQuery dataset for output. + *+ * + *
string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOutputDataset() {
+ outputDataset_ = getDefaultInstance().getOutputDataset();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The BigQuery dataset for output. + *+ * + *
string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for outputDataset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputDatasetBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ outputDataset_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object querylogsPath_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. An optional Cloud Storage path to write the query logs (which is + * then used as an input path on the translation task) + *+ * + *
string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The querylogsPath.
+ */
+ public java.lang.String getQuerylogsPath() {
+ java.lang.Object ref = querylogsPath_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ querylogsPath_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An optional Cloud Storage path to write the query logs (which is + * then used as an input path on the translation task) + *+ * + *
string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for querylogsPath.
+ */
+ public com.google.protobuf.ByteString getQuerylogsPathBytes() {
+ java.lang.Object ref = querylogsPath_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ querylogsPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An optional Cloud Storage path to write the query logs (which is + * then used as an input path on the translation task) + *+ * + *
string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The querylogsPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQuerylogsPath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ querylogsPath_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An optional Cloud Storage path to write the query logs (which is + * then used as an input path on the translation task) + *+ * + *
string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQuerylogsPath() {
+ querylogsPath_ = getDefaultInstance().getQuerylogsPath();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An optional Cloud Storage path to write the query logs (which is + * then used as an input path on the translation task) + *+ * + *
string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for querylogsPath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQuerylogsPathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ querylogsPath_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object dataSource_ = "";
+
+ /**
+ *
+ *
+ * + * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT) + * from which the input data is extracted. + *+ * + *
string data_source = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The dataSource.
+ */
+ public java.lang.String getDataSource() {
+ java.lang.Object ref = dataSource_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dataSource_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT) + * from which the input data is extracted. + *+ * + *
string data_source = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for dataSource.
+ */
+ public com.google.protobuf.ByteString getDataSourceBytes() {
+ java.lang.Object ref = dataSource_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ dataSource_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT) + * from which the input data is extracted. + *+ * + *
string data_source = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The dataSource to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDataSource(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataSource_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT) + * from which the input data is extracted. + *+ * + *
string data_source = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDataSource() {
+ dataSource_ = getDefaultInstance().getDataSource();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT) + * from which the input data is extracted. + *+ * + *
string data_source = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for dataSource to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDataSourceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ dataSource_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle featureHandle_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle,
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle.Builder,
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandleOrBuilder>
+ featureHandleBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. A collection of additional feature flags for this assessment. + *+ * + *
+ * optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the featureHandle field is set.
+ */
+ public boolean hasFeatureHandle() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of additional feature flags for this assessment. + *+ * + *
+ * optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The featureHandle.
+ */
+ public com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle getFeatureHandle() {
+ if (featureHandleBuilder_ == null) {
+ return featureHandle_ == null
+ ? com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle.getDefaultInstance()
+ : featureHandle_;
+ } else {
+ return featureHandleBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of additional feature flags for this assessment. + *+ * + *
+ * optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setFeatureHandle(
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle value) {
+ if (featureHandleBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ featureHandle_ = value;
+ } else {
+ featureHandleBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of additional feature flags for this assessment. + *+ * + *
+ * optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setFeatureHandle(
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle.Builder builderForValue) {
+ if (featureHandleBuilder_ == null) {
+ featureHandle_ = builderForValue.build();
+ } else {
+ featureHandleBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of additional feature flags for this assessment. + *+ * + *
+ * optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeFeatureHandle(
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle value) {
+ if (featureHandleBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && featureHandle_ != null
+ && featureHandle_
+ != com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle
+ .getDefaultInstance()) {
+ getFeatureHandleBuilder().mergeFrom(value);
+ } else {
+ featureHandle_ = value;
+ }
+ } else {
+ featureHandleBuilder_.mergeFrom(value);
+ }
+ if (featureHandle_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of additional feature flags for this assessment. + *+ * + *
+ * optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearFeatureHandle() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ featureHandle_ = null;
+ if (featureHandleBuilder_ != null) {
+ featureHandleBuilder_.dispose();
+ featureHandleBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of additional feature flags for this assessment. + *+ * + *
+ * optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle.Builder
+ getFeatureHandleBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return internalGetFeatureHandleFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of additional feature flags for this assessment. + *+ * + *
+ * optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandleOrBuilder
+ getFeatureHandleOrBuilder() {
+ if (featureHandleBuilder_ != null) {
+ return featureHandleBuilder_.getMessageOrBuilder();
+ } else {
+ return featureHandle_ == null
+ ? com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle.getDefaultInstance()
+ : featureHandle_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of additional feature flags for this assessment. + *+ * + *
+ * optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle,
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle.Builder,
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandleOrBuilder>
+ internalGetFeatureHandleFieldBuilder() {
+ if (featureHandleBuilder_ == null) {
+ featureHandleBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle,
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle.Builder,
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandleOrBuilder>(
+ getFeatureHandle(), getParentForChildren(), isClean());
+ featureHandle_ = null;
+ }
+ return featureHandleBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.AssessmentTaskDetails)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.AssessmentTaskDetails)
+ private static final com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails();
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The Cloud Storage path for assessment input files. + *+ * + *
string input_path = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The inputPath.
+ */
+ java.lang.String getInputPath();
+
+ /**
+ *
+ *
+ * + * Required. The Cloud Storage path for assessment input files. + *+ * + *
string input_path = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for inputPath.
+ */
+ com.google.protobuf.ByteString getInputPathBytes();
+
+ /**
+ *
+ *
+ * + * Required. The BigQuery dataset for output. + *+ * + *
string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The outputDataset.
+ */
+ java.lang.String getOutputDataset();
+
+ /**
+ *
+ *
+ * + * Required. The BigQuery dataset for output. + *+ * + *
string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for outputDataset.
+ */
+ com.google.protobuf.ByteString getOutputDatasetBytes();
+
+ /**
+ *
+ *
+ * + * Optional. An optional Cloud Storage path to write the query logs (which is + * then used as an input path on the translation task) + *+ * + *
string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The querylogsPath.
+ */
+ java.lang.String getQuerylogsPath();
+
+ /**
+ *
+ *
+ * + * Optional. An optional Cloud Storage path to write the query logs (which is + * then used as an input path on the translation task) + *+ * + *
string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for querylogsPath.
+ */
+ com.google.protobuf.ByteString getQuerylogsPathBytes();
+
+ /**
+ *
+ *
+ * + * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT) + * from which the input data is extracted. + *+ * + *
string data_source = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The dataSource.
+ */
+ java.lang.String getDataSource();
+
+ /**
+ *
+ *
+ * + * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT) + * from which the input data is extracted. + *+ * + *
string data_source = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for dataSource.
+ */
+ com.google.protobuf.ByteString getDataSourceBytes();
+
+ /**
+ *
+ *
+ * + * Optional. A collection of additional feature flags for this assessment. + *+ * + *
+ * optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the featureHandle field is set.
+ */
+ boolean hasFeatureHandle();
+
+ /**
+ *
+ *
+ * + * Optional. A collection of additional feature flags for this assessment. + *+ * + *
+ * optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The featureHandle.
+ */
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandle getFeatureHandle();
+
+ /**
+ *
+ *
+ * + * Optional. A collection of additional feature flags for this assessment. + *+ * + *
+ * optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.bigquery.migration.v2.AssessmentFeatureHandleOrBuilder
+ getFeatureHandleOrBuilder();
+}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AssessmentTaskProto.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AssessmentTaskProto.java
new file mode 100644
index 000000000000..201a7cd427c6
--- /dev/null
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AssessmentTaskProto.java
@@ -0,0 +1,111 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * 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
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/bigquery/migration/v2/assessment_task.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.bigquery.migration.v2;
+
+@com.google.protobuf.Generated
+public final class AssessmentTaskProto extends com.google.protobuf.GeneratedFile {
+ private AssessmentTaskProto() {}
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "AssessmentTaskProto");
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_migration_v2_AssessmentTaskDetails_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_bigquery_migration_v2_AssessmentTaskDetails_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_migration_v2_AssessmentFeatureHandle_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_bigquery_migration_v2_AssessmentFeatureHandle_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n"
+ + "8google/cloud/bigquery/migration/v2/assessment_task.proto\022\"google.cloud.bigquer"
+ + "y.migration.v2\032\037google/api/field_behavior.proto\"\366\001\n"
+ + "\025AssessmentTaskDetails\022\027\n\n"
+ + "input_path\030\001 \001(\tB\003\340A\002\022\033\n"
+ + "\016output_dataset\030\002 \001(\tB\003\340A\002\022\033\n"
+ + "\016querylogs_path\030\003 \001(\tB\003\340A\001\022\030\n"
+ + "\013data_source\030\004 \001(\tB\003\340A\002\022]\n"
+ + "\016feature_handle\030\006"
+ + " \001(\0132;.google.cloud.bigquery.migration.v2.AssessmentFeatureHandleB\003\340A\001H\000\210\001\001B\021\n"
+ + "\017_feature_handle\"\\\n"
+ + "\027AssessmentFeatureHandle\022\'\n"
+ + "\025add_shareable_dataset\030\001 \001(\010B\003\340A\001H\000\210\001\001B\030\n"
+ + "\026_add_shareable_datasetB\317\001\n"
+ + "&com.google.cloud.bigquery.migration.v2B\023Asses"
+ + "smentTaskProtoP\001ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migra"
+ + "tionpb\252\002\"Google.Cloud.BigQuery.Migration"
+ + ".V2\312\002\"Google\\Cloud\\BigQuery\\Migration\\V2b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ });
+ internal_static_google_cloud_bigquery_migration_v2_AssessmentTaskDetails_descriptor =
+ getDescriptor().getMessageType(0);
+ internal_static_google_cloud_bigquery_migration_v2_AssessmentTaskDetails_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_migration_v2_AssessmentTaskDetails_descriptor,
+ new java.lang.String[] {
+ "InputPath", "OutputDataset", "QuerylogsPath", "DataSource", "FeatureHandle",
+ });
+ internal_static_google_cloud_bigquery_migration_v2_AssessmentFeatureHandle_descriptor =
+ getDescriptor().getMessageType(1);
+ internal_static_google_cloud_bigquery_migration_v2_AssessmentFeatureHandle_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_migration_v2_AssessmentFeatureHandle_descriptor,
+ new java.lang.String[] {
+ "AddShareableDataset",
+ });
+ descriptor.resolveAllFeaturesImmutable();
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java
index 2ab801e0a4c2..2375cc9d6eeb 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java
@@ -76,54 +76,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n"
+ ";google/cloud/bigquery/migration/v2/migration_entities.proto\022\"google.cloud.bigq"
+ "uery.migration.v2\032\037google/api/field_beha"
- + "vior.proto\032\031google/api/resource.proto\032@g"
- + "oogle/cloud/bigquery/migration/v2/migration_error_details.proto\032:google/cloud/bi"
- + "gquery/migration/v2/migration_metrics.proto\032;google/cloud/bigquery/migration/v2/"
- + "translation_config.proto\032int32 resource_error_count = 13;
+ * int32 resource_error_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The resourceErrorCount.
*/
@@ -752,10 +752,11 @@ public int getResourceErrorCount() {
*
*
*
- * Time when the subtask was created.
+ * Output only. Time when the subtask was created.
*
*
- * .google.protobuf.Timestamp create_time = 7;
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the createTime field is set.
*/
@@ -768,10 +769,11 @@ public boolean hasCreateTime() {
*
*
*
- * Time when the subtask was created.
+ * Output only. Time when the subtask was created.
*
*
- * .google.protobuf.Timestamp create_time = 7;
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The createTime.
*/
@@ -784,10 +786,11 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * Time when the subtask was created.
+ * Output only. Time when the subtask was created.
*
*
- * .google.protobuf.Timestamp create_time = 7;
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
@@ -801,10 +804,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * Time when the subtask was last updated.
+ * Output only. Time when the subtask was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 8;
+ *
+ * .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the lastUpdateTime field is set.
*/
@@ -817,10 +822,12 @@ public boolean hasLastUpdateTime() {
*
*
*
- * Time when the subtask was last updated.
+ * Output only. Time when the subtask was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 8;
+ *
+ * .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The lastUpdateTime.
*/
@@ -835,10 +842,12 @@ public com.google.protobuf.Timestamp getLastUpdateTime() {
*
*
*
- * Time when the subtask was last updated.
+ * Output only. Time when the subtask was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 8;
+ *
+ * .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
@@ -856,10 +865,12 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public java.util.List
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public java.util.List extends com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder>
@@ -885,10 +898,12 @@ public java.util.List
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public int getMetricsCount() {
@@ -899,10 +914,12 @@ public int getMetricsCount() {
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index) {
@@ -913,10 +930,12 @@ public com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index) {
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBuilder(int index) {
@@ -2758,13 +2777,13 @@ public Builder removeResourceErrorDetails(int index) {
*
*
*
- * The number or resources with errors. Note: This is not the total
- * number of errors as each resource can have more than one error.
- * This is used to indicate truncation by having a `resource_error_count`
- * that is higher than the size of `resource_error_details`.
+ * Output only. The number or resources with errors. Note: This is not the
+ * total number of errors as each resource can have more than one error. This
+ * is used to indicate truncation by having a `resource_error_count` that is
+ * higher than the size of `resource_error_details`.
*
*
- * int32 resource_error_count = 13;
+ * int32 resource_error_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The resourceErrorCount.
*/
@@ -2777,13 +2796,13 @@ public int getResourceErrorCount() {
*
*
*
- * The number or resources with errors. Note: This is not the total
- * number of errors as each resource can have more than one error.
- * This is used to indicate truncation by having a `resource_error_count`
- * that is higher than the size of `resource_error_details`.
+ * Output only. The number or resources with errors. Note: This is not the
+ * total number of errors as each resource can have more than one error. This
+ * is used to indicate truncation by having a `resource_error_count` that is
+ * higher than the size of `resource_error_details`.
*
*
- * int32 resource_error_count = 13;
+ * int32 resource_error_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The resourceErrorCount to set.
* @return This builder for chaining.
@@ -2800,13 +2819,13 @@ public Builder setResourceErrorCount(int value) {
*
*
*
- * The number or resources with errors. Note: This is not the total
- * number of errors as each resource can have more than one error.
- * This is used to indicate truncation by having a `resource_error_count`
- * that is higher than the size of `resource_error_details`.
+ * Output only. The number or resources with errors. Note: This is not the
+ * total number of errors as each resource can have more than one error. This
+ * is used to indicate truncation by having a `resource_error_count` that is
+ * higher than the size of `resource_error_details`.
*
*
- * int32 resource_error_count = 13;
+ * int32 resource_error_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
@@ -2828,10 +2847,12 @@ public Builder clearResourceErrorCount() {
*
*
*
- * Time when the subtask was created.
+ * Output only. Time when the subtask was created.
*
*
- * .google.protobuf.Timestamp create_time = 7;
+ *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the createTime field is set.
*/
@@ -2843,10 +2864,12 @@ public boolean hasCreateTime() {
*
*
*
- * Time when the subtask was created.
+ * Output only. Time when the subtask was created.
*
*
- * .google.protobuf.Timestamp create_time = 7;
+ *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The createTime.
*/
@@ -2864,10 +2887,12 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * Time when the subtask was created.
+ * Output only. Time when the subtask was created.
*
*
- * .google.protobuf.Timestamp create_time = 7;
+ *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
@@ -2887,10 +2912,12 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Time when the subtask was created.
+ * Output only. Time when the subtask was created.
*
*
- * .google.protobuf.Timestamp create_time = 7;
+ *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
@@ -2907,10 +2934,12 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * Time when the subtask was created.
+ * Output only. Time when the subtask was created.
*
*
- * .google.protobuf.Timestamp create_time = 7;
+ *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
@@ -2935,10 +2964,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Time when the subtask was created.
+ * Output only. Time when the subtask was created.
*
*
- * .google.protobuf.Timestamp create_time = 7;
+ *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000080);
@@ -2955,10 +2986,12 @@ public Builder clearCreateTime() {
*
*
*
- * Time when the subtask was created.
+ * Output only. Time when the subtask was created.
*
*
- * .google.protobuf.Timestamp create_time = 7;
+ *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000080;
@@ -2970,10 +3003,12 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
*
*
*
- * Time when the subtask was created.
+ * Output only. Time when the subtask was created.
*
*
- * .google.protobuf.Timestamp create_time = 7;
+ *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
@@ -2989,10 +3024,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * Time when the subtask was created.
+ * Output only. Time when the subtask was created.
*
*
- * .google.protobuf.Timestamp create_time = 7;
+ *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp,
@@ -3022,10 +3059,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * Time when the subtask was last updated.
+ * Output only. Time when the subtask was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 8;
+ *
+ * .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the lastUpdateTime field is set.
*/
@@ -3037,10 +3076,12 @@ public boolean hasLastUpdateTime() {
*
*
*
- * Time when the subtask was last updated.
+ * Output only. Time when the subtask was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 8;
+ *
+ * .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The lastUpdateTime.
*/
@@ -3058,10 +3099,12 @@ public com.google.protobuf.Timestamp getLastUpdateTime() {
*
*
*
- * Time when the subtask was last updated.
+ * Output only. Time when the subtask was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 8;
+ *
+ * .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) {
if (lastUpdateTimeBuilder_ == null) {
@@ -3081,10 +3124,12 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Time when the subtask was last updated.
+ * Output only. Time when the subtask was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 8;
+ *
+ * .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastUpdateTimeBuilder_ == null) {
@@ -3101,10 +3146,12 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo
*
*
*
- * Time when the subtask was last updated.
+ * Output only. Time when the subtask was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 8;
+ *
+ * .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) {
if (lastUpdateTimeBuilder_ == null) {
@@ -3129,10 +3176,12 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Time when the subtask was last updated.
+ * Output only. Time when the subtask was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 8;
+ *
+ * .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder clearLastUpdateTime() {
bitField0_ = (bitField0_ & ~0x00000100);
@@ -3149,10 +3198,12 @@ public Builder clearLastUpdateTime() {
*
*
*
- * Time when the subtask was last updated.
+ * Output only. Time when the subtask was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 8;
+ *
+ * .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() {
bitField0_ |= 0x00000100;
@@ -3164,10 +3215,12 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() {
*
*
*
- * Time when the subtask was last updated.
+ * Output only. Time when the subtask was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 8;
+ *
+ * .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
if (lastUpdateTimeBuilder_ != null) {
@@ -3183,10 +3236,12 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
*
*
*
- * Time when the subtask was last updated.
+ * Output only. Time when the subtask was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 8;
+ *
+ * .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp,
@@ -3226,10 +3281,12 @@ private void ensureMetricsIsMutable() {
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public java.util.List
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public int getMetricsCount() {
if (metricsBuilder_ == null) {
@@ -3260,10 +3319,12 @@ public int getMetricsCount() {
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index) {
if (metricsBuilder_ == null) {
@@ -3277,10 +3338,12 @@ public com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index) {
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setMetrics(int index, com.google.cloud.bigquery.migration.v2.TimeSeries value) {
if (metricsBuilder_ == null) {
@@ -3300,10 +3363,12 @@ public Builder setMetrics(int index, com.google.cloud.bigquery.migration.v2.Time
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setMetrics(
int index, com.google.cloud.bigquery.migration.v2.TimeSeries.Builder builderForValue) {
@@ -3321,10 +3386,12 @@ public Builder setMetrics(
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder addMetrics(com.google.cloud.bigquery.migration.v2.TimeSeries value) {
if (metricsBuilder_ == null) {
@@ -3344,10 +3411,12 @@ public Builder addMetrics(com.google.cloud.bigquery.migration.v2.TimeSeries valu
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder addMetrics(int index, com.google.cloud.bigquery.migration.v2.TimeSeries value) {
if (metricsBuilder_ == null) {
@@ -3367,10 +3436,12 @@ public Builder addMetrics(int index, com.google.cloud.bigquery.migration.v2.Time
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder addMetrics(
com.google.cloud.bigquery.migration.v2.TimeSeries.Builder builderForValue) {
@@ -3388,10 +3459,12 @@ public Builder addMetrics(
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder addMetrics(
int index, com.google.cloud.bigquery.migration.v2.TimeSeries.Builder builderForValue) {
@@ -3409,10 +3482,12 @@ public Builder addMetrics(
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder addAllMetrics(
java.lang.Iterable extends com.google.cloud.bigquery.migration.v2.TimeSeries> values) {
@@ -3430,10 +3505,12 @@ public Builder addAllMetrics(
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder clearMetrics() {
if (metricsBuilder_ == null) {
@@ -3450,10 +3527,12 @@ public Builder clearMetrics() {
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder removeMetrics(int index) {
if (metricsBuilder_ == null) {
@@ -3470,10 +3549,12 @@ public Builder removeMetrics(int index) {
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder getMetricsBuilder(int index) {
return internalGetMetricsFieldBuilder().getBuilder(index);
@@ -3483,10 +3564,12 @@ public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder getMetricsBuild
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBuilder(
int index) {
@@ -3501,10 +3584,12 @@ public com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBu
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public java.util.List extends com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder>
getMetricsOrBuilderList() {
@@ -3519,10 +3604,12 @@ public com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBu
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder addMetricsBuilder() {
return internalGetMetricsFieldBuilder()
@@ -3533,10 +3620,12 @@ public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder addMetricsBuild
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder addMetricsBuilder(int index) {
return internalGetMetricsFieldBuilder()
@@ -3548,10 +3637,12 @@ public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder addMetricsBuild
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public java.util.List
- * The number or resources with errors. Note: This is not the total
- * number of errors as each resource can have more than one error.
- * This is used to indicate truncation by having a `resource_error_count`
- * that is higher than the size of `resource_error_details`.
+ * Output only. The number or resources with errors. Note: This is not the
+ * total number of errors as each resource can have more than one error. This
+ * is used to indicate truncation by having a `resource_error_count` that is
+ * higher than the size of `resource_error_details`.
*
*
- * int32 resource_error_count = 13;
+ * int32 resource_error_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The resourceErrorCount.
*/
@@ -291,10 +291,11 @@ public interface MigrationSubtaskOrBuilder
*
*
*
- * Time when the subtask was created.
+ * Output only. Time when the subtask was created.
*
*
- * .google.protobuf.Timestamp create_time = 7;
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the createTime field is set.
*/
@@ -304,10 +305,11 @@ public interface MigrationSubtaskOrBuilder
*
*
*
- * Time when the subtask was created.
+ * Output only. Time when the subtask was created.
*
*
- * .google.protobuf.Timestamp create_time = 7;
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The createTime.
*/
@@ -317,10 +319,11 @@ public interface MigrationSubtaskOrBuilder
*
*
*
- * Time when the subtask was created.
+ * Output only. Time when the subtask was created.
*
*
- * .google.protobuf.Timestamp create_time = 7;
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
@@ -328,10 +331,12 @@ public interface MigrationSubtaskOrBuilder
*
*
*
- * Time when the subtask was last updated.
+ * Output only. Time when the subtask was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 8;
+ *
+ * .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the lastUpdateTime field is set.
*/
@@ -341,10 +346,12 @@ public interface MigrationSubtaskOrBuilder
*
*
*
- * Time when the subtask was last updated.
+ * Output only. Time when the subtask was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 8;
+ *
+ * .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The lastUpdateTime.
*/
@@ -354,10 +361,12 @@ public interface MigrationSubtaskOrBuilder
*
*
*
- * Time when the subtask was last updated.
+ * Output only. Time when the subtask was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 8;
+ *
+ * .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder();
@@ -365,10 +374,12 @@ public interface MigrationSubtaskOrBuilder
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
java.util.List
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index);
@@ -387,10 +400,12 @@ public interface MigrationSubtaskOrBuilder
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
int getMetricsCount();
@@ -398,10 +413,12 @@ public interface MigrationSubtaskOrBuilder
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
java.util.List extends com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder>
getMetricsOrBuilderList();
@@ -410,10 +427,12 @@ public interface MigrationSubtaskOrBuilder
*
*
*
- * The metrics for the subtask.
+ * Output only. The metrics for the subtask.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBuilder(int index);
}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java
index fba60efd2cb8..d452545070f5 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java
@@ -129,7 +129,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Tha task is paused. Assigned subtasks can continue, but no new subtasks
+ * The task is paused. Assigned subtasks can continue, but no new subtasks
* will be scheduled.
*
*
@@ -217,7 +217,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Tha task is paused. Assigned subtasks can continue, but no new subtasks
+ * The task is paused. Assigned subtasks can continue, but no new subtasks
* will be scheduled.
*
*
@@ -350,6 +350,7 @@ public enum TaskDetailsCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ ASSESSMENT_TASK_DETAILS(12),
TRANSLATION_CONFIG_DETAILS(14),
TRANSLATION_DETAILS(16),
TASKDETAILS_NOT_SET(0);
@@ -371,6 +372,8 @@ public static TaskDetailsCase valueOf(int value) {
public static TaskDetailsCase forNumber(int value) {
switch (value) {
+ case 12:
+ return ASSESSMENT_TASK_DETAILS;
case 14:
return TRANSLATION_CONFIG_DETAILS;
case 16:
@@ -391,6 +394,64 @@ public TaskDetailsCase getTaskDetailsCase() {
return TaskDetailsCase.forNumber(taskDetailsCase_);
}
+ public static final int ASSESSMENT_TASK_DETAILS_FIELD_NUMBER = 12;
+
+ /**
+ *
+ *
+ * + * Task configuration for Assessment. + *+ * + *
.google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12;
+ *
+ *
+ * @return Whether the assessmentTaskDetails field is set.
+ */
+ @java.lang.Override
+ public boolean hasAssessmentTaskDetails() {
+ return taskDetailsCase_ == 12;
+ }
+
+ /**
+ *
+ *
+ * + * Task configuration for Assessment. + *+ * + *
.google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12;
+ *
+ *
+ * @return The assessmentTaskDetails.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails getAssessmentTaskDetails() {
+ if (taskDetailsCase_ == 12) {
+ return (com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails) taskDetails_;
+ }
+ return com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ * + * Task configuration for Assessment. + *+ * + *
.google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.AssessmentTaskDetailsOrBuilder
+ getAssessmentTaskDetailsOrBuilder() {
+ if (taskDetailsCase_ == 12) {
+ return (com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails) taskDetails_;
+ }
+ return com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails.getDefaultInstance();
+ }
+
public static final int TRANSLATION_CONFIG_DETAILS_FIELD_NUMBER = 14;
/**
@@ -576,13 +637,22 @@ public com.google.protobuf.ByteString getIdBytes() {
*
*
*
- * The type of the task. This must be one of the supported task types:
- * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
- * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
- * Translation_Snowflake2BQ, Translation_Netezza2BQ,
- * Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
- * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ,
- * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
+ * The type of the task. This must be one of the supported task types.
+ *
+ * Assessment:
+ *
+ * - `Assessment_Hive` - Assessment for Hive.
+ * - `Assessment_Redshift` - Assessment for Redshift.
+ * - `Assessment_Snowflake` - Assessment for Snowflake.
+ * - `Assessment_Teradata_v2` - Assessment for Teradata.
+ * - `Assessment_Oracle` - Assessment for Oracle.
+ * - `Assessment_Hadoop` - Assessment for Hadoop.
+ * - `Assessment_Informatica` - Assessment for Informatica.
+ *
+ * Translation:
+ * See [Supported Task
+ * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types)
+ * for a list of supported task types.
*
*
* string type = 2;
@@ -606,13 +676,22 @@ public java.lang.String getType() {
*
*
*
- * The type of the task. This must be one of the supported task types:
- * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
- * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
- * Translation_Snowflake2BQ, Translation_Netezza2BQ,
- * Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
- * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ,
- * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
+ * The type of the task. This must be one of the supported task types.
+ *
+ * Assessment:
+ *
+ * - `Assessment_Hive` - Assessment for Hive.
+ * - `Assessment_Redshift` - Assessment for Redshift.
+ * - `Assessment_Snowflake` - Assessment for Snowflake.
+ * - `Assessment_Teradata_v2` - Assessment for Teradata.
+ * - `Assessment_Oracle` - Assessment for Oracle.
+ * - `Assessment_Hadoop` - Assessment for Hadoop.
+ * - `Assessment_Informatica` - Assessment for Informatica.
+ *
+ * Translation:
+ * See [Supported Task
+ * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types)
+ * for a list of supported task types.
*
*
* string type = 2;
@@ -741,10 +820,11 @@ public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder() {
*
*
*
- * Time when the task was created.
+ * Output only. Time when the task was created.
*
*
- * .google.protobuf.Timestamp create_time = 6;
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the createTime field is set.
*/
@@ -757,10 +837,11 @@ public boolean hasCreateTime() {
*
*
*
- * Time when the task was created.
+ * Output only. Time when the task was created.
*
*
- * .google.protobuf.Timestamp create_time = 6;
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The createTime.
*/
@@ -773,10 +854,11 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * Time when the task was created.
+ * Output only. Time when the task was created.
*
*
- * .google.protobuf.Timestamp create_time = 6;
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
@@ -790,10 +872,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * Time when the task was last updated.
+ * Output only. Time when the task was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 7;
+ *
+ * .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the lastUpdateTime field is set.
*/
@@ -806,10 +890,12 @@ public boolean hasLastUpdateTime() {
*
*
*
- * Time when the task was last updated.
+ * Output only. Time when the task was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 7;
+ *
+ * .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The lastUpdateTime.
*/
@@ -824,10 +910,12 @@ public com.google.protobuf.Timestamp getLastUpdateTime() {
*
*
*
- * Time when the task was last updated.
+ * Output only. Time when the task was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 7;
+ *
+ * .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
@@ -944,13 +1032,13 @@ public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail getResourceErr
*
*
*
- * The number or resources with errors. Note: This is not the total
- * number of errors as each resource can have more than one error.
- * This is used to indicate truncation by having a `resource_error_count`
- * that is higher than the size of `resource_error_details`.
+ * Output only. The number or resources with errors. Note: This is not the
+ * total number of errors as each resource can have more than one error. This
+ * is used to indicate truncation by having a `resource_error_count` that is
+ * higher than the size of `resource_error_details`.
*
*
- * int32 resource_error_count = 18;
+ * int32 resource_error_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The resourceErrorCount.
*/
@@ -968,10 +1056,12 @@ public int getResourceErrorCount() {
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public java.util.List
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public java.util.List extends com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder>
@@ -997,10 +1089,12 @@ public java.util.List
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public int getMetricsCount() {
@@ -1011,10 +1105,12 @@ public int getMetricsCount() {
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index) {
@@ -1025,10 +1121,12 @@ public com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index) {
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBuilder(int index) {
@@ -1102,10 +1200,12 @@ public com.google.cloud.bigquery.migration.v2.MigrationTaskResult getTaskResult(
*
*
*
- * Count of all the processing errors in this task and its subtasks.
+ * Output only. Count of all the processing errors in this task and its
+ * subtasks.
*
*
- * int32 total_processing_error_count = 21;
+ * int32 total_processing_error_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The totalProcessingErrorCount.
*/
@@ -1121,10 +1221,12 @@ public int getTotalProcessingErrorCount() {
*
*
*
- * Count of all the resource errors in this task and its subtasks.
+ * Output only. Count of all the resource errors in this task and its
+ * subtasks.
*
*
- * int32 total_resource_error_count = 22;
+ * int32 total_resource_error_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The totalResourceErrorCount.
*/
@@ -1167,6 +1269,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(7, getLastUpdateTime());
}
+ if (taskDetailsCase_ == 12) {
+ output.writeMessage(
+ 12, (com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails) taskDetails_);
+ }
if (taskDetailsCase_ == 14) {
output.writeMessage(
14, (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) taskDetails_);
@@ -1222,6 +1328,11 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLastUpdateTime());
}
+ if (taskDetailsCase_ == 12) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 12, (com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails) taskDetails_);
+ }
if (taskDetailsCase_ == 14) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
@@ -1295,6 +1406,9 @@ public boolean equals(final java.lang.Object obj) {
if (getTotalResourceErrorCount() != other.getTotalResourceErrorCount()) return false;
if (!getTaskDetailsCase().equals(other.getTaskDetailsCase())) return false;
switch (taskDetailsCase_) {
+ case 12:
+ if (!getAssessmentTaskDetails().equals(other.getAssessmentTaskDetails())) return false;
+ break;
case 14:
if (!getTranslationConfigDetails().equals(other.getTranslationConfigDetails()))
return false;
@@ -1353,6 +1467,10 @@ public int hashCode() {
hash = (37 * hash) + TOTAL_RESOURCE_ERROR_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getTotalResourceErrorCount();
switch (taskDetailsCase_) {
+ case 12:
+ hash = (37 * hash) + ASSESSMENT_TASK_DETAILS_FIELD_NUMBER;
+ hash = (53 * hash) + getAssessmentTaskDetails().hashCode();
+ break;
case 14:
hash = (37 * hash) + TRANSLATION_CONFIG_DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getTranslationConfigDetails().hashCode();
@@ -1519,6 +1637,9 @@ private void maybeForceBuilderInitialization() {
public Builder clear() {
super.clear();
bitField0_ = 0;
+ if (assessmentTaskDetailsBuilder_ != null) {
+ assessmentTaskDetailsBuilder_.clear();
+ }
if (translationConfigDetailsBuilder_ != null) {
translationConfigDetailsBuilder_.clear();
}
@@ -1549,7 +1670,7 @@ public Builder clear() {
resourceErrorDetails_ = null;
resourceErrorDetailsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
resourceErrorCount_ = 0;
if (metricsBuilder_ == null) {
metrics_ = java.util.Collections.emptyList();
@@ -1557,7 +1678,7 @@ public Builder clear() {
metrics_ = null;
metricsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
taskResult_ = null;
if (taskResultBuilder_ != null) {
taskResultBuilder_.dispose();
@@ -1606,18 +1727,18 @@ public com.google.cloud.bigquery.migration.v2.MigrationTask buildPartial() {
private void buildPartialRepeatedFields(
com.google.cloud.bigquery.migration.v2.MigrationTask result) {
if (resourceErrorDetailsBuilder_ == null) {
- if (((bitField0_ & 0x00000100) != 0)) {
+ if (((bitField0_ & 0x00000200) != 0)) {
resourceErrorDetails_ = java.util.Collections.unmodifiableList(resourceErrorDetails_);
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
}
result.resourceErrorDetails_ = resourceErrorDetails_;
} else {
result.resourceErrorDetails_ = resourceErrorDetailsBuilder_.build();
}
if (metricsBuilder_ == null) {
- if (((bitField0_ & 0x00000400) != 0)) {
+ if (((bitField0_ & 0x00000800) != 0)) {
metrics_ = java.util.Collections.unmodifiableList(metrics_);
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
}
result.metrics_ = metrics_;
} else {
@@ -1627,41 +1748,41 @@ private void buildPartialRepeatedFields(
private void buildPartial0(com.google.cloud.bigquery.migration.v2.MigrationTask result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000004) != 0)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
result.id_ = id_;
}
- if (((from_bitField0_ & 0x00000008) != 0)) {
+ if (((from_bitField0_ & 0x00000010) != 0)) {
result.type_ = type_;
}
- if (((from_bitField0_ & 0x00000010) != 0)) {
+ if (((from_bitField0_ & 0x00000020) != 0)) {
result.state_ = state_;
}
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000020) != 0)) {
+ if (((from_bitField0_ & 0x00000040) != 0)) {
result.processingError_ =
processingErrorBuilder_ == null ? processingError_ : processingErrorBuilder_.build();
to_bitField0_ |= 0x00000001;
}
- if (((from_bitField0_ & 0x00000040) != 0)) {
+ if (((from_bitField0_ & 0x00000080) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
- if (((from_bitField0_ & 0x00000080) != 0)) {
+ if (((from_bitField0_ & 0x00000100) != 0)) {
result.lastUpdateTime_ =
lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
to_bitField0_ |= 0x00000004;
}
- if (((from_bitField0_ & 0x00000200) != 0)) {
+ if (((from_bitField0_ & 0x00000400) != 0)) {
result.resourceErrorCount_ = resourceErrorCount_;
}
- if (((from_bitField0_ & 0x00000800) != 0)) {
+ if (((from_bitField0_ & 0x00001000) != 0)) {
result.taskResult_ = taskResultBuilder_ == null ? taskResult_ : taskResultBuilder_.build();
to_bitField0_ |= 0x00000008;
}
- if (((from_bitField0_ & 0x00001000) != 0)) {
+ if (((from_bitField0_ & 0x00002000) != 0)) {
result.totalProcessingErrorCount_ = totalProcessingErrorCount_;
}
- if (((from_bitField0_ & 0x00002000) != 0)) {
+ if (((from_bitField0_ & 0x00004000) != 0)) {
result.totalResourceErrorCount_ = totalResourceErrorCount_;
}
result.bitField0_ |= to_bitField0_;
@@ -1670,6 +1791,9 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.MigrationTask
private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2.MigrationTask result) {
result.taskDetailsCase_ = taskDetailsCase_;
result.taskDetails_ = this.taskDetails_;
+ if (taskDetailsCase_ == 12 && assessmentTaskDetailsBuilder_ != null) {
+ result.taskDetails_ = assessmentTaskDetailsBuilder_.build();
+ }
if (taskDetailsCase_ == 14 && translationConfigDetailsBuilder_ != null) {
result.taskDetails_ = translationConfigDetailsBuilder_.build();
}
@@ -1693,12 +1817,12 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationTask ot
return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
}
if (other.state_ != 0) {
@@ -1717,7 +1841,7 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationTask ot
if (!other.resourceErrorDetails_.isEmpty()) {
if (resourceErrorDetails_.isEmpty()) {
resourceErrorDetails_ = other.resourceErrorDetails_;
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureResourceErrorDetailsIsMutable();
resourceErrorDetails_.addAll(other.resourceErrorDetails_);
@@ -1730,7 +1854,7 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationTask ot
resourceErrorDetailsBuilder_.dispose();
resourceErrorDetailsBuilder_ = null;
resourceErrorDetails_ = other.resourceErrorDetails_;
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
resourceErrorDetailsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
? internalGetResourceErrorDetailsFieldBuilder()
@@ -1747,7 +1871,7 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationTask ot
if (!other.metrics_.isEmpty()) {
if (metrics_.isEmpty()) {
metrics_ = other.metrics_;
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureMetricsIsMutable();
metrics_.addAll(other.metrics_);
@@ -1760,7 +1884,7 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationTask ot
metricsBuilder_.dispose();
metricsBuilder_ = null;
metrics_ = other.metrics_;
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
metricsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
? internalGetMetricsFieldBuilder()
@@ -1780,6 +1904,11 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationTask ot
setTotalResourceErrorCount(other.getTotalResourceErrorCount());
}
switch (other.getTaskDetailsCase()) {
+ case ASSESSMENT_TASK_DETAILS:
+ {
+ mergeAssessmentTaskDetails(other.getAssessmentTaskDetails());
+ break;
+ }
case TRANSLATION_CONFIG_DETAILS:
{
mergeTranslationConfigDetails(other.getTranslationConfigDetails());
@@ -1824,42 +1953,49 @@ public Builder mergeFrom(
case 10:
{
id_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
break;
} // case 10
case 18:
{
type_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
break;
} // case 18
case 32:
{
state_ = input.readEnum();
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
break;
} // case 32
case 42:
{
input.readMessage(
internalGetProcessingErrorFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
break;
} // case 42
case 50:
{
input.readMessage(
internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
break;
} // case 50
case 58:
{
input.readMessage(
internalGetLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 58
+ case 98:
+ {
+ input.readMessage(
+ internalGetAssessmentTaskDetailsFieldBuilder().getBuilder(), extensionRegistry);
+ taskDetailsCase_ = 12;
+ break;
+ } // case 98
case 114:
{
input.readMessage(
@@ -1892,7 +2028,7 @@ public Builder mergeFrom(
case 144:
{
resourceErrorCount_ = input.readInt32();
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
break;
} // case 144
case 154:
@@ -1913,19 +2049,19 @@ public Builder mergeFrom(
{
input.readMessage(
internalGetTaskResultFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
break;
} // case 162
case 168:
{
totalProcessingErrorCount_ = input.readInt32();
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
break;
} // case 168
case 176:
{
totalResourceErrorCount_ = input.readInt32();
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
break;
} // case 176
default:
@@ -1961,6 +2097,240 @@ public Builder clearTaskDetails() {
private int bitField0_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails,
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails.Builder,
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetailsOrBuilder>
+ assessmentTaskDetailsBuilder_;
+
+ /**
+ *
+ *
+ * + * Task configuration for Assessment. + *+ * + *
.google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12;
+ *
+ *
+ * @return Whether the assessmentTaskDetails field is set.
+ */
+ @java.lang.Override
+ public boolean hasAssessmentTaskDetails() {
+ return taskDetailsCase_ == 12;
+ }
+
+ /**
+ *
+ *
+ * + * Task configuration for Assessment. + *+ * + *
.google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12;
+ *
+ *
+ * @return The assessmentTaskDetails.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails getAssessmentTaskDetails() {
+ if (assessmentTaskDetailsBuilder_ == null) {
+ if (taskDetailsCase_ == 12) {
+ return (com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails) taskDetails_;
+ }
+ return com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails.getDefaultInstance();
+ } else {
+ if (taskDetailsCase_ == 12) {
+ return assessmentTaskDetailsBuilder_.getMessage();
+ }
+ return com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Task configuration for Assessment. + *+ * + *
.google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12;
+ *
+ */
+ public Builder setAssessmentTaskDetails(
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails value) {
+ if (assessmentTaskDetailsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ taskDetails_ = value;
+ onChanged();
+ } else {
+ assessmentTaskDetailsBuilder_.setMessage(value);
+ }
+ taskDetailsCase_ = 12;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Task configuration for Assessment. + *+ * + *
.google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12;
+ *
+ */
+ public Builder setAssessmentTaskDetails(
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails.Builder builderForValue) {
+ if (assessmentTaskDetailsBuilder_ == null) {
+ taskDetails_ = builderForValue.build();
+ onChanged();
+ } else {
+ assessmentTaskDetailsBuilder_.setMessage(builderForValue.build());
+ }
+ taskDetailsCase_ = 12;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Task configuration for Assessment. + *+ * + *
.google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12;
+ *
+ */
+ public Builder mergeAssessmentTaskDetails(
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails value) {
+ if (assessmentTaskDetailsBuilder_ == null) {
+ if (taskDetailsCase_ == 12
+ && taskDetails_
+ != com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails
+ .getDefaultInstance()) {
+ taskDetails_ =
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails.newBuilder(
+ (com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails) taskDetails_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ taskDetails_ = value;
+ }
+ onChanged();
+ } else {
+ if (taskDetailsCase_ == 12) {
+ assessmentTaskDetailsBuilder_.mergeFrom(value);
+ } else {
+ assessmentTaskDetailsBuilder_.setMessage(value);
+ }
+ }
+ taskDetailsCase_ = 12;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Task configuration for Assessment. + *+ * + *
.google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12;
+ *
+ */
+ public Builder clearAssessmentTaskDetails() {
+ if (assessmentTaskDetailsBuilder_ == null) {
+ if (taskDetailsCase_ == 12) {
+ taskDetailsCase_ = 0;
+ taskDetails_ = null;
+ onChanged();
+ }
+ } else {
+ if (taskDetailsCase_ == 12) {
+ taskDetailsCase_ = 0;
+ taskDetails_ = null;
+ }
+ assessmentTaskDetailsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Task configuration for Assessment. + *+ * + *
.google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12;
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails.Builder
+ getAssessmentTaskDetailsBuilder() {
+ return internalGetAssessmentTaskDetailsFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Task configuration for Assessment. + *+ * + *
.google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.AssessmentTaskDetailsOrBuilder
+ getAssessmentTaskDetailsOrBuilder() {
+ if ((taskDetailsCase_ == 12) && (assessmentTaskDetailsBuilder_ != null)) {
+ return assessmentTaskDetailsBuilder_.getMessageOrBuilder();
+ } else {
+ if (taskDetailsCase_ == 12) {
+ return (com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails) taskDetails_;
+ }
+ return com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Task configuration for Assessment. + *+ * + *
.google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails,
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails.Builder,
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetailsOrBuilder>
+ internalGetAssessmentTaskDetailsFieldBuilder() {
+ if (assessmentTaskDetailsBuilder_ == null) {
+ if (!(taskDetailsCase_ == 12)) {
+ taskDetails_ =
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails.getDefaultInstance();
+ }
+ assessmentTaskDetailsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails,
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails.Builder,
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetailsOrBuilder>(
+ (com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails) taskDetails_,
+ getParentForChildren(),
+ isClean());
+ taskDetails_ = null;
+ }
+ taskDetailsCase_ = 12;
+ onChanged();
+ return assessmentTaskDetailsBuilder_;
+ }
+
private com.google.protobuf.SingleFieldBuilder<
com.google.cloud.bigquery.migration.v2.TranslationConfigDetails,
com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.Builder,
@@ -2504,7 +2874,7 @@ public Builder setId(java.lang.String value) {
throw new NullPointerException();
}
id_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2525,7 +2895,7 @@ public Builder setId(java.lang.String value) {
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -2551,7 +2921,7 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
id_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2562,13 +2932,22 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The type of the task. This must be one of the supported task types:
- * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
- * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
- * Translation_Snowflake2BQ, Translation_Netezza2BQ,
- * Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
- * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ,
- * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
+ * The type of the task. This must be one of the supported task types.
+ *
+ * Assessment:
+ *
+ * - `Assessment_Hive` - Assessment for Hive.
+ * - `Assessment_Redshift` - Assessment for Redshift.
+ * - `Assessment_Snowflake` - Assessment for Snowflake.
+ * - `Assessment_Teradata_v2` - Assessment for Teradata.
+ * - `Assessment_Oracle` - Assessment for Oracle.
+ * - `Assessment_Hadoop` - Assessment for Hadoop.
+ * - `Assessment_Informatica` - Assessment for Informatica.
+ *
+ * Translation:
+ * See [Supported Task
+ * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types)
+ * for a list of supported task types.
*
*
* string type = 2;
@@ -2591,13 +2970,22 @@ public java.lang.String getType() {
*
*
*
- * The type of the task. This must be one of the supported task types:
- * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
- * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
- * Translation_Snowflake2BQ, Translation_Netezza2BQ,
- * Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
- * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ,
- * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
+ * The type of the task. This must be one of the supported task types.
+ *
+ * Assessment:
+ *
+ * - `Assessment_Hive` - Assessment for Hive.
+ * - `Assessment_Redshift` - Assessment for Redshift.
+ * - `Assessment_Snowflake` - Assessment for Snowflake.
+ * - `Assessment_Teradata_v2` - Assessment for Teradata.
+ * - `Assessment_Oracle` - Assessment for Oracle.
+ * - `Assessment_Hadoop` - Assessment for Hadoop.
+ * - `Assessment_Informatica` - Assessment for Informatica.
+ *
+ * Translation:
+ * See [Supported Task
+ * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types)
+ * for a list of supported task types.
*
*
* string type = 2;
@@ -2620,13 +3008,22 @@ public com.google.protobuf.ByteString getTypeBytes() {
*
*
*
- * The type of the task. This must be one of the supported task types:
- * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
- * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
- * Translation_Snowflake2BQ, Translation_Netezza2BQ,
- * Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
- * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ,
- * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
+ * The type of the task. This must be one of the supported task types.
+ *
+ * Assessment:
+ *
+ * - `Assessment_Hive` - Assessment for Hive.
+ * - `Assessment_Redshift` - Assessment for Redshift.
+ * - `Assessment_Snowflake` - Assessment for Snowflake.
+ * - `Assessment_Teradata_v2` - Assessment for Teradata.
+ * - `Assessment_Oracle` - Assessment for Oracle.
+ * - `Assessment_Hadoop` - Assessment for Hadoop.
+ * - `Assessment_Informatica` - Assessment for Informatica.
+ *
+ * Translation:
+ * See [Supported Task
+ * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types)
+ * for a list of supported task types.
*
*
* string type = 2;
@@ -2639,7 +3036,7 @@ public Builder setType(java.lang.String value) {
throw new NullPointerException();
}
type_ = value;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -2648,13 +3045,22 @@ public Builder setType(java.lang.String value) {
*
*
*
- * The type of the task. This must be one of the supported task types:
- * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
- * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
- * Translation_Snowflake2BQ, Translation_Netezza2BQ,
- * Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
- * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ,
- * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
+ * The type of the task. This must be one of the supported task types.
+ *
+ * Assessment:
+ *
+ * - `Assessment_Hive` - Assessment for Hive.
+ * - `Assessment_Redshift` - Assessment for Redshift.
+ * - `Assessment_Snowflake` - Assessment for Snowflake.
+ * - `Assessment_Teradata_v2` - Assessment for Teradata.
+ * - `Assessment_Oracle` - Assessment for Oracle.
+ * - `Assessment_Hadoop` - Assessment for Hadoop.
+ * - `Assessment_Informatica` - Assessment for Informatica.
+ *
+ * Translation:
+ * See [Supported Task
+ * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types)
+ * for a list of supported task types.
*
*
* string type = 2;
@@ -2663,7 +3069,7 @@ public Builder setType(java.lang.String value) {
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
@@ -2672,13 +3078,22 @@ public Builder clearType() {
*
*
*
- * The type of the task. This must be one of the supported task types:
- * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
- * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
- * Translation_Snowflake2BQ, Translation_Netezza2BQ,
- * Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
- * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ,
- * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
+ * The type of the task. This must be one of the supported task types.
+ *
+ * Assessment:
+ *
+ * - `Assessment_Hive` - Assessment for Hive.
+ * - `Assessment_Redshift` - Assessment for Redshift.
+ * - `Assessment_Snowflake` - Assessment for Snowflake.
+ * - `Assessment_Teradata_v2` - Assessment for Teradata.
+ * - `Assessment_Oracle` - Assessment for Oracle.
+ * - `Assessment_Hadoop` - Assessment for Hadoop.
+ * - `Assessment_Informatica` - Assessment for Informatica.
+ *
+ * Translation:
+ * See [Supported Task
+ * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types)
+ * for a list of supported task types.
*
*
* string type = 2;
@@ -2692,7 +3107,7 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
type_ = value;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -2733,7 +3148,7 @@ public int getStateValue() {
*/
public Builder setStateValue(int value) {
state_ = value;
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2778,7 +3193,7 @@ public Builder setState(com.google.cloud.bigquery.migration.v2.MigrationTask.Sta
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
state_ = value.getNumber();
onChanged();
return this;
@@ -2798,7 +3213,7 @@ public Builder setState(com.google.cloud.bigquery.migration.v2.MigrationTask.Sta
* @return This builder for chaining.
*/
public Builder clearState() {
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
state_ = 0;
onChanged();
return this;
@@ -2826,7 +3241,7 @@ public Builder clearState() {
* @return Whether the processingError field is set.
*/
public boolean hasProcessingError() {
- return ((bitField0_ & 0x00000020) != 0);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
@@ -2874,7 +3289,7 @@ public Builder setProcessingError(com.google.rpc.ErrorInfo value) {
} else {
processingErrorBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -2897,7 +3312,7 @@ public Builder setProcessingError(com.google.rpc.ErrorInfo.Builder builderForVal
} else {
processingErrorBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -2916,7 +3331,7 @@ public Builder setProcessingError(com.google.rpc.ErrorInfo.Builder builderForVal
*/
public Builder mergeProcessingError(com.google.rpc.ErrorInfo value) {
if (processingErrorBuilder_ == null) {
- if (((bitField0_ & 0x00000020) != 0)
+ if (((bitField0_ & 0x00000040) != 0)
&& processingError_ != null
&& processingError_ != com.google.rpc.ErrorInfo.getDefaultInstance()) {
getProcessingErrorBuilder().mergeFrom(value);
@@ -2927,7 +3342,7 @@ public Builder mergeProcessingError(com.google.rpc.ErrorInfo value) {
processingErrorBuilder_.mergeFrom(value);
}
if (processingError_ != null) {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
}
return this;
@@ -2946,7 +3361,7 @@ public Builder mergeProcessingError(com.google.rpc.ErrorInfo value) {
*
*/
public Builder clearProcessingError() {
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
processingError_ = null;
if (processingErrorBuilder_ != null) {
processingErrorBuilder_.dispose();
@@ -2969,7 +3384,7 @@ public Builder clearProcessingError() {
*
*/
public com.google.rpc.ErrorInfo.Builder getProcessingErrorBuilder() {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return internalGetProcessingErrorFieldBuilder().getBuilder();
}
@@ -3036,25 +3451,29 @@ public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder() {
*
*
*
- * Time when the task was created.
+ * Output only. Time when the task was created.
*
*
- * .google.protobuf.Timestamp create_time = 6;
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*
*
- * Time when the task was created.
+ * Output only. Time when the task was created.
*
*
- * .google.protobuf.Timestamp create_time = 6;
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The createTime.
*/
@@ -3072,10 +3491,12 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * Time when the task was created.
+ * Output only. Time when the task was created.
*
*
- * .google.protobuf.Timestamp create_time = 6;
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
@@ -3086,7 +3507,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
} else {
createTimeBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -3095,10 +3516,12 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Time when the task was created.
+ * Output only. Time when the task was created.
*
*
- * .google.protobuf.Timestamp create_time = 6;
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
@@ -3106,7 +3529,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -3115,14 +3538,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * Time when the task was created.
+ * Output only. Time when the task was created.
*
*
- * .google.protobuf.Timestamp create_time = 6;
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
- if (((bitField0_ & 0x00000040) != 0)
+ if (((bitField0_ & 0x00000080) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
@@ -3133,7 +3558,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
createTimeBuilder_.mergeFrom(value);
}
if (createTime_ != null) {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
}
return this;
@@ -3143,13 +3568,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Time when the task was created.
+ * Output only. Time when the task was created.
*
*
- * .google.protobuf.Timestamp create_time = 6;
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder clearCreateTime() {
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000080);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
@@ -3163,13 +3590,15 @@ public Builder clearCreateTime() {
*
*
*
- * Time when the task was created.
+ * Output only. Time when the task was created.
*
*
- * .google.protobuf.Timestamp create_time = 6;
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return internalGetCreateTimeFieldBuilder().getBuilder();
}
@@ -3178,10 +3607,12 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
*
*
*
- * Time when the task was created.
+ * Output only. Time when the task was created.
*
*
- * .google.protobuf.Timestamp create_time = 6;
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
@@ -3197,10 +3628,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * Time when the task was created.
+ * Output only. Time when the task was created.
*
*
- * .google.protobuf.Timestamp create_time = 6;
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp,
@@ -3230,25 +3663,29 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * Time when the task was last updated.
+ * Output only. Time when the task was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 7;
+ *
+ * .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the lastUpdateTime field is set.
*/
public boolean hasLastUpdateTime() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
*
*
*
- * Time when the task was last updated.
+ * Output only. Time when the task was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 7;
+ *
+ * .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The lastUpdateTime.
*/
@@ -3266,10 +3703,12 @@ public com.google.protobuf.Timestamp getLastUpdateTime() {
*
*
*
- * Time when the task was last updated.
+ * Output only. Time when the task was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 7;
+ *
+ * .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) {
if (lastUpdateTimeBuilder_ == null) {
@@ -3280,7 +3719,7 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) {
} else {
lastUpdateTimeBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -3289,10 +3728,12 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Time when the task was last updated.
+ * Output only. Time when the task was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 7;
+ *
+ * .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastUpdateTimeBuilder_ == null) {
@@ -3300,7 +3741,7 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo
} else {
lastUpdateTimeBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -3309,14 +3750,16 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo
*
*
*
- * Time when the task was last updated.
+ * Output only. Time when the task was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 7;
+ *
+ * .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) {
if (lastUpdateTimeBuilder_ == null) {
- if (((bitField0_ & 0x00000080) != 0)
+ if (((bitField0_ & 0x00000100) != 0)
&& lastUpdateTime_ != null
&& lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getLastUpdateTimeBuilder().mergeFrom(value);
@@ -3327,7 +3770,7 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) {
lastUpdateTimeBuilder_.mergeFrom(value);
}
if (lastUpdateTime_ != null) {
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
}
return this;
@@ -3337,13 +3780,15 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Time when the task was last updated.
+ * Output only. Time when the task was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 7;
+ *
+ * .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder clearLastUpdateTime() {
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
lastUpdateTime_ = null;
if (lastUpdateTimeBuilder_ != null) {
lastUpdateTimeBuilder_.dispose();
@@ -3357,13 +3802,15 @@ public Builder clearLastUpdateTime() {
*
*
*
- * Time when the task was last updated.
+ * Output only. Time when the task was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 7;
+ *
+ * .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() {
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return internalGetLastUpdateTimeFieldBuilder().getBuilder();
}
@@ -3372,10 +3819,12 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() {
*
*
*
- * Time when the task was last updated.
+ * Output only. Time when the task was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 7;
+ *
+ * .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
if (lastUpdateTimeBuilder_ != null) {
@@ -3391,10 +3840,12 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
*
*
*
- * Time when the task was last updated.
+ * Output only. Time when the task was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 7;
+ *
+ * .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp,
@@ -3417,11 +3868,11 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
resourceErrorDetails_ = java.util.Collections.emptyList();
private void ensureResourceErrorDetailsIsMutable() {
- if (!((bitField0_ & 0x00000100) != 0)) {
+ if (!((bitField0_ & 0x00000200) != 0)) {
resourceErrorDetails_ =
new java.util.ArrayList
- * The number or resources with errors. Note: This is not the total
- * number of errors as each resource can have more than one error.
- * This is used to indicate truncation by having a `resource_error_count`
- * that is higher than the size of `resource_error_details`.
+ * Output only. The number or resources with errors. Note: This is not the
+ * total number of errors as each resource can have more than one error. This
+ * is used to indicate truncation by having a `resource_error_count` that is
+ * higher than the size of `resource_error_details`.
*
*
- * int32 resource_error_count = 18;
+ * int32 resource_error_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The resourceErrorCount.
*/
@@ -3898,13 +4349,13 @@ public int getResourceErrorCount() {
*
*
*
- * The number or resources with errors. Note: This is not the total
- * number of errors as each resource can have more than one error.
- * This is used to indicate truncation by having a `resource_error_count`
- * that is higher than the size of `resource_error_details`.
+ * Output only. The number or resources with errors. Note: This is not the
+ * total number of errors as each resource can have more than one error. This
+ * is used to indicate truncation by having a `resource_error_count` that is
+ * higher than the size of `resource_error_details`.
*
*
- * int32 resource_error_count = 18;
+ * int32 resource_error_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The resourceErrorCount to set.
* @return This builder for chaining.
@@ -3912,7 +4363,7 @@ public int getResourceErrorCount() {
public Builder setResourceErrorCount(int value) {
resourceErrorCount_ = value;
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -3921,18 +4372,18 @@ public Builder setResourceErrorCount(int value) {
*
*
*
- * The number or resources with errors. Note: This is not the total
- * number of errors as each resource can have more than one error.
- * This is used to indicate truncation by having a `resource_error_count`
- * that is higher than the size of `resource_error_details`.
+ * Output only. The number or resources with errors. Note: This is not the
+ * total number of errors as each resource can have more than one error. This
+ * is used to indicate truncation by having a `resource_error_count` that is
+ * higher than the size of `resource_error_details`.
*
*
- * int32 resource_error_count = 18;
+ * int32 resource_error_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearResourceErrorCount() {
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
resourceErrorCount_ = 0;
onChanged();
return this;
@@ -3942,10 +4393,10 @@ public Builder clearResourceErrorCount() {
java.util.Collections.emptyList();
private void ensureMetricsIsMutable() {
- if (!((bitField0_ & 0x00000400) != 0)) {
+ if (!((bitField0_ & 0x00000800) != 0)) {
metrics_ =
new java.util.ArrayList
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public java.util.List
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public int getMetricsCount() {
if (metricsBuilder_ == null) {
@@ -3993,10 +4448,12 @@ public int getMetricsCount() {
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index) {
if (metricsBuilder_ == null) {
@@ -4010,10 +4467,12 @@ public com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index) {
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setMetrics(int index, com.google.cloud.bigquery.migration.v2.TimeSeries value) {
if (metricsBuilder_ == null) {
@@ -4033,10 +4492,12 @@ public Builder setMetrics(int index, com.google.cloud.bigquery.migration.v2.Time
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setMetrics(
int index, com.google.cloud.bigquery.migration.v2.TimeSeries.Builder builderForValue) {
@@ -4054,10 +4515,12 @@ public Builder setMetrics(
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder addMetrics(com.google.cloud.bigquery.migration.v2.TimeSeries value) {
if (metricsBuilder_ == null) {
@@ -4077,10 +4540,12 @@ public Builder addMetrics(com.google.cloud.bigquery.migration.v2.TimeSeries valu
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder addMetrics(int index, com.google.cloud.bigquery.migration.v2.TimeSeries value) {
if (metricsBuilder_ == null) {
@@ -4100,10 +4565,12 @@ public Builder addMetrics(int index, com.google.cloud.bigquery.migration.v2.Time
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder addMetrics(
com.google.cloud.bigquery.migration.v2.TimeSeries.Builder builderForValue) {
@@ -4121,10 +4588,12 @@ public Builder addMetrics(
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder addMetrics(
int index, com.google.cloud.bigquery.migration.v2.TimeSeries.Builder builderForValue) {
@@ -4142,10 +4611,12 @@ public Builder addMetrics(
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder addAllMetrics(
java.lang.Iterable extends com.google.cloud.bigquery.migration.v2.TimeSeries> values) {
@@ -4163,15 +4634,17 @@ public Builder addAllMetrics(
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder clearMetrics() {
if (metricsBuilder_ == null) {
metrics_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
metricsBuilder_.clear();
@@ -4183,10 +4656,12 @@ public Builder clearMetrics() {
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder removeMetrics(int index) {
if (metricsBuilder_ == null) {
@@ -4203,10 +4678,12 @@ public Builder removeMetrics(int index) {
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder getMetricsBuilder(int index) {
return internalGetMetricsFieldBuilder().getBuilder(index);
@@ -4216,10 +4693,12 @@ public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder getMetricsBuild
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBuilder(
int index) {
@@ -4234,10 +4713,12 @@ public com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBu
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public java.util.List extends com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder>
getMetricsOrBuilderList() {
@@ -4252,10 +4733,12 @@ public com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBu
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder addMetricsBuilder() {
return internalGetMetricsFieldBuilder()
@@ -4266,10 +4749,12 @@ public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder addMetricsBuild
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder addMetricsBuilder(int index) {
return internalGetMetricsFieldBuilder()
@@ -4281,10 +4766,12 @@ public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder addMetricsBuild
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public java.util.List
- * Count of all the processing errors in this task and its subtasks.
+ * Output only. Count of all the processing errors in this task and its
+ * subtasks.
*
*
- * int32 total_processing_error_count = 21;
+ * int32 total_processing_error_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The totalProcessingErrorCount.
*/
@@ -4548,10 +5037,12 @@ public int getTotalProcessingErrorCount() {
*
*
*
- * Count of all the processing errors in this task and its subtasks.
+ * Output only. Count of all the processing errors in this task and its
+ * subtasks.
*
*
- * int32 total_processing_error_count = 21;
+ * int32 total_processing_error_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @param value The totalProcessingErrorCount to set.
* @return This builder for chaining.
@@ -4559,7 +5050,7 @@ public int getTotalProcessingErrorCount() {
public Builder setTotalProcessingErrorCount(int value) {
totalProcessingErrorCount_ = value;
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -4568,15 +5059,17 @@ public Builder setTotalProcessingErrorCount(int value) {
*
*
*
- * Count of all the processing errors in this task and its subtasks.
+ * Output only. Count of all the processing errors in this task and its
+ * subtasks.
*
*
- * int32 total_processing_error_count = 21;
+ * int32 total_processing_error_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return This builder for chaining.
*/
public Builder clearTotalProcessingErrorCount() {
- bitField0_ = (bitField0_ & ~0x00001000);
+ bitField0_ = (bitField0_ & ~0x00002000);
totalProcessingErrorCount_ = 0;
onChanged();
return this;
@@ -4588,10 +5081,12 @@ public Builder clearTotalProcessingErrorCount() {
*
*
*
- * Count of all the resource errors in this task and its subtasks.
+ * Output only. Count of all the resource errors in this task and its
+ * subtasks.
*
*
- * int32 total_resource_error_count = 22;
+ * int32 total_resource_error_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The totalResourceErrorCount.
*/
@@ -4604,10 +5099,12 @@ public int getTotalResourceErrorCount() {
*
*
*
- * Count of all the resource errors in this task and its subtasks.
+ * Output only. Count of all the resource errors in this task and its
+ * subtasks.
*
*
- * int32 total_resource_error_count = 22;
+ * int32 total_resource_error_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @param value The totalResourceErrorCount to set.
* @return This builder for chaining.
@@ -4615,7 +5112,7 @@ public int getTotalResourceErrorCount() {
public Builder setTotalResourceErrorCount(int value) {
totalResourceErrorCount_ = value;
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
@@ -4624,15 +5121,17 @@ public Builder setTotalResourceErrorCount(int value) {
*
*
*
- * Count of all the resource errors in this task and its subtasks.
+ * Output only. Count of all the resource errors in this task and its
+ * subtasks.
*
*
- * int32 total_resource_error_count = 22;
+ * int32 total_resource_error_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return This builder for chaining.
*/
public Builder clearTotalResourceErrorCount() {
- bitField0_ = (bitField0_ & ~0x00002000);
+ bitField0_ = (bitField0_ & ~0x00004000);
totalResourceErrorCount_ = 0;
onChanged();
return this;
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java
index 0a8f44464b5d..3a1a8e373f36 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java
@@ -26,6 +26,47 @@ public interface MigrationTaskOrBuilder
// @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.MigrationTask)
com.google.protobuf.MessageOrBuilder {
+ /**
+ *
+ *
+ * + * Task configuration for Assessment. + *+ * + *
.google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12;
+ *
+ *
+ * @return Whether the assessmentTaskDetails field is set.
+ */
+ boolean hasAssessmentTaskDetails();
+
+ /**
+ *
+ *
+ * + * Task configuration for Assessment. + *+ * + *
.google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12;
+ *
+ *
+ * @return The assessmentTaskDetails.
+ */
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetails getAssessmentTaskDetails();
+
+ /**
+ *
+ *
+ * + * Task configuration for Assessment. + *+ * + *
.google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12;
+ *
+ */
+ com.google.cloud.bigquery.migration.v2.AssessmentTaskDetailsOrBuilder
+ getAssessmentTaskDetailsOrBuilder();
+
/**
*
*
@@ -144,13 +185,22 @@ public interface MigrationTaskOrBuilder
*
*
*
- * The type of the task. This must be one of the supported task types:
- * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
- * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
- * Translation_Snowflake2BQ, Translation_Netezza2BQ,
- * Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
- * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ,
- * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
+ * The type of the task. This must be one of the supported task types.
+ *
+ * Assessment:
+ *
+ * - `Assessment_Hive` - Assessment for Hive.
+ * - `Assessment_Redshift` - Assessment for Redshift.
+ * - `Assessment_Snowflake` - Assessment for Snowflake.
+ * - `Assessment_Teradata_v2` - Assessment for Teradata.
+ * - `Assessment_Oracle` - Assessment for Oracle.
+ * - `Assessment_Hadoop` - Assessment for Hadoop.
+ * - `Assessment_Informatica` - Assessment for Informatica.
+ *
+ * Translation:
+ * See [Supported Task
+ * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types)
+ * for a list of supported task types.
*
*
* string type = 2;
@@ -163,13 +213,22 @@ public interface MigrationTaskOrBuilder
*
*
*
- * The type of the task. This must be one of the supported task types:
- * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
- * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
- * Translation_Snowflake2BQ, Translation_Netezza2BQ,
- * Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
- * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ,
- * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
+ * The type of the task. This must be one of the supported task types.
+ *
+ * Assessment:
+ *
+ * - `Assessment_Hive` - Assessment for Hive.
+ * - `Assessment_Redshift` - Assessment for Redshift.
+ * - `Assessment_Snowflake` - Assessment for Snowflake.
+ * - `Assessment_Teradata_v2` - Assessment for Teradata.
+ * - `Assessment_Oracle` - Assessment for Oracle.
+ * - `Assessment_Hadoop` - Assessment for Hadoop.
+ * - `Assessment_Informatica` - Assessment for Informatica.
+ *
+ * Translation:
+ * See [Supported Task
+ * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types)
+ * for a list of supported task types.
*
*
* string type = 2;
@@ -255,10 +314,11 @@ public interface MigrationTaskOrBuilder
*
*
*
- * Time when the task was created.
+ * Output only. Time when the task was created.
*
*
- * .google.protobuf.Timestamp create_time = 6;
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the createTime field is set.
*/
@@ -268,10 +328,11 @@ public interface MigrationTaskOrBuilder
*
*
*
- * Time when the task was created.
+ * Output only. Time when the task was created.
*
*
- * .google.protobuf.Timestamp create_time = 6;
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The createTime.
*/
@@ -281,10 +342,11 @@ public interface MigrationTaskOrBuilder
*
*
*
- * Time when the task was created.
+ * Output only. Time when the task was created.
*
*
- * .google.protobuf.Timestamp create_time = 6;
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
@@ -292,10 +354,12 @@ public interface MigrationTaskOrBuilder
*
*
*
- * Time when the task was last updated.
+ * Output only. Time when the task was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 7;
+ *
+ * .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the lastUpdateTime field is set.
*/
@@ -305,10 +369,12 @@ public interface MigrationTaskOrBuilder
*
*
*
- * Time when the task was last updated.
+ * Output only. Time when the task was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 7;
+ *
+ * .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The lastUpdateTime.
*/
@@ -318,10 +384,12 @@ public interface MigrationTaskOrBuilder
*
*
*
- * Time when the task was last updated.
+ * Output only. Time when the task was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 7;
+ *
+ * .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder();
@@ -407,13 +475,13 @@ public interface MigrationTaskOrBuilder
*
*
*
- * The number or resources with errors. Note: This is not the total
- * number of errors as each resource can have more than one error.
- * This is used to indicate truncation by having a `resource_error_count`
- * that is higher than the size of `resource_error_details`.
+ * Output only. The number or resources with errors. Note: This is not the
+ * total number of errors as each resource can have more than one error. This
+ * is used to indicate truncation by having a `resource_error_count` that is
+ * higher than the size of `resource_error_details`.
*
*
- * int32 resource_error_count = 18;
+ * int32 resource_error_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The resourceErrorCount.
*/
@@ -423,10 +491,12 @@ public interface MigrationTaskOrBuilder
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
java.util.List
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index);
@@ -445,10 +517,12 @@ public interface MigrationTaskOrBuilder
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
int getMetricsCount();
@@ -456,10 +530,12 @@ public interface MigrationTaskOrBuilder
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
java.util.List extends com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder>
getMetricsOrBuilderList();
@@ -468,10 +544,12 @@ public interface MigrationTaskOrBuilder
*
*
*
- * The metrics for the task.
+ * Output only. The metrics for the task.
*
*
- * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19;
+ *
+ * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBuilder(int index);
@@ -522,10 +600,12 @@ public interface MigrationTaskOrBuilder
*
*
*
- * Count of all the processing errors in this task and its subtasks.
+ * Output only. Count of all the processing errors in this task and its
+ * subtasks.
*
*
- * int32 total_processing_error_count = 21;
+ * int32 total_processing_error_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The totalProcessingErrorCount.
*/
@@ -535,10 +615,12 @@ public interface MigrationTaskOrBuilder
*
*
*
- * Count of all the resource errors in this task and its subtasks.
+ * Output only. Count of all the resource errors in this task and its
+ * subtasks.
*
*
- * int32 total_resource_error_count = 22;
+ * int32 total_resource_error_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The totalResourceErrorCount.
*/
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflow.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflow.java
index 114ff332d500..7de4a0483f56 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflow.java
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflow.java
@@ -607,10 +607,11 @@ public com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State getState()
*
*
*
- * Time when the workflow was created.
+ * Output only. Time when the workflow was created.
*
*
- * .google.protobuf.Timestamp create_time = 4;
+ * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the createTime field is set.
*/
@@ -623,10 +624,11 @@ public boolean hasCreateTime() {
*
*
*
- * Time when the workflow was created.
+ * Output only. Time when the workflow was created.
*
*
- * .google.protobuf.Timestamp create_time = 4;
+ * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The createTime.
*/
@@ -639,10 +641,11 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * Time when the workflow was created.
+ * Output only. Time when the workflow was created.
*
*
- * .google.protobuf.Timestamp create_time = 4;
+ * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
@@ -656,10 +659,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * Time when the workflow was last updated.
+ * Output only. Time when the workflow was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 5;
+ *
+ * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the lastUpdateTime field is set.
*/
@@ -672,10 +677,12 @@ public boolean hasLastUpdateTime() {
*
*
*
- * Time when the workflow was last updated.
+ * Output only. Time when the workflow was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 5;
+ *
+ * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The lastUpdateTime.
*/
@@ -690,10 +697,12 @@ public com.google.protobuf.Timestamp getLastUpdateTime() {
*
*
*
- * Time when the workflow was last updated.
+ * Output only. Time when the workflow was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 5;
+ *
+ * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
@@ -1839,10 +1848,12 @@ public Builder clearState() {
*
*
*
- * Time when the workflow was created.
+ * Output only. Time when the workflow was created.
*
*
- * .google.protobuf.Timestamp create_time = 4;
+ *
+ * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the createTime field is set.
*/
@@ -1854,10 +1865,12 @@ public boolean hasCreateTime() {
*
*
*
- * Time when the workflow was created.
+ * Output only. Time when the workflow was created.
*
*
- * .google.protobuf.Timestamp create_time = 4;
+ *
+ * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The createTime.
*/
@@ -1875,10 +1888,12 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * Time when the workflow was created.
+ * Output only. Time when the workflow was created.
*
*
- * .google.protobuf.Timestamp create_time = 4;
+ *
+ * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
@@ -1898,10 +1913,12 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Time when the workflow was created.
+ * Output only. Time when the workflow was created.
*
*
- * .google.protobuf.Timestamp create_time = 4;
+ *
+ * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
@@ -1918,10 +1935,12 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * Time when the workflow was created.
+ * Output only. Time when the workflow was created.
*
*
- * .google.protobuf.Timestamp create_time = 4;
+ *
+ * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
@@ -1946,10 +1965,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Time when the workflow was created.
+ * Output only. Time when the workflow was created.
*
*
- * .google.protobuf.Timestamp create_time = 4;
+ *
+ * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000010);
@@ -1966,10 +1987,12 @@ public Builder clearCreateTime() {
*
*
*
- * Time when the workflow was created.
+ * Output only. Time when the workflow was created.
*
*
- * .google.protobuf.Timestamp create_time = 4;
+ *
+ * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000010;
@@ -1981,10 +2004,12 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
*
*
*
- * Time when the workflow was created.
+ * Output only. Time when the workflow was created.
*
*
- * .google.protobuf.Timestamp create_time = 4;
+ *
+ * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
@@ -2000,10 +2025,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * Time when the workflow was created.
+ * Output only. Time when the workflow was created.
*
*
- * .google.protobuf.Timestamp create_time = 4;
+ *
+ * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp,
@@ -2033,10 +2060,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * Time when the workflow was last updated.
+ * Output only. Time when the workflow was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 5;
+ *
+ * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the lastUpdateTime field is set.
*/
@@ -2048,10 +2077,12 @@ public boolean hasLastUpdateTime() {
*
*
*
- * Time when the workflow was last updated.
+ * Output only. Time when the workflow was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 5;
+ *
+ * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The lastUpdateTime.
*/
@@ -2069,10 +2100,12 @@ public com.google.protobuf.Timestamp getLastUpdateTime() {
*
*
*
- * Time when the workflow was last updated.
+ * Output only. Time when the workflow was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 5;
+ *
+ * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) {
if (lastUpdateTimeBuilder_ == null) {
@@ -2092,10 +2125,12 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Time when the workflow was last updated.
+ * Output only. Time when the workflow was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 5;
+ *
+ * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastUpdateTimeBuilder_ == null) {
@@ -2112,10 +2147,12 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo
*
*
*
- * Time when the workflow was last updated.
+ * Output only. Time when the workflow was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 5;
+ *
+ * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) {
if (lastUpdateTimeBuilder_ == null) {
@@ -2140,10 +2177,12 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Time when the workflow was last updated.
+ * Output only. Time when the workflow was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 5;
+ *
+ * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder clearLastUpdateTime() {
bitField0_ = (bitField0_ & ~0x00000020);
@@ -2160,10 +2199,12 @@ public Builder clearLastUpdateTime() {
*
*
*
- * Time when the workflow was last updated.
+ * Output only. Time when the workflow was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 5;
+ *
+ * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() {
bitField0_ |= 0x00000020;
@@ -2175,10 +2216,12 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() {
*
*
*
- * Time when the workflow was last updated.
+ * Output only. Time when the workflow was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 5;
+ *
+ * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
if (lastUpdateTimeBuilder_ != null) {
@@ -2194,10 +2237,12 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
*
*
*
- * Time when the workflow was last updated.
+ * Output only. Time when the workflow was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 5;
+ *
+ * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp,
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowOrBuilder.java
index d24077aa146f..e26af356decc 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowOrBuilder.java
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowOrBuilder.java
@@ -198,10 +198,11 @@ com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrDefault(
*
*
*
- * Time when the workflow was created.
+ * Output only. Time when the workflow was created.
*
*
- * .google.protobuf.Timestamp create_time = 4;
+ * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the createTime field is set.
*/
@@ -211,10 +212,11 @@ com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrDefault(
*
*
*
- * Time when the workflow was created.
+ * Output only. Time when the workflow was created.
*
*
- * .google.protobuf.Timestamp create_time = 4;
+ * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The createTime.
*/
@@ -224,10 +226,11 @@ com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrDefault(
*
*
*
- * Time when the workflow was created.
+ * Output only. Time when the workflow was created.
*
*
- * .google.protobuf.Timestamp create_time = 4;
+ * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
@@ -235,10 +238,12 @@ com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrDefault(
*
*
*
- * Time when the workflow was last updated.
+ * Output only. Time when the workflow was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 5;
+ *
+ * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return Whether the lastUpdateTime field is set.
*/
@@ -248,10 +253,12 @@ com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrDefault(
*
*
*
- * Time when the workflow was last updated.
+ * Output only. Time when the workflow was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 5;
+ *
+ * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return The lastUpdateTime.
*/
@@ -261,10 +268,12 @@ com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrDefault(
*
*
*
- * Time when the workflow was last updated.
+ * Output only. Time when the workflow was last updated.
*
*
- * .google.protobuf.Timestamp last_update_time = 5;
+ *
+ * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder();
}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceSpec.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceSpec.java
index a18c295853d0..886ef8154436 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceSpec.java
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceSpec.java
@@ -81,6 +81,7 @@ public enum SourceCase
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
BASE_URI(1),
LITERAL(2),
+ GCS_FILE_PATH(4),
SOURCE_NOT_SET(0);
private final int value;
@@ -104,6 +105,8 @@ public static SourceCase forNumber(int value) {
return BASE_URI;
case 2:
return LITERAL;
+ case 4:
+ return GCS_FILE_PATH;
case 0:
return SOURCE_NOT_SET;
default:
@@ -247,6 +250,79 @@ public com.google.cloud.bigquery.migration.v2.LiteralOrBuilder getLiteralOrBuild
return com.google.cloud.bigquery.migration.v2.Literal.getDefaultInstance();
}
+ public static final int GCS_FILE_PATH_FIELD_NUMBER = 4;
+
+ /**
+ *
+ *
+ * + * The path to a single source file in Cloud Storage. + *+ * + *
string gcs_file_path = 4;
+ *
+ * @return Whether the gcsFilePath field is set.
+ */
+ public boolean hasGcsFilePath() {
+ return sourceCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ * + * The path to a single source file in Cloud Storage. + *+ * + *
string gcs_file_path = 4;
+ *
+ * @return The gcsFilePath.
+ */
+ public java.lang.String getGcsFilePath() {
+ java.lang.Object ref = "";
+ if (sourceCase_ == 4) {
+ ref = source_;
+ }
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (sourceCase_ == 4) {
+ source_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The path to a single source file in Cloud Storage. + *+ * + *
string gcs_file_path = 4;
+ *
+ * @return The bytes for gcsFilePath.
+ */
+ public com.google.protobuf.ByteString getGcsFilePathBytes() {
+ java.lang.Object ref = "";
+ if (sourceCase_ == 4) {
+ ref = source_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (sourceCase_ == 4) {
+ source_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int ENCODING_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
@@ -323,6 +399,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(encoding_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, encoding_);
}
+ if (sourceCase_ == 4) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, source_);
+ }
getUnknownFields().writeTo(output);
}
@@ -343,6 +422,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(encoding_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, encoding_);
}
+ if (sourceCase_ == 4) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, source_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -368,6 +450,9 @@ public boolean equals(final java.lang.Object obj) {
case 2:
if (!getLiteral().equals(other.getLiteral())) return false;
break;
+ case 4:
+ if (!getGcsFilePath().equals(other.getGcsFilePath())) return false;
+ break;
case 0:
default:
}
@@ -393,6 +478,10 @@ public int hashCode() {
hash = (37 * hash) + LITERAL_FIELD_NUMBER;
hash = (53 * hash) + getLiteral().hashCode();
break;
+ case 4:
+ hash = (37 * hash) + GCS_FILE_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsFilePath().hashCode();
+ break;
case 0:
default:
}
@@ -579,7 +668,7 @@ public com.google.cloud.bigquery.migration.v2.SourceSpec buildPartial() {
private void buildPartial0(com.google.cloud.bigquery.migration.v2.SourceSpec result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000004) != 0)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
result.encoding_ = encoding_;
}
}
@@ -607,7 +696,7 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.SourceSpec other
return this;
if (!other.getEncoding().isEmpty()) {
encoding_ = other.encoding_;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
}
switch (other.getSourceCase()) {
@@ -623,6 +712,13 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.SourceSpec other
mergeLiteral(other.getLiteral());
break;
}
+ case GCS_FILE_PATH:
+ {
+ sourceCase_ = 4;
+ source_ = other.source_;
+ onChanged();
+ break;
+ }
case SOURCE_NOT_SET:
{
break;
@@ -670,9 +766,16 @@ public Builder mergeFrom(
case 26:
{
encoding_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
break;
} // case 26
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ sourceCase_ = 4;
+ source_ = s;
+ break;
+ } // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1063,6 +1166,145 @@ public com.google.cloud.bigquery.migration.v2.LiteralOrBuilder getLiteralOrBuild
return literalBuilder_;
}
+ /**
+ *
+ *
+ * + * The path to a single source file in Cloud Storage. + *+ * + *
string gcs_file_path = 4;
+ *
+ * @return Whether the gcsFilePath field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsFilePath() {
+ return sourceCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ * + * The path to a single source file in Cloud Storage. + *+ * + *
string gcs_file_path = 4;
+ *
+ * @return The gcsFilePath.
+ */
+ @java.lang.Override
+ public java.lang.String getGcsFilePath() {
+ java.lang.Object ref = "";
+ if (sourceCase_ == 4) {
+ ref = source_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (sourceCase_ == 4) {
+ source_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The path to a single source file in Cloud Storage. + *+ * + *
string gcs_file_path = 4;
+ *
+ * @return The bytes for gcsFilePath.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGcsFilePathBytes() {
+ java.lang.Object ref = "";
+ if (sourceCase_ == 4) {
+ ref = source_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (sourceCase_ == 4) {
+ source_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The path to a single source file in Cloud Storage. + *+ * + *
string gcs_file_path = 4;
+ *
+ * @param value The gcsFilePath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsFilePath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sourceCase_ = 4;
+ source_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The path to a single source file in Cloud Storage. + *+ * + *
string gcs_file_path = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGcsFilePath() {
+ if (sourceCase_ == 4) {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The path to a single source file in Cloud Storage. + *+ * + *
string gcs_file_path = 4;
+ *
+ * @param value The bytes for gcsFilePath to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsFilePathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ sourceCase_ = 4;
+ source_ = value;
+ onChanged();
+ return this;
+ }
+
private java.lang.Object encoding_ = "";
/**
@@ -1128,7 +1370,7 @@ public Builder setEncoding(java.lang.String value) {
throw new NullPointerException();
}
encoding_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1146,7 +1388,7 @@ public Builder setEncoding(java.lang.String value) {
*/
public Builder clearEncoding() {
encoding_ = getDefaultInstance().getEncoding();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1169,7 +1411,7 @@ public Builder setEncodingBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
encoding_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceSpecOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceSpecOrBuilder.java
index 6c1496744d44..b453e44b989c 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceSpecOrBuilder.java
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceSpecOrBuilder.java
@@ -102,6 +102,45 @@ public interface SourceSpecOrBuilder
*/
com.google.cloud.bigquery.migration.v2.LiteralOrBuilder getLiteralOrBuilder();
+ /**
+ *
+ *
+ * + * The path to a single source file in Cloud Storage. + *+ * + *
string gcs_file_path = 4;
+ *
+ * @return Whether the gcsFilePath field is set.
+ */
+ boolean hasGcsFilePath();
+
+ /**
+ *
+ *
+ * + * The path to a single source file in Cloud Storage. + *+ * + *
string gcs_file_path = 4;
+ *
+ * @return The gcsFilePath.
+ */
+ java.lang.String getGcsFilePath();
+
+ /**
+ *
+ *
+ * + * The path to a single source file in Cloud Storage. + *+ * + *
string gcs_file_path = 4;
+ *
+ * @return The bytes for gcsFilePath.
+ */
+ com.google.protobuf.ByteString getGcsFilePathBytes();
+
/**
*
*
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SuggestionConfig.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SuggestionConfig.java
new file mode 100644
index 000000000000..9036f360027c
--- /dev/null
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SuggestionConfig.java
@@ -0,0 +1,967 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * 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
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/bigquery/migration/v2/translation_details.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.bigquery.migration.v2;
+
+/**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.SuggestionConfig} + */ +@com.google.protobuf.Generated +public final class SuggestionConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.SuggestionConfig) + SuggestionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SuggestionConfig"); + } + + // Use SuggestionConfig.newBuilder() to construct. + private SuggestionConfig(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private SuggestionConfig() { + skipSuggestionSteps_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SuggestionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SuggestionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.SuggestionConfig.class, + com.google.cloud.bigquery.migration.v2.SuggestionConfig.Builder.class); + } + + public static final int SKIP_SUGGESTION_STEPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.bigquery.migration.v2.SuggestionStepOrBuilder>
+ getSkipSuggestionStepsOrBuilderList() {
+ return skipSuggestionSteps_;
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ @java.lang.Override
+ public int getSkipSuggestionStepsCount() {
+ return skipSuggestionSteps_.size();
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.SuggestionStep getSkipSuggestionSteps(int index) {
+ return skipSuggestionSteps_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.SuggestionStepOrBuilder
+ getSkipSuggestionStepsOrBuilder(int index) {
+ return skipSuggestionSteps_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < skipSuggestionSteps_.size(); i++) {
+ output.writeMessage(1, skipSuggestionSteps_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < skipSuggestionSteps_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(1, skipSuggestionSteps_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.bigquery.migration.v2.SuggestionConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.migration.v2.SuggestionConfig other =
+ (com.google.cloud.bigquery.migration.v2.SuggestionConfig) obj;
+
+ if (!getSkipSuggestionStepsList().equals(other.getSkipSuggestionStepsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getSkipSuggestionStepsCount() > 0) {
+ hash = (37 * hash) + SKIP_SUGGESTION_STEPS_FIELD_NUMBER;
+ hash = (53 * hash) + getSkipSuggestionStepsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.migration.v2.SuggestionConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.SuggestionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public java.util.List+ * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public int getSkipSuggestionStepsCount() {
+ if (skipSuggestionStepsBuilder_ == null) {
+ return skipSuggestionSteps_.size();
+ } else {
+ return skipSuggestionStepsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.SuggestionStep getSkipSuggestionSteps(int index) {
+ if (skipSuggestionStepsBuilder_ == null) {
+ return skipSuggestionSteps_.get(index);
+ } else {
+ return skipSuggestionStepsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public Builder setSkipSuggestionSteps(
+ int index, com.google.cloud.bigquery.migration.v2.SuggestionStep value) {
+ if (skipSuggestionStepsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSkipSuggestionStepsIsMutable();
+ skipSuggestionSteps_.set(index, value);
+ onChanged();
+ } else {
+ skipSuggestionStepsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public Builder setSkipSuggestionSteps(
+ int index, com.google.cloud.bigquery.migration.v2.SuggestionStep.Builder builderForValue) {
+ if (skipSuggestionStepsBuilder_ == null) {
+ ensureSkipSuggestionStepsIsMutable();
+ skipSuggestionSteps_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ skipSuggestionStepsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public Builder addSkipSuggestionSteps(
+ com.google.cloud.bigquery.migration.v2.SuggestionStep value) {
+ if (skipSuggestionStepsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSkipSuggestionStepsIsMutable();
+ skipSuggestionSteps_.add(value);
+ onChanged();
+ } else {
+ skipSuggestionStepsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public Builder addSkipSuggestionSteps(
+ int index, com.google.cloud.bigquery.migration.v2.SuggestionStep value) {
+ if (skipSuggestionStepsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSkipSuggestionStepsIsMutable();
+ skipSuggestionSteps_.add(index, value);
+ onChanged();
+ } else {
+ skipSuggestionStepsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public Builder addSkipSuggestionSteps(
+ com.google.cloud.bigquery.migration.v2.SuggestionStep.Builder builderForValue) {
+ if (skipSuggestionStepsBuilder_ == null) {
+ ensureSkipSuggestionStepsIsMutable();
+ skipSuggestionSteps_.add(builderForValue.build());
+ onChanged();
+ } else {
+ skipSuggestionStepsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public Builder addSkipSuggestionSteps(
+ int index, com.google.cloud.bigquery.migration.v2.SuggestionStep.Builder builderForValue) {
+ if (skipSuggestionStepsBuilder_ == null) {
+ ensureSkipSuggestionStepsIsMutable();
+ skipSuggestionSteps_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ skipSuggestionStepsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public Builder addAllSkipSuggestionSteps(
+ java.lang.Iterable extends com.google.cloud.bigquery.migration.v2.SuggestionStep>
+ values) {
+ if (skipSuggestionStepsBuilder_ == null) {
+ ensureSkipSuggestionStepsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skipSuggestionSteps_);
+ onChanged();
+ } else {
+ skipSuggestionStepsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public Builder clearSkipSuggestionSteps() {
+ if (skipSuggestionStepsBuilder_ == null) {
+ skipSuggestionSteps_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ skipSuggestionStepsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public Builder removeSkipSuggestionSteps(int index) {
+ if (skipSuggestionStepsBuilder_ == null) {
+ ensureSkipSuggestionStepsIsMutable();
+ skipSuggestionSteps_.remove(index);
+ onChanged();
+ } else {
+ skipSuggestionStepsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.SuggestionStep.Builder
+ getSkipSuggestionStepsBuilder(int index) {
+ return internalGetSkipSuggestionStepsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.SuggestionStepOrBuilder
+ getSkipSuggestionStepsOrBuilder(int index) {
+ if (skipSuggestionStepsBuilder_ == null) {
+ return skipSuggestionSteps_.get(index);
+ } else {
+ return skipSuggestionStepsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public java.util.List extends com.google.cloud.bigquery.migration.v2.SuggestionStepOrBuilder>
+ getSkipSuggestionStepsOrBuilderList() {
+ if (skipSuggestionStepsBuilder_ != null) {
+ return skipSuggestionStepsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(skipSuggestionSteps_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.SuggestionStep.Builder
+ addSkipSuggestionStepsBuilder() {
+ return internalGetSkipSuggestionStepsFieldBuilder()
+ .addBuilder(com.google.cloud.bigquery.migration.v2.SuggestionStep.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.SuggestionStep.Builder
+ addSkipSuggestionStepsBuilder(int index) {
+ return internalGetSkipSuggestionStepsFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.bigquery.migration.v2.SuggestionStep.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ public java.util.List+ * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ java.util.List+ * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ com.google.cloud.bigquery.migration.v2.SuggestionStep getSkipSuggestionSteps(int index);
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ int getSkipSuggestionStepsCount();
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ java.util.List extends com.google.cloud.bigquery.migration.v2.SuggestionStepOrBuilder>
+ getSkipSuggestionStepsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * The list of suggestion steps to skip. + *+ * + *
repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1;
+ *
+ */
+ com.google.cloud.bigquery.migration.v2.SuggestionStepOrBuilder getSkipSuggestionStepsOrBuilder(
+ int index);
+}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SuggestionStep.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SuggestionStep.java
new file mode 100644
index 000000000000..7b2b8e262b5b
--- /dev/null
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SuggestionStep.java
@@ -0,0 +1,1101 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * 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
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/bigquery/migration/v2/translation_details.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.bigquery.migration.v2;
+
+/**
+ *
+ *
+ * + * Suggestion step to skip. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.SuggestionStep} + */ +@com.google.protobuf.Generated +public final class SuggestionStep extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.SuggestionStep) + SuggestionStepOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SuggestionStep"); + } + + // Use SuggestionStep.newBuilder() to construct. + private SuggestionStep(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private SuggestionStep() { + suggestionType_ = 0; + rewriteTarget_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SuggestionStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_SuggestionStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.SuggestionStep.class, + com.google.cloud.bigquery.migration.v2.SuggestionStep.Builder.class); + } + + /** + * + * + *
+ * Suggestion type. + *+ * + * Protobuf enum {@code google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType} + */ + public enum SuggestionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Suggestion type unspecified. + *+ * + *
SUGGESTION_TYPE_UNSPECIFIED = 0;
+ */
+ SUGGESTION_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Query customization. + *+ * + *
QUERY_CUSTOMIZATION = 1;
+ */
+ QUERY_CUSTOMIZATION(1),
+ /**
+ *
+ *
+ * + * Translation explanation. + *+ * + *
TRANSLATION_EXPLANATION = 2;
+ */
+ TRANSLATION_EXPLANATION(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "SuggestionType");
+ }
+
+ /**
+ *
+ *
+ * + * Suggestion type unspecified. + *+ * + *
SUGGESTION_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int SUGGESTION_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Query customization. + *+ * + *
QUERY_CUSTOMIZATION = 1;
+ */
+ public static final int QUERY_CUSTOMIZATION_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Translation explanation. + *+ * + *
TRANSLATION_EXPLANATION = 2;
+ */
+ public static final int TRANSLATION_EXPLANATION_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static SuggestionType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static SuggestionType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return SUGGESTION_TYPE_UNSPECIFIED;
+ case 1:
+ return QUERY_CUSTOMIZATION;
+ case 2:
+ return TRANSLATION_EXPLANATION;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The target to apply the suggestion to. + *+ * + * Protobuf enum {@code google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget} + */ + public enum RewriteTarget implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Rewrite target unspecified. + *+ * + *
REWRITE_TARGET_UNSPECIFIED = 0;
+ */
+ REWRITE_TARGET_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Source SQL. + *+ * + *
SOURCE_SQL = 1;
+ */
+ SOURCE_SQL(1),
+ /**
+ *
+ *
+ * + * Target SQL. + *+ * + *
TARGET_SQL = 2;
+ */
+ TARGET_SQL(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "RewriteTarget");
+ }
+
+ /**
+ *
+ *
+ * + * Rewrite target unspecified. + *+ * + *
REWRITE_TARGET_UNSPECIFIED = 0;
+ */
+ public static final int REWRITE_TARGET_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Source SQL. + *+ * + *
SOURCE_SQL = 1;
+ */
+ public static final int SOURCE_SQL_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Target SQL. + *+ * + *
TARGET_SQL = 2;
+ */
+ public static final int TARGET_SQL_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static RewriteTarget valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static RewriteTarget forNumber(int value) {
+ switch (value) {
+ case 0:
+ return REWRITE_TARGET_UNSPECIFIED;
+ case 1:
+ return SOURCE_SQL;
+ case 2:
+ return TARGET_SQL;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The type of suggestion. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType suggestion_type = 1;
+ *
+ *
+ * @return The enum numeric value on the wire for suggestionType.
+ */
+ @java.lang.Override
+ public int getSuggestionTypeValue() {
+ return suggestionType_;
+ }
+
+ /**
+ *
+ *
+ * + * The type of suggestion. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType suggestion_type = 1;
+ *
+ *
+ * @return The suggestionType.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType getSuggestionType() {
+ com.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType result =
+ com.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType.forNumber(
+ suggestionType_);
+ return result == null
+ ? com.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int REWRITE_TARGET_FIELD_NUMBER = 2;
+ private int rewriteTarget_ = 0;
+
+ /**
+ *
+ *
+ * + * The rewrite target. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget rewrite_target = 2;
+ *
+ *
+ * @return The enum numeric value on the wire for rewriteTarget.
+ */
+ @java.lang.Override
+ public int getRewriteTargetValue() {
+ return rewriteTarget_;
+ }
+
+ /**
+ *
+ *
+ * + * The rewrite target. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget rewrite_target = 2;
+ *
+ *
+ * @return The rewriteTarget.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget getRewriteTarget() {
+ com.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget result =
+ com.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget.forNumber(
+ rewriteTarget_);
+ return result == null
+ ? com.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (suggestionType_
+ != com.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType
+ .SUGGESTION_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, suggestionType_);
+ }
+ if (rewriteTarget_
+ != com.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget
+ .REWRITE_TARGET_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, rewriteTarget_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (suggestionType_
+ != com.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType
+ .SUGGESTION_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, suggestionType_);
+ }
+ if (rewriteTarget_
+ != com.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget
+ .REWRITE_TARGET_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, rewriteTarget_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.bigquery.migration.v2.SuggestionStep)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.migration.v2.SuggestionStep other =
+ (com.google.cloud.bigquery.migration.v2.SuggestionStep) obj;
+
+ if (suggestionType_ != other.suggestionType_) return false;
+ if (rewriteTarget_ != other.rewriteTarget_) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SUGGESTION_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + suggestionType_;
+ hash = (37 * hash) + REWRITE_TARGET_FIELD_NUMBER;
+ hash = (53 * hash) + rewriteTarget_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionStep parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionStep parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionStep parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionStep parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionStep parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionStep parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionStep parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionStep parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionStep parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionStep parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionStep parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionStep parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.migration.v2.SuggestionStep prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Suggestion step to skip. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.SuggestionStep} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The type of suggestion. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType suggestion_type = 1;
+ *
+ *
+ * @return The enum numeric value on the wire for suggestionType.
+ */
+ @java.lang.Override
+ public int getSuggestionTypeValue() {
+ return suggestionType_;
+ }
+
+ /**
+ *
+ *
+ * + * The type of suggestion. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType suggestion_type = 1;
+ *
+ *
+ * @param value The enum numeric value on the wire for suggestionType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSuggestionTypeValue(int value) {
+ suggestionType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The type of suggestion. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType suggestion_type = 1;
+ *
+ *
+ * @return The suggestionType.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType
+ getSuggestionType() {
+ com.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType result =
+ com.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType.forNumber(
+ suggestionType_);
+ return result == null
+ ? com.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * The type of suggestion. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType suggestion_type = 1;
+ *
+ *
+ * @param value The suggestionType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSuggestionType(
+ com.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ suggestionType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The type of suggestion. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType suggestion_type = 1;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSuggestionType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ suggestionType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int rewriteTarget_ = 0;
+
+ /**
+ *
+ *
+ * + * The rewrite target. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget rewrite_target = 2;
+ *
+ *
+ * @return The enum numeric value on the wire for rewriteTarget.
+ */
+ @java.lang.Override
+ public int getRewriteTargetValue() {
+ return rewriteTarget_;
+ }
+
+ /**
+ *
+ *
+ * + * The rewrite target. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget rewrite_target = 2;
+ *
+ *
+ * @param value The enum numeric value on the wire for rewriteTarget to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRewriteTargetValue(int value) {
+ rewriteTarget_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The rewrite target. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget rewrite_target = 2;
+ *
+ *
+ * @return The rewriteTarget.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget getRewriteTarget() {
+ com.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget result =
+ com.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget.forNumber(
+ rewriteTarget_);
+ return result == null
+ ? com.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * The rewrite target. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget rewrite_target = 2;
+ *
+ *
+ * @param value The rewriteTarget to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRewriteTarget(
+ com.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ rewriteTarget_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The rewrite target. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget rewrite_target = 2;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRewriteTarget() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ rewriteTarget_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.SuggestionStep)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.SuggestionStep)
+ private static final com.google.cloud.bigquery.migration.v2.SuggestionStep DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.SuggestionStep();
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.SuggestionStep getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The type of suggestion. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType suggestion_type = 1;
+ *
+ *
+ * @return The enum numeric value on the wire for suggestionType.
+ */
+ int getSuggestionTypeValue();
+
+ /**
+ *
+ *
+ * + * The type of suggestion. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType suggestion_type = 1;
+ *
+ *
+ * @return The suggestionType.
+ */
+ com.google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType getSuggestionType();
+
+ /**
+ *
+ *
+ * + * The rewrite target. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget rewrite_target = 2;
+ *
+ *
+ * @return The enum numeric value on the wire for rewriteTarget.
+ */
+ int getRewriteTargetValue();
+
+ /**
+ *
+ *
+ * + * The rewrite target. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget rewrite_target = 2;
+ *
+ *
+ * @return The rewriteTarget.
+ */
+ com.google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget getRewriteTarget();
+}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetails.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetails.java
index afa64fecae1a..72d1f8f6865e 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetails.java
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetails.java
@@ -429,6 +429,60 @@ public com.google.protobuf.ByteString getTargetTypesBytes(int index) {
return targetTypes_.getByteString(index);
}
+ public static final int SUGGESTION_CONFIG_FIELD_NUMBER = 6;
+ private com.google.cloud.bigquery.migration.v2.SuggestionConfig suggestionConfig_;
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6;
+ *
+ * @return Whether the suggestionConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasSuggestionConfig() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6;
+ *
+ * @return The suggestionConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.SuggestionConfig getSuggestionConfig() {
+ return suggestionConfig_ == null
+ ? com.google.cloud.bigquery.migration.v2.SuggestionConfig.getDefaultInstance()
+ : suggestionConfig_;
+ }
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6;
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.SuggestionConfigOrBuilder
+ getSuggestionConfigOrBuilder() {
+ return suggestionConfig_ == null
+ ? com.google.cloud.bigquery.migration.v2.SuggestionConfig.getDefaultInstance()
+ : suggestionConfig_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -458,6 +512,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < targetTypes_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, targetTypes_.getRaw(i));
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(6, getSuggestionConfig());
+ }
getUnknownFields().writeTo(output);
}
@@ -493,6 +550,9 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getTargetTypesList().size();
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSuggestionConfig());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -517,6 +577,10 @@ public boolean equals(final java.lang.Object obj) {
}
if (!getTargetReturnLiteralsList().equals(other.getTargetReturnLiteralsList())) return false;
if (!getTargetTypesList().equals(other.getTargetTypesList())) return false;
+ if (hasSuggestionConfig() != other.hasSuggestionConfig()) return false;
+ if (hasSuggestionConfig()) {
+ if (!getSuggestionConfig().equals(other.getSuggestionConfig())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -546,6 +610,10 @@ public int hashCode() {
hash = (37 * hash) + TARGET_TYPES_FIELD_NUMBER;
hash = (53 * hash) + getTargetTypesList().hashCode();
}
+ if (hasSuggestionConfig()) {
+ hash = (37 * hash) + SUGGESTION_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getSuggestionConfig().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -691,6 +759,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
internalGetSourceTargetMappingFieldBuilder();
internalGetSourceEnvironmentFieldBuilder();
+ internalGetSuggestionConfigFieldBuilder();
}
}
@@ -713,6 +782,11 @@ public Builder clear() {
}
targetReturnLiterals_ = com.google.protobuf.LazyStringArrayList.emptyList();
targetTypes_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ suggestionConfig_ = null;
+ if (suggestionConfigBuilder_ != null) {
+ suggestionConfigBuilder_.dispose();
+ suggestionConfigBuilder_ = null;
+ }
return this;
}
@@ -782,6 +856,11 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.TranslationDet
targetTypes_.makeImmutable();
result.targetTypes_ = targetTypes_;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.suggestionConfig_ =
+ suggestionConfigBuilder_ == null ? suggestionConfig_ : suggestionConfigBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -853,6 +932,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.TranslationDetai
}
onChanged();
}
+ if (other.hasSuggestionConfig()) {
+ mergeSuggestionConfig(other.getSuggestionConfig());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -920,6 +1002,13 @@ public Builder mergeFrom(
targetTypes_.add(s);
break;
} // case 42
+ case 50:
+ {
+ input.readMessage(
+ internalGetSuggestionConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2085,6 +2174,206 @@ public Builder addTargetTypesBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.cloud.bigquery.migration.v2.SuggestionConfig suggestionConfig_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.SuggestionConfig,
+ com.google.cloud.bigquery.migration.v2.SuggestionConfig.Builder,
+ com.google.cloud.bigquery.migration.v2.SuggestionConfigOrBuilder>
+ suggestionConfigBuilder_;
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6;
+ *
+ * @return Whether the suggestionConfig field is set.
+ */
+ public boolean hasSuggestionConfig() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6;
+ *
+ * @return The suggestionConfig.
+ */
+ public com.google.cloud.bigquery.migration.v2.SuggestionConfig getSuggestionConfig() {
+ if (suggestionConfigBuilder_ == null) {
+ return suggestionConfig_ == null
+ ? com.google.cloud.bigquery.migration.v2.SuggestionConfig.getDefaultInstance()
+ : suggestionConfig_;
+ } else {
+ return suggestionConfigBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6;
+ */
+ public Builder setSuggestionConfig(
+ com.google.cloud.bigquery.migration.v2.SuggestionConfig value) {
+ if (suggestionConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ suggestionConfig_ = value;
+ } else {
+ suggestionConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6;
+ */
+ public Builder setSuggestionConfig(
+ com.google.cloud.bigquery.migration.v2.SuggestionConfig.Builder builderForValue) {
+ if (suggestionConfigBuilder_ == null) {
+ suggestionConfig_ = builderForValue.build();
+ } else {
+ suggestionConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6;
+ */
+ public Builder mergeSuggestionConfig(
+ com.google.cloud.bigquery.migration.v2.SuggestionConfig value) {
+ if (suggestionConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && suggestionConfig_ != null
+ && suggestionConfig_
+ != com.google.cloud.bigquery.migration.v2.SuggestionConfig.getDefaultInstance()) {
+ getSuggestionConfigBuilder().mergeFrom(value);
+ } else {
+ suggestionConfig_ = value;
+ }
+ } else {
+ suggestionConfigBuilder_.mergeFrom(value);
+ }
+ if (suggestionConfig_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6;
+ */
+ public Builder clearSuggestionConfig() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ suggestionConfig_ = null;
+ if (suggestionConfigBuilder_ != null) {
+ suggestionConfigBuilder_.dispose();
+ suggestionConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6;
+ */
+ public com.google.cloud.bigquery.migration.v2.SuggestionConfig.Builder
+ getSuggestionConfigBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return internalGetSuggestionConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6;
+ */
+ public com.google.cloud.bigquery.migration.v2.SuggestionConfigOrBuilder
+ getSuggestionConfigOrBuilder() {
+ if (suggestionConfigBuilder_ != null) {
+ return suggestionConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return suggestionConfig_ == null
+ ? com.google.cloud.bigquery.migration.v2.SuggestionConfig.getDefaultInstance()
+ : suggestionConfig_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.SuggestionConfig,
+ com.google.cloud.bigquery.migration.v2.SuggestionConfig.Builder,
+ com.google.cloud.bigquery.migration.v2.SuggestionConfigOrBuilder>
+ internalGetSuggestionConfigFieldBuilder() {
+ if (suggestionConfigBuilder_ == null) {
+ suggestionConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.SuggestionConfig,
+ com.google.cloud.bigquery.migration.v2.SuggestionConfig.Builder,
+ com.google.cloud.bigquery.migration.v2.SuggestionConfigOrBuilder>(
+ getSuggestionConfig(), getParentForChildren(), isClean());
+ suggestionConfig_ = null;
+ }
+ return suggestionConfigBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.TranslationDetails)
}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetailsOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetailsOrBuilder.java
index 3baa9954b66c..d3bf64c91196 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetailsOrBuilder.java
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetailsOrBuilder.java
@@ -284,4 +284,41 @@ public interface TranslationDetailsOrBuilder
* @return The bytes of the targetTypes at the given index.
*/
com.google.protobuf.ByteString getTargetTypesBytes(int index);
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6;
+ *
+ * @return Whether the suggestionConfig field is set.
+ */
+ boolean hasSuggestionConfig();
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6;
+ *
+ * @return The suggestionConfig.
+ */
+ com.google.cloud.bigquery.migration.v2.SuggestionConfig getSuggestionConfig();
+
+ /**
+ *
+ *
+ * + * The configuration for the suggestion if requested as a target type. + *+ * + *
.google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6;
+ */
+ com.google.cloud.bigquery.migration.v2.SuggestionConfigOrBuilder getSuggestionConfigOrBuilder();
}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetailsProto.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetailsProto.java
index 44a30981d402..202fcbe99392 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetailsProto.java
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationDetailsProto.java
@@ -44,6 +44,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_bigquery_migration_v2_TranslationDetails_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_bigquery_migration_v2_TranslationDetails_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_migration_v2_SuggestionConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_bigquery_migration_v2_SuggestionConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_migration_v2_SuggestionStep_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_bigquery_migration_v2_SuggestionStep_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_bigquery_migration_v2_SourceTargetMapping_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -76,33 +84,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n+ * The Cloud Console URI for the migration workflow. + *+ * + *
string console_uri = 3;
+ *
+ * @return The consoleUri.
+ */
+ @java.lang.Override
+ public java.lang.String getConsoleUri() {
+ java.lang.Object ref = consoleUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ consoleUri_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Console URI for the migration workflow. + *+ * + *
string console_uri = 3;
+ *
+ * @return The bytes for consoleUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getConsoleUriBytes() {
+ java.lang.Object ref = consoleUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ consoleUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -255,6 +309,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < reportLogMessages_.size(); i++) {
output.writeMessage(2, reportLogMessages_.get(i));
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(consoleUri_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, consoleUri_);
+ }
getUnknownFields().writeTo(output);
}
@@ -272,6 +329,9 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(2, reportLogMessages_.get(i));
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(consoleUri_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, consoleUri_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -290,6 +350,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getTranslatedLiteralsList().equals(other.getTranslatedLiteralsList())) return false;
if (!getReportLogMessagesList().equals(other.getReportLogMessagesList())) return false;
+ if (!getConsoleUri().equals(other.getConsoleUri())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -309,6 +370,8 @@ public int hashCode() {
hash = (37 * hash) + REPORT_LOG_MESSAGES_FIELD_NUMBER;
hash = (53 * hash) + getReportLogMessagesList().hashCode();
}
+ hash = (37 * hash) + CONSOLE_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getConsoleUri().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -464,6 +527,7 @@ public Builder clear() {
reportLogMessagesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
+ consoleUri_ = "";
return this;
}
@@ -525,6 +589,9 @@ private void buildPartialRepeatedFields(
private void buildPartial0(
com.google.cloud.bigquery.migration.v2.TranslationTaskResult result) {
int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.consoleUri_ = consoleUri_;
+ }
}
@java.lang.Override
@@ -595,6 +662,11 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.TranslationTaskR
}
}
}
+ if (!other.getConsoleUri().isEmpty()) {
+ consoleUri_ = other.consoleUri_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -648,6 +720,12 @@ public Builder mergeFrom(
}
break;
} // case 18
+ case 26:
+ {
+ consoleUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1469,6 +1547,117 @@ public Builder removeReportLogMessages(int index) {
return reportLogMessagesBuilder_;
}
+ private java.lang.Object consoleUri_ = "";
+
+ /**
+ *
+ *
+ * + * The Cloud Console URI for the migration workflow. + *+ * + *
string console_uri = 3;
+ *
+ * @return The consoleUri.
+ */
+ public java.lang.String getConsoleUri() {
+ java.lang.Object ref = consoleUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ consoleUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Console URI for the migration workflow. + *+ * + *
string console_uri = 3;
+ *
+ * @return The bytes for consoleUri.
+ */
+ public com.google.protobuf.ByteString getConsoleUriBytes() {
+ java.lang.Object ref = consoleUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ consoleUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Console URI for the migration workflow. + *+ * + *
string console_uri = 3;
+ *
+ * @param value The consoleUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConsoleUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ consoleUri_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Console URI for the migration workflow. + *+ * + *
string console_uri = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearConsoleUri() {
+ consoleUri_ = getDefaultInstance().getConsoleUri();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Console URI for the migration workflow. + *+ * + *
string console_uri = 3;
+ *
+ * @param value The bytes for consoleUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConsoleUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ consoleUri_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.TranslationTaskResult)
}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationTaskResultOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationTaskResultOrBuilder.java
index b16ad4274e41..c142fdaf2986 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationTaskResultOrBuilder.java
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationTaskResultOrBuilder.java
@@ -144,4 +144,30 @@ public interface TranslationTaskResultOrBuilder
*/
com.google.cloud.bigquery.migration.v2.GcsReportLogMessageOrBuilder getReportLogMessagesOrBuilder(
int index);
+
+ /**
+ *
+ *
+ * + * The Cloud Console URI for the migration workflow. + *+ * + *
string console_uri = 3;
+ *
+ * @return The consoleUri.
+ */
+ java.lang.String getConsoleUri();
+
+ /**
+ *
+ *
+ * + * The Cloud Console URI for the migration workflow. + *+ * + *
string console_uri = 3;
+ *
+ * @return The bytes for consoleUri.
+ */
+ com.google.protobuf.ByteString getConsoleUriBytes();
}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/assessment_task.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/assessment_task.proto
new file mode 100644
index 000000000000..2703f18c49bb
--- /dev/null
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/assessment_task.proto
@@ -0,0 +1,55 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://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,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.migration.v2;
+
+import "google/api/field_behavior.proto";
+
+option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2";
+option go_package = "cloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb";
+option java_multiple_files = true;
+option java_outer_classname = "AssessmentTaskProto";
+option java_package = "com.google.cloud.bigquery.migration.v2";
+option php_namespace = "Google\\Cloud\\BigQuery\\Migration\\V2";
+
+// Assessment task config.
+message AssessmentTaskDetails {
+ // Required. The Cloud Storage path for assessment input files.
+ string input_path = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The BigQuery dataset for output.
+ string output_dataset = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. An optional Cloud Storage path to write the query logs (which is
+ // then used as an input path on the translation task)
+ string querylogs_path = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT)
+ // from which the input data is extracted.
+ string data_source = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A collection of additional feature flags for this assessment.
+ optional AssessmentFeatureHandle feature_handle = 6
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// User-definable feature flags for assessment tasks.
+message AssessmentFeatureHandle {
+ // Optional. Whether to create a dataset containing non-PII data in addition
+ // to the output dataset.
+ optional bool add_shareable_dataset = 1
+ [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto
index cefbe0666c62..775e3d426ee4 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@ package google.cloud.bigquery.migration.v2;
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
+import "google/cloud/bigquery/migration/v2/assessment_task.proto";
import "google/cloud/bigquery/migration/v2/migration_error_details.proto";
import "google/cloud/bigquery/migration/v2/migration_metrics.proto";
import "google/cloud/bigquery/migration/v2/translation_config.proto";
@@ -85,11 +86,13 @@ message MigrationWorkflow {
// Output only. That status of the workflow.
State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
- // Time when the workflow was created.
- google.protobuf.Timestamp create_time = 4;
+ // Output only. Time when the workflow was created.
+ google.protobuf.Timestamp create_time = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
- // Time when the workflow was last updated.
- google.protobuf.Timestamp last_update_time = 5;
+ // Output only. Time when the workflow was last updated.
+ google.protobuf.Timestamp last_update_time = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
}
// A single task for a migration which has details about the configuration of
@@ -109,7 +112,7 @@ message MigrationTask {
// The task is running, i.e. its subtasks are ready for execution.
RUNNING = 3;
- // Tha task is paused. Assigned subtasks can continue, but no new subtasks
+ // The task is paused. Assigned subtasks can continue, but no new subtasks
// will be scheduled.
PAUSED = 4;
@@ -122,6 +125,9 @@ message MigrationTask {
// The details of the task.
oneof task_details {
+ // Task configuration for Assessment.
+ AssessmentTaskDetails assessment_task_details = 12;
+
// Task configuration for CW Batch/Offline SQL Translation.
TranslationConfigDetails translation_config_details = 14;
@@ -136,13 +142,22 @@ message MigrationTask {
(google.api.field_behavior) = IMMUTABLE
];
- // The type of the task. This must be one of the supported task types:
- // Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
- // Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
- // Translation_Snowflake2BQ, Translation_Netezza2BQ,
- // Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
- // Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ,
- // Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
+ // The type of the task. This must be one of the supported task types.
+ //
+ // Assessment:
+ //
+ // - `Assessment_Hive` - Assessment for Hive.
+ // - `Assessment_Redshift` - Assessment for Redshift.
+ // - `Assessment_Snowflake` - Assessment for Snowflake.
+ // - `Assessment_Teradata_v2` - Assessment for Teradata.
+ // - `Assessment_Oracle` - Assessment for Oracle.
+ // - `Assessment_Hadoop` - Assessment for Hadoop.
+ // - `Assessment_Informatica` - Assessment for Informatica.
+ //
+ // Translation:
+ // See [Supported Task
+ // Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types)
+ // for a list of supported task types.
string type = 2;
// Output only. The current state of the task.
@@ -153,11 +168,13 @@ message MigrationTask {
google.rpc.ErrorInfo processing_error = 5
[(google.api.field_behavior) = OUTPUT_ONLY];
- // Time when the task was created.
- google.protobuf.Timestamp create_time = 6;
+ // Output only. Time when the task was created.
+ google.protobuf.Timestamp create_time = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
- // Time when the task was last updated.
- google.protobuf.Timestamp last_update_time = 7;
+ // Output only. Time when the task was last updated.
+ google.protobuf.Timestamp last_update_time = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. Provides details to errors and issues encountered while
// processing the task. Presence of error details does not mean that the task
@@ -165,24 +182,28 @@ message MigrationTask {
repeated ResourceErrorDetail resource_error_details = 17
[(google.api.field_behavior) = OUTPUT_ONLY];
- // The number or resources with errors. Note: This is not the total
- // number of errors as each resource can have more than one error.
- // This is used to indicate truncation by having a `resource_error_count`
- // that is higher than the size of `resource_error_details`.
- int32 resource_error_count = 18;
+ // Output only. The number or resources with errors. Note: This is not the
+ // total number of errors as each resource can have more than one error. This
+ // is used to indicate truncation by having a `resource_error_count` that is
+ // higher than the size of `resource_error_details`.
+ int32 resource_error_count = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
- // The metrics for the task.
- repeated TimeSeries metrics = 19;
+ // Output only. The metrics for the task.
+ repeated TimeSeries metrics = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. The result of the task.
MigrationTaskResult task_result = 20
[(google.api.field_behavior) = OUTPUT_ONLY];
- // Count of all the processing errors in this task and its subtasks.
- int32 total_processing_error_count = 21;
+ // Output only. Count of all the processing errors in this task and its
+ // subtasks.
+ int32 total_processing_error_count = 21
+ [(google.api.field_behavior) = OUTPUT_ONLY];
- // Count of all the resource errors in this task and its subtasks.
- int32 total_resource_error_count = 22;
+ // Output only. Count of all the resource errors in this task and its
+ // subtasks.
+ int32 total_resource_error_count = 22
+ [(google.api.field_behavior) = OUTPUT_ONLY];
}
// A subtask for a migration which carries details about the configuration of
@@ -252,20 +273,22 @@ message MigrationSubtask {
repeated ResourceErrorDetail resource_error_details = 12
[(google.api.field_behavior) = OUTPUT_ONLY];
- // The number or resources with errors. Note: This is not the total
- // number of errors as each resource can have more than one error.
- // This is used to indicate truncation by having a `resource_error_count`
- // that is higher than the size of `resource_error_details`.
- int32 resource_error_count = 13;
+ // Output only. The number or resources with errors. Note: This is not the
+ // total number of errors as each resource can have more than one error. This
+ // is used to indicate truncation by having a `resource_error_count` that is
+ // higher than the size of `resource_error_details`.
+ int32 resource_error_count = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
- // Time when the subtask was created.
- google.protobuf.Timestamp create_time = 7;
+ // Output only. Time when the subtask was created.
+ google.protobuf.Timestamp create_time = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
- // Time when the subtask was last updated.
- google.protobuf.Timestamp last_update_time = 8;
+ // Output only. Time when the subtask was last updated.
+ google.protobuf.Timestamp last_update_time = 8
+ [(google.api.field_behavior) = OUTPUT_ONLY];
- // The metrics for the subtask.
- repeated TimeSeries metrics = 11;
+ // Output only. The metrics for the subtask.
+ repeated TimeSeries metrics = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// The migration task result.
@@ -284,4 +307,7 @@ message TranslationTaskResult {
// The records from the aggregate CSV report for a migration workflow.
repeated GcsReportLogMessage report_log_messages = 2;
+
+ // The Cloud Console URI for the migration workflow.
+ string console_uri = 3;
}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_error_details.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_error_details.proto
index b40ad642427a..4f7db8c68a06 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_error_details.proto
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_error_details.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_metrics.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_metrics.proto
index a2cb52a2ecc9..50b6e9b53632 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_metrics.proto
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_metrics.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_service.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_service.proto
index fa696fa8adbf..53032afd5780 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_service.proto
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto
index c6cf897a0b30..82bbfb9b38e8 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_details.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_details.proto
index 37e5ae3ba1aa..5737556cda17 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_details.proto
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_details.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -47,6 +47,48 @@ message TranslationDetails {
// targets will be generated. Some additional target types may be slower to
// generate. See the documentation for the set of available target types.
repeated string target_types = 5;
+
+ // The configuration for the suggestion if requested as a target type.
+ SuggestionConfig suggestion_config = 6;
+}
+
+// The configuration for the suggestion if requested as a target type.
+message SuggestionConfig {
+ // The list of suggestion steps to skip.
+ repeated SuggestionStep skip_suggestion_steps = 1;
+}
+
+// Suggestion step to skip.
+message SuggestionStep {
+ // Suggestion type.
+ enum SuggestionType {
+ // Suggestion type unspecified.
+ SUGGESTION_TYPE_UNSPECIFIED = 0;
+
+ // Query customization.
+ QUERY_CUSTOMIZATION = 1;
+
+ // Translation explanation.
+ TRANSLATION_EXPLANATION = 2;
+ }
+
+ // The target to apply the suggestion to.
+ enum RewriteTarget {
+ // Rewrite target unspecified.
+ REWRITE_TARGET_UNSPECIFIED = 0;
+
+ // Source SQL.
+ SOURCE_SQL = 1;
+
+ // Target SQL.
+ TARGET_SQL = 2;
+ }
+
+ // The type of suggestion.
+ SuggestionType suggestion_type = 1;
+
+ // The rewrite target.
+ RewriteTarget rewrite_target = 2;
}
// Represents one mapping from a source SQL to a target SQL.
@@ -67,6 +109,9 @@ message SourceSpec {
// Source literal.
Literal literal = 2;
+
+ // The path to a single source file in Cloud Storage.
+ string gcs_file_path = 4;
}
// Optional. The optional field to specify the encoding of the sql bytes.
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_usability.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_usability.proto
index 012ee00fffcb..944a687f64de 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_usability.proto
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_usability.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md
index 9c93cfd239da..0117d8944be7 100644
--- a/java-bigqueryreservation/README.md
+++ b/java-bigqueryreservation/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
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: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * String globalVmExtensionPolicy = "globalVmExtensionPolicy-869114569";
+ * GlobalVmExtensionPolicy response =
+ * globalVmExtensionPoliciesClient.get(project, globalVmExtensionPolicy);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the GlobalVmExtensionPoliciesClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *
| Method | + *Description | + *Method Variants | + *
|---|---|---|
AggregatedList |
+ * Retrieves the list of all VM Extension Policy resources available to the specified project. + * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
Delete |
+ * Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM extension policy deletion. The deletion of the global VM extension policy happens after the purge rollout is done, so it's not a part of the LRO. It's an automatic process that triggers in the backend. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
Get |
+ * Gets details of a global VM extension policy. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
Insert |
+ * Creates a new project level GlobalVmExtensionPolicy. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
List |
+ * Lists global VM extension policies. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
Update |
+ * Updates a global VM extension policy. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of + * GlobalVmExtensionPoliciesSettings to create(). For example: + * + *
To customize credentials: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GlobalVmExtensionPoliciesSettings globalVmExtensionPoliciesSettings =
+ * GlobalVmExtensionPoliciesSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create(globalVmExtensionPoliciesSettings);
+ * }
+ *
+ * To customize the endpoint: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GlobalVmExtensionPoliciesSettings globalVmExtensionPoliciesSettings =
+ * GlobalVmExtensionPoliciesSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create(globalVmExtensionPoliciesSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class GlobalVmExtensionPoliciesClient implements BackgroundResource { + private final GlobalVmExtensionPoliciesSettings settings; + private final GlobalVmExtensionPoliciesStub stub; + + /** Constructs an instance of GlobalVmExtensionPoliciesClient with default settings. */ + public static final GlobalVmExtensionPoliciesClient create() throws IOException { + return create(GlobalVmExtensionPoliciesSettings.newBuilder().build()); + } + + /** + * Constructs an instance of GlobalVmExtensionPoliciesClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final GlobalVmExtensionPoliciesClient create( + GlobalVmExtensionPoliciesSettings settings) throws IOException { + return new GlobalVmExtensionPoliciesClient(settings); + } + + /** + * Constructs an instance of GlobalVmExtensionPoliciesClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(GlobalVmExtensionPoliciesSettings). + */ + public static final GlobalVmExtensionPoliciesClient create(GlobalVmExtensionPoliciesStub stub) { + return new GlobalVmExtensionPoliciesClient(stub); + } + + /** + * Constructs an instance of GlobalVmExtensionPoliciesClient, 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 GlobalVmExtensionPoliciesClient(GlobalVmExtensionPoliciesSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((GlobalVmExtensionPoliciesStubSettings) settings.getStubSettings()).createStub(); + } + + protected GlobalVmExtensionPoliciesClient(GlobalVmExtensionPoliciesStub stub) { + this.settings = null; + this.stub = stub; + } + + public final GlobalVmExtensionPoliciesSettings getSettings() { + return settings; + } + + public GlobalVmExtensionPoliciesStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the list of all VM Extension Policy resources available to the specified project. + * + *
To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * for (Map.Entry element :
+ * globalVmExtensionPoliciesClient.aggregatedList(project).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param project Name of the project scoping this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AggregatedListPagedResponse aggregatedList(String project) {
+ AggregatedListGlobalVmExtensionPoliciesRequest request =
+ AggregatedListGlobalVmExtensionPoliciesRequest.newBuilder().setProject(project).build();
+ return aggregatedList(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the list of all VM Extension Policy resources available to the specified project.
+ *
+ * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * AggregatedListGlobalVmExtensionPoliciesRequest request =
+ * AggregatedListGlobalVmExtensionPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setIncludeAllScopes(true)
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setServiceProjectNumber(-1293855239)
+ * .build();
+ * for (Map.Entry element :
+ * globalVmExtensionPoliciesClient.aggregatedList(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @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
+ */
+ public final AggregatedListPagedResponse aggregatedList(
+ AggregatedListGlobalVmExtensionPoliciesRequest request) {
+ return aggregatedListPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the list of all VM Extension Policy resources available to the specified project.
+ *
+ * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * AggregatedListGlobalVmExtensionPoliciesRequest request =
+ * AggregatedListGlobalVmExtensionPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setIncludeAllScopes(true)
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setServiceProjectNumber(-1293855239)
+ * .build();
+ * ApiFuture> future =
+ * globalVmExtensionPoliciesClient.aggregatedListPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Map.Entry element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ AggregatedListGlobalVmExtensionPoliciesRequest, AggregatedListPagedResponse>
+ aggregatedListPagedCallable() {
+ return stub.aggregatedListPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the list of all VM Extension Policy resources available to the specified project.
+ *
+ * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * AggregatedListGlobalVmExtensionPoliciesRequest request =
+ * AggregatedListGlobalVmExtensionPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setIncludeAllScopes(true)
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setServiceProjectNumber(-1293855239)
+ * .build();
+ * while (true) {
+ * VmExtensionPolicyAggregatedListResponse response =
+ * globalVmExtensionPoliciesClient.aggregatedListCallable().call(request);
+ * for (Map.Entry element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ AggregatedListGlobalVmExtensionPoliciesRequest, VmExtensionPolicyAggregatedListResponse>
+ aggregatedListCallable() {
+ return stub.aggregatedListCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the
+ * global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM
+ * extension policy deletion. The deletion of the global VM extension policy happens after the
+ * purge rollout is done, so it's not a part of the LRO. It's an automatic process that triggers
+ * in the backend.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * String globalVmExtensionPolicy = "globalVmExtensionPolicy-869114569";
+ * GlobalVmExtensionPolicyRolloutOperationRolloutInput
+ * globalVmExtensionPolicyRolloutOperationRolloutInputResource =
+ * GlobalVmExtensionPolicyRolloutOperationRolloutInput.newBuilder().build();
+ * Operation response =
+ * globalVmExtensionPoliciesClient
+ * .deleteAsync(
+ * project,
+ * globalVmExtensionPolicy,
+ * globalVmExtensionPolicyRolloutOperationRolloutInputResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param globalVmExtensionPolicy Name of the global VM extension policy to purge scoped resources
+ * for.
+ * @param globalVmExtensionPolicyRolloutOperationRolloutInputResource The body resource for this
+ * request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * DeleteGlobalVmExtensionPolicyRequest request =
+ * DeleteGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setGlobalVmExtensionPolicyRolloutOperationRolloutInputResource(
+ * GlobalVmExtensionPolicyRolloutOperationRolloutInput.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Operation response = globalVmExtensionPoliciesClient.deleteAsync(request).get();
+ * }
+ * }
+ *
+ * @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
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * DeleteGlobalVmExtensionPolicyRequest request =
+ * DeleteGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setGlobalVmExtensionPolicyRolloutOperationRolloutInputResource(
+ * GlobalVmExtensionPolicyRolloutOperationRolloutInput.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * globalVmExtensionPoliciesClient.deleteOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * DeleteGlobalVmExtensionPolicyRequest request =
+ * DeleteGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setGlobalVmExtensionPolicyRolloutOperationRolloutInputResource(
+ * GlobalVmExtensionPolicyRolloutOperationRolloutInput.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * globalVmExtensionPoliciesClient.deleteCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * String globalVmExtensionPolicy = "globalVmExtensionPolicy-869114569";
+ * GlobalVmExtensionPolicy response =
+ * globalVmExtensionPoliciesClient.get(project, globalVmExtensionPolicy);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GlobalVmExtensionPolicy get(String project, String globalVmExtensionPolicy) {
+ GetGlobalVmExtensionPolicyRequest request =
+ GetGlobalVmExtensionPolicyRequest.newBuilder()
+ .setProject(project)
+ .setGlobalVmExtensionPolicy(globalVmExtensionPolicy)
+ .build();
+ return get(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a global VM extension policy.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * GetGlobalVmExtensionPolicyRequest request =
+ * GetGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setProject("project-309310695")
+ * .build();
+ * GlobalVmExtensionPolicy response = globalVmExtensionPoliciesClient.get(request);
+ * }
+ * }
+ *
+ * @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
+ */
+ public final GlobalVmExtensionPolicy get(GetGlobalVmExtensionPolicyRequest request) {
+ return getCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a global VM extension policy.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * GetGlobalVmExtensionPolicyRequest request =
+ * GetGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setProject("project-309310695")
+ * .build();
+ * ApiFuture future =
+ * globalVmExtensionPoliciesClient.getCallable().futureCall(request);
+ * // Do something.
+ * GlobalVmExtensionPolicy response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * GlobalVmExtensionPolicy globalVmExtensionPolicyResource =
+ * GlobalVmExtensionPolicy.newBuilder().build();
+ * Operation response =
+ * globalVmExtensionPoliciesClient
+ * .insertAsync(project, globalVmExtensionPolicyResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param globalVmExtensionPolicyResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * InsertGlobalVmExtensionPolicyRequest request =
+ * InsertGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicyResource(GlobalVmExtensionPolicy.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Operation response = globalVmExtensionPoliciesClient.insertAsync(request).get();
+ * }
+ * }
+ *
+ * @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
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * InsertGlobalVmExtensionPolicyRequest request =
+ * InsertGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicyResource(GlobalVmExtensionPolicy.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * globalVmExtensionPoliciesClient.insertOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * InsertGlobalVmExtensionPolicyRequest request =
+ * InsertGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicyResource(GlobalVmExtensionPolicy.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * globalVmExtensionPoliciesClient.insertCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * for (GlobalVmExtensionPolicy element :
+ * globalVmExtensionPoliciesClient.list(project).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPagedResponse list(String project) {
+ ListGlobalVmExtensionPoliciesRequest request =
+ ListGlobalVmExtensionPoliciesRequest.newBuilder().setProject(project).build();
+ return list(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists global VM extension policies.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * ListGlobalVmExtensionPoliciesRequest request =
+ * ListGlobalVmExtensionPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * for (GlobalVmExtensionPolicy element :
+ * globalVmExtensionPoliciesClient.list(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @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
+ */
+ public final ListPagedResponse list(ListGlobalVmExtensionPoliciesRequest request) {
+ return listPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists global VM extension policies.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * ListGlobalVmExtensionPoliciesRequest request =
+ * ListGlobalVmExtensionPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * ApiFuture future =
+ * globalVmExtensionPoliciesClient.listPagedCallable().futureCall(request);
+ * // Do something.
+ * for (GlobalVmExtensionPolicy element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * ListGlobalVmExtensionPoliciesRequest request =
+ * ListGlobalVmExtensionPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * while (true) {
+ * GlobalVmExtensionPolicyList response =
+ * globalVmExtensionPoliciesClient.listCallable().call(request);
+ * for (GlobalVmExtensionPolicy element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * String globalVmExtensionPolicy = "globalVmExtensionPolicy-869114569";
+ * GlobalVmExtensionPolicy globalVmExtensionPolicyResource =
+ * GlobalVmExtensionPolicy.newBuilder().build();
+ * Operation response =
+ * globalVmExtensionPoliciesClient
+ * .updateAsync(project, globalVmExtensionPolicy, globalVmExtensionPolicyResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param globalVmExtensionPolicy Name of the global VM extension policy to update.
+ * @param globalVmExtensionPolicyResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * UpdateGlobalVmExtensionPolicyRequest request =
+ * UpdateGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setGlobalVmExtensionPolicyResource(GlobalVmExtensionPolicy.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Operation response = globalVmExtensionPoliciesClient.updateAsync(request).get();
+ * }
+ * }
+ *
+ * @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
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * UpdateGlobalVmExtensionPolicyRequest request =
+ * UpdateGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setGlobalVmExtensionPolicyResource(GlobalVmExtensionPolicy.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * globalVmExtensionPoliciesClient.updateOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * UpdateGlobalVmExtensionPolicyRequest request =
+ * UpdateGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setGlobalVmExtensionPolicyResource(GlobalVmExtensionPolicy.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * globalVmExtensionPoliciesClient.updateCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThe default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GlobalVmExtensionPoliciesSettings.Builder globalVmExtensionPoliciesSettingsBuilder =
+ * GlobalVmExtensionPoliciesSettings.newBuilder();
+ * globalVmExtensionPoliciesSettingsBuilder
+ * .getSettings()
+ * .setRetrySettings(
+ * globalVmExtensionPoliciesSettingsBuilder
+ * .getSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * GlobalVmExtensionPoliciesSettings globalVmExtensionPoliciesSettings =
+ * globalVmExtensionPoliciesSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for delete: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GlobalVmExtensionPoliciesSettings.Builder globalVmExtensionPoliciesSettingsBuilder =
+ * GlobalVmExtensionPoliciesSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * globalVmExtensionPoliciesSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class GlobalVmExtensionPoliciesSettings
+ extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction GetIamPolicy Gets the access control policy for a resource. May be empty if no such policy or resource exists. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images. Request object method variants only take one parameter, a request object, which must be constructed before the call. getIamPolicy(GetIamPolicyLicenseCodeRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getIamPolicy(String project, String resource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getIamPolicyCallable()
+ * SetIamPolicy Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images. Request object method variants only take one parameter, a request object, which must be constructed before the call. setIamPolicy(SetIamPolicyLicenseCodeRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. setIamPolicy(String project, String resource, GlobalSetPolicyRequest globalSetPolicyRequestResource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. setIamPolicyCallable()
+ * TestIamPermissions Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images. Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * CancelRequestRemovePeering Cancel requests to remove a peering from the specified network. Applicable only for PeeringConnection with update_strategy=CONSENSUS. Cancels a request to remove a peering from the specified network. Request object method variants only take one parameter, a request object, which must be constructed before the call. cancelRequestRemovePeeringAsync(CancelRequestRemovePeeringNetworkRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. cancelRequestRemovePeeringAsync(String project, String network, NetworksCancelRequestRemovePeeringRequest networksCancelRequestRemovePeeringRequestResource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. cancelRequestRemovePeeringOperationCallable()
+ * cancelRequestRemovePeeringCallable()
+ * Delete Deletes the specified network. Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * 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 RolloutPlansClient object to clean up resources such
+ * as threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * Delete Deletes a RolloutPlan. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteAsync(DeleteRolloutPlanRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteAsync(String project, String rolloutPlan)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteOperationCallable()
+ * deleteCallable()
+ * Get Gets details of a single project-scoped RolloutPlan. Request object method variants only take one parameter, a request object, which must be constructed before the call. get(GetRolloutPlanRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. get(String project, String rolloutPlan)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getCallable()
+ * Insert Creates a new RolloutPlan in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. insertAsync(InsertRolloutPlanRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. insertAsync(String project, RolloutPlan rolloutPlanResource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. insertOperationCallable()
+ * insertCallable()
+ * List Lists RolloutPlans in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. list(ListRolloutPlansRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. list(String project)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listPagedCallable()
+ * listCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of RolloutPlansSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class RolloutPlansClient implements BackgroundResource {
+ private final RolloutPlansSettings settings;
+ private final RolloutPlansStub stub;
+
+ /** Constructs an instance of RolloutPlansClient with default settings. */
+ public static final RolloutPlansClient create() throws IOException {
+ return create(RolloutPlansSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of RolloutPlansClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final RolloutPlansClient create(RolloutPlansSettings settings) throws IOException {
+ return new RolloutPlansClient(settings);
+ }
+
+ /**
+ * Constructs an instance of RolloutPlansClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(RolloutPlansSettings).
+ */
+ public static final RolloutPlansClient create(RolloutPlansStub stub) {
+ return new RolloutPlansClient(stub);
+ }
+
+ /**
+ * Constructs an instance of RolloutPlansClient, 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 RolloutPlansClient(RolloutPlansSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((RolloutPlansStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected RolloutPlansClient(RolloutPlansStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final RolloutPlansSettings getSettings() {
+ return settings;
+ }
+
+ public RolloutPlansStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a RolloutPlan.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of get:
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an
+ * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
+ * configure the RetrySettings for delete:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction 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 RolloutsClient object to clean up resources such as
+ * threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * Cancel Cancels a Rollout. Request object method variants only take one parameter, a request object, which must be constructed before the call. cancelAsync(CancelRolloutRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. cancelAsync(String project, String rollout)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. cancelOperationCallable()
+ * cancelCallable()
+ * Delete Deletes a Rollout. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteAsync(DeleteRolloutRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteAsync(String project, String rollout)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteOperationCallable()
+ * deleteCallable()
+ * Get Gets details of a single project-scoped Rollout. Request object method variants only take one parameter, a request object, which must be constructed before the call. get(GetRolloutRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. get(String project, String rollout)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getCallable()
+ * List Lists Rollouts in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. list(ListRolloutsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. list(String project)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listPagedCallable()
+ * listCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of RolloutsSettings to create().
+ * For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class RolloutsClient implements BackgroundResource {
+ private final RolloutsSettings settings;
+ private final RolloutsStub stub;
+
+ /** Constructs an instance of RolloutsClient with default settings. */
+ public static final RolloutsClient create() throws IOException {
+ return create(RolloutsSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of RolloutsClient, using the given settings. The channels are created
+ * based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final RolloutsClient create(RolloutsSettings settings) throws IOException {
+ return new RolloutsClient(settings);
+ }
+
+ /**
+ * Constructs an instance of RolloutsClient, using the given stub for making calls. This is for
+ * advanced usage - prefer using create(RolloutsSettings).
+ */
+ public static final RolloutsClient create(RolloutsStub stub) {
+ return new RolloutsClient(stub);
+ }
+
+ /**
+ * Constructs an instance of RolloutsClient, 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 RolloutsClient(RolloutsSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((RolloutsStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected RolloutsClient(RolloutsStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final RolloutsSettings getSettings() {
+ return settings;
+ }
+
+ public RolloutsStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Cancels a Rollout.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of get:
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an
+ * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
+ * configure the RetrySettings for cancel:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction Delete Deletes a specified zone VM extension policy. Deletes a specified zone VM extension policy within a project. Request object method variants only take one parameter, a request object, which must be constructed before the call. Get Retrieves details of a specific zone VM extension policy. Retrieves details of a specific zone VM extension policy within a project. Request object method variants only take one parameter, a request object, which must be constructed before the call. Update Modifies an existing zone VM extension policy. Modifies an existing zone VM extension policy within a project. Request object method variants only take one parameter, a request object, which must be constructed before the call. Sample code:
*
@@ -296,7 +296,7 @@ public final OperationFuture Sample code:
*
@@ -329,7 +329,7 @@ public final OperationFuture Sample code:
*
@@ -362,7 +362,7 @@ public final OperationFuture Sample code:
*
@@ -394,7 +394,7 @@ public final UnaryCallable Sample code:
*
@@ -431,7 +431,7 @@ public final VmExtensionPolicy get(String project, String zone, String vmExtensi
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Retrieves details of a specific zone VM extension policy.
+ * Retrieves details of a specific zone VM extension policy within a project.
*
* Sample code:
*
@@ -462,7 +462,7 @@ public final VmExtensionPolicy get(GetZoneVmExtensionPolicyRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Retrieves details of a specific zone VM extension policy.
+ * Retrieves details of a specific zone VM extension policy within a project.
*
* Sample code:
*
@@ -781,7 +781,7 @@ public final ListPagedResponse list(ListZoneVmExtensionPoliciesRequest request)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Modifies an existing zone VM extension policy.
+ * Modifies an existing zone VM extension policy within a project.
*
* Sample code:
*
@@ -827,7 +827,7 @@ public final OperationFuture Sample code:
*
@@ -861,7 +861,7 @@ public final OperationFuture Sample code:
*
@@ -895,7 +895,7 @@ public final OperationFuture Sample code:
*
diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json
index efe5bcbc21b9..93548435e9be 100644
--- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json
@@ -662,6 +662,33 @@
}
}
},
+ "GlobalVmExtensionPolicies": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "GlobalVmExtensionPoliciesClient",
+ "rpcs": {
+ "AggregatedList": {
+ "methods": ["aggregatedList", "aggregatedList", "aggregatedListPagedCallable", "aggregatedListCallable"]
+ },
+ "Delete": {
+ "methods": ["deleteAsync", "deleteAsync", "deleteOperationCallable", "deleteCallable"]
+ },
+ "Get": {
+ "methods": ["get", "get", "getCallable"]
+ },
+ "Insert": {
+ "methods": ["insertAsync", "insertAsync", "insertOperationCallable", "insertCallable"]
+ },
+ "List": {
+ "methods": ["list", "list", "listPagedCallable", "listCallable"]
+ },
+ "Update": {
+ "methods": ["updateAsync", "updateAsync", "updateOperationCallable", "updateCallable"]
+ }
+ }
+ }
+ }
+ },
"HealthChecks": {
"clients": {
"grpc": {
@@ -1345,6 +1372,12 @@
"Get": {
"methods": ["get", "get", "getCallable"]
},
+ "GetIamPolicy": {
+ "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicyCallable"]
+ },
+ "SetIamPolicy": {
+ "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicyCallable"]
+ },
"TestIamPermissions": {
"methods": ["testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"]
}
@@ -1627,6 +1660,9 @@
"AddPeering": {
"methods": ["addPeeringAsync", "addPeeringAsync", "addPeeringOperationCallable", "addPeeringCallable"]
},
+ "CancelRequestRemovePeering": {
+ "methods": ["cancelRequestRemovePeeringAsync", "cancelRequestRemovePeeringAsync", "cancelRequestRemovePeeringOperationCallable", "cancelRequestRemovePeeringCallable"]
+ },
"Delete": {
"methods": ["deleteAsync", "deleteAsync", "deleteOperationCallable", "deleteCallable"]
},
@@ -3146,6 +3182,48 @@
}
}
},
+ "RolloutPlans": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "RolloutPlansClient",
+ "rpcs": {
+ "Delete": {
+ "methods": ["deleteAsync", "deleteAsync", "deleteOperationCallable", "deleteCallable"]
+ },
+ "Get": {
+ "methods": ["get", "get", "getCallable"]
+ },
+ "Insert": {
+ "methods": ["insertAsync", "insertAsync", "insertOperationCallable", "insertCallable"]
+ },
+ "List": {
+ "methods": ["list", "list", "listPagedCallable", "listCallable"]
+ }
+ }
+ }
+ }
+ },
+ "Rollouts": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "RolloutsClient",
+ "rpcs": {
+ "Cancel": {
+ "methods": ["cancelAsync", "cancelAsync", "cancelOperationCallable", "cancelCallable"]
+ },
+ "Delete": {
+ "methods": ["deleteAsync", "deleteAsync", "deleteOperationCallable", "deleteCallable"]
+ },
+ "Get": {
+ "methods": ["get", "get", "getCallable"]
+ },
+ "List": {
+ "methods": ["list", "list", "listPagedCallable", "listCallable"]
+ }
+ }
+ }
+ }
+ },
"Routers": {
"clients": {
"grpc": {
diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java
index 240f3ab681d2..59a495c9ab35 100644
--- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java
@@ -416,6 +416,27 @@
* }
* }
*
+ * ======================= GlobalVmExtensionPoliciesClient =======================
+ *
+ * Service Description: The GlobalVmExtensionPolicies API.
+ *
+ * Sample for GlobalVmExtensionPoliciesClient:
+ *
+ * ======================= HealthChecksClient =======================
*
* Service Description: The HealthChecks API.
@@ -1948,6 +1969,44 @@
* }
* }
*
+ * ======================= RolloutPlansClient =======================
+ *
+ * Service Description: The RolloutPlans API.
+ *
+ * Sample for RolloutPlansClient:
+ *
+ * ======================= RolloutsClient =======================
+ *
+ * Service Description: The Rollouts API.
+ *
+ * Sample for RolloutsClient:
+ *
+ * ======================= RoutersClient =======================
*
* Service Description: The Routers API.
diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalVmExtensionPoliciesStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalVmExtensionPoliciesStub.java
new file mode 100644
index 000000000000..0e8310b5a526
--- /dev/null
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalVmExtensionPoliciesStub.java
@@ -0,0 +1,100 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * 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
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.compute.v1.stub;
+
+import static com.google.cloud.compute.v1.GlobalVmExtensionPoliciesClient.AggregatedListPagedResponse;
+import static com.google.cloud.compute.v1.GlobalVmExtensionPoliciesClient.ListPagedResponse;
+
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.v1.AggregatedListGlobalVmExtensionPoliciesRequest;
+import com.google.cloud.compute.v1.DeleteGlobalVmExtensionPolicyRequest;
+import com.google.cloud.compute.v1.GetGlobalVmExtensionPolicyRequest;
+import com.google.cloud.compute.v1.GlobalVmExtensionPolicy;
+import com.google.cloud.compute.v1.GlobalVmExtensionPolicyList;
+import com.google.cloud.compute.v1.InsertGlobalVmExtensionPolicyRequest;
+import com.google.cloud.compute.v1.ListGlobalVmExtensionPoliciesRequest;
+import com.google.cloud.compute.v1.Operation;
+import com.google.cloud.compute.v1.UpdateGlobalVmExtensionPolicyRequest;
+import com.google.cloud.compute.v1.VmExtensionPolicyAggregatedListResponse;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the GlobalVmExtensionPolicies service API.
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public abstract class GlobalVmExtensionPoliciesStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of get:
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an
+ * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
+ * configure the RetrySettings for delete:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+public class HttpJsonGlobalVmExtensionPoliciesCallableFactory
+ implements HttpJsonStubCallableFactory This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public class HttpJsonGlobalVmExtensionPoliciesStub extends GlobalVmExtensionPoliciesStub {
+ private static final TypeRegistry typeRegistry =
+ TypeRegistry.newBuilder().add(Operation.getDescriptor()).build();
+
+ private static final ApiMethodDescriptor<
+ AggregatedListGlobalVmExtensionPoliciesRequest, VmExtensionPolicyAggregatedListResponse>
+ aggregatedListMethodDescriptor =
+ ApiMethodDescriptor
+ .
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
*
*
*
*
@@ -272,6 +308,206 @@ public final UnaryCallable
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LicenseCodesClient licenseCodesClient = LicenseCodesClient.create()) {
+ * String project = "project-309310695";
+ * String resource = "resource-341064690";
+ * Policy response = licenseCodesClient.getIamPolicy(project, resource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param resource Name or id of the resource for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy getIamPolicy(String project, String resource) {
+ GetIamPolicyLicenseCodeRequest request =
+ GetIamPolicyLicenseCodeRequest.newBuilder()
+ .setProject(project)
+ .setResource(resource)
+ .build();
+ return getIamPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy for a resource. May be empty if no such policy or resource
+ * exists. *Caution* This resource is intended for use only by third-party partners who
+ * are creatingCloud Marketplace images.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LicenseCodesClient licenseCodesClient = LicenseCodesClient.create()) {
+ * GetIamPolicyLicenseCodeRequest request =
+ * GetIamPolicyLicenseCodeRequest.newBuilder()
+ * .setOptionsRequestedPolicyVersion(-574521795)
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .build();
+ * Policy response = licenseCodesClient.getIamPolicy(request);
+ * }
+ * }
+ *
+ * @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
+ */
+ public final Policy getIamPolicy(GetIamPolicyLicenseCodeRequest request) {
+ return getIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy for a resource. May be empty if no such policy or resource
+ * exists. *Caution* This resource is intended for use only by third-party partners who
+ * are creatingCloud Marketplace images.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LicenseCodesClient licenseCodesClient = LicenseCodesClient.create()) {
+ * GetIamPolicyLicenseCodeRequest request =
+ * GetIamPolicyLicenseCodeRequest.newBuilder()
+ * .setOptionsRequestedPolicyVersion(-574521795)
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LicenseCodesClient licenseCodesClient = LicenseCodesClient.create()) {
+ * String project = "project-309310695";
+ * String resource = "resource-341064690";
+ * GlobalSetPolicyRequest globalSetPolicyRequestResource =
+ * GlobalSetPolicyRequest.newBuilder().build();
+ * Policy response =
+ * licenseCodesClient.setIamPolicy(project, resource, globalSetPolicyRequestResource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param resource Name or id of the resource for this request.
+ * @param globalSetPolicyRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy setIamPolicy(
+ String project, String resource, GlobalSetPolicyRequest globalSetPolicyRequestResource) {
+ SetIamPolicyLicenseCodeRequest request =
+ SetIamPolicyLicenseCodeRequest.newBuilder()
+ .setProject(project)
+ .setResource(resource)
+ .setGlobalSetPolicyRequestResource(globalSetPolicyRequestResource)
+ .build();
+ return setIamPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified resource. Replaces any existing policy.
+ * *Caution* This resource is intended for use only by third-party partners who are
+ * creatingCloud Marketplace images.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LicenseCodesClient licenseCodesClient = LicenseCodesClient.create()) {
+ * SetIamPolicyLicenseCodeRequest request =
+ * SetIamPolicyLicenseCodeRequest.newBuilder()
+ * .setGlobalSetPolicyRequestResource(GlobalSetPolicyRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .build();
+ * Policy response = licenseCodesClient.setIamPolicy(request);
+ * }
+ * }
+ *
+ * @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
+ */
+ public final Policy setIamPolicy(SetIamPolicyLicenseCodeRequest request) {
+ return setIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified resource. Replaces any existing policy.
+ * *Caution* This resource is intended for use only by third-party partners who are
+ * creatingCloud Marketplace images.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LicenseCodesClient licenseCodesClient = LicenseCodesClient.create()) {
+ * SetIamPolicyLicenseCodeRequest request =
+ * SetIamPolicyLicenseCodeRequest.newBuilder()
+ * .setGlobalSetPolicyRequestResource(GlobalSetPolicyRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
*
*
*
*
@@ -505,6 +524,157 @@ public final UnaryCallable {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworksClient networksClient = NetworksClient.create()) {
+ * String project = "project-309310695";
+ * String network = "network1843485230";
+ * NetworksCancelRequestRemovePeeringRequest networksCancelRequestRemovePeeringRequestResource =
+ * NetworksCancelRequestRemovePeeringRequest.newBuilder().build();
+ * Operation response =
+ * networksClient
+ * .cancelRequestRemovePeeringAsync(
+ * project, network, networksCancelRequestRemovePeeringRequestResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param network Name of the network resource to remove peering from.
+ * @param networksCancelRequestRemovePeeringRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworksClient networksClient = NetworksClient.create()) {
+ * CancelRequestRemovePeeringNetworkRequest request =
+ * CancelRequestRemovePeeringNetworkRequest.newBuilder()
+ * .setNetwork("network1843485230")
+ * .setNetworksCancelRequestRemovePeeringRequestResource(
+ * NetworksCancelRequestRemovePeeringRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Operation response = networksClient.cancelRequestRemovePeeringAsync(request).get();
+ * }
+ * }
+ *
+ * @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
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworksClient networksClient = NetworksClient.create()) {
+ * CancelRequestRemovePeeringNetworkRequest request =
+ * CancelRequestRemovePeeringNetworkRequest.newBuilder()
+ * .setNetwork("network1843485230")
+ * .setNetworksCancelRequestRemovePeeringRequestResource(
+ * NetworksCancelRequestRemovePeeringRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworksClient networksClient = NetworksClient.create()) {
+ * CancelRequestRemovePeeringNetworkRequest request =
+ * CancelRequestRemovePeeringNetworkRequest.newBuilder()
+ * .setNetwork("network1843485230")
+ * .setNetworksCancelRequestRemovePeeringRequestResource(
+ * NetworksCancelRequestRemovePeeringRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * String project = "project-309310695";
+ * String rolloutPlan = "rolloutPlan1469104250";
+ * RolloutPlan response = rolloutPlansClient.get(project, rolloutPlan);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutPlansSettings rolloutPlansSettings =
+ * RolloutPlansSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create(rolloutPlansSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutPlansSettings rolloutPlansSettings =
+ * RolloutPlansSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create(rolloutPlansSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * String project = "project-309310695";
+ * String rolloutPlan = "rolloutPlan1469104250";
+ * Operation response = rolloutPlansClient.deleteAsync(project, rolloutPlan).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param rolloutPlan Name of the RolloutPlan resource to delete.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * DeleteRolloutPlanRequest request =
+ * DeleteRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRolloutPlan("rolloutPlan1469104250")
+ * .build();
+ * Operation response = rolloutPlansClient.deleteAsync(request).get();
+ * }
+ * }
+ *
+ * @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
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * DeleteRolloutPlanRequest request =
+ * DeleteRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRolloutPlan("rolloutPlan1469104250")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * DeleteRolloutPlanRequest request =
+ * DeleteRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRolloutPlan("rolloutPlan1469104250")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * String project = "project-309310695";
+ * String rolloutPlan = "rolloutPlan1469104250";
+ * RolloutPlan response = rolloutPlansClient.get(project, rolloutPlan);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param rolloutPlan Name of the persistent rollout plan to return.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RolloutPlan get(String project, String rolloutPlan) {
+ GetRolloutPlanRequest request =
+ GetRolloutPlanRequest.newBuilder().setProject(project).setRolloutPlan(rolloutPlan).build();
+ return get(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single project-scoped RolloutPlan.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * GetRolloutPlanRequest request =
+ * GetRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRolloutPlan("rolloutPlan1469104250")
+ * .build();
+ * RolloutPlan response = rolloutPlansClient.get(request);
+ * }
+ * }
+ *
+ * @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
+ */
+ public final RolloutPlan get(GetRolloutPlanRequest request) {
+ return getCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single project-scoped RolloutPlan.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * GetRolloutPlanRequest request =
+ * GetRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRolloutPlan("rolloutPlan1469104250")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * String project = "project-309310695";
+ * RolloutPlan rolloutPlanResource = RolloutPlan.newBuilder().build();
+ * Operation response = rolloutPlansClient.insertAsync(project, rolloutPlanResource).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param rolloutPlanResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * InsertRolloutPlanRequest request =
+ * InsertRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRolloutPlanResource(RolloutPlan.newBuilder().build())
+ * .build();
+ * Operation response = rolloutPlansClient.insertAsync(request).get();
+ * }
+ * }
+ *
+ * @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
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * InsertRolloutPlanRequest request =
+ * InsertRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRolloutPlanResource(RolloutPlan.newBuilder().build())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * InsertRolloutPlanRequest request =
+ * InsertRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRolloutPlanResource(RolloutPlan.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * String project = "project-309310695";
+ * for (RolloutPlan element : rolloutPlansClient.list(project).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPagedResponse list(String project) {
+ ListRolloutPlansRequest request =
+ ListRolloutPlansRequest.newBuilder().setProject(project).build();
+ return list(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists RolloutPlans in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * ListRolloutPlansRequest request =
+ * ListRolloutPlansRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * for (RolloutPlan element : rolloutPlansClient.list(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @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
+ */
+ public final ListPagedResponse list(ListRolloutPlansRequest request) {
+ return listPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists RolloutPlans in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * ListRolloutPlansRequest request =
+ * ListRolloutPlansRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * ListRolloutPlansRequest request =
+ * ListRolloutPlansRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * while (true) {
+ * RolloutPlansListResponse response = rolloutPlansClient.listCallable().call(request);
+ * for (RolloutPlan element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutPlansSettings.Builder rolloutPlansSettingsBuilder = RolloutPlansSettings.newBuilder();
+ * rolloutPlansSettingsBuilder
+ * .getSettings()
+ * .setRetrySettings(
+ * rolloutPlansSettingsBuilder
+ * .getSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * RolloutPlansSettings rolloutPlansSettings = rolloutPlansSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutPlansSettings.Builder rolloutPlansSettingsBuilder = RolloutPlansSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * rolloutPlansSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class RolloutPlansSettings extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * String project = "project-309310695";
+ * String rollout = "rollout1377108401";
+ * Rollout response = rolloutsClient.get(project, rollout);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutsSettings rolloutsSettings =
+ * RolloutsSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * RolloutsClient rolloutsClient = RolloutsClient.create(rolloutsSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutsSettings rolloutsSettings =
+ * RolloutsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * RolloutsClient rolloutsClient = RolloutsClient.create(rolloutsSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * String project = "project-309310695";
+ * String rollout = "rollout1377108401";
+ * Operation response = rolloutsClient.cancelAsync(project, rollout).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param rollout Name of the Rollout resource to cancel.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * CancelRolloutRequest request =
+ * CancelRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRollback(true)
+ * .setRollout("rollout1377108401")
+ * .build();
+ * Operation response = rolloutsClient.cancelAsync(request).get();
+ * }
+ * }
+ *
+ * @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
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * CancelRolloutRequest request =
+ * CancelRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRollback(true)
+ * .setRollout("rollout1377108401")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * CancelRolloutRequest request =
+ * CancelRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRollback(true)
+ * .setRollout("rollout1377108401")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * String project = "project-309310695";
+ * String rollout = "rollout1377108401";
+ * Operation response = rolloutsClient.deleteAsync(project, rollout).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param rollout Name of the Rollout resource to delete.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * DeleteRolloutRequest request =
+ * DeleteRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRollout("rollout1377108401")
+ * .build();
+ * Operation response = rolloutsClient.deleteAsync(request).get();
+ * }
+ * }
+ *
+ * @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
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * DeleteRolloutRequest request =
+ * DeleteRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRollout("rollout1377108401")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * DeleteRolloutRequest request =
+ * DeleteRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRollout("rollout1377108401")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * String project = "project-309310695";
+ * String rollout = "rollout1377108401";
+ * Rollout response = rolloutsClient.get(project, rollout);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param rollout Name of the persistent rollout to return.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Rollout get(String project, String rollout) {
+ GetRolloutRequest request =
+ GetRolloutRequest.newBuilder().setProject(project).setRollout(rollout).build();
+ return get(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single project-scoped Rollout.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * GetRolloutRequest request =
+ * GetRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRollout("rollout1377108401")
+ * .build();
+ * Rollout response = rolloutsClient.get(request);
+ * }
+ * }
+ *
+ * @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
+ */
+ public final Rollout get(GetRolloutRequest request) {
+ return getCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single project-scoped Rollout.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * GetRolloutRequest request =
+ * GetRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRollout("rollout1377108401")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * String project = "project-309310695";
+ * for (Rollout element : rolloutsClient.list(project).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPagedResponse list(String project) {
+ ListRolloutsRequest request = ListRolloutsRequest.newBuilder().setProject(project).build();
+ return list(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Rollouts in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * ListRolloutsRequest request =
+ * ListRolloutsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * for (Rollout element : rolloutsClient.list(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @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
+ */
+ public final ListPagedResponse list(ListRolloutsRequest request) {
+ return listPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Rollouts in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * ListRolloutsRequest request =
+ * ListRolloutsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * ListRolloutsRequest request =
+ * ListRolloutsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * while (true) {
+ * RolloutsListResponse response = rolloutsClient.listCallable().call(request);
+ * for (Rollout element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutsSettings.Builder rolloutsSettingsBuilder = RolloutsSettings.newBuilder();
+ * rolloutsSettingsBuilder
+ * .getSettings()
+ * .setRetrySettings(
+ * rolloutsSettingsBuilder
+ * .getSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * RolloutsSettings rolloutsSettings = rolloutsSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutsSettings.Builder rolloutsSettingsBuilder = RolloutsSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * rolloutsSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class RolloutsSettings extends ClientSettings
*
*
- *
+ *
*
*
@@ -89,7 +89,7 @@
*
*
*
- *
+ *
*
*
@@ -145,7 +145,7 @@
*
*
- *
+ *
*
*
@@ -258,7 +258,7 @@ public ZoneVmExtensionPoliciesStub getStub() {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes a specified zone VM extension policy.
+ * Deletes a specified zone VM extension policy within a project.
*
*
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * String globalVmExtensionPolicy = "globalVmExtensionPolicy-869114569";
+ * GlobalVmExtensionPolicy response =
+ * globalVmExtensionPoliciesClient.get(project, globalVmExtensionPolicy);
+ * }
+ * }
+ *
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * String project = "project-309310695";
+ * String rolloutPlan = "rolloutPlan1469104250";
+ * RolloutPlan response = rolloutPlansClient.get(project, rolloutPlan);
+ * }
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * String project = "project-309310695";
+ * String rollout = "rollout1377108401";
+ * Rollout response = rolloutsClient.get(project, rollout);
+ * }
+ * }
+ *
*
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GlobalVmExtensionPoliciesStubSettings.Builder globalVmExtensionPoliciesSettingsBuilder =
+ * GlobalVmExtensionPoliciesStubSettings.newBuilder();
+ * globalVmExtensionPoliciesSettingsBuilder
+ * .getSettings()
+ * .setRetrySettings(
+ * globalVmExtensionPoliciesSettingsBuilder
+ * .getSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * GlobalVmExtensionPoliciesStubSettings globalVmExtensionPoliciesSettings =
+ * globalVmExtensionPoliciesSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GlobalVmExtensionPoliciesStubSettings.Builder globalVmExtensionPoliciesSettingsBuilder =
+ * GlobalVmExtensionPoliciesStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * globalVmExtensionPoliciesSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+@SuppressWarnings("CanonicalDuration")
+public class GlobalVmExtensionPoliciesStubSettings
+ extends StubSettings