diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml
index 7985390da42c..c567de27e10f 100644
--- a/.github/workflows/hermetic_library_generation.yaml
+++ b/.github/workflows/hermetic_library_generation.yaml
@@ -37,7 +37,7 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}
- - uses: googleapis/sdk-platform-java/.github/scripts@v2.66.0
+ - uses: googleapis/sdk-platform-java/.github/scripts@v2.66.1
if: env.SHOULD_RUN == 'true'
with:
base_ref: ${{ github.base_ref }}
diff --git a/generation_config.yaml b/generation_config.yaml
index f6795d9f563c..510e0438286c 100644
--- a/generation_config.yaml
+++ b/generation_config.yaml
@@ -1,6 +1,6 @@
-gapic_generator_version: 2.66.0
-googleapis_commitish: af232e71d7b67e84811f55b48c51de867f98f35b
-libraries_bom_version: 26.74.0
+gapic_generator_version: 2.66.1
+googleapis_commitish: 39bd091b055e331a4917143355ab7afa83b7130c
+libraries_bom_version: 26.75.0
libraries:
- api_shortname: accessapproval
name_pretty: Access Approval
diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md
index eea259b28db5..57363b8f3ada 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:
ListAnnotations
Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. It is only used for exporting conversation data to CCAI Insights.
Lists Annotations belongs to a dataitem.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -3258,8 +3257,7 @@ public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *
Sample code: * @@ -3289,8 +3287,7 @@ public final ListAnnotationsPagedResponse listAnnotations(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *
Sample code: * @@ -3326,8 +3323,7 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *
Sample code: * @@ -3364,8 +3360,7 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *
Sample code:
*
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java
index 3fd69a65d883..da119a4d11c2 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java
@@ -1125,6 +1125,7 @@ public final OperationFuture
- * Lists Annotations belongs to a dataitem
- * This RPC is only available in InternalDatasetService. It is only used for
- * exporting conversation data to CCAI Insights.
+ * Lists Annotations belongs to a dataitem.
*
*/
default void listAnnotations(
@@ -1573,9 +1571,7 @@ public void getAnnotationSpec(
*
*
*
- * Lists Annotations belongs to a dataitem
- * This RPC is only available in InternalDatasetService. It is only used for
- * exporting conversation data to CCAI Insights.
+ * Lists Annotations belongs to a dataitem.
*
*/
public void listAnnotations(
@@ -1860,9 +1856,7 @@ public com.google.cloud.aiplatform.v1.AnnotationSpec getAnnotationSpec(
*
*
*
- * Lists Annotations belongs to a dataitem
- * This RPC is only available in InternalDatasetService. It is only used for
- * exporting conversation data to CCAI Insights.
+ * Lists Annotations belongs to a dataitem.
*
*/
public com.google.cloud.aiplatform.v1.ListAnnotationsResponse listAnnotations(
@@ -2130,9 +2124,7 @@ public com.google.cloud.aiplatform.v1.AnnotationSpec getAnnotationSpec(
*
*
*
- * Lists Annotations belongs to a dataitem
- * This RPC is only available in InternalDatasetService. It is only used for
- * exporting conversation data to CCAI Insights.
+ * Lists Annotations belongs to a dataitem.
*
*/
public com.google.cloud.aiplatform.v1.ListAnnotationsResponse listAnnotations(
@@ -2409,9 +2401,7 @@ protected DatasetServiceFutureStub build(
*
*
*
- * Lists Annotations belongs to a dataitem
- * This RPC is only available in InternalDatasetService. It is only used for
- * exporting conversation data to CCAI Insights.
+ * Lists Annotations belongs to a dataitem.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java
index 9004ca58441c..7889dfe9fc97 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java
@@ -184,6 +184,53 @@ public interface InputConfigOrBuilder
*/
com.google.cloud.aiplatform.v1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder();
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetSource field is set.
+ */
+ boolean hasVertexMultimodalDatasetSource();
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ *
+ * @return The vertexMultimodalDatasetSource.
+ */
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource getVertexMultimodalDatasetSource();
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSourceOrBuilder
+ getVertexMultimodalDatasetSourceOrBuilder();
+
/**
*
*
@@ -281,6 +328,7 @@ public enum SourceCase
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
GCS_SOURCE(2),
BIGQUERY_SOURCE(3),
+ VERTEX_MULTIMODAL_DATASET_SOURCE(4),
SOURCE_NOT_SET(0);
private final int value;
@@ -304,6 +352,8 @@ public static SourceCase forNumber(int value) {
return GCS_SOURCE;
case 3:
return BIGQUERY_SOURCE;
+ case 4:
+ return VERTEX_MULTIMODAL_DATASET_SOURCE;
case 0:
return SOURCE_NOT_SET;
default:
@@ -440,6 +490,71 @@ public com.google.cloud.aiplatform.v1.BigQuerySourceOrBuilder getBigquerySourceO
return com.google.cloud.aiplatform.v1.BigQuerySource.getDefaultInstance();
}
+ public static final int VERTEX_MULTIMODAL_DATASET_SOURCE_FIELD_NUMBER = 4;
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasVertexMultimodalDatasetSource() {
+ return sourceCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ *
+ * @return The vertexMultimodalDatasetSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource
+ getVertexMultimodalDatasetSource() {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSourceOrBuilder
+ getVertexMultimodalDatasetSourceOrBuilder() {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.getDefaultInstance();
+ }
+
public static final int INSTANCES_FORMAT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -520,6 +635,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (sourceCase_ == 3) {
output.writeMessage(3, (com.google.cloud.aiplatform.v1.BigQuerySource) source_);
}
+ if (sourceCase_ == 4) {
+ output.writeMessage(
+ 4, (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_);
+ }
getUnknownFields().writeTo(output);
}
@@ -542,6 +661,11 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, (com.google.cloud.aiplatform.v1.BigQuerySource) source_);
}
+ if (sourceCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -567,6 +691,10 @@ public boolean equals(final java.lang.Object obj) {
case 3:
if (!getBigquerySource().equals(other.getBigquerySource())) return false;
break;
+ case 4:
+ if (!getVertexMultimodalDatasetSource().equals(other.getVertexMultimodalDatasetSource()))
+ return false;
+ break;
case 0:
default:
}
@@ -592,6 +720,10 @@ public int hashCode() {
hash = (37 * hash) + BIGQUERY_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getBigquerySource().hashCode();
break;
+ case 4:
+ hash = (37 * hash) + VERTEX_MULTIMODAL_DATASET_SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getVertexMultimodalDatasetSource().hashCode();
+ break;
case 0:
default:
}
@@ -746,6 +878,9 @@ public Builder clear() {
if (bigquerySourceBuilder_ != null) {
bigquerySourceBuilder_.clear();
}
+ if (vertexMultimodalDatasetSourceBuilder_ != null) {
+ vertexMultimodalDatasetSourceBuilder_.clear();
+ }
instancesFormat_ = "";
sourceCase_ = 0;
source_ = null;
@@ -788,7 +923,7 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig buildPartia
private void buildPartial0(
com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000004) != 0)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
result.instancesFormat_ = instancesFormat_;
}
}
@@ -803,6 +938,9 @@ private void buildPartialOneofs(
if (sourceCase_ == 3 && bigquerySourceBuilder_ != null) {
result.source_ = bigquerySourceBuilder_.build();
}
+ if (sourceCase_ == 4 && vertexMultimodalDatasetSourceBuilder_ != null) {
+ result.source_ = vertexMultimodalDatasetSourceBuilder_.build();
+ }
}
@java.lang.Override
@@ -822,7 +960,7 @@ public Builder mergeFrom(
return this;
if (!other.getInstancesFormat().isEmpty()) {
instancesFormat_ = other.instancesFormat_;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
}
switch (other.getSourceCase()) {
@@ -836,6 +974,11 @@ public Builder mergeFrom(
mergeBigquerySource(other.getBigquerySource());
break;
}
+ case VERTEX_MULTIMODAL_DATASET_SOURCE:
+ {
+ mergeVertexMultimodalDatasetSource(other.getVertexMultimodalDatasetSource());
+ break;
+ }
case SOURCE_NOT_SET:
{
break;
@@ -870,7 +1013,7 @@ public Builder mergeFrom(
case 10:
{
instancesFormat_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
break;
} // case 10
case 18:
@@ -887,6 +1030,14 @@ public Builder mergeFrom(
sourceCase_ = 3;
break;
} // case 26
+ case 34:
+ {
+ input.readMessage(
+ internalGetVertexMultimodalDatasetSourceFieldBuilder().getBuilder(),
+ extensionRegistry);
+ sourceCase_ = 4;
+ break;
+ } // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1392,6 +1543,259 @@ public com.google.cloud.aiplatform.v1.BigQuerySourceOrBuilder getBigquerySourceO
return bigquerySourceBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource,
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.Builder,
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSourceOrBuilder>
+ vertexMultimodalDatasetSourceBuilder_;
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasVertexMultimodalDatasetSource() {
+ return sourceCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ *
+ * @return The vertexMultimodalDatasetSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource
+ getVertexMultimodalDatasetSource() {
+ if (vertexMultimodalDatasetSourceBuilder_ == null) {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.getDefaultInstance();
+ } else {
+ if (sourceCase_ == 4) {
+ return vertexMultimodalDatasetSourceBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ public Builder setVertexMultimodalDatasetSource(
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource value) {
+ if (vertexMultimodalDatasetSourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ onChanged();
+ } else {
+ vertexMultimodalDatasetSourceBuilder_.setMessage(value);
+ }
+ sourceCase_ = 4;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ public Builder setVertexMultimodalDatasetSource(
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.Builder builderForValue) {
+ if (vertexMultimodalDatasetSourceBuilder_ == null) {
+ source_ = builderForValue.build();
+ onChanged();
+ } else {
+ vertexMultimodalDatasetSourceBuilder_.setMessage(builderForValue.build());
+ }
+ sourceCase_ = 4;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ public Builder mergeVertexMultimodalDatasetSource(
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource value) {
+ if (vertexMultimodalDatasetSourceBuilder_ == null) {
+ if (sourceCase_ == 4
+ && source_
+ != com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource
+ .getDefaultInstance()) {
+ source_ =
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.newBuilder(
+ (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ source_ = value;
+ }
+ onChanged();
+ } else {
+ if (sourceCase_ == 4) {
+ vertexMultimodalDatasetSourceBuilder_.mergeFrom(value);
+ } else {
+ vertexMultimodalDatasetSourceBuilder_.setMessage(value);
+ }
+ }
+ sourceCase_ = 4;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ public Builder clearVertexMultimodalDatasetSource() {
+ if (vertexMultimodalDatasetSourceBuilder_ == null) {
+ if (sourceCase_ == 4) {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ }
+ } else {
+ if (sourceCase_ == 4) {
+ sourceCase_ = 0;
+ source_ = null;
+ }
+ vertexMultimodalDatasetSourceBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.Builder
+ getVertexMultimodalDatasetSourceBuilder() {
+ return internalGetVertexMultimodalDatasetSourceFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSourceOrBuilder
+ getVertexMultimodalDatasetSourceOrBuilder() {
+ if ((sourceCase_ == 4) && (vertexMultimodalDatasetSourceBuilder_ != null)) {
+ return vertexMultimodalDatasetSourceBuilder_.getMessageOrBuilder();
+ } else {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource,
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.Builder,
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSourceOrBuilder>
+ internalGetVertexMultimodalDatasetSourceFieldBuilder() {
+ if (vertexMultimodalDatasetSourceBuilder_ == null) {
+ if (!(sourceCase_ == 4)) {
+ source_ =
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.getDefaultInstance();
+ }
+ vertexMultimodalDatasetSourceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource,
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.Builder,
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSourceOrBuilder>(
+ (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_,
+ getParentForChildren(),
+ isClean());
+ source_ = null;
+ }
+ sourceCase_ = 4;
+ onChanged();
+ return vertexMultimodalDatasetSourceBuilder_;
+ }
+
private java.lang.Object instancesFormat_ = "";
/**
@@ -1463,7 +1867,7 @@ public Builder setInstancesFormat(java.lang.String value) {
throw new NullPointerException();
}
instancesFormat_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1483,7 +1887,7 @@ public Builder setInstancesFormat(java.lang.String value) {
*/
public Builder clearInstancesFormat() {
instancesFormat_ = getDefaultInstance().getInstancesFormat();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1508,7 +1912,7 @@ public Builder setInstancesFormatBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
instancesFormat_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -4233,24 +4637,72 @@ public interface OutputConfigOrBuilder
*
*
*
- * Required. The format in which Vertex AI gives the predictions, must be
- * one of the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
- * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
*
*
- * string predictions_format = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
*
- * @return The predictionsFormat.
+ * @return Whether the vertexMultimodalDatasetDestination field is set.
*/
- java.lang.String getPredictionsFormat();
+ boolean hasVertexMultimodalDatasetDestination();
/**
*
*
*
- * Required. The format in which Vertex AI gives the predictions, must be
- * one of the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
- * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ *
+ * @return The vertexMultimodalDatasetDestination.
+ */
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination
+ getVertexMultimodalDatasetDestination();
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestinationOrBuilder
+ getVertexMultimodalDatasetDestinationOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Required. The format in which Vertex AI gives the predictions, must be
+ * one of the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
+ * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
+ *
+ *
+ * string predictions_format = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The predictionsFormat.
+ */
+ java.lang.String getPredictionsFormat();
+
+ /**
+ *
+ *
+ *
+ * Required. The format in which Vertex AI gives the predictions, must be
+ * one of the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
+ * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
*
*
* string predictions_format = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -4327,6 +4779,7 @@ public enum DestinationCase
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
GCS_DESTINATION(2),
BIGQUERY_DESTINATION(3),
+ VERTEX_MULTIMODAL_DATASET_DESTINATION(6),
DESTINATION_NOT_SET(0);
private final int value;
@@ -4350,6 +4803,8 @@ public static DestinationCase forNumber(int value) {
return GCS_DESTINATION;
case 3:
return BIGQUERY_DESTINATION;
+ case 6:
+ return VERTEX_MULTIMODAL_DATASET_DESTINATION;
case 0:
return DESTINATION_NOT_SET;
default:
@@ -4595,6 +5050,71 @@ public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination
return com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance();
}
+ public static final int VERTEX_MULTIMODAL_DATASET_DESTINATION_FIELD_NUMBER = 6;
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetDestination field is set.
+ */
+ @java.lang.Override
+ public boolean hasVertexMultimodalDatasetDestination() {
+ return destinationCase_ == 6;
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ *
+ * @return The vertexMultimodalDatasetDestination.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination
+ getVertexMultimodalDatasetDestination() {
+ if (destinationCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) destination_;
+ }
+ return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestinationOrBuilder
+ getVertexMultimodalDatasetDestinationOrBuilder() {
+ if (destinationCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) destination_;
+ }
+ return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.getDefaultInstance();
+ }
+
public static final int PREDICTIONS_FORMAT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -4675,6 +5195,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (destinationCase_ == 3) {
output.writeMessage(3, (com.google.cloud.aiplatform.v1.BigQueryDestination) destination_);
}
+ if (destinationCase_ == 6) {
+ output.writeMessage(
+ 6, (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) destination_);
+ }
getUnknownFields().writeTo(output);
}
@@ -4697,6 +5221,12 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, (com.google.cloud.aiplatform.v1.BigQueryDestination) destination_);
}
+ if (destinationCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 6,
+ (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) destination_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -4722,6 +5252,10 @@ public boolean equals(final java.lang.Object obj) {
case 3:
if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false;
break;
+ case 6:
+ if (!getVertexMultimodalDatasetDestination()
+ .equals(other.getVertexMultimodalDatasetDestination())) return false;
+ break;
case 0:
default:
}
@@ -4747,6 +5281,10 @@ public int hashCode() {
hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER;
hash = (53 * hash) + getBigqueryDestination().hashCode();
break;
+ case 6:
+ hash = (37 * hash) + VERTEX_MULTIMODAL_DATASET_DESTINATION_FIELD_NUMBER;
+ hash = (53 * hash) + getVertexMultimodalDatasetDestination().hashCode();
+ break;
case 0:
default:
}
@@ -4901,6 +5439,9 @@ public Builder clear() {
if (bigqueryDestinationBuilder_ != null) {
bigqueryDestinationBuilder_.clear();
}
+ if (vertexMultimodalDatasetDestinationBuilder_ != null) {
+ vertexMultimodalDatasetDestinationBuilder_.clear();
+ }
predictionsFormat_ = "";
destinationCase_ = 0;
destination_ = null;
@@ -4943,7 +5484,7 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig buildParti
private void buildPartial0(
com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000004) != 0)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
result.predictionsFormat_ = predictionsFormat_;
}
}
@@ -4958,6 +5499,9 @@ private void buildPartialOneofs(
if (destinationCase_ == 3 && bigqueryDestinationBuilder_ != null) {
result.destination_ = bigqueryDestinationBuilder_.build();
}
+ if (destinationCase_ == 6 && vertexMultimodalDatasetDestinationBuilder_ != null) {
+ result.destination_ = vertexMultimodalDatasetDestinationBuilder_.build();
+ }
}
@java.lang.Override
@@ -4977,7 +5521,7 @@ public Builder mergeFrom(
return this;
if (!other.getPredictionsFormat().isEmpty()) {
predictionsFormat_ = other.predictionsFormat_;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
}
switch (other.getDestinationCase()) {
@@ -4991,6 +5535,12 @@ public Builder mergeFrom(
mergeBigqueryDestination(other.getBigqueryDestination());
break;
}
+ case VERTEX_MULTIMODAL_DATASET_DESTINATION:
+ {
+ mergeVertexMultimodalDatasetDestination(
+ other.getVertexMultimodalDatasetDestination());
+ break;
+ }
case DESTINATION_NOT_SET:
{
break;
@@ -5025,7 +5575,7 @@ public Builder mergeFrom(
case 10:
{
predictionsFormat_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
break;
} // case 10
case 18:
@@ -5042,6 +5592,14 @@ public Builder mergeFrom(
destinationCase_ = 3;
break;
} // case 26
+ case 50:
+ {
+ input.readMessage(
+ internalGetVertexMultimodalDatasetDestinationFieldBuilder().getBuilder(),
+ extensionRegistry);
+ destinationCase_ = 6;
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -5877,6 +6435,265 @@ public Builder clearBigqueryDestination() {
return bigqueryDestinationBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination,
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.Builder,
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestinationOrBuilder>
+ vertexMultimodalDatasetDestinationBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetDestination field is set.
+ */
+ @java.lang.Override
+ public boolean hasVertexMultimodalDatasetDestination() {
+ return destinationCase_ == 6;
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ *
+ * @return The vertexMultimodalDatasetDestination.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination
+ getVertexMultimodalDatasetDestination() {
+ if (vertexMultimodalDatasetDestinationBuilder_ == null) {
+ if (destinationCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) destination_;
+ }
+ return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination
+ .getDefaultInstance();
+ } else {
+ if (destinationCase_ == 6) {
+ return vertexMultimodalDatasetDestinationBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ public Builder setVertexMultimodalDatasetDestination(
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination value) {
+ if (vertexMultimodalDatasetDestinationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ destination_ = value;
+ onChanged();
+ } else {
+ vertexMultimodalDatasetDestinationBuilder_.setMessage(value);
+ }
+ destinationCase_ = 6;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ public Builder setVertexMultimodalDatasetDestination(
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.Builder
+ builderForValue) {
+ if (vertexMultimodalDatasetDestinationBuilder_ == null) {
+ destination_ = builderForValue.build();
+ onChanged();
+ } else {
+ vertexMultimodalDatasetDestinationBuilder_.setMessage(builderForValue.build());
+ }
+ destinationCase_ = 6;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ public Builder mergeVertexMultimodalDatasetDestination(
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination value) {
+ if (vertexMultimodalDatasetDestinationBuilder_ == null) {
+ if (destinationCase_ == 6
+ && destination_
+ != com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination
+ .getDefaultInstance()) {
+ destination_ =
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.newBuilder(
+ (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination)
+ destination_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ destination_ = value;
+ }
+ onChanged();
+ } else {
+ if (destinationCase_ == 6) {
+ vertexMultimodalDatasetDestinationBuilder_.mergeFrom(value);
+ } else {
+ vertexMultimodalDatasetDestinationBuilder_.setMessage(value);
+ }
+ }
+ destinationCase_ = 6;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ public Builder clearVertexMultimodalDatasetDestination() {
+ if (vertexMultimodalDatasetDestinationBuilder_ == null) {
+ if (destinationCase_ == 6) {
+ destinationCase_ = 0;
+ destination_ = null;
+ onChanged();
+ }
+ } else {
+ if (destinationCase_ == 6) {
+ destinationCase_ = 0;
+ destination_ = null;
+ }
+ vertexMultimodalDatasetDestinationBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.Builder
+ getVertexMultimodalDatasetDestinationBuilder() {
+ return internalGetVertexMultimodalDatasetDestinationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestinationOrBuilder
+ getVertexMultimodalDatasetDestinationOrBuilder() {
+ if ((destinationCase_ == 6) && (vertexMultimodalDatasetDestinationBuilder_ != null)) {
+ return vertexMultimodalDatasetDestinationBuilder_.getMessageOrBuilder();
+ } else {
+ if (destinationCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) destination_;
+ }
+ return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination,
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.Builder,
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestinationOrBuilder>
+ internalGetVertexMultimodalDatasetDestinationFieldBuilder() {
+ if (vertexMultimodalDatasetDestinationBuilder_ == null) {
+ if (!(destinationCase_ == 6)) {
+ destination_ =
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination
+ .getDefaultInstance();
+ }
+ vertexMultimodalDatasetDestinationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination,
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.Builder,
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestinationOrBuilder>(
+ (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) destination_,
+ getParentForChildren(),
+ isClean());
+ destination_ = null;
+ }
+ destinationCase_ = 6;
+ onChanged();
+ return vertexMultimodalDatasetDestinationBuilder_;
+ }
+
private java.lang.Object predictionsFormat_ = "";
/**
@@ -5948,7 +6765,7 @@ public Builder setPredictionsFormat(java.lang.String value) {
throw new NullPointerException();
}
predictionsFormat_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -5968,7 +6785,7 @@ public Builder setPredictionsFormat(java.lang.String value) {
*/
public Builder clearPredictionsFormat() {
predictionsFormat_ = getDefaultInstance().getPredictionsFormat();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -5993,7 +6810,7 @@ public Builder setPredictionsFormatBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
predictionsFormat_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -6145,6 +6962,57 @@ public interface OutputInfoOrBuilder
*/
com.google.protobuf.ByteString getBigqueryOutputDatasetBytes();
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetName field is set.
+ */
+ boolean hasVertexMultimodalDatasetName();
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The vertexMultimodalDatasetName.
+ */
+ java.lang.String getVertexMultimodalDatasetName();
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for vertexMultimodalDatasetName.
+ */
+ com.google.protobuf.ByteString getVertexMultimodalDatasetNameBytes();
+
/**
*
*
@@ -6243,6 +7111,7 @@ public enum OutputLocationCase
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
GCS_OUTPUT_DIRECTORY(1),
BIGQUERY_OUTPUT_DATASET(2),
+ VERTEX_MULTIMODAL_DATASET_NAME(5),
OUTPUTLOCATION_NOT_SET(0);
private final int value;
@@ -6266,6 +7135,8 @@ public static OutputLocationCase forNumber(int value) {
return GCS_OUTPUT_DIRECTORY;
case 2:
return BIGQUERY_OUTPUT_DATASET;
+ case 5:
+ return VERTEX_MULTIMODAL_DATASET_NAME;
case 0:
return OUTPUTLOCATION_NOT_SET;
default:
@@ -6437,6 +7308,91 @@ public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() {
}
}
+ public static final int VERTEX_MULTIMODAL_DATASET_NAME_FIELD_NUMBER = 5;
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetName field is set.
+ */
+ public boolean hasVertexMultimodalDatasetName() {
+ return outputLocationCase_ == 5;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The vertexMultimodalDatasetName.
+ */
+ public java.lang.String getVertexMultimodalDatasetName() {
+ java.lang.Object ref = "";
+ if (outputLocationCase_ == 5) {
+ ref = outputLocation_;
+ }
+ 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 (outputLocationCase_ == 5) {
+ outputLocation_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for vertexMultimodalDatasetName.
+ */
+ public com.google.protobuf.ByteString getVertexMultimodalDatasetNameBytes() {
+ java.lang.Object ref = "";
+ if (outputLocationCase_ == 5) {
+ ref = outputLocation_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (outputLocationCase_ == 5) {
+ outputLocation_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int BIGQUERY_OUTPUT_TABLE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
@@ -6519,6 +7475,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bigqueryOutputTable_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, bigqueryOutputTable_);
}
+ if (outputLocationCase_ == 5) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, outputLocation_);
+ }
getUnknownFields().writeTo(output);
}
@@ -6537,6 +7496,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bigqueryOutputTable_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(4, bigqueryOutputTable_);
}
+ if (outputLocationCase_ == 5) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, outputLocation_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -6562,6 +7524,10 @@ public boolean equals(final java.lang.Object obj) {
case 2:
if (!getBigqueryOutputDataset().equals(other.getBigqueryOutputDataset())) return false;
break;
+ case 5:
+ if (!getVertexMultimodalDatasetName().equals(other.getVertexMultimodalDatasetName()))
+ return false;
+ break;
case 0:
default:
}
@@ -6587,6 +7553,10 @@ public int hashCode() {
hash = (37 * hash) + BIGQUERY_OUTPUT_DATASET_FIELD_NUMBER;
hash = (53 * hash) + getBigqueryOutputDataset().hashCode();
break;
+ case 5:
+ hash = (37 * hash) + VERTEX_MULTIMODAL_DATASET_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getVertexMultimodalDatasetName().hashCode();
+ break;
case 0:
default:
}
@@ -6775,7 +7745,7 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo buildPartial
private void buildPartial0(
com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000004) != 0)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
result.bigqueryOutputTable_ = bigqueryOutputTable_;
}
}
@@ -6802,7 +7772,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchPredictionJob.Outpu
return this;
if (!other.getBigqueryOutputTable().isEmpty()) {
bigqueryOutputTable_ = other.bigqueryOutputTable_;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
}
switch (other.getOutputLocationCase()) {
@@ -6820,6 +7790,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchPredictionJob.Outpu
onChanged();
break;
}
+ case VERTEX_MULTIMODAL_DATASET_NAME:
+ {
+ outputLocationCase_ = 5;
+ outputLocation_ = other.outputLocation_;
+ onChanged();
+ break;
+ }
case OUTPUTLOCATION_NOT_SET:
{
break;
@@ -6868,9 +7845,16 @@ public Builder mergeFrom(
case 34:
{
bigqueryOutputTable_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
break;
} // case 34
+ case 42:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ outputLocationCase_ = 5;
+ outputLocation_ = s;
+ break;
+ } // case 42
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -7206,6 +8190,169 @@ public Builder setBigqueryOutputDatasetBytes(com.google.protobuf.ByteString valu
return this;
}
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetName field is set.
+ */
+ @java.lang.Override
+ public boolean hasVertexMultimodalDatasetName() {
+ return outputLocationCase_ == 5;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The vertexMultimodalDatasetName.
+ */
+ @java.lang.Override
+ public java.lang.String getVertexMultimodalDatasetName() {
+ java.lang.Object ref = "";
+ if (outputLocationCase_ == 5) {
+ ref = outputLocation_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (outputLocationCase_ == 5) {
+ outputLocation_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for vertexMultimodalDatasetName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVertexMultimodalDatasetNameBytes() {
+ java.lang.Object ref = "";
+ if (outputLocationCase_ == 5) {
+ ref = outputLocation_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (outputLocationCase_ == 5) {
+ outputLocation_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The vertexMultimodalDatasetName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVertexMultimodalDatasetName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ outputLocationCase_ = 5;
+ outputLocation_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVertexMultimodalDatasetName() {
+ if (outputLocationCase_ == 5) {
+ outputLocationCase_ = 0;
+ outputLocation_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for vertexMultimodalDatasetName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVertexMultimodalDatasetNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ outputLocationCase_ = 5;
+ outputLocation_ = value;
+ onChanged();
+ return this;
+ }
+
private java.lang.Object bigqueryOutputTable_ = "";
/**
@@ -7280,7 +8427,7 @@ public Builder setBigqueryOutputTable(java.lang.String value) {
throw new NullPointerException();
}
bigqueryOutputTable_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -7301,7 +8448,7 @@ public Builder setBigqueryOutputTable(java.lang.String value) {
*/
public Builder clearBigqueryOutputTable() {
bigqueryOutputTable_ = getDefaultInstance().getBigqueryOutputTable();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -7327,7 +8474,7 @@ public Builder setBigqueryOutputTableBytes(com.google.protobuf.ByteString value)
}
checkByteStringIsUtf8(value);
bigqueryOutputTable_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobProto.java
index e51dd209b4f7..e4953ffa24d9 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobProto.java
@@ -73,92 +73,100 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n5google/cloud/aiplatform/v1/batch_predi"
- + "ction_job.proto\022\032google.cloud.aiplatform"
+ "\n"
+ + "5google/cloud/aiplatform/v1/batch_prediction_job.proto\022\032google.cloud.aiplatform"
+ ".v1\032\037google/api/field_behavior.proto\032\031go"
- + "ogle/api/resource.proto\0321google/cloud/ai"
- + "platform/v1/completion_stats.proto\0320goog"
- + "le/cloud/aiplatform/v1/encryption_spec.p"
- + "roto\032,google/cloud/aiplatform/v1/explana"
- + "tion.proto\032#google/cloud/aiplatform/v1/i"
- + "o.proto\032*google/cloud/aiplatform/v1/job_"
- + "state.proto\0322google/cloud/aiplatform/v1/"
- + "machine_resources.proto\032?google/cloud/ai"
- + "platform/v1/manual_batch_tuning_paramete"
- + "rs.proto\032:google/cloud/aiplatform/v1/unm"
+ + "ogle/api/resource.proto\0321google/cloud/aiplatform/v1/completion_stats.proto\0320goog"
+ + "le/cloud/aiplatform/v1/encryption_spec.proto\032,google/cloud/aiplatform/v1/explana"
+ + "tion.proto\032#google/cloud/aiplatform/v1/io.proto\032*google/cloud/aiplatform/v1/job_"
+ + "state.proto\0322google/cloud/aiplatform/v1/machine_resources.proto\032?google/cloud/ai"
+ + "platform/v1/manual_batch_tuning_parameters.proto\032:google/cloud/aiplatform/v1/unm"
+ "anaged_container_model.proto\032\034google/pro"
- + "tobuf/struct.proto\032\037google/protobuf/time"
- + "stamp.proto\032\027google/rpc/status.proto\"\363\023\n"
- + "\022BatchPredictionJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031"
- + "\n\014display_name\030\002 \001(\tB\003\340A\002\0223\n\005model\030\003 \001(\t"
- + "B$\372A!\n\037aiplatform.googleapis.com/Model\022\035"
- + "\n\020model_version_id\030\036 \001(\tB\003\340A\003\022V\n\031unmanag"
- + "ed_container_model\030\034 \001(\01323.google.cloud."
- + "aiplatform.v1.UnmanagedContainerModel\022U\n"
+ + "tobuf/struct.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\240\026\n"
+ + "\022BatchPredictionJob\022\021\n"
+ + "\004name\030\001 \001(\tB\003\340A\003\022\031\n"
+ + "\014display_name\030\002 \001(\tB\003\340A\002\0223\n"
+ + "\005model\030\003 \001(\tB$\372A!\n"
+ + "\037aiplatform.googleapis.com/Model\022\035\n"
+ + "\020model_version_id\030\036 \001(\tB\003\340A\003\022V\n"
+ + "\031unmanaged_container_model\030\034"
+ + " \001(\01323.google.cloud.aiplatform.v1.UnmanagedContainerModel\022U\n"
+ "\014input_config\030\004 \001(\0132:.google.cloud.aipla"
- + "tform.v1.BatchPredictionJob.InputConfigB"
- + "\003\340A\002\022V\n\017instance_config\030\033 \001(\0132=.google.c"
- + "loud.aiplatform.v1.BatchPredictionJob.In"
- + "stanceConfig\0220\n\020model_parameters\030\005 \001(\0132\026"
- + ".google.protobuf.Value\022W\n\routput_config\030"
- + "\006 \001(\0132;.google.cloud.aiplatform.v1.Batch"
- + "PredictionJob.OutputConfigB\003\340A\002\022P\n\023dedic"
- + "ated_resources\030\007 \001(\01323.google.cloud.aipl"
- + "atform.v1.BatchDedicatedResources\022\027\n\017ser"
- + "vice_account\030\035 \001(\t\022d\n\036manual_batch_tunin"
- + "g_parameters\030\010 \001(\01327.google.cloud.aiplat"
- + "form.v1.ManualBatchTuningParametersB\003\340A\005"
- + "\022\034\n\024generate_explanation\030\027 \001(\010\022E\n\020explan"
- + "ation_spec\030\031 \001(\0132+.google.cloud.aiplatfo"
- + "rm.v1.ExplanationSpec\022S\n\013output_info\030\t \001"
- + "(\01329.google.cloud.aiplatform.v1.BatchPre"
- + "dictionJob.OutputInfoB\003\340A\003\0228\n\005state\030\n \001("
- + "\0162$.google.cloud.aiplatform.v1.JobStateB"
- + "\003\340A\003\022&\n\005error\030\013 \001(\0132\022.google.rpc.StatusB"
- + "\003\340A\003\0221\n\020partial_failures\030\014 \003(\0132\022.google."
- + "rpc.StatusB\003\340A\003\022N\n\022resources_consumed\030\r "
- + "\001(\0132-.google.cloud.aiplatform.v1.Resourc"
- + "esConsumedB\003\340A\003\022J\n\020completion_stats\030\016 \001("
- + "\0132+.google.cloud.aiplatform.v1.Completio"
- + "nStatsB\003\340A\003\0224\n\013create_time\030\017 \001(\0132\032.googl"
- + "e.protobuf.TimestampB\003\340A\003\0223\n\nstart_time\030"
- + "\020 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221"
- + "\n\010end_time\030\021 \001(\0132\032.google.protobuf.Times"
- + "tampB\003\340A\003\0224\n\013update_time\030\022 \001(\0132\032.google."
- + "protobuf.TimestampB\003\340A\003\022J\n\006labels\030\023 \003(\0132"
- + ":.google.cloud.aiplatform.v1.BatchPredic"
- + "tionJob.LabelsEntry\022C\n\017encryption_spec\030\030"
- + " \001(\0132*.google.cloud.aiplatform.v1.Encryp"
- + "tionSpec\022!\n\031disable_container_logging\030\" "
- + "\001(\010\022\032\n\rsatisfies_pzs\030$ \001(\010B\003\340A\003\022\032\n\rsatis"
- + "fies_pzi\030% \001(\010B\003\340A\003\032\272\001\n\013InputConfig\022;\n\ng"
- + "cs_source\030\002 \001(\0132%.google.cloud.aiplatfor"
- + "m.v1.GcsSourceH\000\022E\n\017bigquery_source\030\003 \001("
- + "\0132*.google.cloud.aiplatform.v1.BigQueryS"
- + "ourceH\000\022\035\n\020instances_format\030\001 \001(\tB\003\340A\002B\010"
- + "\n\006source\032l\n\016InstanceConfig\022\025\n\rinstance_t"
- + "ype\030\001 \001(\t\022\021\n\tkey_field\030\002 \001(\t\022\027\n\017included"
- + "_fields\030\003 \003(\t\022\027\n\017excluded_fields\030\004 \003(\t\032\326"
- + "\001\n\014OutputConfig\022E\n\017gcs_destination\030\002 \001(\013"
- + "2*.google.cloud.aiplatform.v1.GcsDestina"
- + "tionH\000\022O\n\024bigquery_destination\030\003 \001(\0132/.g"
- + "oogle.cloud.aiplatform.v1.BigQueryDestin"
- + "ationH\000\022\037\n\022predictions_format\030\001 \001(\tB\003\340A\002"
- + "B\r\n\013destination\032\220\001\n\nOutputInfo\022#\n\024gcs_ou"
- + "tput_directory\030\001 \001(\tB\003\340A\003H\000\022&\n\027bigquery_"
- + "output_dataset\030\002 \001(\tB\003\340A\003H\000\022\"\n\025bigquery_"
- + "output_table\030\004 \001(\tB\003\340A\003B\021\n\017output_locati"
- + "on\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
- + "\002 \001(\t:\0028\001:\206\001\352A\202\001\n,aiplatform.googleapis."
- + "com/BatchPredictionJob\022Rprojects/{projec"
- + "t}/locations/{location}/batchPredictionJ"
- + "obs/{batch_prediction_job}B\325\001\n\036com.googl"
- + "e.cloud.aiplatform.v1B\027BatchPredictionJo"
- + "bProtoP\001Z>cloud.google.com/go/aiplatform"
- + "/apiv1/aiplatformpb;aiplatformpb\252\002\032Googl"
- + "e.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIP"
- + "latform\\V1\352\002\035Google::Cloud::AIPlatform::"
- + "V1b\006proto3"
+ + "tform.v1.BatchPredictionJob.InputConfigB\003\340A\002\022V\n"
+ + "\017instance_config\030\033 \001(\0132=.google.c"
+ + "loud.aiplatform.v1.BatchPredictionJob.InstanceConfig\0220\n"
+ + "\020model_parameters\030\005 \001(\0132\026.google.protobuf.Value\022W\n\r"
+ + "output_config\030\006"
+ + " \001(\0132;.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfigB\003\340A\002\022P\n"
+ + "\023dedicated_resources\030\007"
+ + " \001(\01323.google.cloud.aiplatform.v1.BatchDedicatedResources\022\027\n"
+ + "\017service_account\030\035 \001(\t\022d\n"
+ + "\036manual_batch_tuning_parameters\030\010 \001(\01327.google.cloud.aiplat"
+ + "form.v1.ManualBatchTuningParametersB\003\340A\005\022\034\n"
+ + "\024generate_explanation\030\027 \001(\010\022E\n"
+ + "\020explanation_spec\030\031"
+ + " \001(\0132+.google.cloud.aiplatform.v1.ExplanationSpec\022S\n"
+ + "\013output_info\030\t \001"
+ + "(\01329.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfoB\003\340A\003\0228\n"
+ + "\005state\030\n"
+ + " \001(\0162$.google.cloud.aiplatform.v1.JobStateB\003\340A\003\022&\n"
+ + "\005error\030\013 \001(\0132\022.google.rpc.StatusB\003\340A\003\0221\n"
+ + "\020partial_failures\030\014 \003(\0132\022.google.rpc.StatusB\003\340A\003\022N\n"
+ + "\022resources_consumed\030\r"
+ + " \001(\0132-.google.cloud.aiplatform.v1.ResourcesConsumedB\003\340A\003\022J\n"
+ + "\020completion_stats\030\016 \001("
+ + "\0132+.google.cloud.aiplatform.v1.CompletionStatsB\003\340A\003\0224\n"
+ + "\013create_time\030\017"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0223\n\n"
+ + "start_time\030\020 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n"
+ + "\010end_time\030\021 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
+ + "\013update_time\030\022 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022J\n"
+ + "\006labels\030\023 \003(\0132"
+ + ":.google.cloud.aiplatform.v1.BatchPredictionJob.LabelsEntry\022C\n"
+ + "\017encryption_spec\030\030"
+ + " \001(\0132*.google.cloud.aiplatform.v1.EncryptionSpec\022!\n"
+ + "\031disable_container_logging\030\" \001(\010\022\032\n\r"
+ + "satisfies_pzs\030$ \001(\010B\003\340A\003\022\032\n\r"
+ + "satisfies_pzi\030% \001(\010B\003\340A\003\032\241\002\n"
+ + "\013InputConfig\022;\n\n"
+ + "gcs_source\030\002 \001(\0132%.google.cloud.aiplatform.v1.GcsSourceH\000\022E\n"
+ + "\017bigquery_source\030\003 \001("
+ + "\0132*.google.cloud.aiplatform.v1.BigQuerySourceH\000\022e\n"
+ + " vertex_multimodal_dataset_source\030\004"
+ + " \001(\01329.google.cloud.aiplatform.v1.VertexMultimodalDatasetSourceH\000\022\035\n"
+ + "\020instances_format\030\001 \001(\tB\003\340A\002B\010\n"
+ + "\006source\032l\n"
+ + "\016InstanceConfig\022\025\n\r"
+ + "instance_type\030\001 \001(\t\022\021\n"
+ + "\tkey_field\030\002 \001(\t\022\027\n"
+ + "\017included_fields\030\003 \003(\t\022\027\n"
+ + "\017excluded_fields\030\004 \003(\t\032\307\002\n"
+ + "\014OutputConfig\022E\n"
+ + "\017gcs_destination\030\002"
+ + " \001(\0132*.google.cloud.aiplatform.v1.GcsDestinationH\000\022O\n"
+ + "\024bigquery_destination\030\003"
+ + " \001(\0132/.google.cloud.aiplatform.v1.BigQueryDestinationH\000\022o\n"
+ + "%vertex_multimodal_dataset_destination\030\006 \001(\0132>."
+ + "google.cloud.aiplatform.v1.VertexMultimodalDatasetDestinationH\000\022\037\n"
+ + "\022predictions_format\030\001 \001(\tB\003\340A\002B\r\n"
+ + "\013destination\032\345\001\n\n"
+ + "OutputInfo\022#\n"
+ + "\024gcs_output_directory\030\001 \001(\tB\003\340A\003H\000\022&\n"
+ + "\027bigquery_output_dataset\030\002 \001(\tB\003\340A\003H\000\022S\n"
+ + "\036vertex_multimodal_dataset_name\030\005 \001(\tB)\340A\003\372A#\n"
+ + "!aiplatform.googleapis.com/DatasetH\000\022\"\n"
+ + "\025bigquery_output_table\030\004 \001(\tB\003\340A\003B\021\n"
+ + "\017output_location\032-\n"
+ + "\013LabelsEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022\r\n"
+ + "\005value\030\002 \001(\t:\0028\001:\206\001\352A\202\001\n"
+ + ",aiplatform.googleapis.com/BatchPredictionJob\022Rprojects/{project}/locations/{locat"
+ + "ion}/batchPredictionJobs/{batch_prediction_job}B\325\001\n"
+ + "\036com.google.cloud.aiplatform.v1B\027BatchPredictionJobProtoP\001Z>cloud.goo"
+ + "gle.com/go/aiplatform/apiv1/aiplatformpb"
+ + ";aiplatformpb\252\002\032Google.Cloud.AIPlatform."
+ + "V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google"
+ + "::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -220,7 +228,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_BatchPredictionJob_InputConfig_descriptor,
new java.lang.String[] {
- "GcsSource", "BigquerySource", "InstancesFormat", "Source",
+ "GcsSource",
+ "BigquerySource",
+ "VertexMultimodalDatasetSource",
+ "InstancesFormat",
+ "Source",
});
internal_static_google_cloud_aiplatform_v1_BatchPredictionJob_InstanceConfig_descriptor =
internal_static_google_cloud_aiplatform_v1_BatchPredictionJob_descriptor.getNestedType(1);
@@ -236,7 +248,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_BatchPredictionJob_OutputConfig_descriptor,
new java.lang.String[] {
- "GcsDestination", "BigqueryDestination", "PredictionsFormat", "Destination",
+ "GcsDestination",
+ "BigqueryDestination",
+ "VertexMultimodalDatasetDestination",
+ "PredictionsFormat",
+ "Destination",
});
internal_static_google_cloud_aiplatform_v1_BatchPredictionJob_OutputInfo_descriptor =
internal_static_google_cloud_aiplatform_v1_BatchPredictionJob_descriptor.getNestedType(3);
@@ -246,6 +262,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"GcsOutputDirectory",
"BigqueryOutputDataset",
+ "VertexMultimodalDatasetName",
"BigqueryOutputTable",
"OutputLocation",
});
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
index 702f5aaa4952..1a36f8c9c5e0 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
@@ -48,6 +48,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_Part_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_Part_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_Blob_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -88,6 +92,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_ImageConfig_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_ImageConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_GenerationConfig_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -224,7 +232,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\007Content\022\021\n"
+ "\004role\030\001 \001(\tB\003\340A\001\0224\n"
+ "\005parts\030\002 \003(\0132"
- + " .google.cloud.aiplatform.v1.PartB\003\340A\002\"\350\004\n"
+ + " .google.cloud.aiplatform.v1.PartB\003\340A\002\"\271\007\n"
+ "\004Part\022\023\n"
+ "\004text\030\001 \001(\tB\003\340A\001H\000\022<\n"
+ "\013inline_data\030\002 \001(\0132"
@@ -243,20 +251,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ " \001(\010B\003\340A\001\022\036\n"
+ "\021thought_signature\030\013 \001(\014B\003\340A\001\022H\n"
+ "\016video_metadata\030\004"
- + " \001(\0132).google.cloud.aiplatform.v1.VideoMetadataB\003\340A\001H\001B\006\n"
- + "\004dataB\n"
- + "\n"
+ + " \001(\0132).google.cloud.aiplatform.v1.VideoMetadataB\003\340A\001H\001\022J\n"
+ + "\020media_resolution\030\014"
+ + " \001(\01320.google.cloud.aiplatform.v1.Part.MediaResolution\032\202\002\n"
+ + "\017MediaResolution\022G\n"
+ + "\005level\030\001 \001(\01626.google.cloud.aip"
+ + "latform.v1.Part.MediaResolution.LevelH\000\"\234\001\n"
+ + "\005Level\022 \n"
+ + "\034MEDIA_RESOLUTION_UNSPECIFIED\020\000\022\030\n"
+ + "\024MEDIA_RESOLUTION_LOW\020\001\022\033\n"
+ + "\027MEDIA_RESOLUTION_MEDIUM\020\002\022\031\n"
+ + "\025MEDIA_RESOLUTION_HIGH\020\003\022\037\n"
+ + "\033MEDIA_RESOLUTION_ULTRA_HIGH\020\004B\007\n"
+ + "\005valueB\006\n"
+ + "\004dataB\n\n"
+ "\010metadata\"1\n"
+ "\004Blob\022\026\n"
+ "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n"
+ "\004data\030\002 \001(\014B\003\340A\002\"9\n"
+ "\010FileData\022\026\n"
+ "\tmime_type\030\001 \001(\tB\003\340A\002\022\025\n"
- + "\010file_uri\030\002 \001(\tB\003\340A\002\"y\n\r"
+ + "\010file_uri\030\002 \001(\tB\003\340A\002\"\213\001\n\r"
+ "VideoMetadata\0224\n"
+ "\014start_offset\030\001"
+ " \001(\0132\031.google.protobuf.DurationB\003\340A\001\0222\n\n"
- + "end_offset\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"=\n"
+ + "end_offset\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\020\n"
+ + "\003fps\030\003 \001(\001B\003\340A\001\"=\n"
+ "\023PrebuiltVoiceConfig\022\027\n\n"
+ "voice_name\030\001 \001(\tH\000\210\001\001B\r\n"
+ "\013_voice_name\"P\n"
@@ -264,27 +284,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\tmime_type\030\001 \001(\tB\003\340A\001\022\037\n"
+ "\022voice_sample_audio\030\002 \001(\014B\003\340A\001\"\312\001\n"
+ "\013VoiceConfig\022P\n"
- + "\025prebuilt_voice_config\030\001 \001(\0132/.go"
- + "ogle.cloud.aiplatform.v1.PrebuiltVoiceConfigH\000\022Y\n"
- + "\027replicated_voice_config\030\003 \001(\0132"
- + "1.google.cloud.aiplatform.v1.ReplicatedVoiceConfigB\003\340A\001H\000B\016\n"
+ + "\025prebuilt_voice_config\030\001 \001(\0132/.google"
+ + ".cloud.aiplatform.v1.PrebuiltVoiceConfigH\000\022Y\n"
+ + "\027replicated_voice_config\030\003 \001(\01321.go"
+ + "ogle.cloud.aiplatform.v1.ReplicatedVoiceConfigB\003\340A\001H\000B\016\n"
+ "\014voice_config\"n\n"
+ "\022SpeakerVoiceConfig\022\024\n"
+ "\007speaker\030\001 \001(\tB\003\340A\002\022B\n"
+ "\014voice_config\030\002"
+ " \001(\0132\'.google.cloud.aiplatform.v1.VoiceConfigB\003\340A\002\"m\n"
+ "\027MultiSpeakerVoiceConfig\022R\n"
- + "\025speaker_voice_configs\030\002 "
- + "\003(\0132..google.cloud.aiplatform.v1.SpeakerVoiceConfigB\003\340A\002\"\302\001\n"
+ + "\025speaker_voice_configs\030\002 \003(\0132"
+ + "..google.cloud.aiplatform.v1.SpeakerVoiceConfigB\003\340A\002\"\302\001\n"
+ "\014SpeechConfig\022=\n"
+ "\014voice_config\030\001"
+ " \001(\0132\'.google.cloud.aiplatform.v1.VoiceConfig\022\032\n\r"
+ "language_code\030\002 \001(\tB\003\340A\001\022W\n"
- + "\032multi_speaker_voice_config\030\003 \001(\013"
- + "23.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig\">\n"
- + "\013ImageConfig\022\036\n"
- + "\014aspect_ratio\030\002 \001(\tB\003\340A\001H\000\210\001\001B\017\n\r"
- + "_aspect_ratio\"\257\016\n"
+ + "\032multi_speaker_voice_config\030\003 \001(\01323.g"
+ + "oogle.cloud.aiplatform.v1.MultiSpeakerVoiceConfig\"\304\004\n"
+ + "\013ImageConfig\022b\n"
+ + "\024image_output_options\030\001 \001(\0132:.google.cloud.aiplatfor"
+ + "m.v1.ImageConfig.ImageOutputOptionsB\003\340A\001H\000\210\001\001\022\036\n"
+ + "\014aspect_ratio\030\002 \001(\tB\003\340A\001H\001\210\001\001\022]\n"
+ + "\021person_generation\030\003 \001(\01628.google.cloud."
+ + "aiplatform.v1.ImageConfig.PersonGenerationB\003\340A\001H\002\210\001\001\022\034\n\n"
+ + "image_size\030\004 \001(\tB\003\340A\001H\003\210\001\001\032~\n"
+ + "\022ImageOutputOptions\022\033\n"
+ + "\tmime_type\030\001 \001(\tB\003\340A\001H\000\210\001\001\022%\n"
+ + "\023compression_quality\030\002 \001(\005B\003\340A\001H\001\210\001\001B\014\n\n"
+ + "_mime_typeB\026\n"
+ + "\024_compression_quality\"e\n"
+ + "\020PersonGeneration\022!\n"
+ + "\035PERSON_GENERATION_UNSPECIFIED\020\000\022\r\n"
+ + "\tALLOW_ALL\020\001\022\017\n"
+ + "\013ALLOW_ADULT\020\002\022\016\n\n"
+ + "ALLOW_NONE\020\003B\027\n"
+ + "\025_image_output_optionsB\017\n\r"
+ + "_aspect_ratioB\024\n"
+ + "\022_person_generationB\r\n"
+ + "\013_image_size\"\341\023\n"
+ "\020GenerationConfig\022\035\n"
+ "\013temperature\030\001 \001(\002B\003\340A\001H\000\210\001\001\022\027\n"
+ "\005top_p\030\002 \001(\002B\003\340A\001H\001\210\001\001\022\027\n"
@@ -304,24 +342,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\210\001\001\022>\n"
+ "\024response_json_schema\030\034"
+ " \001(\0132\026.google.protobuf.ValueB\003\340A\001H\013\210\001\001\022\\\n"
- + "\016routing_config\030\021 \001(\0132:.goo"
- + "gle.cloud.aiplatform.v1.GenerationConfig.RoutingConfigB\003\340A\001H\014\210\001\001\022I\n\r"
+ + "\016routing_config\030\021 \001(\0132:.google.c"
+ + "loud.aiplatform.v1.GenerationConfig.RoutingConfigB\003\340A\001H\014\210\001\001\022!\n"
+ + "\017audio_timestamp\030\024 \001(\010B\003\340A\001H\r"
+ + "\210\001\001\022W\n"
+ + "\023response_modalities\030\025 "
+ + "\003(\01625.google.cloud.aiplatform.v1.GenerationConfig.ModalityB\003\340A\001\022`\n"
+ + "\020media_resolution\030\026 \001(\0162<.google.cloud.aiplatform.v1.G"
+ + "enerationConfig.MediaResolutionB\003\340A\001H\016\210\001\001\022I\n\r"
+ "speech_config\030\027"
- + " \001(\0132(.google.cloud.aiplatform.v1.SpeechConfigB\003\340A\001H\r"
- + "\210\001\001\022Y\n"
- + "\017thinking_config\030\031"
- + " \001(\0132;.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfigB\003\340A\001\022G\n"
- + "\014image_config\030\036"
- + " \001(\0132\'.google.cloud.aiplatform.v1.ImageConfigB\003\340A\001H\016\210\001\001\032\302\004\n\r"
+ + " \001(\0132(.google.cloud.aiplatform.v1.SpeechConfigB\003\340A\001H\017\210\001\001\022Y\n"
+ + "\017thinking_config\030\031 \001(\0132;.google.cloud.aip"
+ + "latform.v1.GenerationConfig.ThinkingConfigB\003\340A\001\022G\n"
+ + "\014image_config\030\036 \001(\0132\'.google.c"
+ + "loud.aiplatform.v1.ImageConfigB\003\340A\001H\020\210\001\001\032\302\004\n\r"
+ "RoutingConfig\022_\n"
- + "\tauto_mode\030\001 \001(\0132J.google.cloud.aipl"
- + "atform.v1.GenerationConfig.RoutingConfig.AutoRoutingModeH\000\022c\n"
- + "\013manual_mode\030\002 \001(\0132L.google.cloud.aiplatform.v1.GenerationC"
- + "onfig.RoutingConfig.ManualRoutingModeH\000\032\233\002\n"
+ + "\tauto_mode\030\001 \001(\0132J."
+ + "google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingModeH\000\022c\n"
+ + "\013manual_mode\030\002 \001(\0132L.google.cloud.aiplatfo"
+ + "rm.v1.GenerationConfig.RoutingConfig.ManualRoutingModeH\000\032\233\002\n"
+ "\017AutoRoutingMode\022\210\001\n"
- + "\030model_routing_preference\030\001 \001(\0162a.google.cloud.aiplatform"
- + ".v1.GenerationConfig.RoutingConfig.AutoR"
- + "outingMode.ModelRoutingPreferenceH\000\210\001\001\"`\n"
+ + "\030model_routing_preference\030\001 \001(\0162a.google"
+ + ".cloud.aiplatform.v1.GenerationConfig.Ro"
+ + "utingConfig.AutoRoutingMode.ModelRoutingPreferenceH\000\210\001\001\"`\n"
+ "\026ModelRoutingPreference\022\013\n"
+ "\007UNKNOWN\020\000\022\026\n"
+ "\022PRIORITIZE_QUALITY\020\001\022\014\n"
@@ -331,12 +374,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021ManualRoutingMode\022\027\n\n"
+ "model_name\030\001 \001(\tH\000\210\001\001B\r\n"
+ "\013_model_nameB\020\n"
- + "\016routing_config\032\200\001\n"
+ + "\016routing_config\032\335\002\n"
+ "\016ThinkingConfig\022\"\n"
+ "\020include_thoughts\030\001 \001(\010B\003\340A\001H\000\210\001\001\022!\n"
- + "\017thinking_budget\030\003 \001(\005B\003\340A\001H\001\210\001\001B\023\n"
+ + "\017thinking_budget\030\003 \001(\005B\003\340A\001H\001\210\001\001\022k\n"
+ + "\016thinking_level\030\004 \001(\0162I.google.cloud.aiplatfor"
+ + "m.v1.GenerationConfig.ThinkingConfig.ThinkingLevelB\003\340A\001H\002\210\001\001\"[\n\r"
+ + "ThinkingLevel\022\036\n"
+ + "\032THINKING_LEVEL_UNSPECIFIED\020\000\022\007\n"
+ + "\003LOW\020\001\022\n"
+ + "\n"
+ + "\006MEDIUM\020\002\022\010\n"
+ + "\004HIGH\020\003\022\013\n"
+ + "\007MINIMAL\020\004B\023\n"
+ "\021_include_thoughtsB\022\n"
- + "\020_thinking_budgetB\016\n"
+ + "\020_thinking_budgetB\021\n"
+ + "\017_thinking_level\"D\n"
+ + "\010Modality\022\030\n"
+ + "\024MODALITY_UNSPECIFIED\020\000\022\010\n"
+ + "\004TEXT\020\001\022\t\n"
+ + "\005IMAGE\020\002\022\t\n"
+ + "\005AUDIO\020\003\"\205\001\n"
+ + "\017MediaResolution\022 \n"
+ + "\034MEDIA_RESOLUTION_UNSPECIFIED\020\000\022\030\n"
+ + "\024MEDIA_RESOLUTION_LOW\020\001\022\033\n"
+ + "\027MEDIA_RESOLUTION_MEDIUM\020\002\022\031\n"
+ + "\025MEDIA_RESOLUTION_HIGH\020\003B\016\n"
+ "\014_temperatureB\010\n"
+ "\006_top_pB\010\n"
+ "\006_top_kB\022\n"
@@ -349,16 +412,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005_seedB\022\n"
+ "\020_response_schemaB\027\n"
+ "\025_response_json_schemaB\021\n"
- + "\017_routing_configB\020\n"
+ + "\017_routing_configB\022\n"
+ + "\020_audio_timestampB\023\n"
+ + "\021_media_resolutionB\020\n"
+ "\016_speech_configB\017\n\r"
+ "_image_config\"\353\003\n\r"
+ "SafetySetting\022?\n"
- + "\010category\030\001 \001(\0162(.go"
- + "ogle.cloud.aiplatform.v1.HarmCategoryB\003\340A\002\022T\n"
- + "\tthreshold\030\002 \001(\0162<.google.cloud.aip"
- + "latform.v1.SafetySetting.HarmBlockThresholdB\003\340A\002\022N\n"
- + "\006method\030\004 \001(\01629.google.cloud."
- + "aiplatform.v1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n"
+ + "\010category\030\001 \001(\016"
+ + "2(.google.cloud.aiplatform.v1.HarmCategoryB\003\340A\002\022T\n"
+ + "\tthreshold\030\002 \001(\0162<.google.clou"
+ + "d.aiplatform.v1.SafetySetting.HarmBlockThresholdB\003\340A\002\022N\n"
+ + "\006method\030\004 \001(\01629.google.c"
+ + "loud.aiplatform.v1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n"
+ "\022HarmBlockThreshold\022$\n"
+ " HARM_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n"
+ "\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n"
@@ -373,11 +438,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\014SafetyRating\022?\n"
+ "\010category\030\001"
+ " \001(\0162(.google.cloud.aiplatform.v1.HarmCategoryB\003\340A\003\022R\n"
- + "\013probability\030\002 \001(\01628.g"
- + "oogle.cloud.aiplatform.v1.SafetyRating.HarmProbabilityB\003\340A\003\022\036\n"
+ + "\013probability\030\002 \001("
+ + "\01628.google.cloud.aiplatform.v1.SafetyRating.HarmProbabilityB\003\340A\003\022\036\n"
+ "\021probability_score\030\005 \001(\002B\003\340A\003\022L\n"
- + "\010severity\030\006 \001(\01625.google.c"
- + "loud.aiplatform.v1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n"
+ + "\010severity\030\006 \001(\01625.goo"
+ + "gle.cloud.aiplatform.v1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n"
+ "\016severity_score\030\007 \001(\002B\003\340A\003\022\024\n"
+ "\007blocked\030\003 \001(\010B\003\340A\003\"b\n"
+ "\017HarmProbability\022 \n"
@@ -393,8 +458,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\024HARM_SEVERITY_MEDIUM\020\003\022\026\n"
+ "\022HARM_SEVERITY_HIGH\020\004\"P\n"
+ "\020CitationMetadata\022<\n"
- + "\tcitations\030\001"
- + " \003(\0132$.google.cloud.aiplatform.v1.CitationB\003\340A\003\"\252\001\n"
+ + "\tcitations\030\001 \003(\0132$.go"
+ + "ogle.cloud.aiplatform.v1.CitationB\003\340A\003\"\252\001\n"
+ "\010Citation\022\030\n"
+ "\013start_index\030\001 \001(\005B\003\340A\003\022\026\n"
+ "\tend_index\030\002 \001(\005B\003\340A\003\022\020\n"
@@ -410,17 +475,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\014avg_logprobs\030\t \001(\001B\003\340A\003\022H\n"
+ "\017logprobs_result\030\n"
+ " \001(\0132*.google.cloud.aiplatform.v1.LogprobsResultB\003\340A\003\022N\n\r"
- + "finish_reason\030\003 "
- + "\001(\01622.google.cloud.aiplatform.v1.Candidate.FinishReasonB\003\340A\003\022E\n"
+ + "finish_reason\030\003"
+ + " \001(\01622.google.cloud.aiplatform.v1.Candidate.FinishReasonB\003\340A\003\022E\n"
+ "\016safety_ratings\030\004"
+ " \003(\0132(.google.cloud.aiplatform.v1.SafetyRatingB\003\340A\003\022 \n"
+ "\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022L\n"
- + "\021citation_metadata\030\006 \001(\0132,.googl"
- + "e.cloud.aiplatform.v1.CitationMetadataB\003\340A\003\022N\n"
- + "\022grounding_metadata\030\007 \001(\0132-.google"
- + ".cloud.aiplatform.v1.GroundingMetadataB\003\340A\003\022Q\n"
- + "\024url_context_metadata\030\013 \001(\0132..goog"
- + "le.cloud.aiplatform.v1.UrlContextMetadataB\003\340A\003\"\315\001\n"
+ + "\021citation_metadata\030\006 \001(\0132,."
+ + "google.cloud.aiplatform.v1.CitationMetadataB\003\340A\003\022N\n"
+ + "\022grounding_metadata\030\007 \001(\0132-.g"
+ + "oogle.cloud.aiplatform.v1.GroundingMetadataB\003\340A\003\022Q\n"
+ + "\024url_context_metadata\030\013 \001(\0132."
+ + ".google.cloud.aiplatform.v1.UrlContextMetadataB\003\340A\003\"\315\001\n"
+ "\014FinishReason\022\035\n"
+ "\031FINISH_REASON_UNSPECIFIED\020\000\022\010\n"
+ "\004STOP\020\001\022\016\n\n"
@@ -436,21 +501,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "B\021\n"
+ "\017_finish_message\"X\n"
+ "\022UrlContextMetadata\022B\n"
- + "\014url_metadata\030\001 \003(\0132\'."
- + "google.cloud.aiplatform.v1.UrlMetadataB\003\340A\003\"\374\001\n"
+ + "\014url_metadata\030\001 \003"
+ + "(\0132\'.google.cloud.aiplatform.v1.UrlMetadataB\003\340A\003\"\374\001\n"
+ "\013UrlMetadata\022\025\n\r"
+ "retrieved_url\030\001 \001(\t\022X\n"
- + "\024url_retrieval_status\030\002 \001(\0162:.googl"
- + "e.cloud.aiplatform.v1.UrlMetadata.UrlRetrievalStatus\"|\n"
+ + "\024url_retrieval_status\030\002 \001(\0162:."
+ + "google.cloud.aiplatform.v1.UrlMetadata.UrlRetrievalStatus\"|\n"
+ "\022UrlRetrievalStatus\022$\n"
+ " URL_RETRIEVAL_STATUS_UNSPECIFIED\020\000\022 \n"
+ "\034URL_RETRIEVAL_STATUS_SUCCESS\020\001\022\036\n"
+ "\032URL_RETRIEVAL_STATUS_ERROR\020\002\"\217\003\n"
+ "\016LogprobsResult\022P\n"
- + "\016top_candidates\030\001 \003(\01328.google.cloud.aip"
- + "latform.v1.LogprobsResult.TopCandidates\022O\n"
- + "\021chosen_candidates\030\002 \003(\01324.google.clou"
- + "d.aiplatform.v1.LogprobsResult.Candidate\032\177\n"
+ + "\016top_candidates\030\001 \003(\01328.google.clou"
+ + "d.aiplatform.v1.LogprobsResult.TopCandidates\022O\n"
+ + "\021chosen_candidates\030\002 \003(\01324.google"
+ + ".cloud.aiplatform.v1.LogprobsResult.Candidate\032\177\n"
+ "\tCandidate\022\022\n"
+ "\005token\030\001 \001(\tH\000\210\001\001\022\025\n"
+ "\010token_id\030\003 \001(\005H\001\210\001\001\022\034\n"
@@ -468,10 +533,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004text\030\004 \001(\tB\003\340A\003\"\322\007\n"
+ "\016GroundingChunk\022=\n"
+ "\003web\030\001 \001(\0132..google.cloud.aiplatform.v1.GroundingChunk.WebH\000\022X\n"
- + "\021retrieved_context\030\002 \001(\0132;.goo"
- + "gle.cloud.aiplatform.v1.GroundingChunk.RetrievedContextH\000\022?\n"
- + "\004maps\030\003 \001(\0132/.google"
- + ".cloud.aiplatform.v1.GroundingChunk.MapsH\000\032=\n"
+ + "\021retrieved_context\030\002 \001(\0132"
+ + ";.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContextH\000\022?\n"
+ + "\004maps\030\003 \001(\0132/.g"
+ + "oogle.cloud.aiplatform.v1.GroundingChunk.MapsH\000\032=\n"
+ "\003Web\022\020\n"
+ "\003uri\030\001 \001(\tH\000\210\001\001\022\022\n"
+ "\005title\030\002 \001(\tH\001\210\001\001B\006\n"
@@ -493,11 +558,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005title\030\002 \001(\tH\001\210\001\001\022\021\n"
+ "\004text\030\003 \001(\tH\002\210\001\001\022\025\n"
+ "\010place_id\030\004 \001(\tH\003\210\001\001\022`\n"
- + "\024place_answer_sources\030\005 \001(\0132B.google.cloud.aiplat"
- + "form.v1.GroundingChunk.Maps.PlaceAnswerSources\032\313\001\n"
+ + "\024place_answer_sources\030\005 \001(\0132B.google.cloud.a"
+ + "iplatform.v1.GroundingChunk.Maps.PlaceAnswerSources\032\313\001\n"
+ "\022PlaceAnswerSources\022i\n"
- + "\017review_snippets\030\001 \003(\0132P.google.cloud.aiplatform"
- + ".v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet\032J\n\r"
+ + "\017review_snippets\030\001 \003(\0132P.google.cloud.aipla"
+ + "tform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet\032J\n\r"
+ "ReviewSnippet\022\021\n"
+ "\treview_id\030\001 \001(\t\022\027\n"
+ "\017google_maps_uri\030\002 \001(\t\022\r\n"
@@ -515,18 +580,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\010_segment\"\240\005\n"
+ "\021GroundingMetadata\022\037\n"
+ "\022web_search_queries\030\001 \003(\tB\003\340A\001\022R\n"
- + "\022search_entry_point\030\004"
- + " \001(\0132,.google.cloud.aiplatform.v1.SearchEntryPointB\003\340A\001H\000\210\001\001\022D\n"
+ + "\022search_entry_point\030\004 \001(\0132,.google.clou"
+ + "d.aiplatform.v1.SearchEntryPointB\003\340A\001H\000\210\001\001\022D\n"
+ "\020grounding_chunks\030\005"
+ " \003(\0132*.google.cloud.aiplatform.v1.GroundingChunk\022M\n"
+ "\022grounding_supports\030\006"
+ " \003(\0132,.google.cloud.aiplatform.v1.GroundingSupportB\003\340A\001\022V\n"
- + "\022retrieval_metadata\030\007"
- + " \001(\0132-.google.cloud.aiplatform.v1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001\0225\n"
+ + "\022retrieval_metadata\030\007 \001(\0132-.google.cloud.aipla"
+ + "tform.v1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001\0225\n"
+ " google_maps_widget_context_token\030\010 \001("
+ "\tB\006\340A\001\340A\003H\002\210\001\001\022]\n"
- + "\024source_flagging_uris\030\t \003(\0132"
- + "?.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri\032@\n"
+ + "\024source_flagging_uris\030\t"
+ + " \003(\0132?.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri\032@\n"
+ "\021SourceFlaggingUri\022\021\n"
+ "\tsource_id\030\001 \001(\t\022\030\n"
+ "\020flag_content_uri\030\002 \001(\tB\025\n"
@@ -561,12 +626,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005VIDEO\020\003\022\t\n"
+ "\005AUDIO\020\004\022\014\n"
+ "\010DOCUMENT\020\005B\257\002\n"
- + "\036com.google.cloud.aiplatform.v1B\014ContentProtoP\001Z>cloud.googl"
- + "e.com/go/aiplatform/apiv1/aiplatformpb;a"
- + "iplatformpb\252\002\032Google.Cloud.AIPlatform.V1"
- + "\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352Ab\n"
- + "\"modelarmor.googleapis.com/Template\022
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -126,10 +128,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1827,10 +1831,12 @@ public Builder mergeFrom(
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -1852,10 +1858,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1877,10 +1885,12 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The name to set.
@@ -1901,10 +1911,12 @@ public Builder setName(java.lang.String value) {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
@@ -1921,10 +1933,12 @@ public Builder clearName() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for name to set.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java
index 256f5a4f2d5a..b9efeb327ab1 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java
@@ -31,10 +31,12 @@ public interface DatasetOrBuilder
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -46,10 +48,12 @@ public interface DatasetOrBuilder
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java
index 5fe1d8dc6b66..5382d978b4a2 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java
@@ -88,9 +88,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "urce.proto\0320google/cloud/aiplatform/v1/encryption_spec.proto\032#google/cloud/aipla"
+ "tform/v1/io.proto\032,google/cloud/aiplatfo"
+ "rm/v1/saved_query.proto\032\034google/protobuf"
- + "/struct.proto\032\037google/protobuf/timestamp.proto\"\206\006\n"
- + "\007Dataset\022\024\n"
- + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\031\n"
+ + "/struct.proto\032\037google/protobuf/timestamp.proto\"\254\006\n"
+ + "\007Dataset\022:\n"
+ + "\004name\030\001 \001(\tB,\340A\003\340A\010\372A#\n"
+ + "!aiplatform.googleapis.com/Dataset\022\031\n"
+ "\014display_name\030\002 \001(\tB\003\340A\002\022\023\n"
+ "\013description\030\020 \001(\t\022 \n"
+ "\023metadata_schema_uri\030\003 \001(\tB\003\340A\002\022-\n"
@@ -103,8 +104,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004etag\030\006 \001(\t\022?\n"
+ "\006labels\030\007 \003(\0132/.google.cloud.aiplatform.v1.Dataset.LabelsEntry\022=\n\r"
+ "saved_queries\030\t \003(\0132&.google.cloud.aiplatform.v1.SavedQuery\022C\n"
- + "\017encryption_spec\030\013 \001(\0132*.goo"
- + "gle.cloud.aiplatform.v1.EncryptionSpec\022\036\n"
+ + "\017encryption_spec\030\013"
+ + " \001(\0132*.google.cloud.aiplatform.v1.EncryptionSpec\022\036\n"
+ "\021metadata_artifact\030\021 \001(\tB\003\340A\003\022\034\n"
+ "\017model_reference\030\022 \001(\tB\003\340A\001\022\032\n\r"
+ "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\r"
@@ -112,17 +113,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013LabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001:b\352A_\n"
- + "!aiplatform.googleapis.com/Data"
- + "set\022:projects/{project}/locations/{location}/datasets/{dataset}\"\244\003\n"
+ + "!aiplatform.googleapis.com/Datase"
+ + "t\022:projects/{project}/locations/{location}/datasets/{dataset}\"\244\003\n"
+ "\020ImportDataConfig\022;\n\n"
+ "gcs_source\030\001 \001(\0132%.google.cloud.aiplatform.v1.GcsSourceH\000\022Z\n"
+ "\020data_item_labels\030\002"
+ " \003(\0132@.google.cloud.aiplatform.v1.ImportDataConfig.DataItemLabelsEntry\022]\n"
- + "\021annotation_labels\030\003 \003(\0132B.google.cloud."
- + "aiplatform.v1.ImportDataConfig.AnnotationLabelsEntry\022\036\n"
+ + "\021annotation_labels\030\003 \003(\0132B.google.cloud.ai"
+ + "platform.v1.ImportDataConfig.AnnotationLabelsEntry\022\036\n"
+ "\021import_schema_uri\030\004 \001(\tB\003\340A\002\0325\n"
+ "\023DataItemLabelsEntry\022\013\n"
- + "\003key\030\001 \001(\t\022\r\n"
+ + "\003key\030\001 \001(\t\022\r"
+ + "\n"
+ "\005value\030\002 \001(\t:\0028\001\0327\n"
+ "\025AnnotationLabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
@@ -131,15 +133,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\020ExportDataConfig\022E\n"
+ "\017gcs_destination\030\001"
+ " \001(\0132*.google.cloud.aiplatform.v1.GcsDestinationH\000\022I\n"
- + "\016fraction_split\030\005 \001"
- + "(\0132/.google.cloud.aiplatform.v1.ExportFractionSplitH\001\022E\n"
- + "\014filter_split\030\007 \001(\0132-.go"
- + "ogle.cloud.aiplatform.v1.ExportFilterSplitH\001\022\032\n"
+ + "\016fraction_split\030\005 \001(\013"
+ + "2/.google.cloud.aiplatform.v1.ExportFractionSplitH\001\022E\n"
+ + "\014filter_split\030\007 \001(\0132-.goog"
+ + "le.cloud.aiplatform.v1.ExportFilterSplitH\001\022\032\n"
+ "\022annotations_filter\030\002 \001(\t\022\026\n"
+ "\016saved_query_id\030\013 \001(\t\022\035\n"
+ "\025annotation_schema_uri\030\014 \001(\t\022J\n\n"
- + "export_use\030\004 \001(\01626.google.clo"
- + "ud.aiplatform.v1.ExportDataConfig.ExportUse\"A\n"
+ + "export_use\030\004 \001(\01626.google.cloud"
+ + ".aiplatform.v1.ExportDataConfig.ExportUse\"A\n"
+ "\tExportUse\022\032\n"
+ "\026EXPORT_USE_UNSPECIFIED\020\000\022\030\n"
+ "\024CUSTOM_CODE_TRAINING\020\006B\r\n"
@@ -153,11 +155,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017training_filter\030\001 \001(\tB\003\340A\002\022\036\n"
+ "\021validation_filter\030\002 \001(\tB\003\340A\002\022\030\n"
+ "\013test_filter\030\003 \001(\tB\003\340A\002B\312\001\n"
- + "\036com.google.cloud.aiplatform.v1B\014DatasetProtoP\001Z>cl"
- + "oud.google.com/go/aiplatform/apiv1/aipla"
- + "tformpb;aiplatformpb\252\002\032Google.Cloud.AIPl"
- + "atform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002"
- + "\035Google::Cloud::AIPlatform::V1b\006proto3"
+ + "\036com.google.cloud.aiplatform.v1B\014DatasetProtoP\001Z>clou"
+ + "d.google.com/go/aiplatform/apiv1/aiplatf"
+ + "ormpb;aiplatformpb\252\002\032Google.Cloud.AIPlat"
+ + "form.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035G"
+ + "oogle::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -270,6 +272,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java
index e19ad7b812e1..e5b26252a3a7 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java
@@ -85,10 +85,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -111,10 +113,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1117,10 +1121,12 @@ public Builder mergeFrom(
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -1142,10 +1148,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1167,10 +1175,12 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The name to set.
@@ -1191,10 +1201,12 @@ public Builder setName(java.lang.String value) {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
@@ -1211,10 +1223,12 @@ public Builder clearName() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for name to set.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java
index 186ae65ce212..c1d6203b8cde 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java
@@ -31,10 +31,12 @@ public interface DatasetVersionOrBuilder
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -46,10 +48,12 @@ public interface DatasetVersionOrBuilder
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java
index 5bbdea7e182b..e35165f047f5 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java
@@ -53,33 +53,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n"
- + "0google/cloud/aiplatform/v1/dataset_ver"
+ "\n0google/cloud/aiplatform/v1/dataset_ver"
+ "sion.proto\022\032google.cloud.aiplatform.v1\032\037"
+ "google/api/field_behavior.proto\032\031google/"
+ "api/resource.proto\032\034google/protobuf/stru"
- + "ct.proto\032\037google/protobuf/timestamp.proto\"\362\003\n"
- + "\016DatasetVersion\022\024\n"
- + "\004name\030\001 \001(\tB\006\340A\003\340A\010\0224\n"
- + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
- + "\013update_time\030\006"
- + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n"
- + "\004etag\030\003 \001(\t\022#\n"
- + "\026big_query_dataset_name\030\004 \001(\tB\003\340A\003\022\024\n"
- + "\014display_name\030\007 \001(\t\0220\n"
- + "\010metadata\030\010"
- + " \001(\0132\026.google.protobuf.ValueB\006\340A\003\340A\002\022\034\n"
- + "\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\r"
- + "satisfies_pzs\030\n"
- + " \001(\010B\003\340A\003\022\032\n\r"
- + "satisfies_pzi\030\013 \001(\010B\003\340A\003:\214\001\352A\210\001\n"
- + "(aiplatform.googleapis.com/DatasetVersion\022\\projects/{project}/locations/{"
- + "location}/datasets/{dataset}/datasetVersions/{dataset_version}B\321\001\n"
- + "\036com.google.cloud.aiplatform.v1B\023DatasetVersionProtoP\001"
- + "Z>cloud.google.com/go/aiplatform/apiv1/a"
- + "iplatformpb;aiplatformpb\252\002\032Google.Cloud."
- + "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\"
- + "V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
+ + "ct.proto\032\037google/protobuf/timestamp.prot"
+ + "o\"\237\004\n\016DatasetVersion\022A\n\004name\030\001 \001(\tB3\340A\003\340"
+ + "A\010\372A*\n(aiplatform.googleapis.com/Dataset"
+ + "Version\0224\n\013create_time\030\002 \001(\0132\032.google.pr"
+ + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001"
+ + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n\004e"
+ + "tag\030\003 \001(\t\022#\n\026big_query_dataset_name\030\004 \001("
+ + "\tB\003\340A\003\022\024\n\014display_name\030\007 \001(\t\0220\n\010metadata"
+ + "\030\010 \001(\0132\026.google.protobuf.ValueB\006\340A\003\340A\002\022\034"
+ + "\n\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\rsatisfie"
+ + "s_pzs\030\n \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\013 \001(\010B"
+ + "\003\340A\003:\214\001\352A\210\001\n(aiplatform.googleapis.com/D"
+ + "atasetVersion\022\\projects/{project}/locati"
+ + "ons/{location}/datasets/{dataset}/datase"
+ + "tVersions/{dataset_version}B\321\001\n\036com.goog"
+ + "le.cloud.aiplatform.v1B\023DatasetVersionPr"
+ + "otoP\001Z>cloud.google.com/go/aiplatform/ap"
+ + "iv1/aiplatformpb;aiplatformpb\252\002\032Google.C"
+ + "loud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlat"
+ + "form\\V1\352\002\035Google::Cloud::AIPlatform::V1b"
+ + "\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -116,6 +114,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java
index 6137ecaef128..00973564bf13 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java
@@ -54,6 +54,8 @@ private GenerationConfig(com.google.protobuf.GeneratedMessage.Builder> builder
private GenerationConfig() {
stopSequences_ = com.google.protobuf.LazyStringArrayList.emptyList();
responseMimeType_ = "";
+ responseModalities_ = emptyIntList();
+ mediaResolution_ = 0;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -71,6 +73,392 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.GenerationConfig.Builder.class);
}
+ /**
+ *
+ *
+ *
+ * The modalities of the response.
+ *
+ *
+ * Protobuf enum {@code google.cloud.aiplatform.v1.GenerationConfig.Modality}
+ */
+ public enum Modality implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Unspecified modality. Will be processed as text.
+ *
+ *
+ * MODALITY_UNSPECIFIED = 0;
+ */
+ MODALITY_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Text modality.
+ *
+ *
+ * TEXT = 1;
+ */
+ TEXT(1),
+ /**
+ *
+ *
+ *
+ * Image modality.
+ *
+ *
+ * IMAGE = 2;
+ */
+ IMAGE(2),
+ /**
+ *
+ *
+ *
+ * Audio modality.
+ *
+ *
+ * AUDIO = 3;
+ */
+ AUDIO(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "Modality");
+ }
+
+ /**
+ *
+ *
+ *
+ * Unspecified modality. Will be processed as text.
+ *
+ *
+ * MODALITY_UNSPECIFIED = 0;
+ */
+ public static final int MODALITY_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Text modality.
+ *
+ *
+ * TEXT = 1;
+ */
+ public static final int TEXT_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * Image modality.
+ *
+ *
+ * IMAGE = 2;
+ */
+ public static final int IMAGE_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * Audio modality.
+ *
+ *
+ * AUDIO = 3;
+ */
+ public static final int AUDIO_VALUE = 3;
+
+ 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 Modality 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 Modality forNumber(int value) {
+ switch (value) {
+ case 0:
+ return MODALITY_UNSPECIFIED;
+ case 1:
+ return TEXT;
+ case 2:
+ return IMAGE;
+ case 3:
+ return AUDIO;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Media resolution for the input media.
+ *
+ *
+ * Protobuf enum {@code google.cloud.aiplatform.v1.GenerationConfig.MediaResolution}
+ */
+ public enum MediaResolution implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Media resolution has not been set.
+ *
+ *
+ * MEDIA_RESOLUTION_UNSPECIFIED = 0;
+ */
+ MEDIA_RESOLUTION_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Media resolution set to low (64 tokens).
+ *
+ *
+ * MEDIA_RESOLUTION_LOW = 1;
+ */
+ MEDIA_RESOLUTION_LOW(1),
+ /**
+ *
+ *
+ *
+ * Media resolution set to medium (256 tokens).
+ *
+ *
+ * MEDIA_RESOLUTION_MEDIUM = 2;
+ */
+ MEDIA_RESOLUTION_MEDIUM(2),
+ /**
+ *
+ *
+ *
+ * Media resolution set to high (zoomed reframing with 256 tokens).
+ *
+ *
+ * MEDIA_RESOLUTION_HIGH = 3;
+ */
+ MEDIA_RESOLUTION_HIGH(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "MediaResolution");
+ }
+
+ /**
+ *
+ *
+ *
+ * Media resolution has not been set.
+ *
+ *
+ * MEDIA_RESOLUTION_UNSPECIFIED = 0;
+ */
+ public static final int MEDIA_RESOLUTION_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Media resolution set to low (64 tokens).
+ *
+ *
+ * MEDIA_RESOLUTION_LOW = 1;
+ */
+ public static final int MEDIA_RESOLUTION_LOW_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * Media resolution set to medium (256 tokens).
+ *
+ *
+ * MEDIA_RESOLUTION_MEDIUM = 2;
+ */
+ public static final int MEDIA_RESOLUTION_MEDIUM_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * Media resolution set to high (zoomed reframing with 256 tokens).
+ *
+ *
+ * MEDIA_RESOLUTION_HIGH = 3;
+ */
+ public static final int MEDIA_RESOLUTION_HIGH_VALUE = 3;
+
+ 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 MediaResolution 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 MediaResolution forNumber(int value) {
+ switch (value) {
+ case 0:
+ return MEDIA_RESOLUTION_UNSPECIFIED;
+ case 1:
+ return MEDIA_RESOLUTION_LOW;
+ case 2:
+ return MEDIA_RESOLUTION_MEDIUM;
+ case 3:
+ return MEDIA_RESOLUTION_HIGH;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
- * Config for thinking features.
- *
- *
- * Protobuf type {@code google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig}
- */
- public static final class ThinkingConfig extends com.google.protobuf.GeneratedMessage
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig)
- ThinkingConfigOrBuilder {
- private static final long serialVersionUID = 0L;
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the thinkingLevel field is set.
+ */
+ boolean hasThinkingLevel();
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for thinkingLevel.
+ */
+ int getThinkingLevelValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The thinkingLevel.
+ */
+ com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel getThinkingLevel();
+ }
+
+ /**
+ *
+ *
+ *
+ * Config for thinking features.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig}
+ */
+ public static final class ThinkingConfig extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig)
+ ThinkingConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 33,
@@ -3095,7 +3528,9 @@ private ThinkingConfig(com.google.protobuf.GeneratedMessage.Builder> builder)
super(builder);
}
- private ThinkingConfig() {}
+ private ThinkingConfig() {
+ thinkingLevel_ = 0;
+ }
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.aiplatform.v1.ContentProto
@@ -3112,6 +3547,226 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.Builder.class);
}
+ /**
+ *
+ *
+ *
+ * The thinking level for the model.
+ *
+ *
+ * Protobuf enum {@code
+ * google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel}
+ */
+ public enum ThinkingLevel implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Unspecified thinking level.
+ *
+ *
+ * THINKING_LEVEL_UNSPECIFIED = 0;
+ */
+ THINKING_LEVEL_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Low thinking level.
+ *
+ *
+ * LOW = 1;
+ */
+ LOW(1),
+ /**
+ *
+ *
+ *
+ * Medium thinking level.
+ *
+ *
+ * MEDIUM = 2;
+ */
+ MEDIUM(2),
+ /**
+ *
+ *
+ *
+ * High thinking level.
+ *
+ *
+ * HIGH = 3;
+ */
+ HIGH(3),
+ /**
+ *
+ *
+ *
+ * MINIMAL thinking level.
+ *
+ *
+ * MINIMAL = 4;
+ */
+ MINIMAL(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "ThinkingLevel");
+ }
+
+ /**
+ *
+ *
+ *
+ * Unspecified thinking level.
+ *
+ *
+ * THINKING_LEVEL_UNSPECIFIED = 0;
+ */
+ public static final int THINKING_LEVEL_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Low thinking level.
+ *
+ *
+ * LOW = 1;
+ */
+ public static final int LOW_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * Medium thinking level.
+ *
+ *
+ * MEDIUM = 2;
+ */
+ public static final int MEDIUM_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * High thinking level.
+ *
+ *
+ * HIGH = 3;
+ */
+ public static final int HIGH_VALUE = 3;
+
+ /**
+ *
+ *
+ *
+ * MINIMAL thinking level.
+ *
+ *
+ * MINIMAL = 4;
+ */
+ public static final int MINIMAL_VALUE = 4;
+
+ 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 ThinkingLevel 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 ThinkingLevel forNumber(int value) {
+ switch (value) {
+ case 0:
+ return THINKING_LEVEL_UNSPECIFIED;
+ case 1:
+ return LOW;
+ case 2:
+ return MEDIUM;
+ case 3:
+ return HIGH;
+ case 4:
+ return MINIMAL;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the thinkingLevel field is set.
+ */
+ @java.lang.Override
+ public boolean hasThinkingLevel() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for thinkingLevel.
+ */
+ @java.lang.Override
+ public int getThinkingLevelValue() {
+ return thinkingLevel_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The thinkingLevel.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel
+ getThinkingLevel() {
+ com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel result =
+ com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel.forNumber(
+ thinkingLevel_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel
+ .UNRECOGNIZED
+ : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -3207,6 +3926,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(3, thinkingBudget_);
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeEnum(4, thinkingLevel_);
+ }
getUnknownFields().writeTo(output);
}
@@ -3222,6 +3944,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, thinkingBudget_);
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, thinkingLevel_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -3246,6 +3971,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasThinkingBudget()) {
if (getThinkingBudget() != other.getThinkingBudget()) return false;
}
+ if (hasThinkingLevel() != other.hasThinkingLevel()) return false;
+ if (hasThinkingLevel()) {
+ if (thinkingLevel_ != other.thinkingLevel_) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -3265,6 +3994,10 @@ public int hashCode() {
hash = (37 * hash) + THINKING_BUDGET_FIELD_NUMBER;
hash = (53 * hash) + getThinkingBudget();
}
+ if (hasThinkingLevel()) {
+ hash = (37 * hash) + THINKING_LEVEL_FIELD_NUMBER;
+ hash = (53 * hash) + thinkingLevel_;
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -3408,6 +4141,7 @@ public Builder clear() {
bitField0_ = 0;
includeThoughts_ = false;
thinkingBudget_ = 0;
+ thinkingLevel_ = 0;
return this;
}
@@ -3455,6 +4189,10 @@ private void buildPartial0(
result.thinkingBudget_ = thinkingBudget_;
to_bitField0_ |= 0x00000002;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.thinkingLevel_ = thinkingLevel_;
+ to_bitField0_ |= 0x00000004;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -3479,6 +4217,9 @@ public Builder mergeFrom(
if (other.hasThinkingBudget()) {
setThinkingBudget(other.getThinkingBudget());
}
+ if (other.hasThinkingLevel()) {
+ setThinkingLevelValue(other.getThinkingLevelValue());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -3517,6 +4258,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 24
+ case 32:
+ {
+ thinkingLevel_ = input.readEnum();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 32
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3688,25 +4435,154 @@ public Builder clearThinkingBudget() {
return this;
}
- // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig)
- private static final com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig();
- }
+ private int thinkingLevel_ = 0;
- public static com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the thinkingLevel field is set.
+ */
+ @java.lang.Override
+ public boolean hasThinkingLevel() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
- private static final com.google.protobuf.Parser
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for thinkingLevel.
+ */
+ @java.lang.Override
+ public int getThinkingLevelValue() {
+ return thinkingLevel_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for thinkingLevel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setThinkingLevelValue(int value) {
+ thinkingLevel_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The thinkingLevel.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel
+ getThinkingLevel() {
+ com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel result =
+ com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel.forNumber(
+ thinkingLevel_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel
+ .UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The thinkingLevel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setThinkingLevel(
+ com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ thinkingLevel_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearThinkingLevel() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ thinkingLevel_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig)
+ private static final com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig();
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the audioTimestamp field is set.
+ */
+ @java.lang.Override
+ public boolean hasAudioTimestamp() {
+ return ((bitField0_ & 0x00002000) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The audioTimestamp.
+ */
+ @java.lang.Override
+ public boolean getAudioTimestamp() {
+ return audioTimestamp_;
+ }
+
+ public static final int RESPONSE_MODALITIES_FIELD_NUMBER = 21;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.Internal.IntList responseModalities_ = emptyIntList();
+
+ private static final com.google.protobuf.Internal.IntListAdapter.IntConverter<
+ com.google.cloud.aiplatform.v1.GenerationConfig.Modality>
+ responseModalities_converter_ =
+ new com.google.protobuf.Internal.IntListAdapter.IntConverter<
+ com.google.cloud.aiplatform.v1.GenerationConfig.Modality>() {
+ public com.google.cloud.aiplatform.v1.GenerationConfig.Modality convert(int from) {
+ com.google.cloud.aiplatform.v1.GenerationConfig.Modality result =
+ com.google.cloud.aiplatform.v1.GenerationConfig.Modality.forNumber(from);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.GenerationConfig.Modality.UNRECOGNIZED
+ : result;
+ }
+ };
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the responseModalities.
+ */
+ @java.lang.Override
+ public java.util.List
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of responseModalities.
+ */
+ @java.lang.Override
+ public int getResponseModalitiesCount() {
+ return responseModalities_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The responseModalities at the given index.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenerationConfig.Modality getResponseModalities(int index) {
+ return responseModalities_converter_.convert(responseModalities_.getInt(index));
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the enum numeric values on the wire for responseModalities.
+ */
+ @java.lang.Override
+ public java.util.List
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The enum numeric value on the wire of responseModalities at the given index.
+ */
+ @java.lang.Override
+ public int getResponseModalitiesValue(int index) {
+ return responseModalities_.getInt(index);
+ }
+
+ private int responseModalitiesMemoizedSerializedSize;
+
+ public static final int MEDIA_RESOLUTION_FIELD_NUMBER = 22;
+ private int mediaResolution_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the mediaResolution field is set.
+ */
+ @java.lang.Override
+ public boolean hasMediaResolution() {
+ return ((bitField0_ & 0x00004000) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for mediaResolution.
+ */
+ @java.lang.Override
+ public int getMediaResolutionValue() {
+ return mediaResolution_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The mediaResolution.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution getMediaResolution() {
+ com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution result =
+ com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.forNumber(mediaResolution_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.UNRECOGNIZED
+ : result;
+ }
+
public static final int SPEECH_CONFIG_FIELD_NUMBER = 23;
private com.google.cloud.aiplatform.v1.SpeechConfig speechConfig_;
@@ -4546,7 +5668,7 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingC
*/
@java.lang.Override
public boolean hasSpeechConfig() {
- return ((bitField0_ & 0x00002000) != 0);
+ return ((bitField0_ & 0x00008000) != 0);
}
/**
@@ -4607,7 +5729,7 @@ public com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder getSpeechConfigOrBui
*/
@java.lang.Override
public boolean hasThinkingConfig() {
- return ((bitField0_ & 0x00004000) != 0);
+ return ((bitField0_ & 0x00010000) != 0);
}
/**
@@ -4671,7 +5793,7 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig getThinkin
*/
@java.lang.Override
public boolean hasImageConfig() {
- return ((bitField0_ & 0x00008000) != 0);
+ return ((bitField0_ & 0x00020000) != 0);
}
/**
@@ -4726,6 +5848,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ getSerializedSize();
if (((bitField0_ & 0x00000001) != 0)) {
output.writeFloat(1, temperature_);
}
@@ -4769,15 +5892,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeBool(18, responseLogprobs_);
}
if (((bitField0_ & 0x00002000) != 0)) {
- output.writeMessage(23, getSpeechConfig());
+ output.writeBool(20, audioTimestamp_);
+ }
+ if (getResponseModalitiesList().size() > 0) {
+ output.writeUInt32NoTag(170);
+ output.writeUInt32NoTag(responseModalitiesMemoizedSerializedSize);
+ }
+ for (int i = 0; i < responseModalities_.size(); i++) {
+ output.writeEnumNoTag(responseModalities_.getInt(i));
}
if (((bitField0_ & 0x00004000) != 0)) {
+ output.writeEnum(22, mediaResolution_);
+ }
+ if (((bitField0_ & 0x00008000) != 0)) {
+ output.writeMessage(23, getSpeechConfig());
+ }
+ if (((bitField0_ & 0x00010000) != 0)) {
output.writeMessage(25, getThinkingConfig());
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(28, getResponseJsonSchema());
}
- if (((bitField0_ & 0x00008000) != 0)) {
+ if (((bitField0_ & 0x00020000) != 0)) {
output.writeMessage(30, getImageConfig());
}
getUnknownFields().writeTo(output);
@@ -4837,15 +5973,35 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, responseLogprobs_);
}
if (((bitField0_ & 0x00002000) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getSpeechConfig());
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, audioTimestamp_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < responseModalities_.size(); i++) {
+ dataSize +=
+ com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(
+ responseModalities_.getInt(i));
+ }
+ size += dataSize;
+ if (!getResponseModalitiesList().isEmpty()) {
+ size += 2;
+ size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
+ }
+ responseModalitiesMemoizedSerializedSize = dataSize;
}
if (((bitField0_ & 0x00004000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, mediaResolution_);
+ }
+ if (((bitField0_ & 0x00008000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getSpeechConfig());
+ }
+ if (((bitField0_ & 0x00010000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getThinkingConfig());
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getResponseJsonSchema());
}
- if (((bitField0_ & 0x00008000) != 0)) {
+ if (((bitField0_ & 0x00020000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getImageConfig());
}
size += getUnknownFields().getSerializedSize();
@@ -4923,6 +6079,15 @@ public boolean equals(final java.lang.Object obj) {
if (hasRoutingConfig()) {
if (!getRoutingConfig().equals(other.getRoutingConfig())) return false;
}
+ if (hasAudioTimestamp() != other.hasAudioTimestamp()) return false;
+ if (hasAudioTimestamp()) {
+ if (getAudioTimestamp() != other.getAudioTimestamp()) return false;
+ }
+ if (!responseModalities_.equals(other.responseModalities_)) return false;
+ if (hasMediaResolution() != other.hasMediaResolution()) return false;
+ if (hasMediaResolution()) {
+ if (mediaResolution_ != other.mediaResolution_) return false;
+ }
if (hasSpeechConfig() != other.hasSpeechConfig()) return false;
if (hasSpeechConfig()) {
if (!getSpeechConfig().equals(other.getSpeechConfig())) return false;
@@ -5004,6 +6169,18 @@ public int hashCode() {
hash = (37 * hash) + ROUTING_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getRoutingConfig().hashCode();
}
+ if (hasAudioTimestamp()) {
+ hash = (37 * hash) + AUDIO_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAudioTimestamp());
+ }
+ if (getResponseModalitiesCount() > 0) {
+ hash = (37 * hash) + RESPONSE_MODALITIES_FIELD_NUMBER;
+ hash = (53 * hash) + responseModalities_.hashCode();
+ }
+ if (hasMediaResolution()) {
+ hash = (37 * hash) + MEDIA_RESOLUTION_FIELD_NUMBER;
+ hash = (53 * hash) + mediaResolution_;
+ }
if (hasSpeechConfig()) {
hash = (37 * hash) + SPEECH_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getSpeechConfig().hashCode();
@@ -5197,6 +6374,9 @@ public Builder clear() {
routingConfigBuilder_.dispose();
routingConfigBuilder_ = null;
}
+ audioTimestamp_ = false;
+ responseModalities_ = emptyIntList();
+ mediaResolution_ = 0;
speechConfig_ = null;
if (speechConfigBuilder_ != null) {
speechConfigBuilder_.dispose();
@@ -5314,19 +6494,31 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.GenerationConfig resul
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
- result.speechConfig_ =
- speechConfigBuilder_ == null ? speechConfig_ : speechConfigBuilder_.build();
+ result.audioTimestamp_ = audioTimestamp_;
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
+ responseModalities_.makeImmutable();
+ result.responseModalities_ = responseModalities_;
+ }
+ if (((from_bitField0_ & 0x00020000) != 0)) {
+ result.mediaResolution_ = mediaResolution_;
+ to_bitField0_ |= 0x00004000;
+ }
+ if (((from_bitField0_ & 0x00040000) != 0)) {
+ result.speechConfig_ =
+ speechConfigBuilder_ == null ? speechConfig_ : speechConfigBuilder_.build();
+ to_bitField0_ |= 0x00008000;
+ }
+ if (((from_bitField0_ & 0x00080000) != 0)) {
result.thinkingConfig_ =
thinkingConfigBuilder_ == null ? thinkingConfig_ : thinkingConfigBuilder_.build();
- to_bitField0_ |= 0x00004000;
+ to_bitField0_ |= 0x00010000;
}
- if (((from_bitField0_ & 0x00020000) != 0)) {
+ if (((from_bitField0_ & 0x00100000) != 0)) {
result.imageConfig_ =
imageConfigBuilder_ == null ? imageConfig_ : imageConfigBuilder_.build();
- to_bitField0_ |= 0x00008000;
+ to_bitField0_ |= 0x00020000;
}
result.bitField0_ |= to_bitField0_;
}
@@ -5398,6 +6590,23 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GenerationConfig other)
if (other.hasRoutingConfig()) {
mergeRoutingConfig(other.getRoutingConfig());
}
+ if (other.hasAudioTimestamp()) {
+ setAudioTimestamp(other.getAudioTimestamp());
+ }
+ if (!other.responseModalities_.isEmpty()) {
+ if (responseModalities_.isEmpty()) {
+ responseModalities_ = other.responseModalities_;
+ responseModalities_.makeImmutable();
+ bitField0_ |= 0x00010000;
+ } else {
+ ensureResponseModalitiesIsMutable();
+ responseModalities_.addAll(other.responseModalities_);
+ }
+ onChanged();
+ }
+ if (other.hasMediaResolution()) {
+ setMediaResolutionValue(other.getMediaResolutionValue());
+ }
if (other.hasSpeechConfig()) {
mergeSpeechConfig(other.getSpeechConfig());
}
@@ -5520,18 +6729,48 @@ public Builder mergeFrom(
bitField0_ |= 0x00000040;
break;
} // case 144
+ case 160:
+ {
+ audioTimestamp_ = input.readBool();
+ bitField0_ |= 0x00008000;
+ break;
+ } // case 160
+ case 168:
+ {
+ int tmpRaw = input.readEnum();
+ ensureResponseModalitiesIsMutable();
+ responseModalities_.addInt(tmpRaw);
+ break;
+ } // case 168
+ case 170:
+ {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ ensureResponseModalitiesIsMutable();
+ while (input.getBytesUntilLimit() > 0) {
+ responseModalities_.addInt(input.readEnum());
+ }
+ input.popLimit(limit);
+ break;
+ } // case 170
+ case 176:
+ {
+ mediaResolution_ = input.readEnum();
+ bitField0_ |= 0x00020000;
+ break;
+ } // case 176
case 186:
{
input.readMessage(
internalGetSpeechConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00040000;
break;
} // case 186
case 202:
{
input.readMessage(
internalGetThinkingConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00080000;
break;
} // case 202
case 226:
@@ -5545,7 +6784,7 @@ public Builder mergeFrom(
{
input.readMessage(
internalGetImageConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00100000;
break;
} // case 242
default:
@@ -7320,160 +8559,659 @@ public com.google.protobuf.Value.Builder getResponseJsonSchemaBuilder() {
* - `additionalProperties`
* - `required`
*
- * The non-standard `propertyOrdering` property may also be set.
+ * The non-standard `propertyOrdering` property may also be set.
+ *
+ * Cyclic references are unrolled to a limited degree and, as such, may only
+ * be used within non-required properties. (Nullable properties are not
+ * sufficient.) If `$ref` is set on a sub-schema, no other properties, except
+ * for than those starting as a `$`, may be set.
+ *
+ *
+ *
+ * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.ValueOrBuilder getResponseJsonSchemaOrBuilder() {
+ if (responseJsonSchemaBuilder_ != null) {
+ return responseJsonSchemaBuilder_.getMessageOrBuilder();
+ } else {
+ return responseJsonSchema_ == null
+ ? com.google.protobuf.Value.getDefaultInstance()
+ : responseJsonSchema_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Output schema of the generated response. This is an alternative
+ * to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
+ *
+ * If set, `response_schema` must be omitted, but `response_mime_type` is
+ * required.
+ *
+ * While the full JSON Schema may be sent, not all features are supported.
+ * Specifically, only the following properties are supported:
+ *
+ * - `$id`
+ * - `$defs`
+ * - `$ref`
+ * - `$anchor`
+ * - `type`
+ * - `format`
+ * - `title`
+ * - `description`
+ * - `enum` (for strings and numbers)
+ * - `items`
+ * - `prefixItems`
+ * - `minItems`
+ * - `maxItems`
+ * - `minimum`
+ * - `maximum`
+ * - `anyOf`
+ * - `oneOf` (interpreted the same as `anyOf`)
+ * - `properties`
+ * - `additionalProperties`
+ * - `required`
+ *
+ * The non-standard `propertyOrdering` property may also be set.
+ *
+ * Cyclic references are unrolled to a limited degree and, as such, may only
+ * be used within non-required properties. (Nullable properties are not
+ * sufficient.) If `$ref` is set on a sub-schema, no other properties, except
+ * for than those starting as a `$`, may be set.
+ *
+ *
+ *
+ * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Value,
+ com.google.protobuf.Value.Builder,
+ com.google.protobuf.ValueOrBuilder>
+ internalGetResponseJsonSchemaFieldBuilder() {
+ if (responseJsonSchemaBuilder_ == null) {
+ responseJsonSchemaBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Value,
+ com.google.protobuf.Value.Builder,
+ com.google.protobuf.ValueOrBuilder>(
+ getResponseJsonSchema(), getParentForChildren(), isClean());
+ responseJsonSchema_ = null;
+ }
+ return responseJsonSchemaBuilder_;
+ }
+
+ private com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routingConfig_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig,
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder,
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder>
+ routingConfigBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the routingConfig field is set.
+ */
+ public boolean hasRoutingConfig() {
+ return ((bitField0_ & 0x00004000) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The routingConfig.
+ */
+ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingConfig() {
+ if (routingConfigBuilder_ == null) {
+ return routingConfig_ == null
+ ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance()
+ : routingConfig_;
+ } else {
+ return routingConfigBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRoutingConfig(
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) {
+ if (routingConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ routingConfig_ = value;
+ } else {
+ routingConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00004000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRoutingConfig(
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder builderForValue) {
+ if (routingConfigBuilder_ == null) {
+ routingConfig_ = builderForValue.build();
+ } else {
+ routingConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00004000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeRoutingConfig(
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) {
+ if (routingConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00004000) != 0)
+ && routingConfig_ != null
+ && routingConfig_
+ != com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig
+ .getDefaultInstance()) {
+ getRoutingConfigBuilder().mergeFrom(value);
+ } else {
+ routingConfig_ = value;
+ }
+ } else {
+ routingConfigBuilder_.mergeFrom(value);
+ }
+ if (routingConfig_ != null) {
+ bitField0_ |= 0x00004000;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearRoutingConfig() {
+ bitField0_ = (bitField0_ & ~0x00004000);
+ routingConfig_ = null;
+ if (routingConfigBuilder_ != null) {
+ routingConfigBuilder_.dispose();
+ routingConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder
+ getRoutingConfigBuilder() {
+ bitField0_ |= 0x00004000;
+ onChanged();
+ return internalGetRoutingConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder
+ getRoutingConfigOrBuilder() {
+ if (routingConfigBuilder_ != null) {
+ return routingConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return routingConfig_ == null
+ ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance()
+ : routingConfig_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig,
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder,
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder>
+ internalGetRoutingConfigFieldBuilder() {
+ if (routingConfigBuilder_ == null) {
+ routingConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig,
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder,
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder>(
+ getRoutingConfig(), getParentForChildren(), isClean());
+ routingConfig_ = null;
+ }
+ return routingConfigBuilder_;
+ }
+
+ private boolean audioTimestamp_;
+
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the audioTimestamp field is set.
+ */
+ @java.lang.Override
+ public boolean hasAudioTimestamp() {
+ return ((bitField0_ & 0x00008000) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The audioTimestamp.
+ */
+ @java.lang.Override
+ public boolean getAudioTimestamp() {
+ return audioTimestamp_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The audioTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAudioTimestamp(boolean value) {
+
+ audioTimestamp_ = value;
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAudioTimestamp() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ audioTimestamp_ = false;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Internal.IntList responseModalities_ = emptyIntList();
+
+ private void ensureResponseModalitiesIsMutable() {
+ if (!responseModalities_.isModifiable()) {
+ responseModalities_ = makeMutableCopy(responseModalities_);
+ }
+ bitField0_ |= 0x00010000;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the responseModalities.
+ */
+ public java.util.List
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of responseModalities.
+ */
+ public int getResponseModalitiesCount() {
+ return responseModalities_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The responseModalities at the given index.
+ */
+ public com.google.cloud.aiplatform.v1.GenerationConfig.Modality getResponseModalities(
+ int index) {
+ return responseModalities_converter_.convert(responseModalities_.getInt(index));
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The responseModalities to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResponseModalities(
+ int index, com.google.cloud.aiplatform.v1.GenerationConfig.Modality value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureResponseModalitiesIsMutable();
+ responseModalities_.setInt(index, value.getNumber());
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The responseModalities to add.
+ * @return This builder for chaining.
+ */
+ public Builder addResponseModalities(
+ com.google.cloud.aiplatform.v1.GenerationConfig.Modality value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureResponseModalitiesIsMutable();
+ responseModalities_.addInt(value.getNumber());
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
*
- * Cyclic references are unrolled to a limited degree and, as such, may only
- * be used within non-required properties. (Nullable properties are not
- * sufficient.) If `$ref` is set on a sub-schema, no other properties, except
- * for than those starting as a `$`, may be set.
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
*
*
*
- * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @param values The responseModalities to add.
+ * @return This builder for chaining.
*/
- public com.google.protobuf.ValueOrBuilder getResponseJsonSchemaOrBuilder() {
- if (responseJsonSchemaBuilder_ != null) {
- return responseJsonSchemaBuilder_.getMessageOrBuilder();
- } else {
- return responseJsonSchema_ == null
- ? com.google.protobuf.Value.getDefaultInstance()
- : responseJsonSchema_;
+ public Builder addAllResponseModalities(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1.GenerationConfig.Modality>
+ values) {
+ ensureResponseModalitiesIsMutable();
+ for (com.google.cloud.aiplatform.v1.GenerationConfig.Modality value : values) {
+ responseModalities_.addInt(value.getNumber());
}
+ onChanged();
+ return this;
}
/**
*
*
*
- * Optional. Output schema of the generated response. This is an alternative
- * to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
- *
- * If set, `response_schema` must be omitted, but `response_mime_type` is
- * required.
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
*
- * While the full JSON Schema may be sent, not all features are supported.
- * Specifically, only the following properties are supported:
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
*
- * - `$id`
- * - `$defs`
- * - `$ref`
- * - `$anchor`
- * - `type`
- * - `format`
- * - `title`
- * - `description`
- * - `enum` (for strings and numbers)
- * - `items`
- * - `prefixItems`
- * - `minItems`
- * - `maxItems`
- * - `minimum`
- * - `maximum`
- * - `anyOf`
- * - `oneOf` (interpreted the same as `anyOf`)
- * - `properties`
- * - `additionalProperties`
- * - `required`
+ * @return This builder for chaining.
+ */
+ public Builder clearResponseModalities() {
+ responseModalities_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00010000);
+ onChanged();
+ return this;
+ }
+
+ /**
*
- * The non-standard `propertyOrdering` property may also be set.
*
- * Cyclic references are unrolled to a limited degree and, as such, may only
- * be used within non-required properties. (Nullable properties are not
- * sufficient.) If `$ref` is set on a sub-schema, no other properties, except
- * for than those starting as a `$`, may be set.
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
*
*
*
- * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @return A list containing the enum numeric values on the wire for responseModalities.
*/
- private com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Value,
- com.google.protobuf.Value.Builder,
- com.google.protobuf.ValueOrBuilder>
- internalGetResponseJsonSchemaFieldBuilder() {
- if (responseJsonSchemaBuilder_ == null) {
- responseJsonSchemaBuilder_ =
- new com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Value,
- com.google.protobuf.Value.Builder,
- com.google.protobuf.ValueOrBuilder>(
- getResponseJsonSchema(), getParentForChildren(), isClean());
- responseJsonSchema_ = null;
- }
- return responseJsonSchemaBuilder_;
+ public java.util.List
- * Optional. Routing configuration.
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
*
*
- * @return Whether the routingConfig field is set.
+ * @param index The index of the value to return.
+ * @return The enum numeric value on the wire of responseModalities at the given index.
*/
- public boolean hasRoutingConfig() {
- return ((bitField0_ & 0x00004000) != 0);
+ public int getResponseModalitiesValue(int index) {
+ return responseModalities_.getInt(index);
}
/**
*
*
*
- * Optional. Routing configuration.
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
*
*
- * @return The routingConfig.
+ * @param index The index to set the value at.
+ * @param value The enum numeric value on the wire for responseModalities to set.
+ * @return This builder for chaining.
*/
- public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingConfig() {
- if (routingConfigBuilder_ == null) {
- return routingConfig_ == null
- ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance()
- : routingConfig_;
- } else {
- return routingConfigBuilder_.getMessage();
- }
+ public Builder setResponseModalitiesValue(int index, int value) {
+ ensureResponseModalitiesIsMutable();
+ responseModalities_.setInt(index, value);
+ onChanged();
+ return this;
}
/**
*
*
*
- * Optional. Routing configuration.
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @param value The enum numeric value on the wire for responseModalities to add.
+ * @return This builder for chaining.
*/
- public Builder setRoutingConfig(
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) {
- if (routingConfigBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- routingConfig_ = value;
- } else {
- routingConfigBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00004000;
+ public Builder addResponseModalitiesValue(int value) {
+ ensureResponseModalitiesIsMutable();
+ responseModalities_.addInt(value);
onChanged();
return this;
}
@@ -7482,76 +9220,98 @@ public Builder setRoutingConfig(
*
*
*
- * Optional. Routing configuration.
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @param values The enum numeric values on the wire for responseModalities to add.
+ * @return This builder for chaining.
*/
- public Builder setRoutingConfig(
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder builderForValue) {
- if (routingConfigBuilder_ == null) {
- routingConfig_ = builderForValue.build();
- } else {
- routingConfigBuilder_.setMessage(builderForValue.build());
+ public Builder addAllResponseModalitiesValue(java.lang.Iterable
- * Optional. Routing configuration.
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @return Whether the mediaResolution field is set.
*/
- public Builder mergeRoutingConfig(
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) {
- if (routingConfigBuilder_ == null) {
- if (((bitField0_ & 0x00004000) != 0)
- && routingConfig_ != null
- && routingConfig_
- != com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig
- .getDefaultInstance()) {
- getRoutingConfigBuilder().mergeFrom(value);
- } else {
- routingConfig_ = value;
- }
- } else {
- routingConfigBuilder_.mergeFrom(value);
- }
- if (routingConfig_ != null) {
- bitField0_ |= 0x00004000;
- onChanged();
- }
- return this;
+ @java.lang.Override
+ public boolean hasMediaResolution() {
+ return ((bitField0_ & 0x00020000) != 0);
}
/**
*
*
*
- * Optional. Routing configuration.
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @return The enum numeric value on the wire for mediaResolution.
*/
- public Builder clearRoutingConfig() {
- bitField0_ = (bitField0_ & ~0x00004000);
- routingConfig_ = null;
- if (routingConfigBuilder_ != null) {
- routingConfigBuilder_.dispose();
- routingConfigBuilder_ = null;
- }
+ @java.lang.Override
+ public int getMediaResolutionValue() {
+ return mediaResolution_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for mediaResolution to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMediaResolutionValue(int value) {
+ mediaResolution_ = value;
+ bitField0_ |= 0x00020000;
onChanged();
return this;
}
@@ -7560,68 +9320,83 @@ public Builder clearRoutingConfig() {
*
*
*
- * Optional. Routing configuration.
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @return The mediaResolution.
*/
- public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder
- getRoutingConfigBuilder() {
- bitField0_ |= 0x00004000;
- onChanged();
- return internalGetRoutingConfigFieldBuilder().getBuilder();
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution getMediaResolution() {
+ com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution result =
+ com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.forNumber(
+ mediaResolution_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.UNRECOGNIZED
+ : result;
}
/**
*
*
*
- * Optional. Routing configuration.
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @param value The mediaResolution to set.
+ * @return This builder for chaining.
*/
- public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder
- getRoutingConfigOrBuilder() {
- if (routingConfigBuilder_ != null) {
- return routingConfigBuilder_.getMessageOrBuilder();
- } else {
- return routingConfig_ == null
- ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance()
- : routingConfig_;
+ public Builder setMediaResolution(
+ com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ bitField0_ |= 0x00020000;
+ mediaResolution_ = value.getNumber();
+ onChanged();
+ return this;
}
/**
*
*
*
- * Optional. Routing configuration.
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @return This builder for chaining.
*/
- private com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig,
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder,
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder>
- internalGetRoutingConfigFieldBuilder() {
- if (routingConfigBuilder_ == null) {
- routingConfigBuilder_ =
- new com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig,
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder,
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder>(
- getRoutingConfig(), getParentForChildren(), isClean());
- routingConfig_ = null;
- }
- return routingConfigBuilder_;
+ public Builder clearMediaResolution() {
+ bitField0_ = (bitField0_ & ~0x00020000);
+ mediaResolution_ = 0;
+ onChanged();
+ return this;
}
private com.google.cloud.aiplatform.v1.SpeechConfig speechConfig_;
@@ -7645,7 +9420,7 @@ public Builder clearRoutingConfig() {
* @return Whether the speechConfig field is set.
*/
public boolean hasSpeechConfig() {
- return ((bitField0_ & 0x00008000) != 0);
+ return ((bitField0_ & 0x00040000) != 0);
}
/**
@@ -7691,7 +9466,7 @@ public Builder setSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig value
} else {
speechConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00040000;
onChanged();
return this;
}
@@ -7714,7 +9489,7 @@ public Builder setSpeechConfig(
} else {
speechConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00040000;
onChanged();
return this;
}
@@ -7732,7 +9507,7 @@ public Builder setSpeechConfig(
*/
public Builder mergeSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig value) {
if (speechConfigBuilder_ == null) {
- if (((bitField0_ & 0x00008000) != 0)
+ if (((bitField0_ & 0x00040000) != 0)
&& speechConfig_ != null
&& speechConfig_ != com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance()) {
getSpeechConfigBuilder().mergeFrom(value);
@@ -7743,7 +9518,7 @@ public Builder mergeSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig val
speechConfigBuilder_.mergeFrom(value);
}
if (speechConfig_ != null) {
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00040000;
onChanged();
}
return this;
@@ -7761,7 +9536,7 @@ public Builder mergeSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig val
*
*/
public Builder clearSpeechConfig() {
- bitField0_ = (bitField0_ & ~0x00008000);
+ bitField0_ = (bitField0_ & ~0x00040000);
speechConfig_ = null;
if (speechConfigBuilder_ != null) {
speechConfigBuilder_.dispose();
@@ -7783,7 +9558,7 @@ public Builder clearSpeechConfig() {
*
*/
public com.google.cloud.aiplatform.v1.SpeechConfig.Builder getSpeechConfigBuilder() {
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00040000;
onChanged();
return internalGetSpeechConfigFieldBuilder().getBuilder();
}
@@ -7860,7 +9635,7 @@ public com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder getSpeechConfigOrBui
* @return Whether the thinkingConfig field is set.
*/
public boolean hasThinkingConfig() {
- return ((bitField0_ & 0x00010000) != 0);
+ return ((bitField0_ & 0x00080000) != 0);
}
/**
@@ -7911,7 +9686,7 @@ public Builder setThinkingConfig(
} else {
thinkingConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00080000;
onChanged();
return this;
}
@@ -7936,7 +9711,7 @@ public Builder setThinkingConfig(
} else {
thinkingConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00080000;
onChanged();
return this;
}
@@ -7957,7 +9732,7 @@ public Builder setThinkingConfig(
public Builder mergeThinkingConfig(
com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig value) {
if (thinkingConfigBuilder_ == null) {
- if (((bitField0_ & 0x00010000) != 0)
+ if (((bitField0_ & 0x00080000) != 0)
&& thinkingConfig_ != null
&& thinkingConfig_
!= com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig
@@ -7970,7 +9745,7 @@ public Builder mergeThinkingConfig(
thinkingConfigBuilder_.mergeFrom(value);
}
if (thinkingConfig_ != null) {
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00080000;
onChanged();
}
return this;
@@ -7990,7 +9765,7 @@ public Builder mergeThinkingConfig(
*
*/
public Builder clearThinkingConfig() {
- bitField0_ = (bitField0_ & ~0x00010000);
+ bitField0_ = (bitField0_ & ~0x00080000);
thinkingConfig_ = null;
if (thinkingConfigBuilder_ != null) {
thinkingConfigBuilder_.dispose();
@@ -8015,7 +9790,7 @@ public Builder clearThinkingConfig() {
*/
public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.Builder
getThinkingConfigBuilder() {
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00080000;
onChanged();
return internalGetThinkingConfigFieldBuilder().getBuilder();
}
@@ -8095,7 +9870,7 @@ public Builder clearThinkingConfig() {
* @return Whether the imageConfig field is set.
*/
public boolean hasImageConfig() {
- return ((bitField0_ & 0x00020000) != 0);
+ return ((bitField0_ & 0x00100000) != 0);
}
/**
@@ -8141,7 +9916,7 @@ public Builder setImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value)
} else {
imageConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00100000;
onChanged();
return this;
}
@@ -8164,7 +9939,7 @@ public Builder setImageConfig(
} else {
imageConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00100000;
onChanged();
return this;
}
@@ -8182,7 +9957,7 @@ public Builder setImageConfig(
*/
public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value) {
if (imageConfigBuilder_ == null) {
- if (((bitField0_ & 0x00020000) != 0)
+ if (((bitField0_ & 0x00100000) != 0)
&& imageConfig_ != null
&& imageConfig_ != com.google.cloud.aiplatform.v1.ImageConfig.getDefaultInstance()) {
getImageConfigBuilder().mergeFrom(value);
@@ -8193,7 +9968,7 @@ public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value
imageConfigBuilder_.mergeFrom(value);
}
if (imageConfig_ != null) {
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00100000;
onChanged();
}
return this;
@@ -8211,7 +9986,7 @@ public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value
*
*/
public Builder clearImageConfig() {
- bitField0_ = (bitField0_ & ~0x00020000);
+ bitField0_ = (bitField0_ & ~0x00100000);
imageConfig_ = null;
if (imageConfigBuilder_ != null) {
imageConfigBuilder_.dispose();
@@ -8233,7 +10008,7 @@ public Builder clearImageConfig() {
*
*/
public com.google.cloud.aiplatform.v1.ImageConfig.Builder getImageConfigBuilder() {
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00100000;
onChanged();
return internalGetImageConfigFieldBuilder().getBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java
index 5b087c47d539..ec50bdb56777 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java
@@ -631,6 +631,189 @@ public interface GenerationConfigOrBuilder
com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder
getRoutingConfigOrBuilder();
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the audioTimestamp field is set.
+ */
+ boolean hasAudioTimestamp();
+
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The audioTimestamp.
+ */
+ boolean getAudioTimestamp();
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the responseModalities.
+ */
+ java.util.List
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of responseModalities.
+ */
+ int getResponseModalitiesCount();
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The responseModalities at the given index.
+ */
+ com.google.cloud.aiplatform.v1.GenerationConfig.Modality getResponseModalities(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the enum numeric values on the wire for responseModalities.
+ */
+ java.util.List
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The enum numeric value on the wire of responseModalities at the given index.
+ */
+ int getResponseModalitiesValue(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the mediaResolution field is set.
+ */
+ boolean hasMediaResolution();
+
+ /**
+ *
+ *
+ *
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for mediaResolution.
+ */
+ int getMediaResolutionValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The mediaResolution.
+ */
+ com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution getMediaResolution();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java
index 205ddbd34919..8cfe877ca570 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java
@@ -26,7 +26,6 @@
*
* Request message for
* [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset].
- * Next ID: 4
*
*
* Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetRequest}
@@ -359,7 +358,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
*
* Request message for
* [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset].
- * Next ID: 4
*
*
* Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetRequest}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java
index 31108ef249cb..da7902cf625d 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java
@@ -26,7 +26,6 @@
*
* Request message for
* [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion].
- * Next ID: 4
*
*
* Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetVersionRequest}
@@ -364,7 +363,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
*
* Request message for
* [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion].
- * Next ID: 4
*
*
* Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetVersionRequest}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java
index cd8d28aee20c..91b2c2c7b2fb 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java
@@ -53,6 +53,8 @@ private ImageConfig(com.google.protobuf.GeneratedMessage.Builder> builder) {
private ImageConfig() {
aspectRatio_ = "";
+ personGeneration_ = 0;
+ imageSize_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -70,7 +72,1102 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.ImageConfig.Builder.class);
}
+ /**
+ *
+ *
+ *
+ * Enum for controlling the generation of people in images.
+ *
+ *
+ * Protobuf enum {@code google.cloud.aiplatform.v1.ImageConfig.PersonGeneration}
+ */
+ public enum PersonGeneration implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * The default behavior is unspecified. The model will decide whether to
+ * generate images of people.
+ *
+ *
+ * PERSON_GENERATION_UNSPECIFIED = 0;
+ */
+ PERSON_GENERATION_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Allows the model to generate images of people, including adults and
+ * children.
+ *
+ *
+ * ALLOW_ALL = 1;
+ */
+ ALLOW_ALL(1),
+ /**
+ *
+ *
+ *
+ * Allows the model to generate images of adults, but not children.
+ *
+ *
+ * ALLOW_ADULT = 2;
+ */
+ ALLOW_ADULT(2),
+ /**
+ *
+ *
+ *
+ * Prevents the model from generating images of people.
+ *
+ *
+ * ALLOW_NONE = 3;
+ */
+ ALLOW_NONE(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "PersonGeneration");
+ }
+
+ /**
+ *
+ *
+ *
+ * The default behavior is unspecified. The model will decide whether to
+ * generate images of people.
+ *
+ *
+ * PERSON_GENERATION_UNSPECIFIED = 0;
+ */
+ public static final int PERSON_GENERATION_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Allows the model to generate images of people, including adults and
+ * children.
+ *
+ *
+ * ALLOW_ALL = 1;
+ */
+ public static final int ALLOW_ALL_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * Allows the model to generate images of adults, but not children.
+ *
+ *
+ * ALLOW_ADULT = 2;
+ */
+ public static final int ALLOW_ADULT_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * Prevents the model from generating images of people.
+ *
+ *
+ * ALLOW_NONE = 3;
+ */
+ public static final int ALLOW_NONE_VALUE = 3;
+
+ 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 PersonGeneration 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 PersonGeneration forNumber(int value) {
+ switch (value) {
+ case 0:
+ return PERSON_GENERATION_UNSPECIFIED;
+ case 1:
+ return ALLOW_ALL;
+ case 2:
+ return ALLOW_ADULT;
+ case 3:
+ return ALLOW_NONE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the mimeType field is set.
+ */
+ boolean hasMimeType();
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mimeType.
+ */
+ java.lang.String getMimeType();
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mimeType.
+ */
+ com.google.protobuf.ByteString getMimeTypeBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the compressionQuality field is set.
+ */
+ boolean hasCompressionQuality();
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The compressionQuality.
+ */
+ int getCompressionQuality();
+ }
+
+ /**
+ *
+ *
+ *
+ * The image output format for generated images.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions}
+ */
+ public static final class ImageOutputOptions extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions)
+ ImageOutputOptionsOrBuilder {
+ 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= */ "",
+ "ImageOutputOptions");
+ }
+
+ // Use ImageOutputOptions.newBuilder() to construct.
+ private ImageOutputOptions(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private ImageOutputOptions() {
+ mimeType_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.class,
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int MIME_TYPE_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object mimeType_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the mimeType field is set.
+ */
+ @java.lang.Override
+ public boolean hasMimeType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mimeType.
+ */
+ @java.lang.Override
+ public java.lang.String getMimeType() {
+ java.lang.Object ref = mimeType_;
+ 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();
+ mimeType_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mimeType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMimeTypeBytes() {
+ java.lang.Object ref = mimeType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mimeType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COMPRESSION_QUALITY_FIELD_NUMBER = 2;
+ private int compressionQuality_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the compressionQuality field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompressionQuality() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The compressionQuality.
+ */
+ @java.lang.Override
+ public int getCompressionQuality() {
+ return compressionQuality_;
+ }
+
+ 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)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, mimeType_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt32(2, compressionQuality_);
+ }
+ 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.GeneratedMessage.computeStringSize(1, mimeType_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, compressionQuality_);
+ }
+ 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.aiplatform.v1.ImageConfig.ImageOutputOptions)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions other =
+ (com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) obj;
+
+ if (hasMimeType() != other.hasMimeType()) return false;
+ if (hasMimeType()) {
+ if (!getMimeType().equals(other.getMimeType())) return false;
+ }
+ if (hasCompressionQuality() != other.hasCompressionQuality()) return false;
+ if (hasCompressionQuality()) {
+ if (getCompressionQuality() != other.getCompressionQuality()) 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 (hasMimeType()) {
+ hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getMimeType().hashCode();
+ }
+ if (hasCompressionQuality()) {
+ hash = (37 * hash) + COMPRESSION_QUALITY_FIELD_NUMBER;
+ hash = (53 * hash) + getCompressionQuality();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions 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.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions 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.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions 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.aiplatform.v1.ImageConfig.ImageOutputOptions parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions 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.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions 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.aiplatform.v1.ImageConfig.ImageOutputOptions 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 image output format for generated images.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the mimeType field is set.
+ */
+ public boolean hasMimeType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mimeType.
+ */
+ public java.lang.String getMimeType() {
+ java.lang.Object ref = mimeType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mimeType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mimeType.
+ */
+ public com.google.protobuf.ByteString getMimeTypeBytes() {
+ java.lang.Object ref = mimeType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mimeType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The mimeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMimeType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ mimeType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMimeType() {
+ mimeType_ = getDefaultInstance().getMimeType();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for mimeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ mimeType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int compressionQuality_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the compressionQuality field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompressionQuality() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The compressionQuality.
+ */
+ @java.lang.Override
+ public int getCompressionQuality() {
+ return compressionQuality_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The compressionQuality to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCompressionQuality(int value) {
+
+ compressionQuality_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCompressionQuality() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ compressionQuality_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions)
+ private static final com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions();
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the imageOutputOptions field is set.
+ */
+ @java.lang.Override
+ public boolean hasImageOutputOptions() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The imageOutputOptions.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions getImageOutputOptions() {
+ return imageOutputOptions_ == null
+ ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance()
+ : imageOutputOptions_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder
+ getImageOutputOptionsOrBuilder() {
+ return imageOutputOptions_ == null
+ ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance()
+ : imageOutputOptions_;
+ }
+
public static final int ASPECT_RATIO_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
@@ -97,7 +1194,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasAspectRatio() {
- return ((bitField0_ & 0x00000001) != 0);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
@@ -164,6 +1261,139 @@ public com.google.protobuf.ByteString getAspectRatioBytes() {
}
}
+ public static final int PERSON_GENERATION_FIELD_NUMBER = 3;
+ private int personGeneration_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the personGeneration field is set.
+ */
+ @java.lang.Override
+ public boolean hasPersonGeneration() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for personGeneration.
+ */
+ @java.lang.Override
+ public int getPersonGenerationValue() {
+ return personGeneration_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The personGeneration.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration getPersonGeneration() {
+ com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration result =
+ com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.forNumber(personGeneration_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int IMAGE_SIZE_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object imageSize_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the imageSize field is set.
+ */
+ @java.lang.Override
+ public boolean hasImageSize() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The imageSize.
+ */
+ @java.lang.Override
+ public java.lang.String getImageSize() {
+ java.lang.Object ref = imageSize_;
+ 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();
+ imageSize_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for imageSize.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getImageSizeBytes() {
+ java.lang.Object ref = imageSize_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ imageSize_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -179,8 +1409,17 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getImageOutputOptions());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, aspectRatio_);
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeEnum(3, personGeneration_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, imageSize_);
+ }
getUnknownFields().writeTo(output);
}
@@ -191,8 +1430,17 @@ public int getSerializedSize() {
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImageOutputOptions());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, aspectRatio_);
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, personGeneration_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, imageSize_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -209,10 +1457,22 @@ public boolean equals(final java.lang.Object obj) {
com.google.cloud.aiplatform.v1.ImageConfig other =
(com.google.cloud.aiplatform.v1.ImageConfig) obj;
+ if (hasImageOutputOptions() != other.hasImageOutputOptions()) return false;
+ if (hasImageOutputOptions()) {
+ if (!getImageOutputOptions().equals(other.getImageOutputOptions())) return false;
+ }
if (hasAspectRatio() != other.hasAspectRatio()) return false;
if (hasAspectRatio()) {
if (!getAspectRatio().equals(other.getAspectRatio())) return false;
}
+ if (hasPersonGeneration() != other.hasPersonGeneration()) return false;
+ if (hasPersonGeneration()) {
+ if (personGeneration_ != other.personGeneration_) return false;
+ }
+ if (hasImageSize() != other.hasImageSize()) return false;
+ if (hasImageSize()) {
+ if (!getImageSize().equals(other.getImageSize())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -224,10 +1484,22 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasImageOutputOptions()) {
+ hash = (37 * hash) + IMAGE_OUTPUT_OPTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getImageOutputOptions().hashCode();
+ }
if (hasAspectRatio()) {
hash = (37 * hash) + ASPECT_RATIO_FIELD_NUMBER;
hash = (53 * hash) + getAspectRatio().hashCode();
}
+ if (hasPersonGeneration()) {
+ hash = (37 * hash) + PERSON_GENERATION_FIELD_NUMBER;
+ hash = (53 * hash) + personGeneration_;
+ }
+ if (hasImageSize()) {
+ hash = (37 * hash) + IMAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getImageSize().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -358,17 +1630,33 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.aiplatform.v1.ImageConfig.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ internalGetImageOutputOptionsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
+ imageOutputOptions_ = null;
+ if (imageOutputOptionsBuilder_ != null) {
+ imageOutputOptionsBuilder_.dispose();
+ imageOutputOptionsBuilder_ = null;
+ }
aspectRatio_ = "";
+ personGeneration_ = 0;
+ imageSize_ = "";
return this;
}
@@ -407,9 +1695,24 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.ImageConfig result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
- result.aspectRatio_ = aspectRatio_;
+ result.imageOutputOptions_ =
+ imageOutputOptionsBuilder_ == null
+ ? imageOutputOptions_
+ : imageOutputOptionsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.aspectRatio_ = aspectRatio_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.personGeneration_ = personGeneration_;
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.imageSize_ = imageSize_;
+ to_bitField0_ |= 0x00000008;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -421,65 +1724,314 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
super.mergeFrom(other);
return this;
}
- }
-
- public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImageConfig other) {
- if (other == com.google.cloud.aiplatform.v1.ImageConfig.getDefaultInstance()) return this;
- if (other.hasAspectRatio()) {
- aspectRatio_ = other.aspectRatio_;
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImageConfig other) {
+ if (other == com.google.cloud.aiplatform.v1.ImageConfig.getDefaultInstance()) return this;
+ if (other.hasImageOutputOptions()) {
+ mergeImageOutputOptions(other.getImageOutputOptions());
+ }
+ if (other.hasAspectRatio()) {
+ aspectRatio_ = other.aspectRatio_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (other.hasPersonGeneration()) {
+ setPersonGenerationValue(other.getPersonGenerationValue());
+ }
+ if (other.hasImageSize()) {
+ imageSize_ = other.imageSize_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(
+ internalGetImageOutputOptionsFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ aspectRatio_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 24:
+ {
+ personGeneration_ = input.readEnum();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ case 34:
+ {
+ imageSize_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions imageOutputOptions_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions,
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder,
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder>
+ imageOutputOptionsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the imageOutputOptions field is set.
+ */
+ public boolean hasImageOutputOptions() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The imageOutputOptions.
+ */
+ public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions getImageOutputOptions() {
+ if (imageOutputOptionsBuilder_ == null) {
+ return imageOutputOptions_ == null
+ ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance()
+ : imageOutputOptions_;
+ } else {
+ return imageOutputOptionsBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setImageOutputOptions(
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions value) {
+ if (imageOutputOptionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ imageOutputOptions_ = value;
+ } else {
+ imageOutputOptionsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setImageOutputOptions(
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder builderForValue) {
+ if (imageOutputOptionsBuilder_ == null) {
+ imageOutputOptions_ = builderForValue.build();
+ } else {
+ imageOutputOptionsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeImageOutputOptions(
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions value) {
+ if (imageOutputOptionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && imageOutputOptions_ != null
+ && imageOutputOptions_
+ != com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions
+ .getDefaultInstance()) {
+ getImageOutputOptionsBuilder().mergeFrom(value);
+ } else {
+ imageOutputOptions_ = value;
+ }
+ } else {
+ imageOutputOptionsBuilder_.mergeFrom(value);
+ }
+ if (imageOutputOptions_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearImageOutputOptions() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ imageOutputOptions_ = null;
+ if (imageOutputOptionsBuilder_ != null) {
+ imageOutputOptionsBuilder_.dispose();
+ imageOutputOptionsBuilder_ = null;
+ }
onChanged();
return this;
}
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder
+ getImageOutputOptionsBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetImageOutputOptionsFieldBuilder().getBuilder();
}
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder
+ getImageOutputOptionsOrBuilder() {
+ if (imageOutputOptionsBuilder_ != null) {
+ return imageOutputOptionsBuilder_.getMessageOrBuilder();
+ } else {
+ return imageOutputOptions_ == null
+ ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance()
+ : imageOutputOptions_;
}
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 18:
- {
- aspectRatio_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 18
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
}
- private int bitField0_;
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions,
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder,
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder>
+ internalGetImageOutputOptionsFieldBuilder() {
+ if (imageOutputOptionsBuilder_ == null) {
+ imageOutputOptionsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions,
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder,
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder>(
+ getImageOutputOptions(), getParentForChildren(), isClean());
+ imageOutputOptions_ = null;
+ }
+ return imageOutputOptionsBuilder_;
+ }
private java.lang.Object aspectRatio_ = "";
@@ -503,7 +2055,7 @@ public Builder mergeFrom(
* @return Whether the aspectRatio field is set.
*/
public boolean hasAspectRatio() {
- return ((bitField0_ & 0x00000001) != 0);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
@@ -593,7 +2145,7 @@ public Builder setAspectRatio(java.lang.String value) {
throw new NullPointerException();
}
aspectRatio_ = value;
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -619,7 +2171,7 @@ public Builder setAspectRatio(java.lang.String value) {
*/
public Builder clearAspectRatio() {
aspectRatio_ = getDefaultInstance().getAspectRatio();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -650,7 +2202,265 @@ public Builder setAspectRatioBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
aspectRatio_ = value;
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private int personGeneration_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the personGeneration field is set.
+ */
+ @java.lang.Override
+ public boolean hasPersonGeneration() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for personGeneration.
+ */
+ @java.lang.Override
+ public int getPersonGenerationValue() {
+ return personGeneration_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for personGeneration to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPersonGenerationValue(int value) {
+ personGeneration_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The personGeneration.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration getPersonGeneration() {
+ com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration result =
+ com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.forNumber(personGeneration_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The personGeneration to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPersonGeneration(
+ com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ personGeneration_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPersonGeneration() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ personGeneration_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object imageSize_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the imageSize field is set.
+ */
+ public boolean hasImageSize() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The imageSize.
+ */
+ public java.lang.String getImageSize() {
+ java.lang.Object ref = imageSize_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ imageSize_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for imageSize.
+ */
+ public com.google.protobuf.ByteString getImageSizeBytes() {
+ java.lang.Object ref = imageSize_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ imageSize_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The imageSize to set.
+ * @return This builder for chaining.
+ */
+ public Builder setImageSize(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ imageSize_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearImageSize() {
+ imageSize_ = getDefaultInstance().getImageSize();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for imageSize to set.
+ * @return This builder for chaining.
+ */
+ public Builder setImageSizeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ imageSize_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java
index eb4736457b23..6e1689404161 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java
@@ -26,6 +26,50 @@ public interface ImageConfigOrBuilder
// @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ImageConfig)
com.google.protobuf.MessageOrBuilder {
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the imageOutputOptions field is set.
+ */
+ boolean hasImageOutputOptions();
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The imageOutputOptions.
+ */
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions getImageOutputOptions();
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder
+ getImageOutputOptionsOrBuilder();
+
/**
*
*
@@ -88,4 +132,91 @@ public interface ImageConfigOrBuilder
* @return The bytes for aspectRatio.
*/
com.google.protobuf.ByteString getAspectRatioBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the personGeneration field is set.
+ */
+ boolean hasPersonGeneration();
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for personGeneration.
+ */
+ int getPersonGenerationValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The personGeneration.
+ */
+ com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration getPersonGeneration();
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the imageSize field is set.
+ */
+ boolean hasImageSize();
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The imageSize.
+ */
+ java.lang.String getImageSize();
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for imageSize.
+ */
+ com.google.protobuf.ByteString getImageSizeBytes();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java
index ae953cea8947..46595e7be533 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java
@@ -64,6 +64,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_BigQueryDestination_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_BigQueryDestination_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_CsvDestination_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -128,8 +136,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n"
+ "#google/cloud/aiplatform/v1/io.proto\022\032g"
+ "oogle.cloud.aiplatform.v1\032\037google/api/fi"
- + "eld_behavior.proto\032)google/cloud/aiplatf"
- + "orm/v1/api_auth.proto\032\037google/protobuf/timestamp.proto\"L\n\n"
+ + "eld_behavior.proto\032\031google/api/resource."
+ + "proto\032)google/cloud/aiplatform/v1/api_au"
+ + "th.proto\032\037google/protobuf/timestamp.proto\"L\n\n"
+ "AvroSource\022>\n\n"
+ "gcs_source\030\001 \001(\0132%.google.cloud.aiplatform.v1.GcsSourceB\003\340A\002\"K\n"
+ "\tCsvSource\022>\n\n"
@@ -142,21 +151,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\016BigQuerySource\022\026\n"
+ "\tinput_uri\030\001 \001(\tB\003\340A\002\".\n"
+ "\023BigQueryDestination\022\027\n\n"
- + "output_uri\030\001 \001(\tB\003\340A\002\"Z\n"
+ + "output_uri\030\001 \001(\tB\003\340A\002\"`\n"
+ + "\035VertexMultimodalDatasetSource\022?\n"
+ + "\014dataset_name\030\001 \001(\tB)\340A\002\372A#\n"
+ + "!aiplatform.googleapis.com/Dataset\"\223\001\n"
+ + "\"VertexMultimodalDatasetDestination\022R\n"
+ + "\024bigquery_destination\030\001"
+ + " \001(\0132/.google.cloud.aiplatform.v1.BigQueryDestinationB\003\340A\001\022\031\n"
+ + "\014display_name\030\002 \001(\tB\003\340A\001\"Z\n"
+ "\016CsvDestination\022H\n"
+ "\017gcs_destination\030\001"
+ " \001(\0132*.google.cloud.aiplatform.v1.GcsDestinationB\003\340A\002\"_\n"
+ "\023TFRecordDestination\022H\n"
- + "\017gcs_destination\030\001 \001("
- + "\0132*.google.cloud.aiplatform.v1.GcsDestinationB\003\340A\002\"7\n"
- + "\034ContainerRegistryDestination\022\027\n\n"
+ + "\017gcs_destination\030\001 \001(\0132*.g"
+ + "oogle.cloud.aiplatform.v1.GcsDestinationB\003\340A\002\"7\n"
+ + "\034ContainerRegistryDestination\022\027\n"
+ + "\n"
+ "output_uri\030\001 \001(\tB\003\340A\002\"\325\002\n"
+ "\021GoogleDriveSource\022S\n"
- + "\014resource_ids\030\001 \003(\01328.google"
- + ".cloud.aiplatform.v1.GoogleDriveSource.ResourceIdB\003\340A\002\032\352\001\n\n"
+ + "\014resource_ids\030\001 \003(\01328.google.clou"
+ + "d.aiplatform.v1.GoogleDriveSource.ResourceIdB\003\340A\002\032\352\001\n\n"
+ "ResourceId\022a\n\r"
- + "resource_type\030\001 \001(\0162E.google.cloud.aiplatform.v"
- + "1.GoogleDriveSource.ResourceId.ResourceTypeB\003\340A\002\022\030\n"
+ + "resource_type\030\001 \001(\0162E.google.cloud.aiplatform.v1.Goo"
+ + "gleDriveSource.ResourceId.ResourceTypeB\003\340A\002\022\030\n"
+ "\013resource_id\030\002 \001(\tB\003\340A\002\"_\n"
+ "\014ResourceType\022\035\n"
+ "\031RESOURCE_TYPE_UNSPECIFIED\020\000\022\026\n"
@@ -164,16 +181,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\024RESOURCE_TYPE_FOLDER\020\002\"\024\n"
+ "\022DirectUploadSource\"\251\003\n"
+ "\013SlackSource\022L\n"
- + "\010channels\030\001 \003(\01325.google.clo"
- + "ud.aiplatform.v1.SlackSource.SlackChannelsB\003\340A\002\032\313\002\n\r"
+ + "\010channels\030\001 \003(\01325.google.cloud.ai"
+ + "platform.v1.SlackSource.SlackChannelsB\003\340A\002\032\313\002\n\r"
+ "SlackChannels\022Y\n"
- + "\010channels\030\001 "
- + "\003(\0132B.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannelB\003\340A\002\022M\n"
+ + "\010channels\030\001 \003(\0132B"
+ + ".google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannelB\003\340A\002\022M\n"
+ "\016api_key_config\030\003"
+ " \001(\01320.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigB\003\340A\002\032\217\001\n"
+ "\014SlackChannel\022\027\n\n"
- + "channel_id\030\001 \001(\tB\003\340A\002\0223\n"
- + "\n"
+ + "channel_id\030\001 \001(\tB\003\340A\002\0223\n\n"
+ "start_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\0221\n"
+ "\010end_time\030\003"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"\221\002\n\n"
@@ -185,11 +201,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\016custom_queries\030\004 \003(\t\022\022\n"
+ "\005email\030\005 \001(\tB\003\340A\002\022\027\n\n"
+ "server_uri\030\006 \001(\tB\003\340A\002\022M\n"
- + "\016api_key_config\030\007 \001"
- + "(\01320.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigB\003\340A\002\"\265\003\n"
+ + "\016api_key_config\030\007 \001(\01320."
+ + "google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigB\003\340A\002\"\265\003\n"
+ "\021SharePointSources\022[\n"
- + "\023share_point_sources\030\001 \003(\0132>.google.cl"
- + "oud.aiplatform.v1.SharePointSources.SharePointSource\032\302\002\n"
+ + "\023share_point_sources\030\001 \003(\0132>.google.cloud.a"
+ + "iplatform.v1.SharePointSources.SharePointSource\032\302\002\n"
+ "\020SharePointSource\022 \n"
+ "\026sharepoint_folder_path\030\005 \001(\tH\000\022\036\n"
+ "\024sharepoint_folder_id\030\006 \001(\tH\000\022\024\n\n"
@@ -203,16 +219,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\007file_id\030\t \001(\tB\003\340A\003B\017\n\r"
+ "folder_sourceB\016\n"
+ "\014drive_sourceB\305\001\n"
- + "\036com.google.cloud.aiplatform.v1B\007IoProtoP\001Z>cloud.google.co"
- + "m/go/aiplatform/apiv1/aiplatformpb;aipla"
- + "tformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G"
- + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
+ + "\036com.google.cloud.aiplatform.v1B\007IoProtoP\001Z>cloud.google.com/go/"
+ + "aiplatform/apiv1/aiplatformpb;aiplatform"
+ + "pb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google"
+ + "\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.aiplatform.v1.ApiAuthProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
@@ -264,8 +281,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"OutputUri",
});
- internal_static_google_cloud_aiplatform_v1_CsvDestination_descriptor =
+ internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_descriptor =
getDescriptor().getMessageType(6);
+ internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_descriptor,
+ new java.lang.String[] {
+ "DatasetName",
+ });
+ internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_descriptor =
+ getDescriptor().getMessageType(7);
+ internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_descriptor,
+ new java.lang.String[] {
+ "BigqueryDestination", "DisplayName",
+ });
+ internal_static_google_cloud_aiplatform_v1_CsvDestination_descriptor =
+ getDescriptor().getMessageType(8);
internal_static_google_cloud_aiplatform_v1_CsvDestination_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_CsvDestination_descriptor,
@@ -273,7 +306,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"GcsDestination",
});
internal_static_google_cloud_aiplatform_v1_TFRecordDestination_descriptor =
- getDescriptor().getMessageType(7);
+ getDescriptor().getMessageType(9);
internal_static_google_cloud_aiplatform_v1_TFRecordDestination_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_TFRecordDestination_descriptor,
@@ -281,7 +314,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"GcsDestination",
});
internal_static_google_cloud_aiplatform_v1_ContainerRegistryDestination_descriptor =
- getDescriptor().getMessageType(8);
+ getDescriptor().getMessageType(10);
internal_static_google_cloud_aiplatform_v1_ContainerRegistryDestination_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_ContainerRegistryDestination_descriptor,
@@ -289,7 +322,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"OutputUri",
});
internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_descriptor =
- getDescriptor().getMessageType(9);
+ getDescriptor().getMessageType(11);
internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_descriptor,
@@ -305,13 +338,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ResourceType", "ResourceId",
});
internal_static_google_cloud_aiplatform_v1_DirectUploadSource_descriptor =
- getDescriptor().getMessageType(10);
+ getDescriptor().getMessageType(12);
internal_static_google_cloud_aiplatform_v1_DirectUploadSource_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_DirectUploadSource_descriptor,
new java.lang.String[] {});
internal_static_google_cloud_aiplatform_v1_SlackSource_descriptor =
- getDescriptor().getMessageType(11);
+ getDescriptor().getMessageType(13);
internal_static_google_cloud_aiplatform_v1_SlackSource_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_SlackSource_descriptor,
@@ -336,7 +369,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ChannelId", "StartTime", "EndTime",
});
internal_static_google_cloud_aiplatform_v1_JiraSource_descriptor =
- getDescriptor().getMessageType(12);
+ getDescriptor().getMessageType(14);
internal_static_google_cloud_aiplatform_v1_JiraSource_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_JiraSource_descriptor,
@@ -352,7 +385,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Projects", "CustomQueries", "Email", "ServerUri", "ApiKeyConfig",
});
internal_static_google_cloud_aiplatform_v1_SharePointSources_descriptor =
- getDescriptor().getMessageType(13);
+ getDescriptor().getMessageType(15);
internal_static_google_cloud_aiplatform_v1_SharePointSources_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_SharePointSources_descriptor,
@@ -379,11 +412,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
});
descriptor.resolveAllFeaturesImmutable();
com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
com.google.cloud.aiplatform.v1.ApiAuthProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java
index 006606faeffb..013ab12cac35 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java
@@ -76,6 +76,948 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.Part.Builder.class);
}
+ public interface MediaResolutionOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Part.MediaResolution)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return Whether the level field is set.
+ */
+ boolean hasLevel();
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return The enum numeric value on the wire for level.
+ */
+ int getLevelValue();
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return The level.
+ */
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Level getLevel();
+
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.ValueCase getValueCase();
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.Part.MediaResolution}
+ */
+ public static final class MediaResolution extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Part.MediaResolution)
+ MediaResolutionOrBuilder {
+ 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= */ "",
+ "MediaResolution");
+ }
+
+ // Use MediaResolution.newBuilder() to construct.
+ private MediaResolution(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private MediaResolution() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.class,
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * The media resolution level.
+ *
+ *
+ * Protobuf enum {@code google.cloud.aiplatform.v1.Part.MediaResolution.Level}
+ */
+ public enum Level implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Media resolution has not been set.
+ *
+ *
+ * MEDIA_RESOLUTION_UNSPECIFIED = 0;
+ */
+ MEDIA_RESOLUTION_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Media resolution set to low.
+ *
+ *
+ * MEDIA_RESOLUTION_LOW = 1;
+ */
+ MEDIA_RESOLUTION_LOW(1),
+ /**
+ *
+ *
+ *
+ * Media resolution set to medium.
+ *
+ *
+ * MEDIA_RESOLUTION_MEDIUM = 2;
+ */
+ MEDIA_RESOLUTION_MEDIUM(2),
+ /**
+ *
+ *
+ *
+ * Media resolution set to high.
+ *
+ *
+ * MEDIA_RESOLUTION_HIGH = 3;
+ */
+ MEDIA_RESOLUTION_HIGH(3),
+ /**
+ *
+ *
+ *
+ * Media resolution set to ultra high. This is for image only.
+ *
+ *
+ * MEDIA_RESOLUTION_ULTRA_HIGH = 4;
+ */
+ MEDIA_RESOLUTION_ULTRA_HIGH(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "Level");
+ }
+
+ /**
+ *
+ *
+ *
+ * Media resolution has not been set.
+ *
+ *
+ * MEDIA_RESOLUTION_UNSPECIFIED = 0;
+ */
+ public static final int MEDIA_RESOLUTION_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Media resolution set to low.
+ *
+ *
+ * MEDIA_RESOLUTION_LOW = 1;
+ */
+ public static final int MEDIA_RESOLUTION_LOW_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * Media resolution set to medium.
+ *
+ *
+ * MEDIA_RESOLUTION_MEDIUM = 2;
+ */
+ public static final int MEDIA_RESOLUTION_MEDIUM_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * Media resolution set to high.
+ *
+ *
+ * MEDIA_RESOLUTION_HIGH = 3;
+ */
+ public static final int MEDIA_RESOLUTION_HIGH_VALUE = 3;
+
+ /**
+ *
+ *
+ *
+ * Media resolution set to ultra high. This is for image only.
+ *
+ *
+ * MEDIA_RESOLUTION_ULTRA_HIGH = 4;
+ */
+ public static final int MEDIA_RESOLUTION_ULTRA_HIGH_VALUE = 4;
+
+ 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 Level 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 Level forNumber(int value) {
+ switch (value) {
+ case 0:
+ return MEDIA_RESOLUTION_UNSPECIFIED;
+ case 1:
+ return MEDIA_RESOLUTION_LOW;
+ case 2:
+ return MEDIA_RESOLUTION_MEDIUM;
+ case 3:
+ return MEDIA_RESOLUTION_HIGH;
+ case 4:
+ return MEDIA_RESOLUTION_ULTRA_HIGH;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return Whether the level field is set.
+ */
+ public boolean hasLevel() {
+ return valueCase_ == 1;
+ }
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return The enum numeric value on the wire for level.
+ */
+ public int getLevelValue() {
+ if (valueCase_ == 1) {
+ return (java.lang.Integer) value_;
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return The level.
+ */
+ public com.google.cloud.aiplatform.v1.Part.MediaResolution.Level getLevel() {
+ if (valueCase_ == 1) {
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Level result =
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.forNumber(
+ (java.lang.Integer) value_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.UNRECOGNIZED
+ : result;
+ }
+ return com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.MEDIA_RESOLUTION_UNSPECIFIED;
+ }
+
+ 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 (valueCase_ == 1) {
+ output.writeEnum(1, ((java.lang.Integer) value_));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (valueCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(1, ((java.lang.Integer) value_));
+ }
+ 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.aiplatform.v1.Part.MediaResolution)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.Part.MediaResolution other =
+ (com.google.cloud.aiplatform.v1.Part.MediaResolution) obj;
+
+ if (!getValueCase().equals(other.getValueCase())) return false;
+ switch (valueCase_) {
+ case 1:
+ if (getLevelValue() != other.getLevelValue()) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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();
+ switch (valueCase_) {
+ case 1:
+ hash = (37 * hash) + LEVEL_FIELD_NUMBER;
+ hash = (53 * hash) + getLevelValue();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution 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.aiplatform.v1.Part.MediaResolution parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution 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.aiplatform.v1.Part.MediaResolution parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution 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.aiplatform.v1.Part.MediaResolution parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution 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.aiplatform.v1.Part.MediaResolution parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution 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.aiplatform.v1.Part.MediaResolution 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;
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.Part.MediaResolution}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return Whether the level field is set.
+ */
+ @java.lang.Override
+ public boolean hasLevel() {
+ return valueCase_ == 1;
+ }
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return The enum numeric value on the wire for level.
+ */
+ @java.lang.Override
+ public int getLevelValue() {
+ if (valueCase_ == 1) {
+ return ((java.lang.Integer) value_).intValue();
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @param value The enum numeric value on the wire for level to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLevelValue(int value) {
+ valueCase_ = 1;
+ value_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return The level.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Part.MediaResolution.Level getLevel() {
+ if (valueCase_ == 1) {
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Level result =
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.forNumber(
+ (java.lang.Integer) value_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.UNRECOGNIZED
+ : result;
+ }
+ return com.google.cloud.aiplatform.v1.Part.MediaResolution.Level
+ .MEDIA_RESOLUTION_UNSPECIFIED;
+ }
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @param value The level to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLevel(com.google.cloud.aiplatform.v1.Part.MediaResolution.Level value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueCase_ = 1;
+ value_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLevel() {
+ if (valueCase_ == 1) {
+ valueCase_ = 0;
+ value_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.Part.MediaResolution)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Part.MediaResolution)
+ private static final com.google.cloud.aiplatform.v1.Part.MediaResolution DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Part.MediaResolution();
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ *
+ * @return Whether the mediaResolution field is set.
+ */
+ @java.lang.Override
+ public boolean hasMediaResolution() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ *
+ * @return The mediaResolution.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Part.MediaResolution getMediaResolution() {
+ return mediaResolution_ == null
+ ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance()
+ : mediaResolution_;
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder
+ getMediaResolutionOrBuilder() {
+ return mediaResolution_ == null
+ ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance()
+ : mediaResolution_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -783,6 +1782,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!thoughtSignature_.isEmpty()) {
output.writeBytes(11, thoughtSignature_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(12, getMediaResolution());
+ }
getUnknownFields().writeTo(output);
}
@@ -836,6 +1838,9 @@ public int getSerializedSize() {
if (!thoughtSignature_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, thoughtSignature_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getMediaResolution());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -853,6 +1858,10 @@ public boolean equals(final java.lang.Object obj) {
if (getThought() != other.getThought()) return false;
if (!getThoughtSignature().equals(other.getThoughtSignature())) return false;
+ if (hasMediaResolution() != other.hasMediaResolution()) return false;
+ if (hasMediaResolution()) {
+ if (!getMediaResolution().equals(other.getMediaResolution())) return false;
+ }
if (!getDataCase().equals(other.getDataCase())) return false;
switch (dataCase_) {
case 1:
@@ -902,6 +1911,10 @@ public int hashCode() {
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThought());
hash = (37 * hash) + THOUGHT_SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getThoughtSignature().hashCode();
+ if (hasMediaResolution()) {
+ hash = (37 * hash) + MEDIA_RESOLUTION_FIELD_NUMBER;
+ hash = (53 * hash) + getMediaResolution().hashCode();
+ }
switch (dataCase_) {
case 1:
hash = (37 * hash) + TEXT_FIELD_NUMBER;
@@ -1077,10 +2090,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.aiplatform.v1.Part.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ internalGetMediaResolutionFieldBuilder();
+ }
}
@java.lang.Override
@@ -1110,6 +2132,11 @@ public Builder clear() {
if (videoMetadataBuilder_ != null) {
videoMetadataBuilder_.clear();
}
+ mediaResolution_ = null;
+ if (mediaResolutionBuilder_ != null) {
+ mediaResolutionBuilder_.dispose();
+ mediaResolutionBuilder_ = null;
+ }
dataCase_ = 0;
data_ = null;
metadataCase_ = 0;
@@ -1156,6 +2183,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Part result) {
if (((from_bitField0_ & 0x00000100) != 0)) {
result.thoughtSignature_ = thoughtSignature_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.mediaResolution_ =
+ mediaResolutionBuilder_ == null ? mediaResolution_ : mediaResolutionBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.cloud.aiplatform.v1.Part result) {
@@ -1204,6 +2238,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Part other) {
if (!other.getThoughtSignature().isEmpty()) {
setThoughtSignature(other.getThoughtSignature());
}
+ if (other.hasMediaResolution()) {
+ mergeMediaResolution(other.getMediaResolution());
+ }
switch (other.getDataCase()) {
case TEXT:
{
@@ -1352,6 +2389,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000100;
break;
} // case 90
+ case 98:
+ {
+ input.readMessage(
+ internalGetMediaResolutionFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 98
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3358,6 +4402,212 @@ public com.google.cloud.aiplatform.v1.VideoMetadataOrBuilder getVideoMetadataOrB
return videoMetadataBuilder_;
}
+ private com.google.cloud.aiplatform.v1.Part.MediaResolution mediaResolution_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.Part.MediaResolution,
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder,
+ com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder>
+ mediaResolutionBuilder_;
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ *
+ * @return Whether the mediaResolution field is set.
+ */
+ public boolean hasMediaResolution() {
+ return ((bitField0_ & 0x00000400) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ *
+ * @return The mediaResolution.
+ */
+ public com.google.cloud.aiplatform.v1.Part.MediaResolution getMediaResolution() {
+ if (mediaResolutionBuilder_ == null) {
+ return mediaResolution_ == null
+ ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance()
+ : mediaResolution_;
+ } else {
+ return mediaResolutionBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ public Builder setMediaResolution(com.google.cloud.aiplatform.v1.Part.MediaResolution value) {
+ if (mediaResolutionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ mediaResolution_ = value;
+ } else {
+ mediaResolutionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ public Builder setMediaResolution(
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder builderForValue) {
+ if (mediaResolutionBuilder_ == null) {
+ mediaResolution_ = builderForValue.build();
+ } else {
+ mediaResolutionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ public Builder mergeMediaResolution(com.google.cloud.aiplatform.v1.Part.MediaResolution value) {
+ if (mediaResolutionBuilder_ == null) {
+ if (((bitField0_ & 0x00000400) != 0)
+ && mediaResolution_ != null
+ && mediaResolution_
+ != com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance()) {
+ getMediaResolutionBuilder().mergeFrom(value);
+ } else {
+ mediaResolution_ = value;
+ }
+ } else {
+ mediaResolutionBuilder_.mergeFrom(value);
+ }
+ if (mediaResolution_ != null) {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ public Builder clearMediaResolution() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ mediaResolution_ = null;
+ if (mediaResolutionBuilder_ != null) {
+ mediaResolutionBuilder_.dispose();
+ mediaResolutionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ public com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder getMediaResolutionBuilder() {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return internalGetMediaResolutionFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ public com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder
+ getMediaResolutionOrBuilder() {
+ if (mediaResolutionBuilder_ != null) {
+ return mediaResolutionBuilder_.getMessageOrBuilder();
+ } else {
+ return mediaResolution_ == null
+ ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance()
+ : mediaResolution_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.Part.MediaResolution,
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder,
+ com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder>
+ internalGetMediaResolutionFieldBuilder() {
+ if (mediaResolutionBuilder_ == null) {
+ mediaResolutionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.Part.MediaResolution,
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder,
+ com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder>(
+ getMediaResolution(), getParentForChildren(), isClean());
+ mediaResolution_ = null;
+ }
+ return mediaResolutionBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.Part)
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java
index b28fd4b633c0..39cf77b7d299 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java
@@ -411,6 +411,46 @@ public interface PartOrBuilder
*/
com.google.cloud.aiplatform.v1.VideoMetadataOrBuilder getVideoMetadataOrBuilder();
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ *
+ * @return Whether the mediaResolution field is set.
+ */
+ boolean hasMediaResolution();
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ *
+ * @return The mediaResolution.
+ */
+ com.google.cloud.aiplatform.v1.Part.MediaResolution getMediaResolution();
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder getMediaResolutionOrBuilder();
+
com.google.cloud.aiplatform.v1.Part.DataCase getDataCase();
com.google.cloud.aiplatform.v1.Part.MetadataCase getMetadataCase();
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java
index f81c6b40d389..8322f52ea1bf 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java
@@ -1217,7 +1217,7 @@ public com.google.protobuf.ByteString getDatasetBytes() {
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @return The savedQuery.
*/
@java.lang.Override
@@ -1248,7 +1248,7 @@ public java.lang.String getSavedQuery() {
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @return The bytes for savedQuery.
*/
@java.lang.Override
@@ -1418,7 +1418,7 @@ public com.google.protobuf.ByteString getDataItemFilterBytes() {
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated.
- * See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @return The annotationsFilter.
*/
@java.lang.Override
@@ -1447,7 +1447,7 @@ public java.lang.String getAnnotationsFilter() {
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated.
- * See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @return The bytes for annotationsFilter.
*/
@java.lang.Override
@@ -1657,7 +1657,7 @@ public int getPageSize() {
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @return The orderBy.
*/
@java.lang.Override
@@ -1685,7 +1685,7 @@ public java.lang.String getOrderBy() {
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @return The bytes for orderBy.
*/
@java.lang.Override
@@ -2987,7 +2987,7 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) {
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @return The savedQuery.
*/
@java.lang.Deprecated
@@ -3017,7 +3017,7 @@ public java.lang.String getSavedQuery() {
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @return The bytes for savedQuery.
*/
@java.lang.Deprecated
@@ -3047,7 +3047,7 @@ public com.google.protobuf.ByteString getSavedQueryBytes() {
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @param value The savedQuery to set.
* @return This builder for chaining.
*/
@@ -3076,7 +3076,7 @@ public Builder setSavedQuery(java.lang.String value) {
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -3101,7 +3101,7 @@ public Builder clearSavedQuery() {
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @param value The bytes for savedQuery to set.
* @return This builder for chaining.
*/
@@ -3428,7 +3428,7 @@ public Builder setDataItemFilterBytes(com.google.protobuf.ByteString value) {
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is
- * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @return The annotationsFilter.
*/
@java.lang.Deprecated
@@ -3456,7 +3456,7 @@ public java.lang.String getAnnotationsFilter() {
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is
- * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @return The bytes for annotationsFilter.
*/
@java.lang.Deprecated
@@ -3484,7 +3484,7 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() {
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is
- * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @param value The annotationsFilter to set.
* @return This builder for chaining.
*/
@@ -3511,7 +3511,7 @@ public Builder setAnnotationsFilter(java.lang.String value) {
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is
- * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -3534,7 +3534,7 @@ public Builder clearAnnotationsFilter() {
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is
- * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @param value The bytes for annotationsFilter to set.
* @return This builder for chaining.
*/
@@ -4102,7 +4102,7 @@ public Builder clearPageSize() {
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @return The orderBy.
*/
@java.lang.Deprecated
@@ -4129,7 +4129,7 @@ public java.lang.String getOrderBy() {
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @return The bytes for orderBy.
*/
@java.lang.Deprecated
@@ -4156,7 +4156,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @param value The orderBy to set.
* @return This builder for chaining.
*/
@@ -4182,7 +4182,7 @@ public Builder setOrderBy(java.lang.String value) {
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -4204,7 +4204,7 @@ public Builder clearOrderBy() {
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @param value The bytes for orderBy to set.
* @return This builder for chaining.
*/
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java
index 7fb8a7181d8f..e1ed9c9d4655 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java
@@ -160,7 +160,7 @@ public interface SearchDataItemsRequestOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @return The savedQuery.
*/
@java.lang.Deprecated
@@ -180,7 +180,7 @@ public interface SearchDataItemsRequestOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @return The bytes for savedQuery.
*/
@java.lang.Deprecated
@@ -280,7 +280,7 @@ public interface SearchDataItemsRequestOrBuilder
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated.
- * See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @return The annotationsFilter.
*/
@java.lang.Deprecated
@@ -298,7 +298,7 @@ public interface SearchDataItemsRequestOrBuilder
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated.
- * See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @return The bytes for annotationsFilter.
*/
@java.lang.Deprecated
@@ -454,7 +454,7 @@ public interface SearchDataItemsRequestOrBuilder
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @return The orderBy.
*/
@java.lang.Deprecated
@@ -471,7 +471,7 @@ public interface SearchDataItemsRequestOrBuilder
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @return The bytes for orderBy.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetDestination.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetDestination.java
new file mode 100644
index 000000000000..901b17913dca
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetDestination.java
@@ -0,0 +1,957 @@
+/*
+ * 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/aiplatform/v1/io.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset output.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination}
+ */
+@com.google.protobuf.Generated
+public final class VertexMultimodalDatasetDestination extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination)
+ VertexMultimodalDatasetDestinationOrBuilder {
+ 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= */ "",
+ "VertexMultimodalDatasetDestination");
+ }
+
+ // Use VertexMultimodalDatasetDestination.newBuilder() to construct.
+ private VertexMultimodalDatasetDestination(
+ com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private VertexMultimodalDatasetDestination() {
+ displayName_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.IoProto
+ .internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.IoProto
+ .internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.class,
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 1;
+ private com.google.cloud.aiplatform.v1.BigQueryDestination bigqueryDestination_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the bigqueryDestination field is set.
+ */
+ @java.lang.Override
+ public boolean hasBigqueryDestination() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bigqueryDestination.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination() {
+ return bigqueryDestination_ == null
+ ? com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance()
+ : bigqueryDestination_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder
+ getBigqueryDestinationOrBuilder() {
+ return bigqueryDestination_ == null
+ ? com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance()
+ : bigqueryDestination_;
+ }
+
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The displayName.
+ */
+ @java.lang.Override
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ 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();
+ displayName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for displayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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.writeMessage(1, getBigqueryDestination());
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_);
+ }
+ 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.computeMessageSize(1, getBigqueryDestination());
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_);
+ }
+ 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.aiplatform.v1.VertexMultimodalDatasetDestination)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination other =
+ (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) obj;
+
+ if (hasBigqueryDestination() != other.hasBigqueryDestination()) return false;
+ if (hasBigqueryDestination()) {
+ if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false;
+ }
+ if (!getDisplayName().equals(other.getDisplayName())) 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 (hasBigqueryDestination()) {
+ hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER;
+ hash = (53 * hash) + getBigqueryDestination().hashCode();
+ }
+ hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination 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.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination 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.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination 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.aiplatform.v1.VertexMultimodalDatasetDestination
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination
+ 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.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination 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.aiplatform.v1.VertexMultimodalDatasetDestination 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 details for a Vertex Multimodal Dataset output.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the bigqueryDestination field is set.
+ */
+ public boolean hasBigqueryDestination() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bigqueryDestination.
+ */
+ public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination() {
+ if (bigqueryDestinationBuilder_ == null) {
+ return bigqueryDestination_ == null
+ ? com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance()
+ : bigqueryDestination_;
+ } else {
+ return bigqueryDestinationBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setBigqueryDestination(
+ com.google.cloud.aiplatform.v1.BigQueryDestination value) {
+ if (bigqueryDestinationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bigqueryDestination_ = value;
+ } else {
+ bigqueryDestinationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setBigqueryDestination(
+ com.google.cloud.aiplatform.v1.BigQueryDestination.Builder builderForValue) {
+ if (bigqueryDestinationBuilder_ == null) {
+ bigqueryDestination_ = builderForValue.build();
+ } else {
+ bigqueryDestinationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeBigqueryDestination(
+ com.google.cloud.aiplatform.v1.BigQueryDestination value) {
+ if (bigqueryDestinationBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && bigqueryDestination_ != null
+ && bigqueryDestination_
+ != com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance()) {
+ getBigqueryDestinationBuilder().mergeFrom(value);
+ } else {
+ bigqueryDestination_ = value;
+ }
+ } else {
+ bigqueryDestinationBuilder_.mergeFrom(value);
+ }
+ if (bigqueryDestination_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearBigqueryDestination() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ bigqueryDestination_ = null;
+ if (bigqueryDestinationBuilder_ != null) {
+ bigqueryDestinationBuilder_.dispose();
+ bigqueryDestinationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.BigQueryDestination.Builder
+ getBigqueryDestinationBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetBigqueryDestinationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder
+ getBigqueryDestinationOrBuilder() {
+ if (bigqueryDestinationBuilder_ != null) {
+ return bigqueryDestinationBuilder_.getMessageOrBuilder();
+ } else {
+ return bigqueryDestination_ == null
+ ? com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance()
+ : bigqueryDestination_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.BigQueryDestination,
+ com.google.cloud.aiplatform.v1.BigQueryDestination.Builder,
+ com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder>
+ internalGetBigqueryDestinationFieldBuilder() {
+ if (bigqueryDestinationBuilder_ == null) {
+ bigqueryDestinationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.BigQueryDestination,
+ com.google.cloud.aiplatform.v1.BigQueryDestination.Builder,
+ com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder>(
+ getBigqueryDestination(), getParentForChildren(), isClean());
+ bigqueryDestination_ = null;
+ }
+ return bigqueryDestinationBuilder_;
+ }
+
+ private java.lang.Object displayName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The displayName.
+ */
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for displayName.
+ */
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ displayName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ displayName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination)
+ private static final com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination();
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the bigqueryDestination field is set.
+ */
+ boolean hasBigqueryDestination();
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bigqueryDestination.
+ */
+ com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination();
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetSource.java
new file mode 100644
index 000000000000..86b159f2c7bb
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetSource.java
@@ -0,0 +1,622 @@
+/*
+ * 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/aiplatform/v1/io.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * The Vertex Multimodal Dataset for the input content.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.VertexMultimodalDatasetSource}
+ */
+@com.google.protobuf.Generated
+public final class VertexMultimodalDatasetSource extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.VertexMultimodalDatasetSource)
+ VertexMultimodalDatasetSourceOrBuilder {
+ 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= */ "",
+ "VertexMultimodalDatasetSource");
+ }
+
+ // Use VertexMultimodalDatasetSource.newBuilder() to construct.
+ private VertexMultimodalDatasetSource(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private VertexMultimodalDatasetSource() {
+ datasetName_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.IoProto
+ .internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.IoProto
+ .internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.class,
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.Builder.class);
+ }
+
+ public static final int DATASET_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object datasetName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The datasetName.
+ */
+ @java.lang.Override
+ public java.lang.String getDatasetName() {
+ java.lang.Object ref = datasetName_;
+ 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();
+ datasetName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for datasetName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDatasetNameBytes() {
+ java.lang.Object ref = datasetName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datasetName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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(datasetName_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, datasetName_);
+ }
+ 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(datasetName_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, datasetName_);
+ }
+ 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.aiplatform.v1.VertexMultimodalDatasetSource)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource other =
+ (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) obj;
+
+ if (!getDatasetName().equals(other.getDatasetName())) 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) + DATASET_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDatasetName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource 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.aiplatform.v1.VertexMultimodalDatasetSource parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource 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.aiplatform.v1.VertexMultimodalDatasetSource parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource 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.aiplatform.v1.VertexMultimodalDatasetSource parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource 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.aiplatform.v1.VertexMultimodalDatasetSource parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource 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.aiplatform.v1.VertexMultimodalDatasetSource 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 Vertex Multimodal Dataset for the input content.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.VertexMultimodalDatasetSource}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The datasetName.
+ */
+ public java.lang.String getDatasetName() {
+ java.lang.Object ref = datasetName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ datasetName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for datasetName.
+ */
+ public com.google.protobuf.ByteString getDatasetNameBytes() {
+ java.lang.Object ref = datasetName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datasetName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The datasetName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatasetName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ datasetName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDatasetName() {
+ datasetName_ = getDefaultInstance().getDatasetName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for datasetName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatasetNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ datasetName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.VertexMultimodalDatasetSource)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.VertexMultimodalDatasetSource)
+ private static final com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource();
+ }
+
+ public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The datasetName.
+ */
+ java.lang.String getDatasetName();
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for datasetName.
+ */
+ com.google.protobuf.ByteString getDatasetNameBytes();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java
index cdff9015a01f..f4e8524da860 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java
@@ -173,6 +173,26 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_;
}
+ public static final int FPS_FIELD_NUMBER = 3;
+ private double fps_ = 0D;
+
+ /**
+ *
+ *
+ *
+ * Optional. The frame rate of the video sent to the model. If not specified,
+ * the default value is 1.0. The valid range is (0.0, 24.0].
+ *
+ *
+ * double fps = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The fps.
+ */
+ @java.lang.Override
+ public double getFps() {
+ return fps_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -193,6 +213,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getEndOffset());
}
+ if (java.lang.Double.doubleToRawLongBits(fps_) != 0) {
+ output.writeDouble(3, fps_);
+ }
getUnknownFields().writeTo(output);
}
@@ -208,6 +231,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndOffset());
}
+ if (java.lang.Double.doubleToRawLongBits(fps_) != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, fps_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -232,6 +258,8 @@ public boolean equals(final java.lang.Object obj) {
if (hasEndOffset()) {
if (!getEndOffset().equals(other.getEndOffset())) return false;
}
+ if (java.lang.Double.doubleToLongBits(getFps())
+ != java.lang.Double.doubleToLongBits(other.getFps())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -251,6 +279,10 @@ public int hashCode() {
hash = (37 * hash) + END_OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getEndOffset().hashCode();
}
+ hash = (37 * hash) + FPS_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getFps()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -411,6 +443,7 @@ public Builder clear() {
endOffsetBuilder_.dispose();
endOffsetBuilder_ = null;
}
+ fps_ = 0D;
return this;
}
@@ -457,6 +490,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.VideoMetadata result)
result.endOffset_ = endOffsetBuilder_ == null ? endOffset_ : endOffsetBuilder_.build();
to_bitField0_ |= 0x00000002;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.fps_ = fps_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -478,6 +514,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.VideoMetadata other) {
if (other.hasEndOffset()) {
mergeEndOffset(other.getEndOffset());
}
+ if (java.lang.Double.doubleToRawLongBits(other.getFps()) != 0) {
+ setFps(other.getFps());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -518,6 +557,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 25:
+ {
+ fps_ = input.readDouble();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 25
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -939,6 +984,65 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
return endOffsetBuilder_;
}
+ private double fps_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The frame rate of the video sent to the model. If not specified,
+ * the default value is 1.0. The valid range is (0.0, 24.0].
+ *
+ *
+ * double fps = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The fps.
+ */
+ @java.lang.Override
+ public double getFps() {
+ return fps_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The frame rate of the video sent to the model. If not specified,
+ * the default value is 1.0. The valid range is (0.0, 24.0].
+ *
+ *
+ * double fps = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The fps to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFps(double value) {
+
+ fps_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The frame rate of the video sent to the model. If not specified,
+ * the default value is 1.0. The valid range is (0.0, 24.0].
+ *
+ *
+ * double fps = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFps() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ fps_ = 0D;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.VideoMetadata)
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java
index f17652609962..8945b1f74515 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java
@@ -105,4 +105,18 @@ public interface VideoMetadataOrBuilder
*
*/
com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. The frame rate of the video sent to the model. If not specified,
+ * the default value is 1.0. The valid range is (0.0, 24.0].
+ *
+ *
+ * double fps = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The fps.
+ */
+ double getFps();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto
index 69723896fe20..5b4258e1fd14 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.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.
@@ -67,6 +67,10 @@ message BatchPredictionJob {
// additional columns that are not described by the schema, and they will
// be ignored.
BigQuerySource bigquery_source = 3;
+
+ // A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ // are supported.
+ VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
}
// Required. The format in which instances are given, must be one of the
@@ -226,6 +230,11 @@ message BatchPredictionJob {
// has [google.rpc.Status][google.rpc.Status]
// represented as a STRUCT, and containing only `code` and `message`.
BigQueryDestination bigquery_destination = 3;
+
+ // The details for a Vertex Multimodal Dataset that will be created for
+ // the output.
+ VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination =
+ 6;
}
// Required. The format in which Vertex AI gives the predictions, must be
@@ -250,6 +259,16 @@ message BatchPredictionJob {
// format, into which the prediction output is written.
string bigquery_output_dataset = 2
[(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The resource name of the Vertex Managed Dataset created,
+ // into which the prediction output is written. Format:
+ // `projects/{project}/locations/{location}/datasets/{dataset}`
+ string vertex_multimodal_dataset_name = 5 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/Dataset"
+ }
+ ];
}
// Output only. The name of the BigQuery table created, in
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
index 55041862d78c..fc656beea9b4 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.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.
@@ -108,6 +108,33 @@ message Content {
// A `Part` must have a fixed IANA MIME type identifying the type and subtype
// of the media if `inline_data` or `file_data` field is filled with raw bytes.
message Part {
+ // per part media resolution.
+ // Media resolution for the input media.
+ message MediaResolution {
+ // The media resolution level.
+ enum Level {
+ // Media resolution has not been set.
+ MEDIA_RESOLUTION_UNSPECIFIED = 0;
+
+ // Media resolution set to low.
+ MEDIA_RESOLUTION_LOW = 1;
+
+ // Media resolution set to medium.
+ MEDIA_RESOLUTION_MEDIUM = 2;
+
+ // Media resolution set to high.
+ MEDIA_RESOLUTION_HIGH = 3;
+
+ // Media resolution set to ultra high. This is for image only.
+ MEDIA_RESOLUTION_ULTRA_HIGH = 4;
+ }
+
+ oneof value {
+ // The tokenization quality used for given media.
+ Level level = 1;
+ }
+ }
+
oneof data {
// Optional. Text part (can be code).
string text = 1 [(google.api.field_behavior) = OPTIONAL];
@@ -150,6 +177,10 @@ message Part {
// video data is presented in inline_data or file_data.
VideoMetadata video_metadata = 4 [(google.api.field_behavior) = OPTIONAL];
}
+
+ // per part media resolution.
+ // Media resolution for the input media.
+ MediaResolution media_resolution = 12;
}
// Content blob.
@@ -182,6 +213,10 @@ message VideoMetadata {
// Optional. The end offset of the video.
google.protobuf.Duration end_offset = 2
[(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The frame rate of the video sent to the model. If not specified,
+ // the default value is 1.0. The valid range is (0.0, 24.0].
+ double fps = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Configuration for a prebuilt voice.
@@ -202,7 +237,6 @@ message ReplicatedVoiceConfig {
bytes voice_sample_audio = 2 [(google.api.field_behavior) = OPTIONAL];
}
-
// Configuration for a voice.
message VoiceConfig {
// The configuration for the speaker to use.
@@ -250,6 +284,37 @@ message SpeechConfig {
// Config for image generation features.
message ImageConfig {
+ // The image output format for generated images.
+ message ImageOutputOptions {
+ // Optional. The image format that the output should be saved as.
+ optional string mime_type = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The compression quality of the output image.
+ optional int32 compression_quality = 2
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Enum for controlling the generation of people in images.
+ enum PersonGeneration {
+ // The default behavior is unspecified. The model will decide whether to
+ // generate images of people.
+ PERSON_GENERATION_UNSPECIFIED = 0;
+
+ // Allows the model to generate images of people, including adults and
+ // children.
+ ALLOW_ALL = 1;
+
+ // Allows the model to generate images of adults, but not children.
+ ALLOW_ADULT = 2;
+
+ // Prevents the model from generating images of people.
+ ALLOW_NONE = 3;
+ }
+
+ // Optional. The image output format for generated images.
+ optional ImageOutputOptions image_output_options = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
// Optional. The desired aspect ratio for the generated images. The following
// aspect ratios are supported:
//
@@ -260,6 +325,14 @@ message ImageConfig {
// "9:16", "16:9"
// "21:9"
optional string aspect_ratio = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Controls whether the model can generate people.
+ optional PersonGeneration person_generation = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies the size of generated images. Supported values are
+ // `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ optional string image_size = 4 [(google.api.field_behavior) = OPTIONAL];
}
// Generation config.
@@ -308,6 +381,24 @@ message GenerationConfig {
// Config for thinking features.
message ThinkingConfig {
+ // The thinking level for the model.
+ enum ThinkingLevel {
+ // Unspecified thinking level.
+ THINKING_LEVEL_UNSPECIFIED = 0;
+
+ // Low thinking level.
+ LOW = 1;
+
+ // Medium thinking level.
+ MEDIUM = 2;
+
+ // High thinking level.
+ HIGH = 3;
+
+ // MINIMAL thinking level.
+ MINIMAL = 4;
+ }
+
// Indicates whether to include thoughts in the response.
// If true, thoughts are returned only when available.
optional bool include_thoughts = 1 [(google.api.field_behavior) = OPTIONAL];
@@ -315,6 +406,40 @@ message GenerationConfig {
// Optional. Indicates the thinking budget in tokens.
// This is only applied when enable_thinking is true.
optional int32 thinking_budget = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The number of thoughts tokens that the model should generate.
+ optional ThinkingLevel thinking_level = 4
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // The modalities of the response.
+ enum Modality {
+ // Unspecified modality. Will be processed as text.
+ MODALITY_UNSPECIFIED = 0;
+
+ // Text modality.
+ TEXT = 1;
+
+ // Image modality.
+ IMAGE = 2;
+
+ // Audio modality.
+ AUDIO = 3;
+ }
+
+ // Media resolution for the input media.
+ enum MediaResolution {
+ // Media resolution has not been set.
+ MEDIA_RESOLUTION_UNSPECIFIED = 0;
+
+ // Media resolution set to low (64 tokens).
+ MEDIA_RESOLUTION_LOW = 1;
+
+ // Media resolution set to medium (256 tokens).
+ MEDIA_RESOLUTION_MEDIUM = 2;
+
+ // Media resolution set to high (zoomed reframing with 256 tokens).
+ MEDIA_RESOLUTION_HIGH = 3;
}
// Optional. Controls the randomness of predictions.
@@ -411,6 +536,27 @@ message GenerationConfig {
optional RoutingConfig routing_config = 17
[(google.api.field_behavior) = OPTIONAL];
+ // Optional. If enabled, audio timestamps will be included in the request to
+ // the model. This can be useful for synchronizing audio with other modalities
+ // in the response.
+ optional bool audio_timestamp = 20 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The modalities of the response. The model will generate a
+ // response that includes all the specified modalities. For example, if this
+ // is set to `[TEXT, IMAGE]`, the response will include both text and an
+ // image.
+ repeated Modality response_modalities = 21
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The token resolution at which input media content is sampled.
+ // This is used to control the trade-off between the quality of the response
+ // and the number of tokens used to represent the media. A higher resolution
+ // allows the model to perceive more detail, which can lead to a more nuanced
+ // response, but it will also use more tokens. This does not affect the
+ // image dimensions sent to the model.
+ optional MediaResolution media_resolution = 22
+ [(google.api.field_behavior) = OPTIONAL];
+
// Optional. The speech generation config.
optional SpeechConfig speech_config = 23
[(google.api.field_behavior) = OPTIONAL];
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto
index 9a6b7f607f72..a515e4b64185 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.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.
@@ -40,9 +40,14 @@ message Dataset {
};
// Output only. Identifier. The resource name of the Dataset.
+ // Format:
+ // `projects/{project}/locations/{location}/datasets/{dataset}`
string name = 1 [
(google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.field_behavior) = IDENTIFIER
+ (google.api.field_behavior) = IDENTIFIER,
+ (google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/Dataset"
+ }
];
// Required. The user-defined name of the Dataset.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto
index e234e3ba6ff6..6fa941371b14 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_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.
@@ -259,9 +259,7 @@ service DatasetService {
option (google.api.method_signature) = "name";
}
- // Lists Annotations belongs to a dataitem
- // This RPC is only available in InternalDatasetService. It is only used for
- // exporting conversation data to CCAI Insights.
+ // Lists Annotations belongs to a dataitem.
rpc ListAnnotations(ListAnnotationsRequest)
returns (ListAnnotationsResponse) {
option (google.api.http) = {
@@ -296,7 +294,6 @@ message CreateDatasetOperationMetadata {
// Request message for
// [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset].
-// Next ID: 4
message GetDatasetRequest {
// Required. The name of the Dataset resource.
string name = 1 [
@@ -528,7 +525,6 @@ message DeleteDatasetVersionRequest {
// Request message for
// [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion].
-// Next ID: 4
message GetDatasetVersionRequest {
// Required. The resource name of the Dataset version to delete.
// Format:
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto
index 0998c614fa5f..226c2f2afc79 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.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.
@@ -37,9 +37,14 @@ message DatasetVersion {
};
// Output only. Identifier. The resource name of the DatasetVersion.
+ // Format:
+ // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
string name = 1 [
(google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.field_behavior) = IDENTIFIER
+ (google.api.field_behavior) = IDENTIFIER,
+ (google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/DatasetVersion"
+ }
];
// Output only. Timestamp when this DatasetVersion was created.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.proto
index 19dfba1aad52..70b1b9df4356 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.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.
@@ -17,6 +17,7 @@ syntax = "proto3";
package google.cloud.aiplatform.v1;
import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
import "google/cloud/aiplatform/v1/api_auth.proto";
import "google/protobuf/timestamp.proto";
@@ -82,6 +83,30 @@ message BigQueryDestination {
string output_uri = 1 [(google.api.field_behavior) = REQUIRED];
}
+// The Vertex Multimodal Dataset for the input content.
+message VertexMultimodalDatasetSource {
+ // Required. The resource name of the Vertex Dataset.
+ // Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ string dataset_name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/Dataset"
+ }
+ ];
+}
+
+// The details for a Vertex Multimodal Dataset output.
+message VertexMultimodalDatasetDestination {
+ // Optional. The destination of the underlying BigQuery table that will be
+ // created for the output Multimodal Dataset. If not specified, the BigQuery
+ // table will be created in a default BigQuery dataset.
+ BigQueryDestination bigquery_destination = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Display name of the output dataset.
+ string display_name = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
// The storage details for CSV output content.
message CsvDestination {
// Required. Google Cloud Storage location.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java
index 35027526d5ab..d133761d7b30 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java
@@ -185,6 +185,54 @@ public interface InputConfigOrBuilder
*/
com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder();
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetSource field is set.
+ */
+ boolean hasVertexMultimodalDatasetSource();
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ *
+ * @return The vertexMultimodalDatasetSource.
+ */
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource
+ getVertexMultimodalDatasetSource();
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSourceOrBuilder
+ getVertexMultimodalDatasetSourceOrBuilder();
+
/**
*
*
@@ -283,6 +331,7 @@ public enum SourceCase
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
GCS_SOURCE(2),
BIGQUERY_SOURCE(3),
+ VERTEX_MULTIMODAL_DATASET_SOURCE(4),
SOURCE_NOT_SET(0);
private final int value;
@@ -306,6 +355,8 @@ public static SourceCase forNumber(int value) {
return GCS_SOURCE;
case 3:
return BIGQUERY_SOURCE;
+ case 4:
+ return VERTEX_MULTIMODAL_DATASET_SOURCE;
case 0:
return SOURCE_NOT_SET;
default:
@@ -443,6 +494,71 @@ public com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigquerySource() {
return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance();
}
+ public static final int VERTEX_MULTIMODAL_DATASET_SOURCE_FIELD_NUMBER = 4;
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasVertexMultimodalDatasetSource() {
+ return sourceCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ *
+ * @return The vertexMultimodalDatasetSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource
+ getVertexMultimodalDatasetSource() {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSourceOrBuilder
+ getVertexMultimodalDatasetSourceOrBuilder() {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.getDefaultInstance();
+ }
+
public static final int INSTANCES_FORMAT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -523,6 +639,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (sourceCase_ == 3) {
output.writeMessage(3, (com.google.cloud.aiplatform.v1beta1.BigQuerySource) source_);
}
+ if (sourceCase_ == 4) {
+ output.writeMessage(
+ 4, (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_);
+ }
getUnknownFields().writeTo(output);
}
@@ -545,6 +665,11 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, (com.google.cloud.aiplatform.v1beta1.BigQuerySource) source_);
}
+ if (sourceCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -570,6 +695,10 @@ public boolean equals(final java.lang.Object obj) {
case 3:
if (!getBigquerySource().equals(other.getBigquerySource())) return false;
break;
+ case 4:
+ if (!getVertexMultimodalDatasetSource().equals(other.getVertexMultimodalDatasetSource()))
+ return false;
+ break;
case 0:
default:
}
@@ -595,6 +724,10 @@ public int hashCode() {
hash = (37 * hash) + BIGQUERY_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getBigquerySource().hashCode();
break;
+ case 4:
+ hash = (37 * hash) + VERTEX_MULTIMODAL_DATASET_SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getVertexMultimodalDatasetSource().hashCode();
+ break;
case 0:
default:
}
@@ -752,6 +885,9 @@ public Builder clear() {
if (bigquerySourceBuilder_ != null) {
bigquerySourceBuilder_.clear();
}
+ if (vertexMultimodalDatasetSourceBuilder_ != null) {
+ vertexMultimodalDatasetSourceBuilder_.clear();
+ }
instancesFormat_ = "";
sourceCase_ = 0;
source_ = null;
@@ -795,7 +931,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig buildP
private void buildPartial0(
com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000004) != 0)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
result.instancesFormat_ = instancesFormat_;
}
}
@@ -810,6 +946,9 @@ private void buildPartialOneofs(
if (sourceCase_ == 3 && bigquerySourceBuilder_ != null) {
result.source_ = bigquerySourceBuilder_.build();
}
+ if (sourceCase_ == 4 && vertexMultimodalDatasetSourceBuilder_ != null) {
+ result.source_ = vertexMultimodalDatasetSourceBuilder_.build();
+ }
}
@java.lang.Override
@@ -830,7 +969,7 @@ public Builder mergeFrom(
.getDefaultInstance()) return this;
if (!other.getInstancesFormat().isEmpty()) {
instancesFormat_ = other.instancesFormat_;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
}
switch (other.getSourceCase()) {
@@ -844,6 +983,11 @@ public Builder mergeFrom(
mergeBigquerySource(other.getBigquerySource());
break;
}
+ case VERTEX_MULTIMODAL_DATASET_SOURCE:
+ {
+ mergeVertexMultimodalDatasetSource(other.getVertexMultimodalDatasetSource());
+ break;
+ }
case SOURCE_NOT_SET:
{
break;
@@ -878,7 +1022,7 @@ public Builder mergeFrom(
case 10:
{
instancesFormat_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
break;
} // case 10
case 18:
@@ -895,6 +1039,14 @@ public Builder mergeFrom(
sourceCase_ = 3;
break;
} // case 26
+ case 34:
+ {
+ input.readMessage(
+ internalGetVertexMultimodalDatasetSourceFieldBuilder().getBuilder(),
+ extensionRegistry);
+ sourceCase_ = 4;
+ break;
+ } // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1402,6 +1554,264 @@ public com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder getBigquerySou
return bigquerySourceBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource,
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.Builder,
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSourceOrBuilder>
+ vertexMultimodalDatasetSourceBuilder_;
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasVertexMultimodalDatasetSource() {
+ return sourceCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ *
+ * @return The vertexMultimodalDatasetSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource
+ getVertexMultimodalDatasetSource() {
+ if (vertexMultimodalDatasetSourceBuilder_ == null) {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource
+ .getDefaultInstance();
+ } else {
+ if (sourceCase_ == 4) {
+ return vertexMultimodalDatasetSourceBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ public Builder setVertexMultimodalDatasetSource(
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource value) {
+ if (vertexMultimodalDatasetSourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ onChanged();
+ } else {
+ vertexMultimodalDatasetSourceBuilder_.setMessage(value);
+ }
+ sourceCase_ = 4;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ public Builder setVertexMultimodalDatasetSource(
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.Builder
+ builderForValue) {
+ if (vertexMultimodalDatasetSourceBuilder_ == null) {
+ source_ = builderForValue.build();
+ onChanged();
+ } else {
+ vertexMultimodalDatasetSourceBuilder_.setMessage(builderForValue.build());
+ }
+ sourceCase_ = 4;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ public Builder mergeVertexMultimodalDatasetSource(
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource value) {
+ if (vertexMultimodalDatasetSourceBuilder_ == null) {
+ if (sourceCase_ == 4
+ && source_
+ != com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource
+ .getDefaultInstance()) {
+ source_ =
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.newBuilder(
+ (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ source_ = value;
+ }
+ onChanged();
+ } else {
+ if (sourceCase_ == 4) {
+ vertexMultimodalDatasetSourceBuilder_.mergeFrom(value);
+ } else {
+ vertexMultimodalDatasetSourceBuilder_.setMessage(value);
+ }
+ }
+ sourceCase_ = 4;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ public Builder clearVertexMultimodalDatasetSource() {
+ if (vertexMultimodalDatasetSourceBuilder_ == null) {
+ if (sourceCase_ == 4) {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ }
+ } else {
+ if (sourceCase_ == 4) {
+ sourceCase_ = 0;
+ source_ = null;
+ }
+ vertexMultimodalDatasetSourceBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.Builder
+ getVertexMultimodalDatasetSourceBuilder() {
+ return internalGetVertexMultimodalDatasetSourceFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSourceOrBuilder
+ getVertexMultimodalDatasetSourceOrBuilder() {
+ if ((sourceCase_ == 4) && (vertexMultimodalDatasetSourceBuilder_ != null)) {
+ return vertexMultimodalDatasetSourceBuilder_.getMessageOrBuilder();
+ } else {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ * are supported.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource,
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.Builder,
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSourceOrBuilder>
+ internalGetVertexMultimodalDatasetSourceFieldBuilder() {
+ if (vertexMultimodalDatasetSourceBuilder_ == null) {
+ if (!(sourceCase_ == 4)) {
+ source_ =
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource
+ .getDefaultInstance();
+ }
+ vertexMultimodalDatasetSourceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource,
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.Builder,
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSourceOrBuilder>(
+ (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_,
+ getParentForChildren(),
+ isClean());
+ source_ = null;
+ }
+ sourceCase_ = 4;
+ onChanged();
+ return vertexMultimodalDatasetSourceBuilder_;
+ }
+
private java.lang.Object instancesFormat_ = "";
/**
@@ -1473,7 +1883,7 @@ public Builder setInstancesFormat(java.lang.String value) {
throw new NullPointerException();
}
instancesFormat_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1493,7 +1903,7 @@ public Builder setInstancesFormat(java.lang.String value) {
*/
public Builder clearInstancesFormat() {
instancesFormat_ = getDefaultInstance().getInstancesFormat();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1518,7 +1928,7 @@ public Builder setInstancesFormatBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
instancesFormat_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -4248,17 +4658,65 @@ public interface OutputConfigOrBuilder
*
*
*
- * Required. The format in which Vertex AI gives the predictions, must be
- * one of the
- * [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model]
- * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
*
*
- * string predictions_format = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
*
- * @return The predictionsFormat.
+ * @return Whether the vertexMultimodalDatasetDestination field is set.
*/
- java.lang.String getPredictionsFormat();
+ boolean hasVertexMultimodalDatasetDestination();
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ *
+ * @return The vertexMultimodalDatasetDestination.
+ */
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination
+ getVertexMultimodalDatasetDestination();
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestinationOrBuilder
+ getVertexMultimodalDatasetDestinationOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Required. The format in which Vertex AI gives the predictions, must be
+ * one of the
+ * [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model]
+ * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
+ *
+ *
+ * string predictions_format = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The predictionsFormat.
+ */
+ java.lang.String getPredictionsFormat();
/**
*
@@ -4345,6 +4803,7 @@ public enum DestinationCase
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
GCS_DESTINATION(2),
BIGQUERY_DESTINATION(3),
+ VERTEX_MULTIMODAL_DATASET_DESTINATION(6),
DESTINATION_NOT_SET(0);
private final int value;
@@ -4368,6 +4827,8 @@ public static DestinationCase forNumber(int value) {
return GCS_DESTINATION;
case 3:
return BIGQUERY_DESTINATION;
+ case 6:
+ return VERTEX_MULTIMODAL_DATASET_DESTINATION;
case 0:
return DESTINATION_NOT_SET;
default:
@@ -4614,6 +5075,75 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestin
return com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance();
}
+ public static final int VERTEX_MULTIMODAL_DATASET_DESTINATION_FIELD_NUMBER = 6;
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetDestination field is set.
+ */
+ @java.lang.Override
+ public boolean hasVertexMultimodalDatasetDestination() {
+ return destinationCase_ == 6;
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ *
+ * @return The vertexMultimodalDatasetDestination.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination
+ getVertexMultimodalDatasetDestination() {
+ if (destinationCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination)
+ destination_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination
+ .getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestinationOrBuilder
+ getVertexMultimodalDatasetDestinationOrBuilder() {
+ if (destinationCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination)
+ destination_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination
+ .getDefaultInstance();
+ }
+
public static final int PREDICTIONS_FORMAT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -4697,6 +5227,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeMessage(
3, (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_);
}
+ if (destinationCase_ == 6) {
+ output.writeMessage(
+ 6,
+ (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) destination_);
+ }
getUnknownFields().writeTo(output);
}
@@ -4719,6 +5254,13 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_);
}
+ if (destinationCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 6,
+ (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination)
+ destination_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -4744,6 +5286,10 @@ public boolean equals(final java.lang.Object obj) {
case 3:
if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false;
break;
+ case 6:
+ if (!getVertexMultimodalDatasetDestination()
+ .equals(other.getVertexMultimodalDatasetDestination())) return false;
+ break;
case 0:
default:
}
@@ -4769,6 +5315,10 @@ public int hashCode() {
hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER;
hash = (53 * hash) + getBigqueryDestination().hashCode();
break;
+ case 6:
+ hash = (37 * hash) + VERTEX_MULTIMODAL_DATASET_DESTINATION_FIELD_NUMBER;
+ hash = (53 * hash) + getVertexMultimodalDatasetDestination().hashCode();
+ break;
case 0:
default:
}
@@ -4926,6 +5476,9 @@ public Builder clear() {
if (bigqueryDestinationBuilder_ != null) {
bigqueryDestinationBuilder_.clear();
}
+ if (vertexMultimodalDatasetDestinationBuilder_ != null) {
+ vertexMultimodalDatasetDestinationBuilder_.clear();
+ }
predictionsFormat_ = "";
destinationCase_ = 0;
destination_ = null;
@@ -4969,7 +5522,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig build
private void buildPartial0(
com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000004) != 0)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
result.predictionsFormat_ = predictionsFormat_;
}
}
@@ -4984,6 +5537,9 @@ private void buildPartialOneofs(
if (destinationCase_ == 3 && bigqueryDestinationBuilder_ != null) {
result.destination_ = bigqueryDestinationBuilder_.build();
}
+ if (destinationCase_ == 6 && vertexMultimodalDatasetDestinationBuilder_ != null) {
+ result.destination_ = vertexMultimodalDatasetDestinationBuilder_.build();
+ }
}
@java.lang.Override
@@ -5004,7 +5560,7 @@ public Builder mergeFrom(
.getDefaultInstance()) return this;
if (!other.getPredictionsFormat().isEmpty()) {
predictionsFormat_ = other.predictionsFormat_;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
}
switch (other.getDestinationCase()) {
@@ -5018,6 +5574,12 @@ public Builder mergeFrom(
mergeBigqueryDestination(other.getBigqueryDestination());
break;
}
+ case VERTEX_MULTIMODAL_DATASET_DESTINATION:
+ {
+ mergeVertexMultimodalDatasetDestination(
+ other.getVertexMultimodalDatasetDestination());
+ break;
+ }
case DESTINATION_NOT_SET:
{
break;
@@ -5052,7 +5614,7 @@ public Builder mergeFrom(
case 10:
{
predictionsFormat_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
break;
} // case 10
case 18:
@@ -5069,6 +5631,14 @@ public Builder mergeFrom(
destinationCase_ = 3;
break;
} // case 26
+ case 50:
+ {
+ input.readMessage(
+ internalGetVertexMultimodalDatasetDestinationFieldBuilder().getBuilder(),
+ extensionRegistry);
+ destinationCase_ = 6;
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -5906,6 +6476,268 @@ public Builder clearBigqueryDestination() {
return bigqueryDestinationBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination,
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.Builder,
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestinationOrBuilder>
+ vertexMultimodalDatasetDestinationBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetDestination field is set.
+ */
+ @java.lang.Override
+ public boolean hasVertexMultimodalDatasetDestination() {
+ return destinationCase_ == 6;
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ *
+ * @return The vertexMultimodalDatasetDestination.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination
+ getVertexMultimodalDatasetDestination() {
+ if (vertexMultimodalDatasetDestinationBuilder_ == null) {
+ if (destinationCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination)
+ destination_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination
+ .getDefaultInstance();
+ } else {
+ if (destinationCase_ == 6) {
+ return vertexMultimodalDatasetDestinationBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ public Builder setVertexMultimodalDatasetDestination(
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination value) {
+ if (vertexMultimodalDatasetDestinationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ destination_ = value;
+ onChanged();
+ } else {
+ vertexMultimodalDatasetDestinationBuilder_.setMessage(value);
+ }
+ destinationCase_ = 6;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ public Builder setVertexMultimodalDatasetDestination(
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.Builder
+ builderForValue) {
+ if (vertexMultimodalDatasetDestinationBuilder_ == null) {
+ destination_ = builderForValue.build();
+ onChanged();
+ } else {
+ vertexMultimodalDatasetDestinationBuilder_.setMessage(builderForValue.build());
+ }
+ destinationCase_ = 6;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ public Builder mergeVertexMultimodalDatasetDestination(
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination value) {
+ if (vertexMultimodalDatasetDestinationBuilder_ == null) {
+ if (destinationCase_ == 6
+ && destination_
+ != com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination
+ .getDefaultInstance()) {
+ destination_ =
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.newBuilder(
+ (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination)
+ destination_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ destination_ = value;
+ }
+ onChanged();
+ } else {
+ if (destinationCase_ == 6) {
+ vertexMultimodalDatasetDestinationBuilder_.mergeFrom(value);
+ } else {
+ vertexMultimodalDatasetDestinationBuilder_.setMessage(value);
+ }
+ }
+ destinationCase_ = 6;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ public Builder clearVertexMultimodalDatasetDestination() {
+ if (vertexMultimodalDatasetDestinationBuilder_ == null) {
+ if (destinationCase_ == 6) {
+ destinationCase_ = 0;
+ destination_ = null;
+ onChanged();
+ }
+ } else {
+ if (destinationCase_ == 6) {
+ destinationCase_ = 0;
+ destination_ = null;
+ }
+ vertexMultimodalDatasetDestinationBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.Builder
+ getVertexMultimodalDatasetDestinationBuilder() {
+ return internalGetVertexMultimodalDatasetDestinationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestinationOrBuilder
+ getVertexMultimodalDatasetDestinationOrBuilder() {
+ if ((destinationCase_ == 6) && (vertexMultimodalDatasetDestinationBuilder_ != null)) {
+ return vertexMultimodalDatasetDestinationBuilder_.getMessageOrBuilder();
+ } else {
+ if (destinationCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination)
+ destination_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset that will be created for
+ * the output.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination,
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.Builder,
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestinationOrBuilder>
+ internalGetVertexMultimodalDatasetDestinationFieldBuilder() {
+ if (vertexMultimodalDatasetDestinationBuilder_ == null) {
+ if (!(destinationCase_ == 6)) {
+ destination_ =
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination
+ .getDefaultInstance();
+ }
+ vertexMultimodalDatasetDestinationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination,
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.Builder,
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestinationOrBuilder>(
+ (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination)
+ destination_,
+ getParentForChildren(),
+ isClean());
+ destination_ = null;
+ }
+ destinationCase_ = 6;
+ onChanged();
+ return vertexMultimodalDatasetDestinationBuilder_;
+ }
+
private java.lang.Object predictionsFormat_ = "";
/**
@@ -5980,7 +6812,7 @@ public Builder setPredictionsFormat(java.lang.String value) {
throw new NullPointerException();
}
predictionsFormat_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -6001,7 +6833,7 @@ public Builder setPredictionsFormat(java.lang.String value) {
*/
public Builder clearPredictionsFormat() {
predictionsFormat_ = getDefaultInstance().getPredictionsFormat();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -6027,7 +6859,7 @@ public Builder setPredictionsFormatBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
predictionsFormat_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -6179,6 +7011,57 @@ public interface OutputInfoOrBuilder
*/
com.google.protobuf.ByteString getBigqueryOutputDatasetBytes();
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetName field is set.
+ */
+ boolean hasVertexMultimodalDatasetName();
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The vertexMultimodalDatasetName.
+ */
+ java.lang.String getVertexMultimodalDatasetName();
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for vertexMultimodalDatasetName.
+ */
+ com.google.protobuf.ByteString getVertexMultimodalDatasetNameBytes();
+
/**
*
*
@@ -6277,6 +7160,7 @@ public enum OutputLocationCase
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
GCS_OUTPUT_DIRECTORY(1),
BIGQUERY_OUTPUT_DATASET(2),
+ VERTEX_MULTIMODAL_DATASET_NAME(5),
OUTPUTLOCATION_NOT_SET(0);
private final int value;
@@ -6300,6 +7184,8 @@ public static OutputLocationCase forNumber(int value) {
return GCS_OUTPUT_DIRECTORY;
case 2:
return BIGQUERY_OUTPUT_DATASET;
+ case 5:
+ return VERTEX_MULTIMODAL_DATASET_NAME;
case 0:
return OUTPUTLOCATION_NOT_SET;
default:
@@ -6471,6 +7357,91 @@ public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() {
}
}
+ public static final int VERTEX_MULTIMODAL_DATASET_NAME_FIELD_NUMBER = 5;
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetName field is set.
+ */
+ public boolean hasVertexMultimodalDatasetName() {
+ return outputLocationCase_ == 5;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The vertexMultimodalDatasetName.
+ */
+ public java.lang.String getVertexMultimodalDatasetName() {
+ java.lang.Object ref = "";
+ if (outputLocationCase_ == 5) {
+ ref = outputLocation_;
+ }
+ 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 (outputLocationCase_ == 5) {
+ outputLocation_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for vertexMultimodalDatasetName.
+ */
+ public com.google.protobuf.ByteString getVertexMultimodalDatasetNameBytes() {
+ java.lang.Object ref = "";
+ if (outputLocationCase_ == 5) {
+ ref = outputLocation_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (outputLocationCase_ == 5) {
+ outputLocation_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int BIGQUERY_OUTPUT_TABLE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
@@ -6553,6 +7524,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bigqueryOutputTable_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, bigqueryOutputTable_);
}
+ if (outputLocationCase_ == 5) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, outputLocation_);
+ }
getUnknownFields().writeTo(output);
}
@@ -6571,6 +7545,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bigqueryOutputTable_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(4, bigqueryOutputTable_);
}
+ if (outputLocationCase_ == 5) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, outputLocation_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -6596,6 +7573,10 @@ public boolean equals(final java.lang.Object obj) {
case 2:
if (!getBigqueryOutputDataset().equals(other.getBigqueryOutputDataset())) return false;
break;
+ case 5:
+ if (!getVertexMultimodalDatasetName().equals(other.getVertexMultimodalDatasetName()))
+ return false;
+ break;
case 0:
default:
}
@@ -6621,6 +7602,10 @@ public int hashCode() {
hash = (37 * hash) + BIGQUERY_OUTPUT_DATASET_FIELD_NUMBER;
hash = (53 * hash) + getBigqueryOutputDataset().hashCode();
break;
+ case 5:
+ hash = (37 * hash) + VERTEX_MULTIMODAL_DATASET_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getVertexMultimodalDatasetName().hashCode();
+ break;
case 0:
default:
}
@@ -6812,7 +7797,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo buildPa
private void buildPartial0(
com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000004) != 0)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
result.bigqueryOutputTable_ = bigqueryOutputTable_;
}
}
@@ -6841,7 +7826,7 @@ public Builder mergeFrom(
.getDefaultInstance()) return this;
if (!other.getBigqueryOutputTable().isEmpty()) {
bigqueryOutputTable_ = other.bigqueryOutputTable_;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
}
switch (other.getOutputLocationCase()) {
@@ -6859,6 +7844,13 @@ public Builder mergeFrom(
onChanged();
break;
}
+ case VERTEX_MULTIMODAL_DATASET_NAME:
+ {
+ outputLocationCase_ = 5;
+ outputLocation_ = other.outputLocation_;
+ onChanged();
+ break;
+ }
case OUTPUTLOCATION_NOT_SET:
{
break;
@@ -6907,9 +7899,16 @@ public Builder mergeFrom(
case 34:
{
bigqueryOutputTable_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
break;
} // case 34
+ case 42:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ outputLocationCase_ = 5;
+ outputLocation_ = s;
+ break;
+ } // case 42
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -7245,6 +8244,169 @@ public Builder setBigqueryOutputDatasetBytes(com.google.protobuf.ByteString valu
return this;
}
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the vertexMultimodalDatasetName field is set.
+ */
+ @java.lang.Override
+ public boolean hasVertexMultimodalDatasetName() {
+ return outputLocationCase_ == 5;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The vertexMultimodalDatasetName.
+ */
+ @java.lang.Override
+ public java.lang.String getVertexMultimodalDatasetName() {
+ java.lang.Object ref = "";
+ if (outputLocationCase_ == 5) {
+ ref = outputLocation_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (outputLocationCase_ == 5) {
+ outputLocation_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for vertexMultimodalDatasetName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVertexMultimodalDatasetNameBytes() {
+ java.lang.Object ref = "";
+ if (outputLocationCase_ == 5) {
+ ref = outputLocation_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (outputLocationCase_ == 5) {
+ outputLocation_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The vertexMultimodalDatasetName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVertexMultimodalDatasetName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ outputLocationCase_ = 5;
+ outputLocation_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVertexMultimodalDatasetName() {
+ if (outputLocationCase_ == 5) {
+ outputLocationCase_ = 0;
+ outputLocation_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the Vertex Managed Dataset created,
+ * into which the prediction output is written. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for vertexMultimodalDatasetName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVertexMultimodalDatasetNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ outputLocationCase_ = 5;
+ outputLocation_ = value;
+ onChanged();
+ return this;
+ }
+
private java.lang.Object bigqueryOutputTable_ = "";
/**
@@ -7319,7 +8481,7 @@ public Builder setBigqueryOutputTable(java.lang.String value) {
throw new NullPointerException();
}
bigqueryOutputTable_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -7340,7 +8502,7 @@ public Builder setBigqueryOutputTable(java.lang.String value) {
*/
public Builder clearBigqueryOutputTable() {
bigqueryOutputTable_ = getDefaultInstance().getBigqueryOutputTable();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -7366,7 +8528,7 @@ public Builder setBigqueryOutputTableBytes(com.google.protobuf.ByteString value)
}
checkByteStringIsUtf8(value);
bigqueryOutputTable_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java
index 0b92a40ac8f1..f310806ee5b5 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java
@@ -85,7 +85,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "1beta1/model_deployment_monitoring_job.proto\0326google/cloud/aiplatform/v1beta1/mo"
+ "del_monitoring.proto\032?google/cloud/aiplatform/v1beta1/unmanaged_container_model."
+ "proto\032\034google/protobuf/struct.proto\032\037goo"
- + "gle/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\305\026\n"
+ + "gle/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\374\030\n"
+ "\022BatchPredictionJob\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\003\022\031\n"
+ "\014display_name\030\002 \001(\tB\003\340A\002\0223\n"
@@ -135,40 +135,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\027model_monitoring_status\030 \001(\0132\022.google.rpc.StatusB\003\340A\003\022!\n"
+ "\031disable_container_logging\030\" \001(\010\022\032\n\r"
+ "satisfies_pzs\030$ \001(\010B\003\340A\003\022\032\n\r"
- + "satisfies_pzi\030% \001(\010B\003\340A\003\032\304\001\n"
+ + "satisfies_pzi\030% \001(\010B\003\340A\003\032\260\002\n"
+ "\013InputConfig\022@\n\n"
+ "gcs_source\030\002 \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceH\000\022J\n"
+ "\017bigquery_source\030\003"
- + " \001(\0132/.google.cloud.aiplatform.v1beta1.BigQuerySourceH\000\022\035\n"
+ + " \001(\0132/.google.cloud.aiplatform.v1beta1.BigQuerySourceH\000\022j\n"
+ + " vertex_multimodal_dataset_source\030\004 \001(\0132>.goo"
+ + "gle.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSourceH\000\022\035\n"
+ "\020instances_format\030\001 \001(\tB\003\340A\002B\010\n"
+ "\006source\032l\n"
+ "\016InstanceConfig\022\025\n\r"
+ "instance_type\030\001 \001(\t\022\021\n"
+ "\tkey_field\030\002 \001(\t\022\027\n"
+ "\017included_fields\030\003 \003(\t\022\027\n"
- + "\017excluded_fields\030\004 \003(\t\032\340\001\n"
+ + "\017excluded_fields\030\004 \003(\t\032\326\002\n"
+ "\014OutputConfig\022J\n"
+ "\017gcs_destination\030\002"
+ " \001(\0132/.google.cloud.aiplatform.v1beta1.GcsDestinationH\000\022T\n"
- + "\024bigquery_destination\030\003 \001(\01324.google.clou"
- + "d.aiplatform.v1beta1.BigQueryDestinationH\000\022\037\n"
+ + "\024bigquery_destination\030\003"
+ + " \001(\01324.google.cloud.aiplatform.v1beta1.BigQueryDestinationH\000\022t\n"
+ + "%vertex_multimodal_dataset_destination\030\006 \001(\0132C."
+ + "google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestinationH\000\022\037\n"
+ "\022predictions_format\030\001 \001(\tB\003\340A\002B\r\n"
- + "\013destination\032\220\001\n\n"
+ + "\013destination\032\345\001\n"
+ + "\n"
+ "OutputInfo\022#\n"
+ "\024gcs_output_directory\030\001 \001(\tB\003\340A\003H\000\022&\n"
- + "\027bigquery_output_dataset\030\002 \001(\tB\003\340A\003H\000\022\"\n"
+ + "\027bigquery_output_dataset\030\002 \001(\tB\003\340A\003H\000\022S\n"
+ + "\036vertex_multimodal_dataset_name\030\005 \001(\tB)\340A\003\372A#\n"
+ + "!aiplatform.googleapis.com/DatasetH\000\022\"\n"
+ "\025bigquery_output_table\030\004 \001(\tB\003\340A\003B\021\n"
+ "\017output_location\032-\n"
+ "\013LabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001:\206\001\352A\202\001\n"
- + ",aiplatform.googleapis.com/BatchPredictionJob\022Rprojects/{project}/lo"
- + "cations/{location}/batchPredictionJobs/{batch_prediction_job}B\356\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\027BatchPredictionJo"
- + "bProtoP\001ZCcloud.google.com/go/aiplatform"
- + "/apiv1beta1/aiplatformpb;aiplatformpb\252\002\037"
- + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google"
- + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
+ + ",aiplatform.googleapis.com/BatchPredictionJob\022Rprojects/{project}/locations/{"
+ + "location}/batchPredictionJobs/{batch_prediction_job}B\356\001\n"
+ + "#com.google.cloud.aiplatform.v1beta1B\027BatchPredictionJobProtoP\001Z"
+ + "Ccloud.google.com/go/aiplatform/apiv1bet"
+ + "a1/aiplatformpb;aiplatformpb\252\002\037Google.Cl"
+ + "oud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AI"
+ + "Platform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -236,7 +243,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_InputConfig_descriptor,
new java.lang.String[] {
- "GcsSource", "BigquerySource", "InstancesFormat", "Source",
+ "GcsSource",
+ "BigquerySource",
+ "VertexMultimodalDatasetSource",
+ "InstancesFormat",
+ "Source",
});
internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_InstanceConfig_descriptor =
internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_descriptor.getNestedType(
@@ -254,7 +265,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_OutputConfig_descriptor,
new java.lang.String[] {
- "GcsDestination", "BigqueryDestination", "PredictionsFormat", "Destination",
+ "GcsDestination",
+ "BigqueryDestination",
+ "VertexMultimodalDatasetDestination",
+ "PredictionsFormat",
+ "Destination",
});
internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_OutputInfo_descriptor =
internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_descriptor.getNestedType(
@@ -265,6 +280,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"GcsOutputDirectory",
"BigqueryOutputDataset",
+ "VertexMultimodalDatasetName",
"BigqueryOutputTable",
"OutputLocation",
});
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java
index cf2e82ea032a..0f31ddbc365f 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java
@@ -100,10 +100,12 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -126,10 +128,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1829,10 +1833,12 @@ public Builder mergeFrom(
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -1854,10 +1860,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1879,10 +1887,12 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The name to set.
@@ -1903,10 +1913,12 @@ public Builder setName(java.lang.String value) {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
@@ -1923,10 +1935,12 @@ public Builder clearName() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for name to set.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java
index a2f0eee43956..fa2521cc6928 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java
@@ -31,10 +31,12 @@ public interface DatasetOrBuilder
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -46,10 +48,12 @@ public interface DatasetOrBuilder
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java
index 3fc18e403284..700bac0d1e7b 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java
@@ -82,9 +82,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\032\037google/api/field_behavior.proto\032\031googl"
+ "e/api/resource.proto\0325google/cloud/aiplatform/v1beta1/encryption_spec.proto\032(goo"
+ "gle/cloud/aiplatform/v1beta1/io.proto\0321google/cloud/aiplatform/v1beta1/saved_que"
- + "ry.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\225\006\n"
- + "\007Dataset\022\024\n"
- + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\031\n"
+ + "ry.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\273\006\n"
+ + "\007Dataset\022:\n"
+ + "\004name\030\001 \001(\tB,\340A\003\340A\010\372A#\n"
+ + "!aiplatform.googleapis.com/Dataset\022\031\n"
+ "\014display_name\030\002 \001(\tB\003\340A\002\022\023\n"
+ "\013description\030\020 \001(\t\022 \n"
+ "\023metadata_schema_uri\030\003 \001(\tB\003\340A\002\022-\n"
@@ -95,11 +96,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013update_time\030\005"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n"
+ "\004etag\030\006 \001(\t\022D\n"
- + "\006labels\030\007 \003"
- + "(\01324.google.cloud.aiplatform.v1beta1.Dataset.LabelsEntry\022B\n\r"
+ + "\006labels\030\007 \003(\013"
+ + "24.google.cloud.aiplatform.v1beta1.Dataset.LabelsEntry\022B\n\r"
+ "saved_queries\030\t \003(\0132+.google.cloud.aiplatform.v1beta1.SavedQuery\022H\n"
- + "\017encryption_spec\030\013 \001(\0132/.google.c"
- + "loud.aiplatform.v1beta1.EncryptionSpec\022\036\n"
+ + "\017encryption_spec\030\013"
+ + " \001(\0132/.google.cloud.aiplatform.v1beta1.EncryptionSpec\022\036\n"
+ "\021metadata_artifact\030\021 \001(\tB\003\340A\003\022\034\n"
+ "\017model_reference\030\022 \001(\tB\003\340A\001\022\032\n\r"
+ "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\r"
@@ -107,14 +108,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013LabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001:b\352A_\n"
- + "!aiplatform.googleapis.com/Data"
- + "set\022:projects/{project}/locations/{location}/datasets/{dataset}\"\263\003\n"
+ + "!aiplatform.googleapis.com/Datase"
+ + "t\022:projects/{project}/locations/{location}/datasets/{dataset}\"\263\003\n"
+ "\020ImportDataConfig\022@\n\n"
+ "gcs_source\030\001 \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceH\000\022_\n"
- + "\020data_item_labels\030\002 \003(\0132E.google.cloud.aiplatfo"
- + "rm.v1beta1.ImportDataConfig.DataItemLabelsEntry\022b\n"
- + "\021annotation_labels\030\003 \003(\0132G.goo"
- + "gle.cloud.aiplatform.v1beta1.ImportDataConfig.AnnotationLabelsEntry\022\036\n"
+ + "\020data_item_labels\030\002 \003(\0132E.google.cloud.aiplatform"
+ + ".v1beta1.ImportDataConfig.DataItemLabelsEntry\022b\n"
+ + "\021annotation_labels\030\003 \003(\0132G.googl"
+ + "e.cloud.aiplatform.v1beta1.ImportDataConfig.AnnotationLabelsEntry\022\036\n"
+ "\021import_schema_uri\030\004 \001(\tB\003\340A\002\0325\n"
+ "\023DataItemLabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
@@ -124,10 +125,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005value\030\002 \001(\t:\0028\001B\010\n"
+ "\006source\"\342\001\n"
+ "\020ExportDataConfig\022J\n"
- + "\017gcs_destination\030\001 \001(\0132/.google.clo"
- + "ud.aiplatform.v1beta1.GcsDestinationH\000\022N\n"
- + "\016fraction_split\030\005 \001(\01324.google.cloud.ai"
- + "platform.v1beta1.ExportFractionSplitH\001\022\032\n"
+ + "\017gcs_destination\030\001"
+ + " \001(\0132/.google.cloud.aiplatform.v1beta1.GcsDestinationH\000\022N\n"
+ + "\016fraction_split\030\005"
+ + " \001(\01324.google.cloud.aiplatform.v1beta1.ExportFractionSplitH\001\022\032\n"
+ "\022annotations_filter\030\002 \001(\tB\r\n"
+ "\013destinationB\007\n"
+ "\005split\"d\n"
@@ -135,11 +136,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021training_fraction\030\001 \001(\001\022\033\n"
+ "\023validation_fraction\030\002 \001(\001\022\025\n\r"
+ "test_fraction\030\003 \001(\001B\343\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\014Datase"
- + "tProtoP\001ZCcloud.google.com/go/aiplatform"
- + "/apiv1beta1/aiplatformpb;aiplatformpb\252\002\037"
- + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google"
- + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "#com.google.cloud.aiplatform.v1beta1B\014DatasetP"
+ + "rotoP\001ZCcloud.google.com/go/aiplatform/a"
+ + "piv1beta1/aiplatformpb;aiplatformpb\252\002\037Go"
+ + "ogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\C"
+ + "loud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -238,6 +239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java
index 8a30fe5d9a80..642378186061 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java
@@ -85,10 +85,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -111,10 +113,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1118,10 +1122,12 @@ public Builder mergeFrom(
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -1143,10 +1149,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1168,10 +1176,12 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The name to set.
@@ -1192,10 +1202,12 @@ public Builder setName(java.lang.String value) {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
@@ -1212,10 +1224,12 @@ public Builder clearName() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for name to set.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java
index 5cc81f2db9ab..dd29d0c07a16 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java
@@ -31,10 +31,12 @@ public interface DatasetVersionOrBuilder
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -46,10 +48,12 @@ public interface DatasetVersionOrBuilder
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java
index 496a098d7253..4f57711955e4 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java
@@ -53,30 +53,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n5google/cloud/aiplatform/v1beta1/datase"
- + "t_version.proto\022\037google.cloud.aiplatform"
+ "\n"
+ + "5google/cloud/aiplatform/v1beta1/dataset_version.proto\022\037google.cloud.aiplatform"
+ ".v1beta1\032\037google/api/field_behavior.prot"
+ "o\032\031google/api/resource.proto\032\034google/pro"
- + "tobuf/struct.proto\032\037google/protobuf/time"
- + "stamp.proto\"\362\003\n\016DatasetVersion\022\024\n\004name\030\001"
- + " \001(\tB\006\340A\003\340A\010\0224\n\013create_time\030\002 \001(\0132\032.goog"
- + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim"
- + "e\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003"
- + "\022\014\n\004etag\030\003 \001(\t\022#\n\026big_query_dataset_name"
- + "\030\004 \001(\tB\003\340A\003\022\024\n\014display_name\030\007 \001(\t\0220\n\010met"
- + "adata\030\010 \001(\0132\026.google.protobuf.ValueB\006\340A\003"
- + "\340A\002\022\034\n\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\rsat"
- + "isfies_pzs\030\n \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\013"
- + " \001(\010B\003\340A\003:\214\001\352A\210\001\n(aiplatform.googleapis."
- + "com/DatasetVersion\022\\projects/{project}/l"
- + "ocations/{location}/datasets/{dataset}/d"
- + "atasetVersions/{dataset_version}B\352\001\n#com"
- + ".google.cloud.aiplatform.v1beta1B\023Datase"
- + "tVersionProtoP\001ZCcloud.google.com/go/aip"
- + "latform/apiv1beta1/aiplatformpb;aiplatfo"
- + "rmpb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002"
- + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl"
- + "e::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "tobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\237\004\n"
+ + "\016DatasetVersion\022A\n"
+ + "\004name\030\001 \001(\tB3\340A\003\340A\010\372A*\n"
+ + "(aiplatform.googleapis.com/DatasetVersion\0224\n"
+ + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
+ + "\013update_time\030\006"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n"
+ + "\004etag\030\003 \001(\t\022#\n"
+ + "\026big_query_dataset_name\030\004 \001(\tB\003\340A\003\022\024\n"
+ + "\014display_name\030\007 \001(\t\0220\n"
+ + "\010metadata\030\010"
+ + " \001(\0132\026.google.protobuf.ValueB\006\340A\003\340A\002\022\034\n"
+ + "\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\r"
+ + "satisfies_pzs\030\n"
+ + " \001(\010B\003\340A\003\022\032\n\r"
+ + "satisfies_pzi\030\013 \001(\010B\003\340A\003:\214\001\352A\210\001\n"
+ + "(aiplatform.googleapis.com/DatasetVersion\022\\projects/{proje"
+ + "ct}/locations/{location}/datasets/{datas"
+ + "et}/datasetVersions/{dataset_version}B\352\001\n"
+ + "#com.google.cloud.aiplatform.v1beta1B\023DatasetVersionProtoP\001ZCcloud.google.com/g"
+ + "o/aiplatform/apiv1beta1/aiplatformpb;aip"
+ + "latformpb\252\002\037Google.Cloud.AIPlatform.V1Be"
+ + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\""
+ + "Google::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -113,6 +117,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java
index 7d2fb89cd9a1..f86f8f11d4c0 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java
@@ -153,6 +153,26 @@ public boolean getForce() {
return force_;
}
+ public static final int FORCE_DELETE_FIELD_NUMBER = 3;
+ private boolean forceDelete_ = false;
+
+ /**
+ *
+ *
+ *
+ * Optional. If set to true, any errors generated by external vector database
+ * during the deletion will be ignored. The default value is false.
+ *
+ *
+ * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The forceDelete.
+ */
+ @java.lang.Override
+ public boolean getForceDelete() {
+ return forceDelete_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -173,6 +193,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (force_ != false) {
output.writeBool(2, force_);
}
+ if (forceDelete_ != false) {
+ output.writeBool(3, forceDelete_);
+ }
getUnknownFields().writeTo(output);
}
@@ -188,6 +211,9 @@ public int getSerializedSize() {
if (force_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_);
}
+ if (forceDelete_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, forceDelete_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -206,6 +232,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getName().equals(other.getName())) return false;
if (getForce() != other.getForce()) return false;
+ if (getForceDelete() != other.getForceDelete()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -221,6 +248,8 @@ public int hashCode() {
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + FORCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce());
+ hash = (37 * hash) + FORCE_DELETE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForceDelete());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -365,6 +394,7 @@ public Builder clear() {
bitField0_ = 0;
name_ = "";
force_ = false;
+ forceDelete_ = false;
return this;
}
@@ -407,6 +437,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteRagCorpusRe
if (((from_bitField0_ & 0x00000002) != 0)) {
result.force_ = force_;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.forceDelete_ = forceDelete_;
+ }
}
@java.lang.Override
@@ -430,6 +463,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteRagCorpusRequ
if (other.getForce() != false) {
setForce(other.getForce());
}
+ if (other.getForceDelete() != false) {
+ setForceDelete(other.getForceDelete());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -468,6 +504,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 16
+ case 24:
+ {
+ forceDelete_ = input.readBool();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -680,6 +722,65 @@ public Builder clearForce() {
return this;
}
+ private boolean forceDelete_;
+
+ /**
+ *
+ *
+ *
+ * Optional. If set to true, any errors generated by external vector database
+ * during the deletion will be ignored. The default value is false.
+ *
+ *
+ * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The forceDelete.
+ */
+ @java.lang.Override
+ public boolean getForceDelete() {
+ return forceDelete_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If set to true, any errors generated by external vector database
+ * during the deletion will be ignored. The default value is false.
+ *
+ *
+ * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The forceDelete to set.
+ * @return This builder for chaining.
+ */
+ public Builder setForceDelete(boolean value) {
+
+ forceDelete_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If set to true, any errors generated by external vector database
+ * during the deletion will be ignored. The default value is false.
+ *
+ *
+ * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearForceDelete() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ forceDelete_ = false;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DeleteRagCorpusRequest)
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java
index ed1d4e4ed5d3..3ad21ad3cff2 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java
@@ -74,4 +74,18 @@ public interface DeleteRagCorpusRequestOrBuilder
* @return The force.
*/
boolean getForce();
+
+ /**
+ *
+ *
+ *
+ * Optional. If set to true, any errors generated by external vector database
+ * during the deletion will be ignored. The default value is false.
+ *
+ *
+ * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The forceDelete.
+ */
+ boolean getForceDelete();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java
index 9aa7480837cd..5fbb38095196 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java
@@ -64,6 +64,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_BigQueryDestination_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_BigQueryDestination_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -127,18 +135,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n(google/cloud/aiplatform/v1beta1/io.pro"
+ "to\022\037google.cloud.aiplatform.v1beta1\032\037goo"
- + "gle/api/field_behavior.proto\032.google/clo"
- + "ud/aiplatform/v1beta1/api_auth.proto\032\037go"
- + "ogle/protobuf/timestamp.proto\"Q\n\nAvroSou"
- + "rce\022C\n\ngcs_source\030\001 \001(\0132*.google.cloud.a"
- + "iplatform.v1beta1.GcsSourceB\003\340A\002\"P\n\tCsvS"
- + "ource\022C\n\ngcs_source\030\001 \001(\0132*.google.cloud"
- + ".aiplatform.v1beta1.GcsSourceB\003\340A\002\"\036\n\tGc"
- + "sSource\022\021\n\004uris\030\001 \003(\tB\003\340A\002\"0\n\016GcsDestina"
- + "tion\022\036\n\021output_uri_prefix\030\001 \001(\tB\003\340A\002\"(\n\016"
- + "BigQuerySource\022\026\n\tinput_uri\030\001 \001(\tB\003\340A\002\"."
- + "\n\023BigQueryDestination\022\027\n\noutput_uri\030\001 \001("
- + "\tB\003\340A\002\"_\n\016CsvDestination\022M\n\017gcs_destinat"
+ + "gle/api/field_behavior.proto\032\031google/api"
+ + "/resource.proto\032.google/cloud/aiplatform"
+ + "/v1beta1/api_auth.proto\032\037google/protobuf"
+ + "/timestamp.proto\"Q\n\nAvroSource\022C\n\ngcs_so"
+ + "urce\030\001 \001(\0132*.google.cloud.aiplatform.v1b"
+ + "eta1.GcsSourceB\003\340A\002\"P\n\tCsvSource\022C\n\ngcs_"
+ + "source\030\001 \001(\0132*.google.cloud.aiplatform.v"
+ + "1beta1.GcsSourceB\003\340A\002\"\036\n\tGcsSource\022\021\n\004ur"
+ + "is\030\001 \003(\tB\003\340A\002\"0\n\016GcsDestination\022\036\n\021outpu"
+ + "t_uri_prefix\030\001 \001(\tB\003\340A\002\"(\n\016BigQuerySourc"
+ + "e\022\026\n\tinput_uri\030\001 \001(\tB\003\340A\002\".\n\023BigQueryDes"
+ + "tination\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\002\"`\n\035Ver"
+ + "texMultimodalDatasetSource\022?\n\014dataset_na"
+ + "me\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis."
+ + "com/Dataset\"\230\001\n\"VertexMultimodalDatasetD"
+ + "estination\022W\n\024bigquery_destination\030\001 \001(\013"
+ + "24.google.cloud.aiplatform.v1beta1.BigQu"
+ + "eryDestinationB\003\340A\001\022\031\n\014display_name\030\002 \001("
+ + "\tB\003\340A\001\"_\n\016CsvDestination\022M\n\017gcs_destinat"
+ "ion\030\001 \001(\0132/.google.cloud.aiplatform.v1be"
+ "ta1.GcsDestinationB\003\340A\002\"d\n\023TFRecordDesti"
+ "nation\022M\n\017gcs_destination\030\001 \001(\0132/.google"
@@ -196,6 +211,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.aiplatform.v1beta1.ApiAuthProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
@@ -247,8 +263,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"OutputUri",
});
- internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_descriptor =
getDescriptor().getMessageType(6);
+ internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_descriptor,
+ new java.lang.String[] {
+ "DatasetName",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_descriptor =
+ getDescriptor().getMessageType(7);
+ internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_descriptor,
+ new java.lang.String[] {
+ "BigqueryDestination", "DisplayName",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_descriptor =
+ getDescriptor().getMessageType(8);
internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_descriptor,
@@ -256,7 +288,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"GcsDestination",
});
internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_descriptor =
- getDescriptor().getMessageType(7);
+ getDescriptor().getMessageType(9);
internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_descriptor,
@@ -264,7 +296,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"GcsDestination",
});
internal_static_google_cloud_aiplatform_v1beta1_ContainerRegistryDestination_descriptor =
- getDescriptor().getMessageType(8);
+ getDescriptor().getMessageType(10);
internal_static_google_cloud_aiplatform_v1beta1_ContainerRegistryDestination_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_ContainerRegistryDestination_descriptor,
@@ -272,7 +304,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"OutputUri",
});
internal_static_google_cloud_aiplatform_v1beta1_GoogleDriveSource_descriptor =
- getDescriptor().getMessageType(9);
+ getDescriptor().getMessageType(11);
internal_static_google_cloud_aiplatform_v1beta1_GoogleDriveSource_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_GoogleDriveSource_descriptor,
@@ -289,13 +321,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ResourceType", "ResourceId",
});
internal_static_google_cloud_aiplatform_v1beta1_DirectUploadSource_descriptor =
- getDescriptor().getMessageType(10);
+ getDescriptor().getMessageType(12);
internal_static_google_cloud_aiplatform_v1beta1_DirectUploadSource_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_DirectUploadSource_descriptor,
new java.lang.String[] {});
internal_static_google_cloud_aiplatform_v1beta1_SlackSource_descriptor =
- getDescriptor().getMessageType(11);
+ getDescriptor().getMessageType(13);
internal_static_google_cloud_aiplatform_v1beta1_SlackSource_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_SlackSource_descriptor,
@@ -320,7 +352,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ChannelId", "StartTime", "EndTime",
});
internal_static_google_cloud_aiplatform_v1beta1_JiraSource_descriptor =
- getDescriptor().getMessageType(12);
+ getDescriptor().getMessageType(14);
internal_static_google_cloud_aiplatform_v1beta1_JiraSource_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_JiraSource_descriptor,
@@ -336,7 +368,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Projects", "CustomQueries", "Email", "ServerUri", "ApiKeyConfig",
});
internal_static_google_cloud_aiplatform_v1beta1_SharePointSources_descriptor =
- getDescriptor().getMessageType(13);
+ getDescriptor().getMessageType(15);
internal_static_google_cloud_aiplatform_v1beta1_SharePointSources_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_SharePointSources_descriptor,
@@ -364,11 +396,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
});
descriptor.resolveAllFeaturesImmutable();
com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
com.google.cloud.aiplatform.v1beta1.ApiAuthProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexMultimodalDatasetDestination.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexMultimodalDatasetDestination.java
new file mode 100644
index 000000000000..fbe1a8a2be79
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexMultimodalDatasetDestination.java
@@ -0,0 +1,960 @@
+/*
+ * 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/aiplatform/v1beta1/io.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ *
+ * The details for a Vertex Multimodal Dataset output.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination}
+ */
+@com.google.protobuf.Generated
+public final class VertexMultimodalDatasetDestination extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination)
+ VertexMultimodalDatasetDestinationOrBuilder {
+ 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= */ "",
+ "VertexMultimodalDatasetDestination");
+ }
+
+ // Use VertexMultimodalDatasetDestination.newBuilder() to construct.
+ private VertexMultimodalDatasetDestination(
+ com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private VertexMultimodalDatasetDestination() {
+ displayName_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.IoProto
+ .internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.IoProto
+ .internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.class,
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 1;
+ private com.google.cloud.aiplatform.v1beta1.BigQueryDestination bigqueryDestination_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the bigqueryDestination field is set.
+ */
+ @java.lang.Override
+ public boolean hasBigqueryDestination() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bigqueryDestination.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestination() {
+ return bigqueryDestination_ == null
+ ? com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance()
+ : bigqueryDestination_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder
+ getBigqueryDestinationOrBuilder() {
+ return bigqueryDestination_ == null
+ ? com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance()
+ : bigqueryDestination_;
+ }
+
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The displayName.
+ */
+ @java.lang.Override
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ 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();
+ displayName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for displayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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.writeMessage(1, getBigqueryDestination());
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_);
+ }
+ 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.computeMessageSize(1, getBigqueryDestination());
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_);
+ }
+ 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.aiplatform.v1beta1.VertexMultimodalDatasetDestination)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination other =
+ (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) obj;
+
+ if (hasBigqueryDestination() != other.hasBigqueryDestination()) return false;
+ if (hasBigqueryDestination()) {
+ if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false;
+ }
+ if (!getDisplayName().equals(other.getDisplayName())) 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 (hasBigqueryDestination()) {
+ hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER;
+ hash = (53 * hash) + getBigqueryDestination().hashCode();
+ }
+ hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination 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.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination 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.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination 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.aiplatform.v1beta1.VertexMultimodalDatasetDestination
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination
+ 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.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination 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.aiplatform.v1beta1.VertexMultimodalDatasetDestination 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 details for a Vertex Multimodal Dataset output.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the bigqueryDestination field is set.
+ */
+ public boolean hasBigqueryDestination() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bigqueryDestination.
+ */
+ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestination() {
+ if (bigqueryDestinationBuilder_ == null) {
+ return bigqueryDestination_ == null
+ ? com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance()
+ : bigqueryDestination_;
+ } else {
+ return bigqueryDestinationBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setBigqueryDestination(
+ com.google.cloud.aiplatform.v1beta1.BigQueryDestination value) {
+ if (bigqueryDestinationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bigqueryDestination_ = value;
+ } else {
+ bigqueryDestinationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setBigqueryDestination(
+ com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder builderForValue) {
+ if (bigqueryDestinationBuilder_ == null) {
+ bigqueryDestination_ = builderForValue.build();
+ } else {
+ bigqueryDestinationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeBigqueryDestination(
+ com.google.cloud.aiplatform.v1beta1.BigQueryDestination value) {
+ if (bigqueryDestinationBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && bigqueryDestination_ != null
+ && bigqueryDestination_
+ != com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance()) {
+ getBigqueryDestinationBuilder().mergeFrom(value);
+ } else {
+ bigqueryDestination_ = value;
+ }
+ } else {
+ bigqueryDestinationBuilder_.mergeFrom(value);
+ }
+ if (bigqueryDestination_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearBigqueryDestination() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ bigqueryDestination_ = null;
+ if (bigqueryDestinationBuilder_ != null) {
+ bigqueryDestinationBuilder_.dispose();
+ bigqueryDestinationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder
+ getBigqueryDestinationBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetBigqueryDestinationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder
+ getBigqueryDestinationOrBuilder() {
+ if (bigqueryDestinationBuilder_ != null) {
+ return bigqueryDestinationBuilder_.getMessageOrBuilder();
+ } else {
+ return bigqueryDestination_ == null
+ ? com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance()
+ : bigqueryDestination_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.BigQueryDestination,
+ com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder,
+ com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder>
+ internalGetBigqueryDestinationFieldBuilder() {
+ if (bigqueryDestinationBuilder_ == null) {
+ bigqueryDestinationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.BigQueryDestination,
+ com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder,
+ com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder>(
+ getBigqueryDestination(), getParentForChildren(), isClean());
+ bigqueryDestination_ = null;
+ }
+ return bigqueryDestinationBuilder_;
+ }
+
+ private java.lang.Object displayName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The displayName.
+ */
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for displayName.
+ */
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ displayName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ displayName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination)
+ private static final com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the bigqueryDestination field is set.
+ */
+ boolean hasBigqueryDestination();
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bigqueryDestination.
+ */
+ com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestination();
+
+ /**
+ *
+ *
+ *
+ * Optional. The destination of the underlying BigQuery table that will be
+ * created for the output Multimodal Dataset. If not specified, the BigQuery
+ * table will be created in a default BigQuery dataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder
+ getBigqueryDestinationOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+
+ /**
+ *
+ *
+ *
+ * Optional. Display name of the output dataset.
+ *
+ *
+ * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexMultimodalDatasetSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexMultimodalDatasetSource.java
new file mode 100644
index 000000000000..13d5b39a916e
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexMultimodalDatasetSource.java
@@ -0,0 +1,627 @@
+/*
+ * 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/aiplatform/v1beta1/io.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ *
+ * The Vertex Multimodal Dataset for the input content.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource}
+ */
+@com.google.protobuf.Generated
+public final class VertexMultimodalDatasetSource extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource)
+ VertexMultimodalDatasetSourceOrBuilder {
+ 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= */ "",
+ "VertexMultimodalDatasetSource");
+ }
+
+ // Use VertexMultimodalDatasetSource.newBuilder() to construct.
+ private VertexMultimodalDatasetSource(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private VertexMultimodalDatasetSource() {
+ datasetName_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.IoProto
+ .internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.IoProto
+ .internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.class,
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.Builder.class);
+ }
+
+ public static final int DATASET_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object datasetName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The datasetName.
+ */
+ @java.lang.Override
+ public java.lang.String getDatasetName() {
+ java.lang.Object ref = datasetName_;
+ 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();
+ datasetName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for datasetName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDatasetNameBytes() {
+ java.lang.Object ref = datasetName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datasetName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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(datasetName_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, datasetName_);
+ }
+ 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(datasetName_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, datasetName_);
+ }
+ 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.aiplatform.v1beta1.VertexMultimodalDatasetSource)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource other =
+ (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) obj;
+
+ if (!getDatasetName().equals(other.getDatasetName())) 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) + DATASET_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDatasetName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource 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.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource 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.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource 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.aiplatform.v1beta1.VertexMultimodalDatasetSource
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource
+ 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.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource 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.aiplatform.v1beta1.VertexMultimodalDatasetSource 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 Vertex Multimodal Dataset for the input content.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The datasetName.
+ */
+ public java.lang.String getDatasetName() {
+ java.lang.Object ref = datasetName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ datasetName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for datasetName.
+ */
+ public com.google.protobuf.ByteString getDatasetNameBytes() {
+ java.lang.Object ref = datasetName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datasetName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The datasetName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatasetName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ datasetName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDatasetName() {
+ datasetName_ = getDefaultInstance().getDatasetName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for datasetName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatasetNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ datasetName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource)
+ private static final com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The datasetName.
+ */
+ java.lang.String getDatasetName();
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Vertex Dataset.
+ * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ *
+ *
+ *
+ * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for datasetName.
+ */
+ com.google.protobuf.ByteString getDatasetNameBytes();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java
index b6bb83106a3f..2429ecc1cb68 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java
@@ -129,163 +129,165 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n"
- + "=google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto\022\037google.cloud.ai"
+ "\n=google/cloud/aiplatform/v1beta1/vertex"
+ + "_rag_data_service.proto\022\037google.cloud.ai"
+ "platform.v1beta1\032\034google/api/annotations"
+ ".proto\032\027google/api/client.proto\032\037google/"
+ "api/field_behavior.proto\032\031google/api/res"
- + "ource.proto\032/google/cloud/aiplatform/v1beta1/operation.proto\0325google/cloud/aipla"
+ + "ource.proto\032/google/cloud/aiplatform/v1b"
+ + "eta1/operation.proto\0325google/cloud/aipla"
+ "tform/v1beta1/vertex_rag_data.proto\032#goo"
+ "gle/longrunning/operations.proto\032\033google"
- + "/protobuf/empty.proto\032\027google/rpc/status.proto\"\230\001\n"
- + "\026CreateRagCorpusRequest\0229\n"
- + "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
- + "!locations.googleapis.com/Location\022C\n\n"
- + "rag_corpus\030\002 \001(\0132*.googl"
- + "e.cloud.aiplatform.v1beta1.RagCorpusB\003\340A\002\"P\n"
- + "\023GetRagCorpusRequest\0229\n"
- + "\004name\030\001 \001(\tB+\340A\002\372A%\n"
- + "#aiplatform.googleapis.com/RagCorpus\"\203\001\n"
- + "\025ListRagCorporaRequest\0229\n"
- + "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
- + "!locations.googleapis.com/Location\022\026\n"
- + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n"
- + "page_token\030\003 \001(\tB\003\340A\001\"r\n"
- + "\026ListRagCorporaResponse\022?\n"
- + "\013rag_corpora\030\001"
- + " \003(\0132*.google.cloud.aiplatform.v1beta1.RagCorpus\022\027\n"
- + "\017next_page_token\030\002 \001(\t\"g\n"
- + "\026DeleteRagCorpusRequest\0229\n"
- + "\004name\030\001 \001(\tB+\340A\002\372A%\n"
- + "#aiplatform.googleapis.com/RagCorpus\022\022\n"
- + "\005force\030\002 \001(\010B\003\340A\001\"\357\001\n"
- + "\024UploadRagFileRequest\022;\n"
- + "\006parent\030\001 \001(\tB+\340A\002\372A%\n"
- + "#aiplatform.googleapis.com/RagCorpus\022?\n"
- + "\010rag_file\030\002"
- + " \001(\0132(.google.cloud.aiplatform.v1beta1.RagFileB\003\340A\002\022Y\n"
- + "\026upload_rag_file_config\030\005 \001(\01324.google.cloud.aip"
- + "latform.v1beta1.UploadRagFileConfigB\003\340A\002\"\204\001\n"
- + "\025UploadRagFileResponse\022<\n"
- + "\010rag_file\030\001 \001(\0132(.google.cloud.aiplatform.v1beta1.RagFileH\000\022#\n"
- + "\005error\030\004 \001(\0132\022.google.rpc.StatusH\000B\010\n"
- + "\006result\"\261\001\n"
- + "\025ImportRagFilesRequest\022;\n"
- + "\006parent\030\001 \001(\tB+\340A\002\372A%\n"
- + "#aiplatform.googleapis.com/RagCorpus\022[\n"
- + "\027import_rag_files_config\030\002"
- + " \001(\01325.google.cloud.aiplatform.v1beta1.ImportRagFilesConfigB\003\340A\002\"\343\001\n"
- + "\026ImportRagFilesResponse\022#\n"
- + "\031partial_failures_gcs_path\030\004 \001(\tH\000\022)\n"
- + "\037partial_failures_bigquery_table\030\005 \001(\tH\000\022 \n"
- + "\030imported_rag_files_count\030\001 \001(\003\022\036\n"
- + "\026failed_rag_files_count\030\002 \001(\003\022\037\n"
- + "\027skipped_rag_files_count\030\003 \001(\003B\026\n"
- + "\024partial_failure_sink\"L\n"
- + "\021GetRagFileRequest\0227\n"
- + "\004name\030\001 \001(\tB)\340A\002\372A#\n"
- + "!aiplatform.googleapis.com/RagFile\"\203\001\n"
- + "\023ListRagFilesRequest\022;\n"
- + "\006parent\030\001 \001(\tB+\340A\002\372A%\n"
- + "#aiplatform.googleapis.com/RagCorpus\022\026\n"
- + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n"
- + "page_token\030\003 \001(\tB\003\340A\001\"l\n"
- + "\024ListRagFilesResponse\022;\n"
- + "\trag_files\030\001 \003(\0132(.google.cloud.aiplatform.v1beta1.RagFile\022\027\n"
- + "\017next_page_token\030\002 \001(\t\"j\n"
- + "\024DeleteRagFileRequest\0227\n"
- + "\004name\030\001 \001(\tB)\340A\002\372A#\n"
- + "!aiplatform.googleapis.com/RagFile\022\031\n"
- + "\014force_delete\030\002 \001(\010B\003\340A\001\"w\n"
- + " CreateRagCorpusOperationMetadata\022S\n"
- + "\020generic_metadata\030\001 \001(\01329."
- + "google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"\\\n"
- + "\031GetRagEngineConfigRequest\022?\n"
- + "\004name\030\001 \001(\tB1\340A\002\372A+\n"
- + ")aiplatform.googleapis.com/RagEngineConfig\"]\n"
- + "\026UpdateRagCorpusRequest\022C\n\n"
- + "rag_corpus\030\001 \001(\0132*.g"
- + "oogle.cloud.aiplatform.v1beta1.RagCorpusB\003\340A\002\"w\n"
- + " UpdateRagCorpusOperationMetadata\022S\n"
- + "\020generic_metadata\030\001 \001(\01329.google.clo"
- + "ud.aiplatform.v1beta1.GenericOperationMetadata\"\207\002\n"
- + "\037ImportRagFilesOperationMetadata\022S\n"
- + "\020generic_metadata\030\001 \001(\01329.google.cl"
- + "oud.aiplatform.v1beta1.GenericOperationMetadata\022\025\n\r"
- + "rag_corpus_id\030\002 \001(\003\022[\n"
- + "\027import_rag_files_config\030\003 \001(\01325.google.cloud.a"
- + "iplatform.v1beta1.ImportRagFilesConfigB\003\340A\003\022\033\n"
- + "\023progress_percentage\030\004 \001(\005\"p\n"
- + "\034UpdateRagEngineConfigRequest\022P\n"
- + "\021rag_engine_config\030\001"
- + " \001(\01320.google.cloud.aiplatform.v1beta1.RagEngineConfigB\003\340A\002\"}\n"
- + "&UpdateRagEngineConfigOperationMetadata\022S\n"
- + "\020generic_metadata\030\001"
- + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata2\307\026\n"
- + "\024VertexRagDataService\022\367\001\n"
- + "\017CreateRagCorpus\0227.google.cloud.aiplatform.v1beta1.CreateR"
- + "agCorpusRequest\032\035.google.longrunning.Operation\"\213\001\312A-\n"
- + "\tRagCorpus\022 CreateRagCorpusOperationMetadata\332A\021parent,rag_corpus\202\323\344"
- + "\223\002A\"3/v1beta1/{parent=projects/*/locations/*}/ragCorpora:\n"
- + "rag_corpus\022\373\001\n"
- + "\017UpdateRagCorpus\0227.google.cloud.aiplatform.v1bet"
- + "a1.UpdateRagCorpusRequest\032\035.google.longrunning.Operation\"\217\001\312A-\n"
- + "\tRagCorpus\022 UpdateRagCorpusOperationMetadata\332A\n"
- + "rag_corpus"
- + "\202\323\344\223\002L2>/v1beta1/{rag_corpus.name=projects/*/locations/*/ragCorpora/*}:\n"
- + "rag_corpus\022\264\001\n"
- + "\014GetRagCorpus\0224.google.cloud.aiplatform.v1beta1.GetRagCorpusRequest\032*.goog"
- + "le.cloud.aiplatform.v1beta1.RagCorpus\"B\332"
- + "A\004name\202\323\344\223\0025\0223/v1beta1/{name=projects/*/locations/*/ragCorpora/*}\022\307\001\n"
- + "\016ListRagCorpora\0226.google.cloud.aiplatform.v1beta1.L"
- + "istRagCorporaRequest\0327.google.cloud.aipl"
- + "atform.v1beta1.ListRagCorporaResponse\"D\332"
- + "A\006parent\202\323\344\223\0025\0223/v1beta1/{parent=projects/*/locations/*}/ragCorpora\022\340\001\n"
- + "\017DeleteRagCorpus\0227.google.cloud.aiplatform.v1beta"
- + "1.DeleteRagCorpusRequest\032\035.google.longrunning.Operation\"u\312A0\n"
- + "\025google.protobuf.Em"
- + "pty\022\027DeleteOperationMetadata\332A\004name\202\323\344\223\002"
- + "5*3/v1beta1/{name=projects/*/locations/*/ragCorpora/*}\022\371\001\n\r"
- + "UploadRagFile\0225.google.cloud.aiplatform.v1beta1.UploadRagFile"
- + "Request\0326.google.cloud.aiplatform.v1beta"
- + "1.UploadRagFileResponse\"y\332A&parent,rag_f"
- + "ile,upload_rag_file_config\202\323\344\223\002J\"E/v1bet"
- + "a1/{parent=projects/*/locations/*/ragCorpora/*}/ragFiles:upload:\001*\022\227\002\n"
- + "\016ImportRagFiles\0226.google.cloud.aiplatform.v1beta1."
- + "ImportRagFilesRequest\032\035.google.longrunning.Operation\"\255\001\312A9\n"
- + "\026ImportRagFilesResponse\022\037ImportRagFilesOperationMetadata\332A\036pa"
- + "rent,import_rag_files_config\202\323\344\223\002J\"E/v1b"
- + "eta1/{parent=projects/*/locations/*/ragCorpora/*}/ragFiles:import:\001*\022\271\001\n\n"
- + "GetRagFile\0222.google.cloud.aiplatform.v1beta1.Ge"
- + "tRagFileRequest\032(.google.cloud.aiplatfor"
- + "m.v1beta1.RagFile\"M\332A\004name\202\323\344\223\002@\022>/v1bet"
- + "a1/{name=projects/*/locations/*/ragCorpora/*/ragFiles/*}\022\314\001\n"
- + "\014ListRagFiles\0224.google.cloud.aiplatform.v1beta1.ListRagFiles"
- + "Request\0325.google.cloud.aiplatform.v1beta"
- + "1.ListRagFilesResponse\"O\332A\006parent\202\323\344\223\002@\022"
- + ">/v1beta1/{parent=projects/*/locations/*/ragCorpora/*}/ragFiles\022\350\001\n\r"
- + "DeleteRagFile\0225.google.cloud.aiplatform.v1beta1.Dele"
- + "teRagFileRequest\032\035.google.longrunning.Operation\"\200\001\312A0\n"
- + "\025google.protobuf.Empty\022\027De"
- + "leteOperationMetadata\332A\004name\202\323\344\223\002@*>/v1b"
- + "eta1/{name=projects/*/locations/*/ragCorpora/*/ragFiles/*}\022\253\002\n"
- + "\025UpdateRagEngineConfig\022=.google.cloud.aiplatform.v1beta1.U"
- + "pdateRagEngineConfigRequest\032\035.google.longrunning.Operation\"\263\001\312A9\n"
- + "\017RagEngineConfig\022&UpdateRagEngineConfigOperationMetadat"
- + "a\332A\021rag_engine_config\202\323\344\223\002]2H/v1beta1/{r"
- + "ag_engine_config.name=projects/*/locatio"
- + "ns/*/ragEngineConfig}:\021rag_engine_config\022\311\001\n"
- + "\022GetRagEngineConfig\022:.google.cloud.aiplatform.v1beta1.GetRagEngineConfigRequ"
- + "est\0320.google.cloud.aiplatform.v1beta1.Ra"
- + "gEngineConfig\"E\332A\004name\202\323\344\223\0028\0226/v1beta1/{"
- + "name=projects/*/locations/*/ragEngineCon"
- + "fig}\032M\312A\031aiplatform.googleapis.com\322A.htt"
- + "ps://www.googleapis.com/auth/cloud-platformB\360\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\031VertexRagDataServiceProtoP\001ZCcloud."
- + "google.com/go/aiplatform/apiv1beta1/aipl"
- + "atformpb;aiplatformpb\252\002\037Google.Cloud.AIP"
- + "latform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfor"
- + "m\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "/protobuf/empty.proto\032\027google/rpc/status"
+ + ".proto\"\230\001\n\026CreateRagCorpusRequest\0229\n\006par"
+ + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis."
+ + "com/Location\022C\n\nrag_corpus\030\002 \001(\0132*.googl"
+ + "e.cloud.aiplatform.v1beta1.RagCorpusB\003\340A"
+ + "\002\"P\n\023GetRagCorpusRequest\0229\n\004name\030\001 \001(\tB+"
+ + "\340A\002\372A%\n#aiplatform.googleapis.com/RagCor"
+ + "pus\"\203\001\n\025ListRagCorporaRequest\0229\n\006parent\030"
+ + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/"
+ + "Location\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage"
+ + "_token\030\003 \001(\tB\003\340A\001\"r\n\026ListRagCorporaRespo"
+ + "nse\022?\n\013rag_corpora\030\001 \003(\0132*.google.cloud."
+ + "aiplatform.v1beta1.RagCorpus\022\027\n\017next_pag"
+ + "e_token\030\002 \001(\t\"\202\001\n\026DeleteRagCorpusRequest"
+ + "\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#aiplatform.googl"
+ + "eapis.com/RagCorpus\022\022\n\005force\030\002 \001(\010B\003\340A\001\022"
+ + "\031\n\014force_delete\030\003 \001(\010B\003\340A\001\"\357\001\n\024UploadRag"
+ + "FileRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#aip"
+ + "latform.googleapis.com/RagCorpus\022?\n\010rag_"
+ + "file\030\002 \001(\0132(.google.cloud.aiplatform.v1b"
+ + "eta1.RagFileB\003\340A\002\022Y\n\026upload_rag_file_con"
+ + "fig\030\005 \001(\01324.google.cloud.aiplatform.v1be"
+ + "ta1.UploadRagFileConfigB\003\340A\002\"\204\001\n\025UploadR"
+ + "agFileResponse\022<\n\010rag_file\030\001 \001(\0132(.googl"
+ + "e.cloud.aiplatform.v1beta1.RagFileH\000\022#\n\005"
+ + "error\030\004 \001(\0132\022.google.rpc.StatusH\000B\010\n\006res"
+ + "ult\"\261\001\n\025ImportRagFilesRequest\022;\n\006parent\030"
+ + "\001 \001(\tB+\340A\002\372A%\n#aiplatform.googleapis.com"
+ + "/RagCorpus\022[\n\027import_rag_files_config\030\002 "
+ + "\001(\01325.google.cloud.aiplatform.v1beta1.Im"
+ + "portRagFilesConfigB\003\340A\002\"\343\001\n\026ImportRagFil"
+ + "esResponse\022#\n\031partial_failures_gcs_path\030"
+ + "\004 \001(\tH\000\022)\n\037partial_failures_bigquery_tab"
+ + "le\030\005 \001(\tH\000\022 \n\030imported_rag_files_count\030\001"
+ + " \001(\003\022\036\n\026failed_rag_files_count\030\002 \001(\003\022\037\n\027"
+ + "skipped_rag_files_count\030\003 \001(\003B\026\n\024partial"
+ + "_failure_sink\"L\n\021GetRagFileRequest\0227\n\004na"
+ + "me\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis."
+ + "com/RagFile\"\203\001\n\023ListRagFilesRequest\022;\n\006p"
+ + "arent\030\001 \001(\tB+\340A\002\372A%\n#aiplatform.googleap"
+ + "is.com/RagCorpus\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001"
+ + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"l\n\024ListRagFile"
+ + "sResponse\022;\n\trag_files\030\001 \003(\0132(.google.cl"
+ + "oud.aiplatform.v1beta1.RagFile\022\027\n\017next_p"
+ + "age_token\030\002 \001(\t\"j\n\024DeleteRagFileRequest\022"
+ + "7\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.google"
+ + "apis.com/RagFile\022\031\n\014force_delete\030\002 \001(\010B\003"
+ + "\340A\001\"w\n CreateRagCorpusOperationMetadata\022"
+ + "S\n\020generic_metadata\030\001 \001(\01329.google.cloud"
+ + ".aiplatform.v1beta1.GenericOperationMeta"
+ + "data\"\\\n\031GetRagEngineConfigRequest\022?\n\004nam"
+ + "e\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googleapis.c"
+ + "om/RagEngineConfig\"]\n\026UpdateRagCorpusReq"
+ + "uest\022C\n\nrag_corpus\030\001 \001(\0132*.google.cloud."
+ + "aiplatform.v1beta1.RagCorpusB\003\340A\002\"w\n Upd"
+ + "ateRagCorpusOperationMetadata\022S\n\020generic"
+ + "_metadata\030\001 \001(\01329.google.cloud.aiplatfor"
+ + "m.v1beta1.GenericOperationMetadata\"\207\002\n\037I"
+ + "mportRagFilesOperationMetadata\022S\n\020generi"
+ + "c_metadata\030\001 \001(\01329.google.cloud.aiplatfo"
+ + "rm.v1beta1.GenericOperationMetadata\022\025\n\rr"
+ + "ag_corpus_id\030\002 \001(\003\022[\n\027import_rag_files_c"
+ + "onfig\030\003 \001(\01325.google.cloud.aiplatform.v1"
+ + "beta1.ImportRagFilesConfigB\003\340A\003\022\033\n\023progr"
+ + "ess_percentage\030\004 \001(\005\"p\n\034UpdateRagEngineC"
+ + "onfigRequest\022P\n\021rag_engine_config\030\001 \001(\0132"
+ + "0.google.cloud.aiplatform.v1beta1.RagEng"
+ + "ineConfigB\003\340A\002\"}\n&UpdateRagEngineConfigO"
+ + "perationMetadata\022S\n\020generic_metadata\030\001 \001"
+ + "(\01329.google.cloud.aiplatform.v1beta1.Gen"
+ + "ericOperationMetadata2\307\026\n\024VertexRagDataS"
+ + "ervice\022\367\001\n\017CreateRagCorpus\0227.google.clou"
+ + "d.aiplatform.v1beta1.CreateRagCorpusRequ"
+ + "est\032\035.google.longrunning.Operation\"\213\001\312A-"
+ + "\n\tRagCorpus\022 CreateRagCorpusOperationMet"
+ + "adata\332A\021parent,rag_corpus\202\323\344\223\002A\"3/v1beta"
+ + "1/{parent=projects/*/locations/*}/ragCor"
+ + "pora:\nrag_corpus\022\373\001\n\017UpdateRagCorpus\0227.g"
+ + "oogle.cloud.aiplatform.v1beta1.UpdateRag"
+ + "CorpusRequest\032\035.google.longrunning.Opera"
+ + "tion\"\217\001\312A-\n\tRagCorpus\022 UpdateRagCorpusOp"
+ + "erationMetadata\332A\nrag_corpus\202\323\344\223\002L2>/v1b"
+ + "eta1/{rag_corpus.name=projects/*/locatio"
+ + "ns/*/ragCorpora/*}:\nrag_corpus\022\264\001\n\014GetRa"
+ + "gCorpus\0224.google.cloud.aiplatform.v1beta"
+ + "1.GetRagCorpusRequest\032*.google.cloud.aip"
+ + "latform.v1beta1.RagCorpus\"B\332A\004name\202\323\344\223\0025"
+ + "\0223/v1beta1/{name=projects/*/locations/*/"
+ + "ragCorpora/*}\022\307\001\n\016ListRagCorpora\0226.googl"
+ + "e.cloud.aiplatform.v1beta1.ListRagCorpor"
+ + "aRequest\0327.google.cloud.aiplatform.v1bet"
+ + "a1.ListRagCorporaResponse\"D\332A\006parent\202\323\344\223"
+ + "\0025\0223/v1beta1/{parent=projects/*/location"
+ + "s/*}/ragCorpora\022\340\001\n\017DeleteRagCorpus\0227.go"
+ + "ogle.cloud.aiplatform.v1beta1.DeleteRagC"
+ + "orpusRequest\032\035.google.longrunning.Operat"
+ + "ion\"u\312A0\n\025google.protobuf.Empty\022\027DeleteO"
+ + "perationMetadata\332A\004name\202\323\344\223\0025*3/v1beta1/"
+ + "{name=projects/*/locations/*/ragCorpora/"
+ + "*}\022\371\001\n\rUploadRagFile\0225.google.cloud.aipl"
+ + "atform.v1beta1.UploadRagFileRequest\0326.go"
+ + "ogle.cloud.aiplatform.v1beta1.UploadRagF"
+ + "ileResponse\"y\332A&parent,rag_file,upload_r"
+ + "ag_file_config\202\323\344\223\002J\"E/v1beta1/{parent=p"
+ + "rojects/*/locations/*/ragCorpora/*}/ragF"
+ + "iles:upload:\001*\022\227\002\n\016ImportRagFiles\0226.goog"
+ + "le.cloud.aiplatform.v1beta1.ImportRagFil"
+ + "esRequest\032\035.google.longrunning.Operation"
+ + "\"\255\001\312A9\n\026ImportRagFilesResponse\022\037ImportRa"
+ + "gFilesOperationMetadata\332A\036parent,import_"
+ + "rag_files_config\202\323\344\223\002J\"E/v1beta1/{parent"
+ + "=projects/*/locations/*/ragCorpora/*}/ra"
+ + "gFiles:import:\001*\022\271\001\n\nGetRagFile\0222.google"
+ + ".cloud.aiplatform.v1beta1.GetRagFileRequ"
+ + "est\032(.google.cloud.aiplatform.v1beta1.Ra"
+ + "gFile\"M\332A\004name\202\323\344\223\002@\022>/v1beta1/{name=pro"
+ + "jects/*/locations/*/ragCorpora/*/ragFile"
+ + "s/*}\022\314\001\n\014ListRagFiles\0224.google.cloud.aip"
+ + "latform.v1beta1.ListRagFilesRequest\0325.go"
+ + "ogle.cloud.aiplatform.v1beta1.ListRagFil"
+ + "esResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1beta1/{p"
+ + "arent=projects/*/locations/*/ragCorpora/"
+ + "*}/ragFiles\022\350\001\n\rDeleteRagFile\0225.google.c"
+ + "loud.aiplatform.v1beta1.DeleteRagFileReq"
+ + "uest\032\035.google.longrunning.Operation\"\200\001\312A"
+ + "0\n\025google.protobuf.Empty\022\027DeleteOperatio"
+ + "nMetadata\332A\004name\202\323\344\223\002@*>/v1beta1/{name=p"
+ + "rojects/*/locations/*/ragCorpora/*/ragFi"
+ + "les/*}\022\253\002\n\025UpdateRagEngineConfig\022=.googl"
+ + "e.cloud.aiplatform.v1beta1.UpdateRagEngi"
+ + "neConfigRequest\032\035.google.longrunning.Ope"
+ + "ration\"\263\001\312A9\n\017RagEngineConfig\022&UpdateRag"
+ + "EngineConfigOperationMetadata\332A\021rag_engi"
+ + "ne_config\202\323\344\223\002]2H/v1beta1/{rag_engine_co"
+ + "nfig.name=projects/*/locations/*/ragEngi"
+ + "neConfig}:\021rag_engine_config\022\311\001\n\022GetRagE"
+ + "ngineConfig\022:.google.cloud.aiplatform.v1"
+ + "beta1.GetRagEngineConfigRequest\0320.google"
+ + ".cloud.aiplatform.v1beta1.RagEngineConfi"
+ + "g\"E\332A\004name\202\323\344\223\0028\0226/v1beta1/{name=project"
+ + "s/*/locations/*/ragEngineConfig}\032M\312A\031aip"
+ + "latform.googleapis.com\322A.https://www.goo"
+ + "gleapis.com/auth/cloud-platformB\360\001\n#com."
+ + "google.cloud.aiplatform.v1beta1B\031VertexR"
+ + "agDataServiceProtoP\001ZCcloud.google.com/g"
+ + "o/aiplatform/apiv1beta1/aiplatformpb;aip"
+ + "latformpb\252\002\037Google.Cloud.AIPlatform.V1Be"
+ + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\""
+ + "Google::Cloud::AIPlatform::V1beta1b\006prot"
+ + "o3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -339,7 +341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_DeleteRagCorpusRequest_descriptor,
new java.lang.String[] {
- "Name", "Force",
+ "Name", "Force", "ForceDelete",
});
internal_static_google_cloud_aiplatform_v1beta1_UploadRagFileRequest_descriptor =
getDescriptor().getMessageType(5);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto
index 15607889a3eb..7be3f4f5edce 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.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.
@@ -70,6 +70,10 @@ message BatchPredictionJob {
// additional columns that are not described by the schema, and they will
// be ignored.
BigQuerySource bigquery_source = 3;
+
+ // A Vertex Managed Dataset. Currently, only datasets of type Multimodal
+ // are supported.
+ VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4;
}
// Required. The format in which instances are given, must be one of the
@@ -230,6 +234,11 @@ message BatchPredictionJob {
// has [google.rpc.Status][google.rpc.Status]
// represented as a STRUCT, and containing only `code` and `message`.
BigQueryDestination bigquery_destination = 3;
+
+ // The details for a Vertex Multimodal Dataset that will be created for
+ // the output.
+ VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination =
+ 6;
}
// Required. The format in which Vertex AI gives the predictions, must be
@@ -255,6 +264,16 @@ message BatchPredictionJob {
// format, into which the prediction output is written.
string bigquery_output_dataset = 2
[(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The resource name of the Vertex Managed Dataset created,
+ // into which the prediction output is written. Format:
+ // `projects/{project}/locations/{location}/datasets/{dataset}`
+ string vertex_multimodal_dataset_name = 5 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/Dataset"
+ }
+ ];
}
// Output only. The name of the BigQuery table created, in
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto
index 43032debb0c1..d208f8e2ec26 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.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.
@@ -40,9 +40,14 @@ message Dataset {
};
// Output only. Identifier. The resource name of the Dataset.
+ // Format:
+ // `projects/{project}/locations/{location}/datasets/{dataset}`
string name = 1 [
(google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.field_behavior) = IDENTIFIER
+ (google.api.field_behavior) = IDENTIFIER,
+ (google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/Dataset"
+ }
];
// Required. The user-defined name of the Dataset.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto
index 4599081f7426..ecdeb1a0da9c 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.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.
@@ -37,9 +37,14 @@ message DatasetVersion {
};
// Output only. Identifier. The resource name of the DatasetVersion.
+ // Format:
+ // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
string name = 1 [
(google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.field_behavior) = IDENTIFIER
+ (google.api.field_behavior) = IDENTIFIER,
+ (google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/DatasetVersion"
+ }
];
// Output only. Timestamp when this DatasetVersion was created.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto
index eb34506f2dd4..3b85f235571d 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.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.
@@ -17,6 +17,7 @@ syntax = "proto3";
package google.cloud.aiplatform.v1beta1;
import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
import "google/cloud/aiplatform/v1beta1/api_auth.proto";
import "google/protobuf/timestamp.proto";
@@ -82,6 +83,30 @@ message BigQueryDestination {
string output_uri = 1 [(google.api.field_behavior) = REQUIRED];
}
+// The Vertex Multimodal Dataset for the input content.
+message VertexMultimodalDatasetSource {
+ // Required. The resource name of the Vertex Dataset.
+ // Format: `projects/{project}/locations/{location}/datasets/{dataset}`
+ string dataset_name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/Dataset"
+ }
+ ];
+}
+
+// The details for a Vertex Multimodal Dataset output.
+message VertexMultimodalDatasetDestination {
+ // Optional. The destination of the underlying BigQuery table that will be
+ // created for the output Multimodal Dataset. If not specified, the BigQuery
+ // table will be created in a default BigQuery dataset.
+ BigQueryDestination bigquery_destination = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Display name of the output dataset.
+ string display_name = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
// The storage details for CSV output content.
message CsvDestination {
// Required. Google Cloud Storage location.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto
index 914e9b5108d4..da2f9f6bfa25 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto
@@ -257,6 +257,10 @@ message DeleteRagCorpusRequest {
// deleted. Otherwise, the request will only work if the RagCorpus has no
// RagFiles.
bool force = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If set to true, any errors generated by external vector database
+ // during the deletion will be ignored. The default value is false.
+ bool force_delete = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java
index 4ddc19d9b7e5..17eaa5dc843c 100644
--- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java
@@ -41,6 +41,7 @@ public static void asyncDeleteRagCorpus() throws Exception {
DeleteRagCorpusRequest.newBuilder()
.setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString())
.setForce(true)
+ .setForceDelete(true)
.build();
ApiFuture
ListLocations
Lists information about the supported locations for this service.
Lists information about the supported locations for this service.This method can be called in two ways: + *
* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
** **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -7123,7 +7130,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -7157,7 +7170,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code:
*
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java
index c84988f9e76e..185058aa92c1 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java
@@ -84,14 +84,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n"
+ ".google/devtools/artifactregistry/v1/file.proto\022#google.devtools.artifactregist"
+ "ry.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032"
- + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\223\001\n"
+ + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\246\001\n"
+ "\004Hash\022@\n"
+ "\004type\030\001 \001(\01622.google.devtools.artifactregistry.v1.Hash.HashType\022\r\n"
- + "\005value\030\002 \001(\014\":\n"
+ + "\005value\030\002 \001(\014\"M\n"
+ "\010HashType\022\031\n"
+ "\025HASH_TYPE_UNSPECIFIED\020\000\022\n\n"
+ "\006SHA256\020\001\022\007\n"
- + "\003MD5\020\002\"\230\004\n"
+ + "\003MD5\020\002\022\021\n\r"
+ + "DIRSUM_SHA256\020\003\"\230\004\n"
+ "\004File\022\014\n"
+ "\004name\030\001 \001(\t\022\022\n\n"
+ "size_bytes\030\003 \001(\003\0229\n"
@@ -100,16 +101,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\r\n"
+ "\005owner\030\007 \001(\t\0223\n\n"
+ "fetch_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022T\n"
- + "\013annotations\030\t \003(\0132:.google.devtools."
- + "artifactregistry.v1.File.AnnotationsEntryB\003\340A\001\0322\n"
+ + "\013annotations\030\t \003(\013"
+ + "2:.google.devtools.artifactregistry.v1.File.AnnotationsEntryB\003\340A\001\0322\n"
+ "\020AnnotationsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001:y\352Av\n"
- + "$artifactregistry.googleapis.com/File\022Nprojects/{project"
- + "}/locations/{location}/repositories/{repository}/files/{file}\"\231\001\n"
+ + "$artifactregistry.googleapis.com/File\022Nprojects/{project}/locations/{location"
+ + "}/repositories/{repository}/files/{file}\"\231\001\n"
+ "\020ListFilesRequest\022<\n"
- + "\006parent\030\001 \001("
- + "\tB,\340A\002\372A&\022$artifactregistry.googleapis.com/File\022\016\n"
+ + "\006parent\030\001 \001(\tB,\340"
+ + "A\002\372A&\022$artifactregistry.googleapis.com/File\022\016\n"
+ "\006filter\030\004 \001(\t\022\021\n"
+ "\tpage_size\030\002 \001(\005\022\022\n\n"
+ "page_token\030\003 \001(\t\022\020\n"
@@ -124,14 +125,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004name\030\001 \001(\tB,\340A\002\372A&\n"
+ "$artifactregistry.googleapis.com/File\"\207\001\n"
+ "\021UpdateFileRequest\022<\n"
- + "\004file\030\001 \001(\0132).g"
- + "oogle.devtools.artifactregistry.v1.FileB\003\340A\002\0224\n"
+ + "\004file\030\001"
+ + " \001(\0132).google.devtools.artifactregistry.v1.FileB\003\340A\002\0224\n"
+ "\013update_mask\030\002"
+ " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002B\364\001\n"
- + "\'com.google.devtools.artifactregistry.v1B\tFileProtoP\001ZPclo"
- + "ud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\252\002"
- + " Google.Cloud.ArtifactRegistry.V1\312\002 Googl"
- + "e\\Cloud\\ArtifactRegistry\\V1\352\002#Google::Cloud::ArtifactRegistry::V1b\006proto3"
+ + "\'com.google.devtools.artifactregistry.v1B\tFileProtoP\001ZPcloud.google.com/go/arti"
+ + "factregistry/apiv1/artifactregistrypb;artifactregistrypb\252\002"
+ + " Google.Cloud.ArtifactRegistry.V1\312\002 Google\\Cloud\\ArtifactRegis"
+ + "try\\V1\352\002#Google::Cloud::ArtifactRegistry::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java
index c6a05a020f4a..56398a00f2e1 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java
@@ -111,6 +111,16 @@ public enum HashType implements com.google.protobuf.ProtocolMessageEnum {
* MD5 = 2;
*/
MD5(2),
+ /**
+ *
+ *
+ *
+ * Dirsum SHA256 hash. + *+ * + *
DIRSUM_SHA256 = 3;
+ */
+ DIRSUM_SHA256(3),
UNRECOGNIZED(-1),
;
@@ -157,6 +167,17 @@ public enum HashType implements com.google.protobuf.ProtocolMessageEnum {
*/
public static final int MD5_VALUE = 2;
+ /**
+ *
+ *
+ * + * Dirsum SHA256 hash. + *+ * + *
DIRSUM_SHA256 = 3;
+ */
+ public static final int DIRSUM_SHA256_VALUE = 3;
+
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
@@ -187,6 +208,8 @@ public static HashType forNumber(int value) {
return SHA256;
case 2:
return MD5;
+ case 3:
+ return DIRSUM_SHA256;
default:
return null;
}
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.proto
index c9da2a5d7be8..67a1b9cf42b6 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto
index 691638efd8d6..a61538a9475f 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto
index 7f283f684a87..da05158d2d81 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto
index 2e89c126a96e..890e42a9e0c1 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto
index 35b3ebde6f87..ed5886d9f5e7 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.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.
@@ -41,6 +41,9 @@ message Hash {
// MD5 hash.
MD5 = 2;
+
+ // Dirsum SHA256 hash.
+ DIRSUM_SHA256 = 3;
}
// The algorithm used to compute the hash value.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto
index b26f31a9e783..85c0c10f0ff4 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.proto
index 0f459b4f1cf2..3a5d56918cbb 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.proto
index 94641accdbb0..c7e59a59d84b 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto
index 35ae37ef1e5b..8bb9c0426a71 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto
index 40fc30a008a7..82bfb3ebf3f3 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto
index cfe5be0ab580..03be67007bdc 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto
index b7e7c368092d..0b17ae07be06 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto
index 54f94b30a788..f617db75c128 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto
index 3268a2f8ad0c..a7bcb3d59734 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto
index 4efa5c15fec3..05a547676135 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_config.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_config.proto
index 477bbda9a89f..a2c5b5100b79 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_config.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_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-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.proto
index 3592c8f4896f..b36a13118249 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.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-asset/README.md b/java-asset/README.md
index 59b045948cdc..f805802fe19d 100644
--- a/java-asset/README.md
+++ b/java-asset/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
+ * Metadata about the source space from which a message was forwarded. + *+ * + * Protobuf type {@code google.chat.v1.ForwardedMetadata} + */ +@com.google.protobuf.Generated +public final class ForwardedMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.ForwardedMetadata) + ForwardedMetadataOrBuilder { + 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= */ "", + "ForwardedMetadata"); + } + + // Use ForwardedMetadata.newBuilder() to construct. + private ForwardedMetadata(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ForwardedMetadata() { + space_ = ""; + spaceDisplayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ForwardedMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ForwardedMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ForwardedMetadata.class, + com.google.chat.v1.ForwardedMetadata.Builder.class); + } + + public static final int SPACE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object space_ = ""; + + /** + * + * + *
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The space.
+ */
+ @java.lang.Override
+ public java.lang.String getSpace() {
+ java.lang.Object ref = space_;
+ 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();
+ space_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for space.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSpaceBytes() {
+ java.lang.Object ref = space_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ space_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SPACE_DISPLAY_NAME_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object spaceDisplayName_ = "";
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The spaceDisplayName.
+ */
+ @java.lang.Override
+ public java.lang.String getSpaceDisplayName() {
+ java.lang.Object ref = spaceDisplayName_;
+ 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();
+ spaceDisplayName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for spaceDisplayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSpaceDisplayNameBytes() {
+ java.lang.Object ref = spaceDisplayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ spaceDisplayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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(space_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, space_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(spaceDisplayName_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, spaceDisplayName_);
+ }
+ 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(space_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, space_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(spaceDisplayName_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, spaceDisplayName_);
+ }
+ 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.chat.v1.ForwardedMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.chat.v1.ForwardedMetadata other = (com.google.chat.v1.ForwardedMetadata) obj;
+
+ if (!getSpace().equals(other.getSpace())) return false;
+ if (!getSpaceDisplayName().equals(other.getSpaceDisplayName())) 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) + SPACE_FIELD_NUMBER;
+ hash = (53 * hash) + getSpace().hashCode();
+ hash = (37 * hash) + SPACE_DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getSpaceDisplayName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata 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.chat.v1.ForwardedMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata 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.chat.v1.ForwardedMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata 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.chat.v1.ForwardedMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata 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.chat.v1.ForwardedMetadata 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;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata about the source space from which a message was forwarded. + *+ * + * Protobuf type {@code google.chat.v1.ForwardedMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The space.
+ */
+ public java.lang.String getSpace() {
+ java.lang.Object ref = space_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ space_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for space.
+ */
+ public com.google.protobuf.ByteString getSpaceBytes() {
+ java.lang.Object ref = space_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ space_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The space to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpace(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ space_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSpace() {
+ space_ = getDefaultInstance().getSpace();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for space to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpaceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ space_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object spaceDisplayName_ = "";
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The spaceDisplayName.
+ */
+ public java.lang.String getSpaceDisplayName() {
+ java.lang.Object ref = spaceDisplayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ spaceDisplayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for spaceDisplayName.
+ */
+ public com.google.protobuf.ByteString getSpaceDisplayNameBytes() {
+ java.lang.Object ref = spaceDisplayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ spaceDisplayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The spaceDisplayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpaceDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ spaceDisplayName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSpaceDisplayName() {
+ spaceDisplayName_ = getDefaultInstance().getSpaceDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for spaceDisplayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpaceDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ spaceDisplayName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.chat.v1.ForwardedMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.chat.v1.ForwardedMetadata)
+ private static final com.google.chat.v1.ForwardedMetadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.chat.v1.ForwardedMetadata();
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The space.
+ */
+ java.lang.String getSpace();
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for space.
+ */
+ com.google.protobuf.ByteString getSpaceBytes();
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The spaceDisplayName.
+ */
+ java.lang.String getSpaceDisplayName();
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for spaceDisplayName.
+ */
+ com.google.protobuf.ByteString getSpaceDisplayNameBytes();
+}
diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java
index 1cbdece1616a..115913969de9 100644
--- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java
+++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java
@@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_chat_v1_QuotedMessageMetadata_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_chat_v1_QuotedMessageMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_chat_v1_QuotedMessageSnapshot_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_chat_v1_ForwardedMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_chat_v1_ForwardedMetadata_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_chat_v1_Thread_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -173,28 +181,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "(\0132\037.google.chat.v1.AccessoryWidgetB\003\340A\001:C\352A@\n"
+ "\033chat.googleapis.com/Message\022!spaces/{space}/messages/{message}\"\037\n"
+ "\013AttachedGif\022\020\n"
- + "\003uri\030\001 \001(\tB\003\340A\003\"\211\002\n"
+ + "\003uri\030\001 \001(\tB\003\340A\003\"\230\004\n"
+ "\025QuotedMessageMetadata\0221\n"
+ "\004name\030\001 \001(\tB#\340A\002\372A\035\n"
+ "\033chat.googleapis.com/Message\0229\n"
+ "\020last_update_time\030\002"
- + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002:\201\001\352A~\n"
- + ")chat.googleapis.com/QuotedMessageMetadata\022Qspaces/{space}/messages/{messag"
- + "e}/quotedMessageMetadata/{quoted_message_metadata}\"v\n"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022H\n\n"
+ + "quote_type\030\004"
+ + " \001(\0162/.google.chat.v1.QuotedMessageMetadata.QuoteTypeB\003\340A\001\022K\n"
+ + "\027quoted_message_snapshot\030\005"
+ + " \001(\0132%.google.chat.v1.QuotedMessageSnapshotB\003\340A\003\022B\n"
+ + "\022forwarded_metadata\030\006"
+ + " \001(\0132!.google.chat.v1.ForwardedMetadataB\003\340A\003\"2\n"
+ + "\tQuoteType\022\032\n"
+ + "\026QUOTE_TYPE_UNSPECIFIED\020\000\022\t\n"
+ + "\005REPLY\020\001:\201\001\352A~\n"
+ + ")chat.googleapis.com/QuotedMessageMetadata\022Q"
+ + "spaces/{space}/messages/{message}/quoted"
+ + "MessageMetadata/{quoted_message_metadata}\"\310\001\n"
+ + "\025QuotedMessageSnapshot\022\023\n"
+ + "\006sender\030\001 \001(\tB\003\340A\003\022\021\n"
+ + "\004text\030\002 \001(\tB\003\340A\003\022\033\n"
+ + "\016formatted_text\030\003 \001(\tB\003\340A\003\0224\n"
+ + "\013annotations\030\004 \003(\0132\032.google.chat.v1.AnnotationB\003\340A\003\0224\n"
+ + "\013attachments\030\005 \003(\0132\032.google.chat.v1.AttachmentB\003\340A\003\"f\n"
+ + "\021ForwardedMetadata\0220\n"
+ + "\005space\030\001 \001(\tB!\340A\003\372A\033\n"
+ + "\031chat.googleapis.com/Space\022\037\n"
+ + "\022space_display_name\030\002 \001(\tB\003\340A\003\"v\n"
+ "\006Thread\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\010\022\027\n\n"
+ "thread_key\030\003 \001(\tB\003\340A\001:@\352A=\n"
+ "\032chat.googleapis.com/Thread\022\037spaces/{space}/threads/{thread}\"\322\004\n"
+ "\016ActionResponse\022>\n"
- + "\004type\030\001 "
- + "\001(\0162+.google.chat.v1.ActionResponse.ResponseTypeB\003\340A\004\022\020\n"
+ + "\004type\030\001"
+ + " \001(\0162+.google.chat.v1.ActionResponse.ResponseTypeB\003\340A\004\022\020\n"
+ "\003url\030\002 \001(\tB\003\340A\004\0228\n\r"
+ "dialog_action\030\003 \001(\0132\034.google.chat.v1.DialogActionB\003\340A\004\022I\n"
- + "\016updated_widget\030\004 \001(\0132,.goog"
- + "le.chat.v1.ActionResponse.UpdatedWidgetB\003\340A\004\032R\n"
+ + "\016updated_widget\030\004"
+ + " \001(\0132,.google.chat.v1.ActionResponse.UpdatedWidgetB\003\340A\004\032R\n"
+ "\016SelectionItems\022@\n"
- + "\005items\030\001 \003(\01321."
- + "google.apps.card.v1.SelectionInput.SelectionItem\032w\n\r"
+ + "\005items\030\001"
+ + " \003(\01321.google.apps.card.v1.SelectionInput.SelectionItem\032w\n\r"
+ "UpdatedWidget\022D\n"
+ "\013suggestions\030\001"
+ " \001(\0132-.google.chat.v1.ActionResponse.SelectionItemsH\000\022\016\n"
@@ -229,8 +257,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\007message\030\004 \001(\0132\027.google.chat.v1.MessageB\003\340A\002\022\031\n\n"
+ "thread_key\030\006 \001(\tB\005\030\001\340A\001\022\027\n\n"
+ "request_id\030\007 \001(\tB\003\340A\001\022Z\n"
- + "\024message_reply_option\030\010 \001(\01627.google.chat.v1.Cr"
- + "eateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n"
+ + "\024message_reply_option\030\010 \001(\01627"
+ + ".google.chat.v1.CreateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n"
+ "message_id\030\t \001(\tB\003\340A\001\"\177\n"
+ "\022MessageReplyOption\022$\n"
+ " MESSAGE_REPLY_OPTION_UNSPECIFIED\020\000\022(\n"
@@ -256,10 +284,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "CardWithId\022\017\n"
+ "\007card_id\030\001 \001(\t\022\'\n"
+ "\004card\030\002 \001(\0132\031.google.apps.card.v1.CardB\245\001\n"
- + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.c"
- + "om/go/chat/apiv1/chatpb;chatpb\242\002\013DYNAPIP"
- + "roto\252\002\023Google.Apps.Chat.V1\312\002\023Google\\Apps"
- + "\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3"
+ + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.com/go/chat/apiv1/chatp"
+ + "b;chatpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Cha"
+ + "t.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -326,16 +353,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_QuotedMessageMetadata_descriptor,
new java.lang.String[] {
- "Name", "LastUpdateTime",
+ "Name", "LastUpdateTime", "QuoteType", "QuotedMessageSnapshot", "ForwardedMetadata",
+ });
+ internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor =
+ getDescriptor().getMessageType(3);
+ internal_static_google_chat_v1_QuotedMessageSnapshot_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor,
+ new java.lang.String[] {
+ "Sender", "Text", "FormattedText", "Annotations", "Attachments",
+ });
+ internal_static_google_chat_v1_ForwardedMetadata_descriptor = getDescriptor().getMessageType(4);
+ internal_static_google_chat_v1_ForwardedMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_chat_v1_ForwardedMetadata_descriptor,
+ new java.lang.String[] {
+ "Space", "SpaceDisplayName",
});
- internal_static_google_chat_v1_Thread_descriptor = getDescriptor().getMessageType(3);
+ internal_static_google_chat_v1_Thread_descriptor = getDescriptor().getMessageType(5);
internal_static_google_chat_v1_Thread_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_Thread_descriptor,
new java.lang.String[] {
"Name", "ThreadKey",
});
- internal_static_google_chat_v1_ActionResponse_descriptor = getDescriptor().getMessageType(4);
+ internal_static_google_chat_v1_ActionResponse_descriptor = getDescriptor().getMessageType(6);
internal_static_google_chat_v1_ActionResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_ActionResponse_descriptor,
@@ -358,14 +400,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Suggestions", "Widget", "UpdatedWidget",
});
- internal_static_google_chat_v1_AccessoryWidget_descriptor = getDescriptor().getMessageType(5);
+ internal_static_google_chat_v1_AccessoryWidget_descriptor = getDescriptor().getMessageType(7);
internal_static_google_chat_v1_AccessoryWidget_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_AccessoryWidget_descriptor,
new java.lang.String[] {
"ButtonList", "Action",
});
- internal_static_google_chat_v1_GetMessageRequest_descriptor = getDescriptor().getMessageType(6);
+ internal_static_google_chat_v1_GetMessageRequest_descriptor = getDescriptor().getMessageType(8);
internal_static_google_chat_v1_GetMessageRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_GetMessageRequest_descriptor,
@@ -373,7 +415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_chat_v1_DeleteMessageRequest_descriptor =
- getDescriptor().getMessageType(7);
+ getDescriptor().getMessageType(9);
internal_static_google_chat_v1_DeleteMessageRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_DeleteMessageRequest_descriptor,
@@ -381,7 +423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name", "Force",
});
internal_static_google_chat_v1_UpdateMessageRequest_descriptor =
- getDescriptor().getMessageType(8);
+ getDescriptor().getMessageType(10);
internal_static_google_chat_v1_UpdateMessageRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_UpdateMessageRequest_descriptor,
@@ -389,7 +431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Message", "UpdateMask", "AllowMissing",
});
internal_static_google_chat_v1_CreateMessageRequest_descriptor =
- getDescriptor().getMessageType(9);
+ getDescriptor().getMessageType(11);
internal_static_google_chat_v1_CreateMessageRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_CreateMessageRequest_descriptor,
@@ -397,7 +439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "Message", "ThreadKey", "RequestId", "MessageReplyOption", "MessageId",
});
internal_static_google_chat_v1_ListMessagesRequest_descriptor =
- getDescriptor().getMessageType(10);
+ getDescriptor().getMessageType(12);
internal_static_google_chat_v1_ListMessagesRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_ListMessagesRequest_descriptor,
@@ -405,28 +447,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "PageSize", "PageToken", "Filter", "OrderBy", "ShowDeleted",
});
internal_static_google_chat_v1_ListMessagesResponse_descriptor =
- getDescriptor().getMessageType(11);
+ getDescriptor().getMessageType(13);
internal_static_google_chat_v1_ListMessagesResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_ListMessagesResponse_descriptor,
new java.lang.String[] {
"Messages", "NextPageToken",
});
- internal_static_google_chat_v1_DialogAction_descriptor = getDescriptor().getMessageType(12);
+ internal_static_google_chat_v1_DialogAction_descriptor = getDescriptor().getMessageType(14);
internal_static_google_chat_v1_DialogAction_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_DialogAction_descriptor,
new java.lang.String[] {
"Dialog", "ActionStatus", "Action",
});
- internal_static_google_chat_v1_Dialog_descriptor = getDescriptor().getMessageType(13);
+ internal_static_google_chat_v1_Dialog_descriptor = getDescriptor().getMessageType(15);
internal_static_google_chat_v1_Dialog_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_Dialog_descriptor,
new java.lang.String[] {
"Body",
});
- internal_static_google_chat_v1_CardWithId_descriptor = getDescriptor().getMessageType(14);
+ internal_static_google_chat_v1_CardWithId_descriptor = getDescriptor().getMessageType(16);
internal_static_google_chat_v1_CardWithId_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_CardWithId_descriptor,
diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java
index de3b0b9ea651..9377b036a1bc 100644
--- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java
+++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java
@@ -63,6 +63,7 @@ private QuotedMessageMetadata(com.google.protobuf.GeneratedMessage.Builder> bu
private QuotedMessageMetadata() {
name_ = "";
+ quoteType_ = 0;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -80,6 +81,168 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.chat.v1.QuotedMessageMetadata.Builder.class);
}
+ /**
+ *
+ *
+ * + * The quote type of the quoted message. + *+ * + * Protobuf enum {@code google.chat.v1.QuotedMessageMetadata.QuoteType} + */ + public enum QuoteType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Reserved. This value is unused. + *+ * + *
QUOTE_TYPE_UNSPECIFIED = 0;
+ */
+ QUOTE_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * If quote_type is `REPLY`, you can do the following: + * + * * If you're replying in a thread, you can quote another message in that + * thread. + * + * * If you're creating a root message, you can quote another root message + * in that space. + * + * You can't quote a message reply from a different thread. + *+ * + *
REPLY = 1;
+ */
+ REPLY(1),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "QuoteType");
+ }
+
+ /**
+ *
+ *
+ * + * Reserved. This value is unused. + *+ * + *
QUOTE_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int QUOTE_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * If quote_type is `REPLY`, you can do the following: + * + * * If you're replying in a thread, you can quote another message in that + * thread. + * + * * If you're creating a root message, you can quote another root message + * in that space. + * + * You can't quote a message reply from a different thread. + *+ * + *
REPLY = 1;
+ */
+ public static final int REPLY_VALUE = 1;
+
+ 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 QuoteType 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 QuoteType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return QUOTE_TYPE_UNSPECIFIED;
+ case 1:
+ return REPLY;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for quoteType.
+ */
+ @java.lang.Override
+ public int getQuoteTypeValue() {
+ return quoteType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The quoteType.
+ */
+ @java.lang.Override
+ public com.google.chat.v1.QuotedMessageMetadata.QuoteType getQuoteType() {
+ com.google.chat.v1.QuotedMessageMetadata.QuoteType result =
+ com.google.chat.v1.QuotedMessageMetadata.QuoteType.forNumber(quoteType_);
+ return result == null
+ ? com.google.chat.v1.QuotedMessageMetadata.QuoteType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int QUOTED_MESSAGE_SNAPSHOT_FIELD_NUMBER = 5;
+ private com.google.chat.v1.QuotedMessageSnapshot quotedMessageSnapshot_;
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the quotedMessageSnapshot field is set.
+ */
+ @java.lang.Override
+ public boolean hasQuotedMessageSnapshot() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The quotedMessageSnapshot.
+ */
+ @java.lang.Override
+ public com.google.chat.v1.QuotedMessageSnapshot getQuotedMessageSnapshot() {
+ return quotedMessageSnapshot_ == null
+ ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance()
+ : quotedMessageSnapshot_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.chat.v1.QuotedMessageSnapshotOrBuilder getQuotedMessageSnapshotOrBuilder() {
+ return quotedMessageSnapshot_ == null
+ ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance()
+ : quotedMessageSnapshot_;
+ }
+
+ public static final int FORWARDED_METADATA_FIELD_NUMBER = 6;
+ private com.google.chat.v1.ForwardedMetadata forwardedMetadata_;
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the forwardedMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasForwardedMetadata() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The forwardedMetadata.
+ */
+ @java.lang.Override
+ public com.google.chat.v1.ForwardedMetadata getForwardedMetadata() {
+ return forwardedMetadata_ == null
+ ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance()
+ : forwardedMetadata_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.chat.v1.ForwardedMetadataOrBuilder getForwardedMetadataOrBuilder() {
+ return forwardedMetadata_ == null
+ ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance()
+ : forwardedMetadata_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -242,6 +571,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getLastUpdateTime());
}
+ if (quoteType_
+ != com.google.chat.v1.QuotedMessageMetadata.QuoteType.QUOTE_TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(4, quoteType_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(5, getQuotedMessageSnapshot());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(6, getForwardedMetadata());
+ }
getUnknownFields().writeTo(output);
}
@@ -257,6 +596,17 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastUpdateTime());
}
+ if (quoteType_
+ != com.google.chat.v1.QuotedMessageMetadata.QuoteType.QUOTE_TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, quoteType_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(5, getQuotedMessageSnapshot());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getForwardedMetadata());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -277,6 +627,15 @@ public boolean equals(final java.lang.Object obj) {
if (hasLastUpdateTime()) {
if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false;
}
+ if (quoteType_ != other.quoteType_) return false;
+ if (hasQuotedMessageSnapshot() != other.hasQuotedMessageSnapshot()) return false;
+ if (hasQuotedMessageSnapshot()) {
+ if (!getQuotedMessageSnapshot().equals(other.getQuotedMessageSnapshot())) return false;
+ }
+ if (hasForwardedMetadata() != other.hasForwardedMetadata()) return false;
+ if (hasForwardedMetadata()) {
+ if (!getForwardedMetadata().equals(other.getForwardedMetadata())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -294,6 +653,16 @@ public int hashCode() {
hash = (37 * hash) + LAST_UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getLastUpdateTime().hashCode();
}
+ hash = (37 * hash) + QUOTE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + quoteType_;
+ if (hasQuotedMessageSnapshot()) {
+ hash = (37 * hash) + QUOTED_MESSAGE_SNAPSHOT_FIELD_NUMBER;
+ hash = (53 * hash) + getQuotedMessageSnapshot().hashCode();
+ }
+ if (hasForwardedMetadata()) {
+ hash = (37 * hash) + FORWARDED_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getForwardedMetadata().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -446,6 +815,8 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
internalGetLastUpdateTimeFieldBuilder();
+ internalGetQuotedMessageSnapshotFieldBuilder();
+ internalGetForwardedMetadataFieldBuilder();
}
}
@@ -459,6 +830,17 @@ public Builder clear() {
lastUpdateTimeBuilder_.dispose();
lastUpdateTimeBuilder_ = null;
}
+ quoteType_ = 0;
+ quotedMessageSnapshot_ = null;
+ if (quotedMessageSnapshotBuilder_ != null) {
+ quotedMessageSnapshotBuilder_.dispose();
+ quotedMessageSnapshotBuilder_ = null;
+ }
+ forwardedMetadata_ = null;
+ if (forwardedMetadataBuilder_ != null) {
+ forwardedMetadataBuilder_.dispose();
+ forwardedMetadataBuilder_ = null;
+ }
return this;
}
@@ -504,6 +886,23 @@ private void buildPartial0(com.google.chat.v1.QuotedMessageMetadata result) {
lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.quoteType_ = quoteType_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.quotedMessageSnapshot_ =
+ quotedMessageSnapshotBuilder_ == null
+ ? quotedMessageSnapshot_
+ : quotedMessageSnapshotBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.forwardedMetadata_ =
+ forwardedMetadataBuilder_ == null
+ ? forwardedMetadata_
+ : forwardedMetadataBuilder_.build();
+ to_bitField0_ |= 0x00000004;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -527,6 +926,15 @@ public Builder mergeFrom(com.google.chat.v1.QuotedMessageMetadata other) {
if (other.hasLastUpdateTime()) {
mergeLastUpdateTime(other.getLastUpdateTime());
}
+ if (other.quoteType_ != 0) {
+ setQuoteTypeValue(other.getQuoteTypeValue());
+ }
+ if (other.hasQuotedMessageSnapshot()) {
+ mergeQuotedMessageSnapshot(other.getQuotedMessageSnapshot());
+ }
+ if (other.hasForwardedMetadata()) {
+ mergeForwardedMetadata(other.getForwardedMetadata());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -566,6 +974,26 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 32:
+ {
+ quoteType_ = input.readEnum();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 32
+ case 42:
+ {
+ input.readMessage(
+ internalGetQuotedMessageSnapshotFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 42
+ case 50:
+ {
+ input.readMessage(
+ internalGetForwardedMetadataFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -991,6 +1419,554 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
return lastUpdateTimeBuilder_;
}
+ private int quoteType_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for quoteType.
+ */
+ @java.lang.Override
+ public int getQuoteTypeValue() {
+ return quoteType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for quoteType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQuoteTypeValue(int value) {
+ quoteType_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The quoteType.
+ */
+ @java.lang.Override
+ public com.google.chat.v1.QuotedMessageMetadata.QuoteType getQuoteType() {
+ com.google.chat.v1.QuotedMessageMetadata.QuoteType result =
+ com.google.chat.v1.QuotedMessageMetadata.QuoteType.forNumber(quoteType_);
+ return result == null
+ ? com.google.chat.v1.QuotedMessageMetadata.QuoteType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The quoteType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQuoteType(com.google.chat.v1.QuotedMessageMetadata.QuoteType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ quoteType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQuoteType() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ quoteType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.chat.v1.QuotedMessageSnapshot quotedMessageSnapshot_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.chat.v1.QuotedMessageSnapshot,
+ com.google.chat.v1.QuotedMessageSnapshot.Builder,
+ com.google.chat.v1.QuotedMessageSnapshotOrBuilder>
+ quotedMessageSnapshotBuilder_;
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the quotedMessageSnapshot field is set.
+ */
+ public boolean hasQuotedMessageSnapshot() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The quotedMessageSnapshot.
+ */
+ public com.google.chat.v1.QuotedMessageSnapshot getQuotedMessageSnapshot() {
+ if (quotedMessageSnapshotBuilder_ == null) {
+ return quotedMessageSnapshot_ == null
+ ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance()
+ : quotedMessageSnapshot_;
+ } else {
+ return quotedMessageSnapshotBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setQuotedMessageSnapshot(com.google.chat.v1.QuotedMessageSnapshot value) {
+ if (quotedMessageSnapshotBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ quotedMessageSnapshot_ = value;
+ } else {
+ quotedMessageSnapshotBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setQuotedMessageSnapshot(
+ com.google.chat.v1.QuotedMessageSnapshot.Builder builderForValue) {
+ if (quotedMessageSnapshotBuilder_ == null) {
+ quotedMessageSnapshot_ = builderForValue.build();
+ } else {
+ quotedMessageSnapshotBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeQuotedMessageSnapshot(com.google.chat.v1.QuotedMessageSnapshot value) {
+ if (quotedMessageSnapshotBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && quotedMessageSnapshot_ != null
+ && quotedMessageSnapshot_
+ != com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance()) {
+ getQuotedMessageSnapshotBuilder().mergeFrom(value);
+ } else {
+ quotedMessageSnapshot_ = value;
+ }
+ } else {
+ quotedMessageSnapshotBuilder_.mergeFrom(value);
+ }
+ if (quotedMessageSnapshot_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearQuotedMessageSnapshot() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ quotedMessageSnapshot_ = null;
+ if (quotedMessageSnapshotBuilder_ != null) {
+ quotedMessageSnapshotBuilder_.dispose();
+ quotedMessageSnapshotBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.QuotedMessageSnapshot.Builder getQuotedMessageSnapshotBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return internalGetQuotedMessageSnapshotFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.QuotedMessageSnapshotOrBuilder getQuotedMessageSnapshotOrBuilder() {
+ if (quotedMessageSnapshotBuilder_ != null) {
+ return quotedMessageSnapshotBuilder_.getMessageOrBuilder();
+ } else {
+ return quotedMessageSnapshot_ == null
+ ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance()
+ : quotedMessageSnapshot_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.chat.v1.QuotedMessageSnapshot,
+ com.google.chat.v1.QuotedMessageSnapshot.Builder,
+ com.google.chat.v1.QuotedMessageSnapshotOrBuilder>
+ internalGetQuotedMessageSnapshotFieldBuilder() {
+ if (quotedMessageSnapshotBuilder_ == null) {
+ quotedMessageSnapshotBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.chat.v1.QuotedMessageSnapshot,
+ com.google.chat.v1.QuotedMessageSnapshot.Builder,
+ com.google.chat.v1.QuotedMessageSnapshotOrBuilder>(
+ getQuotedMessageSnapshot(), getParentForChildren(), isClean());
+ quotedMessageSnapshot_ = null;
+ }
+ return quotedMessageSnapshotBuilder_;
+ }
+
+ private com.google.chat.v1.ForwardedMetadata forwardedMetadata_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.chat.v1.ForwardedMetadata,
+ com.google.chat.v1.ForwardedMetadata.Builder,
+ com.google.chat.v1.ForwardedMetadataOrBuilder>
+ forwardedMetadataBuilder_;
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the forwardedMetadata field is set.
+ */
+ public boolean hasForwardedMetadata() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The forwardedMetadata.
+ */
+ public com.google.chat.v1.ForwardedMetadata getForwardedMetadata() {
+ if (forwardedMetadataBuilder_ == null) {
+ return forwardedMetadata_ == null
+ ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance()
+ : forwardedMetadata_;
+ } else {
+ return forwardedMetadataBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setForwardedMetadata(com.google.chat.v1.ForwardedMetadata value) {
+ if (forwardedMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ forwardedMetadata_ = value;
+ } else {
+ forwardedMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setForwardedMetadata(
+ com.google.chat.v1.ForwardedMetadata.Builder builderForValue) {
+ if (forwardedMetadataBuilder_ == null) {
+ forwardedMetadata_ = builderForValue.build();
+ } else {
+ forwardedMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeForwardedMetadata(com.google.chat.v1.ForwardedMetadata value) {
+ if (forwardedMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && forwardedMetadata_ != null
+ && forwardedMetadata_ != com.google.chat.v1.ForwardedMetadata.getDefaultInstance()) {
+ getForwardedMetadataBuilder().mergeFrom(value);
+ } else {
+ forwardedMetadata_ = value;
+ }
+ } else {
+ forwardedMetadataBuilder_.mergeFrom(value);
+ }
+ if (forwardedMetadata_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearForwardedMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ forwardedMetadata_ = null;
+ if (forwardedMetadataBuilder_ != null) {
+ forwardedMetadataBuilder_.dispose();
+ forwardedMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.ForwardedMetadata.Builder getForwardedMetadataBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return internalGetForwardedMetadataFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.ForwardedMetadataOrBuilder getForwardedMetadataOrBuilder() {
+ if (forwardedMetadataBuilder_ != null) {
+ return forwardedMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return forwardedMetadata_ == null
+ ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance()
+ : forwardedMetadata_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.chat.v1.ForwardedMetadata,
+ com.google.chat.v1.ForwardedMetadata.Builder,
+ com.google.chat.v1.ForwardedMetadataOrBuilder>
+ internalGetForwardedMetadataFieldBuilder() {
+ if (forwardedMetadataBuilder_ == null) {
+ forwardedMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.chat.v1.ForwardedMetadata,
+ com.google.chat.v1.ForwardedMetadata.Builder,
+ com.google.chat.v1.ForwardedMetadataOrBuilder>(
+ getForwardedMetadata(), getParentForChildren(), isClean());
+ forwardedMetadata_ = null;
+ }
+ return forwardedMetadataBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.chat.v1.QuotedMessageMetadata)
}
diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java
index c7aa0f7630e3..fca40dfcc1ad 100644
--- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java
+++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java
@@ -123,4 +123,125 @@ public interface QuotedMessageMetadataOrBuilder
*
*/
com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for quoteType.
+ */
+ int getQuoteTypeValue();
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The quoteType.
+ */
+ com.google.chat.v1.QuotedMessageMetadata.QuoteType getQuoteType();
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the quotedMessageSnapshot field is set.
+ */
+ boolean hasQuotedMessageSnapshot();
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The quotedMessageSnapshot.
+ */
+ com.google.chat.v1.QuotedMessageSnapshot getQuotedMessageSnapshot();
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.chat.v1.QuotedMessageSnapshotOrBuilder getQuotedMessageSnapshotOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the forwardedMetadata field is set.
+ */
+ boolean hasForwardedMetadata();
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The forwardedMetadata.
+ */
+ com.google.chat.v1.ForwardedMetadata getForwardedMetadata();
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.chat.v1.ForwardedMetadataOrBuilder getForwardedMetadataOrBuilder();
}
diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshot.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshot.java
new file mode 100644
index 000000000000..744e518cbf5a
--- /dev/null
+++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshot.java
@@ -0,0 +1,2176 @@
+/*
+ * 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/chat/v1/message.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.chat.v1;
+
+/**
+ *
+ *
+ * + * Provides a snapshot of the content of the quoted message at the time of + * quoting or forwarding + *+ * + * Protobuf type {@code google.chat.v1.QuotedMessageSnapshot} + */ +@com.google.protobuf.Generated +public final class QuotedMessageSnapshot extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.QuotedMessageSnapshot) + QuotedMessageSnapshotOrBuilder { + 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= */ "", + "QuotedMessageSnapshot"); + } + + // Use QuotedMessageSnapshot.newBuilder() to construct. + private QuotedMessageSnapshot(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private QuotedMessageSnapshot() { + sender_ = ""; + text_ = ""; + formattedText_ = ""; + annotations_ = java.util.Collections.emptyList(); + attachments_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_QuotedMessageSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.QuotedMessageSnapshot.class, + com.google.chat.v1.QuotedMessageSnapshot.Builder.class); + } + + public static final int SENDER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sender_ = ""; + + /** + * + * + *
+ * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The sender.
+ */
+ @java.lang.Override
+ public java.lang.String getSender() {
+ java.lang.Object ref = sender_;
+ 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();
+ sender_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for sender.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSenderBytes() {
+ java.lang.Object ref = sender_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sender_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TEXT_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object text_ = "";
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The text.
+ */
+ @java.lang.Override
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ 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();
+ text_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for text.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FORMATTED_TEXT_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object formattedText_ = "";
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The formattedText.
+ */
+ @java.lang.Override
+ public java.lang.String getFormattedText() {
+ java.lang.Object ref = formattedText_;
+ 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();
+ formattedText_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for formattedText.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFormattedTextBytes() {
+ java.lang.Object ref = formattedText_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ formattedText_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ANNOTATIONS_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.chat.v1.AnnotationOrBuilder>
+ getAnnotationsOrBuilderList() {
+ return annotations_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getAnnotationsCount() {
+ return annotations_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.chat.v1.Annotation getAnnotations(int index) {
+ return annotations_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.chat.v1.AnnotationOrBuilder getAnnotationsOrBuilder(int index) {
+ return annotations_.get(index);
+ }
+
+ public static final int ATTACHMENTS_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.chat.v1.AttachmentOrBuilder>
+ getAttachmentsOrBuilderList() {
+ return attachments_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getAttachmentsCount() {
+ return attachments_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.chat.v1.Attachment getAttachments(int index) {
+ return attachments_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.chat.v1.AttachmentOrBuilder getAttachmentsOrBuilder(int index) {
+ return attachments_.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 {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sender_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, sender_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, text_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(formattedText_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, formattedText_);
+ }
+ for (int i = 0; i < annotations_.size(); i++) {
+ output.writeMessage(4, annotations_.get(i));
+ }
+ for (int i = 0; i < attachments_.size(); i++) {
+ output.writeMessage(5, attachments_.get(i));
+ }
+ 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(sender_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sender_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, text_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(formattedText_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, formattedText_);
+ }
+ for (int i = 0; i < annotations_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, annotations_.get(i));
+ }
+ for (int i = 0; i < attachments_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, attachments_.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.chat.v1.QuotedMessageSnapshot)) {
+ return super.equals(obj);
+ }
+ com.google.chat.v1.QuotedMessageSnapshot other = (com.google.chat.v1.QuotedMessageSnapshot) obj;
+
+ if (!getSender().equals(other.getSender())) return false;
+ if (!getText().equals(other.getText())) return false;
+ if (!getFormattedText().equals(other.getFormattedText())) return false;
+ if (!getAnnotationsList().equals(other.getAnnotationsList())) return false;
+ if (!getAttachmentsList().equals(other.getAttachmentsList())) 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) + SENDER_FIELD_NUMBER;
+ hash = (53 * hash) + getSender().hashCode();
+ hash = (37 * hash) + TEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getText().hashCode();
+ hash = (37 * hash) + FORMATTED_TEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getFormattedText().hashCode();
+ if (getAnnotationsCount() > 0) {
+ hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getAnnotationsList().hashCode();
+ }
+ if (getAttachmentsCount() > 0) {
+ hash = (37 * hash) + ATTACHMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getAttachmentsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot 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.chat.v1.QuotedMessageSnapshot parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot 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.chat.v1.QuotedMessageSnapshot parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot 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.chat.v1.QuotedMessageSnapshot parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot 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.chat.v1.QuotedMessageSnapshot 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;
+ }
+
+ /**
+ *
+ *
+ * + * Provides a snapshot of the content of the quoted message at the time of + * quoting or forwarding + *+ * + * Protobuf type {@code google.chat.v1.QuotedMessageSnapshot} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The sender.
+ */
+ public java.lang.String getSender() {
+ java.lang.Object ref = sender_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sender_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for sender.
+ */
+ public com.google.protobuf.ByteString getSenderBytes() {
+ java.lang.Object ref = sender_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sender_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The sender to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSender(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sender_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSender() {
+ sender_ = getDefaultInstance().getSender();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for sender to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSenderBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ sender_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object text_ = "";
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The text.
+ */
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ text_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for text.
+ */
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The text to set.
+ * @return This builder for chaining.
+ */
+ public Builder setText(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ text_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearText() {
+ text_ = getDefaultInstance().getText();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for text to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTextBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ text_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object formattedText_ = "";
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The formattedText.
+ */
+ public java.lang.String getFormattedText() {
+ java.lang.Object ref = formattedText_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ formattedText_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for formattedText.
+ */
+ public com.google.protobuf.ByteString getFormattedTextBytes() {
+ java.lang.Object ref = formattedText_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ formattedText_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The formattedText to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFormattedText(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ formattedText_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFormattedText() {
+ formattedText_ = getDefaultInstance().getFormattedText();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for formattedText to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFormattedTextBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ formattedText_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getAnnotationsCount() {
+ if (annotationsBuilder_ == null) {
+ return annotations_.size();
+ } else {
+ return annotationsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Annotation getAnnotations(int index) {
+ if (annotationsBuilder_ == null) {
+ return annotations_.get(index);
+ } else {
+ return annotationsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setAnnotations(int index, com.google.chat.v1.Annotation value) {
+ if (annotationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnnotationsIsMutable();
+ annotations_.set(index, value);
+ onChanged();
+ } else {
+ annotationsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setAnnotations(
+ int index, com.google.chat.v1.Annotation.Builder builderForValue) {
+ if (annotationsBuilder_ == null) {
+ ensureAnnotationsIsMutable();
+ annotations_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ annotationsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAnnotations(com.google.chat.v1.Annotation value) {
+ if (annotationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnnotationsIsMutable();
+ annotations_.add(value);
+ onChanged();
+ } else {
+ annotationsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAnnotations(int index, com.google.chat.v1.Annotation value) {
+ if (annotationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnnotationsIsMutable();
+ annotations_.add(index, value);
+ onChanged();
+ } else {
+ annotationsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAnnotations(com.google.chat.v1.Annotation.Builder builderForValue) {
+ if (annotationsBuilder_ == null) {
+ ensureAnnotationsIsMutable();
+ annotations_.add(builderForValue.build());
+ onChanged();
+ } else {
+ annotationsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAnnotations(
+ int index, com.google.chat.v1.Annotation.Builder builderForValue) {
+ if (annotationsBuilder_ == null) {
+ ensureAnnotationsIsMutable();
+ annotations_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ annotationsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllAnnotations(
+ java.lang.Iterable extends com.google.chat.v1.Annotation> values) {
+ if (annotationsBuilder_ == null) {
+ ensureAnnotationsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotations_);
+ onChanged();
+ } else {
+ annotationsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearAnnotations() {
+ if (annotationsBuilder_ == null) {
+ annotations_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ annotationsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeAnnotations(int index) {
+ if (annotationsBuilder_ == null) {
+ ensureAnnotationsIsMutable();
+ annotations_.remove(index);
+ onChanged();
+ } else {
+ annotationsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Annotation.Builder getAnnotationsBuilder(int index) {
+ return internalGetAnnotationsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.AnnotationOrBuilder getAnnotationsOrBuilder(int index) {
+ if (annotationsBuilder_ == null) {
+ return annotations_.get(index);
+ } else {
+ return annotationsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List extends com.google.chat.v1.AnnotationOrBuilder>
+ getAnnotationsOrBuilderList() {
+ if (annotationsBuilder_ != null) {
+ return annotationsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(annotations_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Annotation.Builder addAnnotationsBuilder() {
+ return internalGetAnnotationsFieldBuilder()
+ .addBuilder(com.google.chat.v1.Annotation.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Annotation.Builder addAnnotationsBuilder(int index) {
+ return internalGetAnnotationsFieldBuilder()
+ .addBuilder(index, com.google.chat.v1.Annotation.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getAttachmentsCount() {
+ if (attachmentsBuilder_ == null) {
+ return attachments_.size();
+ } else {
+ return attachmentsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Attachment getAttachments(int index) {
+ if (attachmentsBuilder_ == null) {
+ return attachments_.get(index);
+ } else {
+ return attachmentsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setAttachments(int index, com.google.chat.v1.Attachment value) {
+ if (attachmentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttachmentsIsMutable();
+ attachments_.set(index, value);
+ onChanged();
+ } else {
+ attachmentsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setAttachments(
+ int index, com.google.chat.v1.Attachment.Builder builderForValue) {
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ attachments_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ attachmentsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAttachments(com.google.chat.v1.Attachment value) {
+ if (attachmentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttachmentsIsMutable();
+ attachments_.add(value);
+ onChanged();
+ } else {
+ attachmentsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAttachments(int index, com.google.chat.v1.Attachment value) {
+ if (attachmentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttachmentsIsMutable();
+ attachments_.add(index, value);
+ onChanged();
+ } else {
+ attachmentsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAttachments(com.google.chat.v1.Attachment.Builder builderForValue) {
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ attachments_.add(builderForValue.build());
+ onChanged();
+ } else {
+ attachmentsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAttachments(
+ int index, com.google.chat.v1.Attachment.Builder builderForValue) {
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ attachments_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ attachmentsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllAttachments(
+ java.lang.Iterable extends com.google.chat.v1.Attachment> values) {
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachments_);
+ onChanged();
+ } else {
+ attachmentsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearAttachments() {
+ if (attachmentsBuilder_ == null) {
+ attachments_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ } else {
+ attachmentsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeAttachments(int index) {
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ attachments_.remove(index);
+ onChanged();
+ } else {
+ attachmentsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Attachment.Builder getAttachmentsBuilder(int index) {
+ return internalGetAttachmentsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.AttachmentOrBuilder getAttachmentsOrBuilder(int index) {
+ if (attachmentsBuilder_ == null) {
+ return attachments_.get(index);
+ } else {
+ return attachmentsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List extends com.google.chat.v1.AttachmentOrBuilder>
+ getAttachmentsOrBuilderList() {
+ if (attachmentsBuilder_ != null) {
+ return attachmentsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(attachments_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Attachment.Builder addAttachmentsBuilder() {
+ return internalGetAttachmentsFieldBuilder()
+ .addBuilder(com.google.chat.v1.Attachment.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Attachment.Builder addAttachmentsBuilder(int index) {
+ return internalGetAttachmentsFieldBuilder()
+ .addBuilder(index, com.google.chat.v1.Attachment.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The sender.
+ */
+ java.lang.String getSender();
+
+ /**
+ *
+ *
+ * + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for sender.
+ */
+ com.google.protobuf.ByteString getSenderBytes();
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The text.
+ */
+ java.lang.String getText();
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for text.
+ */
+ com.google.protobuf.ByteString getTextBytes();
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The formattedText.
+ */
+ java.lang.String getFormattedText();
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for formattedText.
+ */
+ com.google.protobuf.ByteString getFormattedTextBytes();
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List+ * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.chat.v1.Annotation getAnnotations(int index);
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getAnnotationsCount();
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.chat.v1.AnnotationOrBuilder> getAnnotationsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.chat.v1.AnnotationOrBuilder getAnnotationsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List+ * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.chat.v1.Attachment getAttachments(int index);
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getAttachmentsCount();
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.chat.v1.AttachmentOrBuilder> getAttachmentsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.chat.v1.AttachmentOrBuilder getAttachmentsOrBuilder(int index);
+}
diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto
index 47b1d66de202..60f1ad0c8ea3 100644
--- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto
+++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.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.
@@ -292,6 +292,23 @@ message QuotedMessageMetadata {
pattern: "spaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}"
};
+ // The quote type of the quoted message.
+ enum QuoteType {
+ // Reserved. This value is unused.
+ QUOTE_TYPE_UNSPECIFIED = 0;
+
+ // If quote_type is `REPLY`, you can do the following:
+ //
+ // * If you're replying in a thread, you can quote another message in that
+ // thread.
+ //
+ // * If you're creating a root message, you can quote another root message
+ // in that space.
+ //
+ // You can't quote a message reply from a different thread.
+ REPLY = 1;
+ }
+
// Required. Resource name of the message that is quoted.
//
// Format: `spaces/{space}/messages/{message}`
@@ -310,6 +327,63 @@ message QuotedMessageMetadata {
// message, the request fails.
google.protobuf.Timestamp last_update_time = 2
[(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Specifies the quote type. If not set, defaults to REPLY in the
+ // message read/write path for backward compatibility.
+ QuoteType quote_type = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. A snapshot of the quoted message's content.
+ QuotedMessageSnapshot quoted_message_snapshot = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Metadata about the source space of the quoted message.
+ // Populated only for FORWARD quote type.
+ ForwardedMetadata forwarded_metadata = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Provides a snapshot of the content of the quoted message at the time of
+// quoting or forwarding
+message QuotedMessageSnapshot {
+ // Output only. The quoted message's author name.
+ // Populated for both REPLY & FORWARD quote types.
+ string sender = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Snapshot of the quoted message's text content.
+ string text = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Contains the quoted message `text` with markups added to
+ // support rich formatting like hyperlinks,custom emojis, markup, etc.
+ // Populated only for FORWARD quote type.
+ string formatted_text = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Annotations parsed from the text body of the quoted message.
+ // Populated only for FORWARD quote type.
+ repeated Annotation annotations = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Attachments that were part of the quoted message. These are
+ // copies of the quoted message's attachment metadata. Populated only for
+ // FORWARD quote type.
+ repeated Attachment attachments = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Metadata about the source space from which a message was forwarded.
+message ForwardedMetadata {
+ // Output only. The resource name of the source space.
+ // Format: spaces/{space}
+ string space = 1 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = { type: "chat.googleapis.com/Space" }
+ ];
+
+ // Output only. The display name of the source space or DM at the time of
+ // forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
+ // is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
+ // a generated name based on members' first names, limited to 5 including the
+ // creator (e.g., "User A, User B").
+ string space_display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// A thread in a Google Chat space. For example usage, see
diff --git a/java-chronicle/README.md b/java-chronicle/README.md
index 1effacfdceea..94d52a7b2383 100644
--- a/java-chronicle/README.md
+++ b/java-chronicle/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
UpdateQuotaAdjusterSettings
RPC Method for updating QuotaAdjusterSettings based on the request
Updates the QuotaAdjusterSettings for the specified resource.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*GetQuotaAdjusterSettings
RPC Method for getting QuotaAdjusterSettings based on the request
Gets the QuotaAdjusterSettings for the specified resource.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -251,7 +251,7 @@ public final QuotaAdjusterSettings updateQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for updating QuotaAdjusterSettings based on the request + * Updates the QuotaAdjusterSettings for the specified resource. * *
Sample code: * @@ -284,7 +284,7 @@ public final QuotaAdjusterSettings updateQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for updating QuotaAdjusterSettings based on the request + * Updates the QuotaAdjusterSettings for the specified resource. * *
Sample code: * @@ -318,7 +318,7 @@ public final QuotaAdjusterSettings updateQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *
Sample code: * @@ -351,7 +351,7 @@ public final QuotaAdjusterSettings getQuotaAdjusterSettings(QuotaAdjusterSetting // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *
Sample code: * @@ -382,7 +382,7 @@ public final QuotaAdjusterSettings getQuotaAdjusterSettings(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *
Sample code: * @@ -415,7 +415,7 @@ public final QuotaAdjusterSettings getQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *
Sample code: * diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java index 3c9cb1bd94b9..addd059f73a1 100644 --- a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java +++ b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java @@ -215,7 +215,7 @@ public interface AsyncService { * * *
- * RPC Method for updating QuotaAdjusterSettings based on the request
+ * Updates the QuotaAdjusterSettings for the specified resource.
*
*/
default void updateQuotaAdjusterSettings(
@@ -230,7 +230,7 @@ default void updateQuotaAdjusterSettings(
*
*
*
- * RPC Method for getting QuotaAdjusterSettings based on the request
+ * Gets the QuotaAdjusterSettings for the specified resource.
*
*/
default void getQuotaAdjusterSettings(
@@ -290,7 +290,7 @@ protected QuotaAdjusterSettingsManagerStub build(
*
*
*
- * RPC Method for updating QuotaAdjusterSettings based on the request
+ * Updates the QuotaAdjusterSettings for the specified resource.
*
*/
public void updateQuotaAdjusterSettings(
@@ -307,7 +307,7 @@ public void updateQuotaAdjusterSettings(
*
*
*
- * RPC Method for getting QuotaAdjusterSettings based on the request
+ * Gets the QuotaAdjusterSettings for the specified resource.
*
*/
public void getQuotaAdjusterSettings(
@@ -349,7 +349,7 @@ protected QuotaAdjusterSettingsManagerBlockingV2Stub build(
*
*
*
- * RPC Method for updating QuotaAdjusterSettings based on the request
+ * Updates the QuotaAdjusterSettings for the specified resource.
*
*/
public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjusterSettings(
@@ -363,7 +363,7 @@ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjust
*
*
*
- * RPC Method for getting QuotaAdjusterSettings based on the request
+ * Gets the QuotaAdjusterSettings for the specified resource.
*
*/
public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings getQuotaAdjusterSettings(
@@ -403,7 +403,7 @@ protected QuotaAdjusterSettingsManagerBlockingStub build(
*
*
*
- * RPC Method for updating QuotaAdjusterSettings based on the request
+ * Updates the QuotaAdjusterSettings for the specified resource.
*
*/
public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjusterSettings(
@@ -416,7 +416,7 @@ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjust
*
*
*
- * RPC Method for getting QuotaAdjusterSettings based on the request
+ * Gets the QuotaAdjusterSettings for the specified resource.
*
*/
public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings getQuotaAdjusterSettings(
@@ -455,7 +455,7 @@ protected QuotaAdjusterSettingsManagerFutureStub build(
*
*
*
- * RPC Method for updating QuotaAdjusterSettings based on the request
+ * Updates the QuotaAdjusterSettings for the specified resource.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
@@ -470,7 +470,7 @@ protected QuotaAdjusterSettingsManagerFutureStub build(
*
*
*
- * RPC Method for getting QuotaAdjusterSettings based on the request
+ * Gets the QuotaAdjusterSettings for the specified resource.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java
index c6dc4fb8f60a..2579b3a972a1 100644
--- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java
+++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java
@@ -255,9 +255,13 @@ private Enablement(int value) {
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
@@ -282,9 +286,13 @@ public java.lang.String getName() {
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
@@ -1003,9 +1011,13 @@ public Builder mergeFrom(
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
@@ -1029,9 +1041,13 @@ public java.lang.String getName() {
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
@@ -1055,9 +1071,13 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
@@ -1080,9 +1100,13 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
@@ -1101,9 +1125,13 @@ public Builder clearName() {
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java
index 9134319c5554..4fdfec7861a3 100644
--- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java
+++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java
@@ -30,9 +30,13 @@ public interface QuotaAdjusterSettingsOrBuilder
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
@@ -46,9 +50,13 @@ public interface QuotaAdjusterSettingsOrBuilder
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto
index 15b0f299c2ef..8f8d3eb4e846 100644
--- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto
+++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto
@@ -42,7 +42,7 @@ service QuotaAdjusterSettingsManager {
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/cloud-platform";
- // RPC Method for updating QuotaAdjusterSettings based on the request
+ // Updates the QuotaAdjusterSettings for the specified resource.
rpc UpdateQuotaAdjusterSettings(UpdateQuotaAdjusterSettingsRequest)
returns (QuotaAdjusterSettings) {
option (google.api.http) = {
@@ -61,7 +61,7 @@ service QuotaAdjusterSettingsManager {
"quota_adjuster_settings,update_mask";
}
- // RPC Method for getting QuotaAdjusterSettings based on the request
+ // Gets the QuotaAdjusterSettings for the specified resource.
rpc GetQuotaAdjusterSettings(GetQuotaAdjusterSettingsRequest)
returns (QuotaAdjusterSettings) {
option (google.api.http) = {
@@ -130,9 +130,13 @@ message QuotaAdjusterSettings {
DISABLED = 3;
}
- // Identifier. Name of the config would be of the format:
+ // Identifier. Name of the configuration, in the formats below:
+ //
+ // * For a project:
// projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ // * For a folder:
// folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ // * For an organization:
// organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
diff --git a/java-cloudsecuritycompliance/README.md b/java-cloudsecuritycompliance/README.md
index 5e33f33f520f..f4e3ec985904 100644
--- a/java-cloudsecuritycompliance/README.md
+++ b/java-cloudsecuritycompliance/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
ListLocations
Lists information about the supported locations for this service.
Lists information about the supported locations for this service.This method can be called in two ways: + *
* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
** **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -632,7 +643,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -667,7 +684,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json index 3af692644147..268e79e711de 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json @@ -575,6 +575,123 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$GpuArchitectureType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$GpuInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$GpuInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$MultiGpuSecurePassthroughAttestation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$MultiGpuSecurePassthroughAttestation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$ProtectedPcieAttestation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$ProtectedPcieAttestation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$SinglePassthroughAttestation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$SinglePassthroughAttestation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$SwitchInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$SwitchInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.confidentialcomputing.v1.SevSnpAttestation", "queryAllDeclaredConstructors": true, @@ -773,6 +890,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest$ConfidentialGkeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest$ConfidentialGkeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse", "queryAllDeclaredConstructors": true, diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java index c96371af2e2d..e148789e8323 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java @@ -262,6 +262,7 @@ public void verifyConfidentialSpaceTest() throws Exception { .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) .setOptions( VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .setNvidiaAttestation(NvidiaAttestation.newBuilder().build()) .build(); VerifyConfidentialSpaceResponse actualResponse = client.verifyConfidentialSpace(request); @@ -298,6 +299,7 @@ public void verifyConfidentialSpaceExceptionTest() throws Exception { .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) .setOptions( VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .setNvidiaAttestation(NvidiaAttestation.newBuilder().build()) .build(); client.verifyConfidentialSpace(request); Assert.fail("No exception raised"); @@ -317,6 +319,7 @@ public void verifyConfidentialGkeTest() throws Exception { VerifyConfidentialGkeRequest request = VerifyConfidentialGkeRequest.newBuilder() .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setOptions(VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder().build()) .build(); VerifyConfidentialGkeResponse actualResponse = client.verifyConfidentialGke(request); @@ -348,6 +351,7 @@ public void verifyConfidentialGkeExceptionTest() throws Exception { VerifyConfidentialGkeRequest request = VerifyConfidentialGkeRequest.newBuilder() .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setOptions(VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder().build()) .build(); client.verifyConfidentialGke(request); Assert.fail("No exception raised"); diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java index c65eff22957f..4a6b4ca0cfca 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java @@ -208,6 +208,7 @@ public void verifyAttestationTest() throws Exception { Assert.assertEquals(request.getTdCcel(), actualRequest.getTdCcel()); Assert.assertEquals(request.getSevSnpAttestation(), actualRequest.getSevSnpAttestation()); + Assert.assertEquals(request.getNvidiaAttestation(), actualRequest.getNvidiaAttestation()); Assert.assertEquals(request.getChallenge(), actualRequest.getChallenge()); Assert.assertEquals(request.getGcpCredentials(), actualRequest.getGcpCredentials()); Assert.assertEquals(request.getTpmAttestation(), actualRequest.getTpmAttestation()); @@ -260,6 +261,7 @@ public void verifyConfidentialSpaceTest() throws Exception { .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) .setOptions( VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .setNvidiaAttestation(NvidiaAttestation.newBuilder().build()) .build(); VerifyConfidentialSpaceResponse actualResponse = client.verifyConfidentialSpace(request); @@ -277,6 +279,7 @@ public void verifyConfidentialSpaceTest() throws Exception { Assert.assertEquals(request.getSignedEntitiesList(), actualRequest.getSignedEntitiesList()); Assert.assertEquals(request.getGceShieldedIdentity(), actualRequest.getGceShieldedIdentity()); Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertEquals(request.getNvidiaAttestation(), actualRequest.getNvidiaAttestation()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -297,6 +300,7 @@ public void verifyConfidentialSpaceExceptionTest() throws Exception { .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) .setOptions( VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .setNvidiaAttestation(NvidiaAttestation.newBuilder().build()) .build(); client.verifyConfidentialSpace(request); Assert.fail("No exception raised"); @@ -316,6 +320,7 @@ public void verifyConfidentialGkeTest() throws Exception { VerifyConfidentialGkeRequest request = VerifyConfidentialGkeRequest.newBuilder() .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setOptions(VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder().build()) .build(); VerifyConfidentialGkeResponse actualResponse = client.verifyConfidentialGke(request); @@ -328,6 +333,7 @@ public void verifyConfidentialGkeTest() throws Exception { Assert.assertEquals(request.getTpmAttestation(), actualRequest.getTpmAttestation()); Assert.assertEquals(request.getChallenge(), actualRequest.getChallenge()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -343,6 +349,7 @@ public void verifyConfidentialGkeExceptionTest() throws Exception { VerifyConfidentialGkeRequest request = VerifyConfidentialGkeRequest.newBuilder() .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setOptions(VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder().build()) .build(); client.verifyConfidentialGke(request); Assert.fail("No exception raised"); diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/NvidiaAttestation.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/NvidiaAttestation.java new file mode 100644 index 000000000000..62b982ad2f04 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/NvidiaAttestation.java @@ -0,0 +1,7932 @@ +/* + * 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/confidentialcomputing/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.confidentialcomputing.v1; + +/** + * + * + *
+ * An Nvidia attestation report for GPU and NVSwitch devices. + * Contains necessary attestation evidence that the client collects for + * verification. + *+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.NvidiaAttestation} + */ +@com.google.protobuf.Generated +public final class NvidiaAttestation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation) + NvidiaAttestationOrBuilder { + 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= */ "", + "NvidiaAttestation"); + } + + // Use NvidiaAttestation.newBuilder() to construct. + private NvidiaAttestation(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private NvidiaAttestation() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder.class); + } + + /** + * + * + *
+ * GpuArchitectureType enumerates the supported GPU architecture types. + *+ * + * Protobuf enum {@code + * google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType} + */ + public enum GpuArchitectureType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified GPU architecture type. + *+ * + *
GPU_ARCHITECTURE_TYPE_UNSPECIFIED = 0;
+ */
+ GPU_ARCHITECTURE_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Hopper GPU architecture type. + *+ * + *
GPU_ARCHITECTURE_TYPE_HOPPER = 8;
+ */
+ GPU_ARCHITECTURE_TYPE_HOPPER(8),
+ /**
+ *
+ *
+ * + * Blackwell GPU architecture type. + *+ * + *
GPU_ARCHITECTURE_TYPE_BLACKWELL = 10;
+ */
+ GPU_ARCHITECTURE_TYPE_BLACKWELL(10),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "GpuArchitectureType");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified GPU architecture type. + *+ * + *
GPU_ARCHITECTURE_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int GPU_ARCHITECTURE_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Hopper GPU architecture type. + *+ * + *
GPU_ARCHITECTURE_TYPE_HOPPER = 8;
+ */
+ public static final int GPU_ARCHITECTURE_TYPE_HOPPER_VALUE = 8;
+
+ /**
+ *
+ *
+ * + * Blackwell GPU architecture type. + *+ * + *
GPU_ARCHITECTURE_TYPE_BLACKWELL = 10;
+ */
+ public static final int GPU_ARCHITECTURE_TYPE_BLACKWELL_VALUE = 10;
+
+ 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 GpuArchitectureType 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 GpuArchitectureType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return GPU_ARCHITECTURE_TYPE_UNSPECIFIED;
+ case 8:
+ return GPU_ARCHITECTURE_TYPE_HOPPER;
+ case 10:
+ return GPU_ARCHITECTURE_TYPE_BLACKWELL;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Optional. The UUID of the GPU device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The uuid.
+ */
+ java.lang.String getUuid();
+
+ /**
+ *
+ *
+ * + * Optional. The UUID of the GPU device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for uuid.
+ */
+ com.google.protobuf.ByteString getUuidBytes();
+
+ /**
+ *
+ *
+ * + * Optional. The driver version of the GPU. + *+ * + *
string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The driverVersion.
+ */
+ java.lang.String getDriverVersion();
+
+ /**
+ *
+ *
+ * + * Optional. The driver version of the GPU. + *+ * + *
string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for driverVersion.
+ */
+ com.google.protobuf.ByteString getDriverVersionBytes();
+
+ /**
+ *
+ *
+ * + * Optional. The vBIOS version of the GPU. + *+ * + *
string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The vbiosVersion.
+ */
+ java.lang.String getVbiosVersion();
+
+ /**
+ *
+ *
+ * + * Optional. The vBIOS version of the GPU. + *+ * + *
string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for vbiosVersion.
+ */
+ com.google.protobuf.ByteString getVbiosVersionBytes();
+
+ /**
+ *
+ *
+ * + * Optional. The GPU architecture type. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for gpuArchitectureType.
+ */
+ int getGpuArchitectureTypeValue();
+
+ /**
+ *
+ *
+ * + * Optional. The GPU architecture type. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The gpuArchitectureType.
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType
+ getGpuArchitectureType();
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation certificate chain for the GPU device. + *+ * + *
bytes attestation_certificate_chain = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The attestationCertificateChain.
+ */
+ com.google.protobuf.ByteString getAttestationCertificateChain();
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation report for the GPU device. + * This field contains SPDM request/response defined in + * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf + *+ * + *
bytes attestation_report = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The attestationReport.
+ */
+ com.google.protobuf.ByteString getAttestationReport();
+ }
+
+ /**
+ *
+ *
+ * + * GpuInfo contains the attestation evidence for a GPU device. + *+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo} + */ + public static final class GpuInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo) + GpuInfoOrBuilder { + 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= */ "", + "GpuInfo"); + } + + // Use GpuInfo.newBuilder() to construct. + private GpuInfo(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private GpuInfo() { + uuid_ = ""; + driverVersion_ = ""; + vbiosVersion_ = ""; + gpuArchitectureType_ = 0; + attestationCertificateChain_ = com.google.protobuf.ByteString.EMPTY; + attestationReport_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder.class); + } + + public static final int UUID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uuid_ = ""; + + /** + * + * + *
+ * Optional. The UUID of the GPU device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The uuid.
+ */
+ @java.lang.Override
+ public java.lang.String getUuid() {
+ java.lang.Object ref = uuid_;
+ 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();
+ uuid_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The UUID of the GPU device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for uuid.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUuidBytes() {
+ java.lang.Object ref = uuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DRIVER_VERSION_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object driverVersion_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The driver version of the GPU. + *+ * + *
string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The driverVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getDriverVersion() {
+ java.lang.Object ref = driverVersion_;
+ 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();
+ driverVersion_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The driver version of the GPU. + *+ * + *
string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for driverVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDriverVersionBytes() {
+ java.lang.Object ref = driverVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ driverVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VBIOS_VERSION_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object vbiosVersion_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The vBIOS version of the GPU. + *+ * + *
string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The vbiosVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getVbiosVersion() {
+ java.lang.Object ref = vbiosVersion_;
+ 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();
+ vbiosVersion_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The vBIOS version of the GPU. + *+ * + *
string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for vbiosVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVbiosVersionBytes() {
+ java.lang.Object ref = vbiosVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ vbiosVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GPU_ARCHITECTURE_TYPE_FIELD_NUMBER = 4;
+ private int gpuArchitectureType_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The GPU architecture type. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for gpuArchitectureType.
+ */
+ @java.lang.Override
+ public int getGpuArchitectureTypeValue() {
+ return gpuArchitectureType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The GPU architecture type. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The gpuArchitectureType.
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType
+ getGpuArchitectureType() {
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType result =
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType.forNumber(
+ gpuArchitectureType_);
+ return result == null
+ ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType
+ .UNRECOGNIZED
+ : result;
+ }
+
+ public static final int ATTESTATION_CERTIFICATE_CHAIN_FIELD_NUMBER = 5;
+ private com.google.protobuf.ByteString attestationCertificateChain_ =
+ com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation certificate chain for the GPU device. + *+ * + *
bytes attestation_certificate_chain = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The attestationCertificateChain.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAttestationCertificateChain() {
+ return attestationCertificateChain_;
+ }
+
+ public static final int ATTESTATION_REPORT_FIELD_NUMBER = 6;
+ private com.google.protobuf.ByteString attestationReport_ =
+ com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation report for the GPU device. + * This field contains SPDM request/response defined in + * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf + *+ * + *
bytes attestation_report = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The attestationReport.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAttestationReport() {
+ return attestationReport_;
+ }
+
+ 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(uuid_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, uuid_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(driverVersion_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, driverVersion_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vbiosVersion_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, vbiosVersion_);
+ }
+ if (gpuArchitectureType_
+ != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType
+ .GPU_ARCHITECTURE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(4, gpuArchitectureType_);
+ }
+ if (!attestationCertificateChain_.isEmpty()) {
+ output.writeBytes(5, attestationCertificateChain_);
+ }
+ if (!attestationReport_.isEmpty()) {
+ output.writeBytes(6, attestationReport_);
+ }
+ 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(uuid_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uuid_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(driverVersion_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, driverVersion_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vbiosVersion_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vbiosVersion_);
+ }
+ if (gpuArchitectureType_
+ != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType
+ .GPU_ARCHITECTURE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, gpuArchitectureType_);
+ }
+ if (!attestationCertificateChain_.isEmpty()) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBytesSize(5, attestationCertificateChain_);
+ }
+ if (!attestationReport_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, attestationReport_);
+ }
+ 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.confidentialcomputing.v1.NvidiaAttestation.GpuInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo other =
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo) obj;
+
+ if (!getUuid().equals(other.getUuid())) return false;
+ if (!getDriverVersion().equals(other.getDriverVersion())) return false;
+ if (!getVbiosVersion().equals(other.getVbiosVersion())) return false;
+ if (gpuArchitectureType_ != other.gpuArchitectureType_) return false;
+ if (!getAttestationCertificateChain().equals(other.getAttestationCertificateChain()))
+ return false;
+ if (!getAttestationReport().equals(other.getAttestationReport())) 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) + UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getUuid().hashCode();
+ hash = (37 * hash) + DRIVER_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getDriverVersion().hashCode();
+ hash = (37 * hash) + VBIOS_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVbiosVersion().hashCode();
+ hash = (37 * hash) + GPU_ARCHITECTURE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + gpuArchitectureType_;
+ hash = (37 * hash) + ATTESTATION_CERTIFICATE_CHAIN_FIELD_NUMBER;
+ hash = (53 * hash) + getAttestationCertificateChain().hashCode();
+ hash = (37 * hash) + ATTESTATION_REPORT_FIELD_NUMBER;
+ hash = (53 * hash) + getAttestationReport().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo 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.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo 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.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo 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.confidentialcomputing.v1.NvidiaAttestation.GpuInfo
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo
+ 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.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo 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.confidentialcomputing.v1.NvidiaAttestation.GpuInfo 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;
+ }
+
+ /**
+ *
+ *
+ * + * GpuInfo contains the attestation evidence for a GPU device. + *+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. The UUID of the GPU device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The uuid.
+ */
+ public java.lang.String getUuid() {
+ java.lang.Object ref = uuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The UUID of the GPU device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for uuid.
+ */
+ public com.google.protobuf.ByteString getUuidBytes() {
+ java.lang.Object ref = uuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The UUID of the GPU device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The uuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUuid(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uuid_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The UUID of the GPU device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUuid() {
+ uuid_ = getDefaultInstance().getUuid();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The UUID of the GPU device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for uuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUuidBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uuid_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object driverVersion_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The driver version of the GPU. + *+ * + *
string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The driverVersion.
+ */
+ public java.lang.String getDriverVersion() {
+ java.lang.Object ref = driverVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ driverVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The driver version of the GPU. + *+ * + *
string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for driverVersion.
+ */
+ public com.google.protobuf.ByteString getDriverVersionBytes() {
+ java.lang.Object ref = driverVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ driverVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The driver version of the GPU. + *+ * + *
string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The driverVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDriverVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ driverVersion_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The driver version of the GPU. + *+ * + *
string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDriverVersion() {
+ driverVersion_ = getDefaultInstance().getDriverVersion();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The driver version of the GPU. + *+ * + *
string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for driverVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDriverVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ driverVersion_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object vbiosVersion_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The vBIOS version of the GPU. + *+ * + *
string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The vbiosVersion.
+ */
+ public java.lang.String getVbiosVersion() {
+ java.lang.Object ref = vbiosVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ vbiosVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The vBIOS version of the GPU. + *+ * + *
string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for vbiosVersion.
+ */
+ public com.google.protobuf.ByteString getVbiosVersionBytes() {
+ java.lang.Object ref = vbiosVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ vbiosVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The vBIOS version of the GPU. + *+ * + *
string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The vbiosVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVbiosVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ vbiosVersion_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The vBIOS version of the GPU. + *+ * + *
string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVbiosVersion() {
+ vbiosVersion_ = getDefaultInstance().getVbiosVersion();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The vBIOS version of the GPU. + *+ * + *
string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for vbiosVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVbiosVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ vbiosVersion_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private int gpuArchitectureType_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The GPU architecture type. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for gpuArchitectureType.
+ */
+ @java.lang.Override
+ public int getGpuArchitectureTypeValue() {
+ return gpuArchitectureType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The GPU architecture type. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for gpuArchitectureType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGpuArchitectureTypeValue(int value) {
+ gpuArchitectureType_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The GPU architecture type. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The gpuArchitectureType.
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType
+ getGpuArchitectureType() {
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType result =
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType
+ .forNumber(gpuArchitectureType_);
+ return result == null
+ ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType
+ .UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The GPU architecture type. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The gpuArchitectureType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGpuArchitectureType(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ gpuArchitectureType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The GPU architecture type. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGpuArchitectureType() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ gpuArchitectureType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString attestationCertificateChain_ =
+ com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation certificate chain for the GPU device. + *+ * + *
bytes attestation_certificate_chain = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The attestationCertificateChain.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAttestationCertificateChain() {
+ return attestationCertificateChain_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation certificate chain for the GPU device. + *+ * + *
bytes attestation_certificate_chain = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The attestationCertificateChain to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAttestationCertificateChain(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ attestationCertificateChain_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation certificate chain for the GPU device. + *+ * + *
bytes attestation_certificate_chain = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAttestationCertificateChain() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ attestationCertificateChain_ = getDefaultInstance().getAttestationCertificateChain();
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString attestationReport_ =
+ com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation report for the GPU device. + * This field contains SPDM request/response defined in + * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf + *+ * + *
bytes attestation_report = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The attestationReport.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAttestationReport() {
+ return attestationReport_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation report for the GPU device. + * This field contains SPDM request/response defined in + * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf + *+ * + *
bytes attestation_report = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The attestationReport to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAttestationReport(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ attestationReport_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation report for the GPU device. + * This field contains SPDM request/response defined in + * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf + *+ * + *
bytes attestation_report = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAttestationReport() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ attestationReport_ = getDefaultInstance().getAttestationReport();
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo)
+ private static final com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo();
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. The UUID of the NVSwitch device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The uuid.
+ */
+ java.lang.String getUuid();
+
+ /**
+ *
+ *
+ * + * Optional. The UUID of the NVSwitch device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for uuid.
+ */
+ com.google.protobuf.ByteString getUuidBytes();
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation certificate chain for the NVSwitch device. + *+ * + *
bytes attestation_certificate_chain = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The attestationCertificateChain.
+ */
+ com.google.protobuf.ByteString getAttestationCertificateChain();
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation report for the NvSwitch device. + * This field contains SPDM request/response defined in + * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf + *+ * + *
bytes attestation_report = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The attestationReport.
+ */
+ com.google.protobuf.ByteString getAttestationReport();
+ }
+
+ /**
+ *
+ *
+ * + * SwitchInfo contains the attestation evidence for a NVSwitch device. + *+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo} + */ + public static final class SwitchInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo) + SwitchInfoOrBuilder { + 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= */ "", + "SwitchInfo"); + } + + // Use SwitchInfo.newBuilder() to construct. + private SwitchInfo(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private SwitchInfo() { + uuid_ = ""; + attestationCertificateChain_ = com.google.protobuf.ByteString.EMPTY; + attestationReport_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder.class); + } + + public static final int UUID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uuid_ = ""; + + /** + * + * + *
+ * Optional. The UUID of the NVSwitch device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The uuid.
+ */
+ @java.lang.Override
+ public java.lang.String getUuid() {
+ java.lang.Object ref = uuid_;
+ 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();
+ uuid_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The UUID of the NVSwitch device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for uuid.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUuidBytes() {
+ java.lang.Object ref = uuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ATTESTATION_CERTIFICATE_CHAIN_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString attestationCertificateChain_ =
+ com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation certificate chain for the NVSwitch device. + *+ * + *
bytes attestation_certificate_chain = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The attestationCertificateChain.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAttestationCertificateChain() {
+ return attestationCertificateChain_;
+ }
+
+ public static final int ATTESTATION_REPORT_FIELD_NUMBER = 3;
+ private com.google.protobuf.ByteString attestationReport_ =
+ com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation report for the NvSwitch device. + * This field contains SPDM request/response defined in + * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf + *+ * + *
bytes attestation_report = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The attestationReport.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAttestationReport() {
+ return attestationReport_;
+ }
+
+ 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(uuid_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, uuid_);
+ }
+ if (!attestationCertificateChain_.isEmpty()) {
+ output.writeBytes(2, attestationCertificateChain_);
+ }
+ if (!attestationReport_.isEmpty()) {
+ output.writeBytes(3, attestationReport_);
+ }
+ 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(uuid_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uuid_);
+ }
+ if (!attestationCertificateChain_.isEmpty()) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBytesSize(2, attestationCertificateChain_);
+ }
+ if (!attestationReport_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, attestationReport_);
+ }
+ 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.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo other =
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo) obj;
+
+ if (!getUuid().equals(other.getUuid())) return false;
+ if (!getAttestationCertificateChain().equals(other.getAttestationCertificateChain()))
+ return false;
+ if (!getAttestationReport().equals(other.getAttestationReport())) 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) + UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getUuid().hashCode();
+ hash = (37 * hash) + ATTESTATION_CERTIFICATE_CHAIN_FIELD_NUMBER;
+ hash = (53 * hash) + getAttestationCertificateChain().hashCode();
+ hash = (37 * hash) + ATTESTATION_REPORT_FIELD_NUMBER;
+ hash = (53 * hash) + getAttestationReport().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo 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.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo 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.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo 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.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo
+ 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.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo 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.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo 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;
+ }
+
+ /**
+ *
+ *
+ * + * SwitchInfo contains the attestation evidence for a NVSwitch device. + *+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. The UUID of the NVSwitch device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The uuid.
+ */
+ public java.lang.String getUuid() {
+ java.lang.Object ref = uuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The UUID of the NVSwitch device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for uuid.
+ */
+ public com.google.protobuf.ByteString getUuidBytes() {
+ java.lang.Object ref = uuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The UUID of the NVSwitch device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The uuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUuid(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uuid_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The UUID of the NVSwitch device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUuid() {
+ uuid_ = getDefaultInstance().getUuid();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The UUID of the NVSwitch device. + *+ * + *
string uuid = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for uuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUuidBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uuid_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString attestationCertificateChain_ =
+ com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation certificate chain for the NVSwitch device. + *+ * + *
bytes attestation_certificate_chain = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The attestationCertificateChain.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAttestationCertificateChain() {
+ return attestationCertificateChain_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation certificate chain for the NVSwitch device. + *+ * + *
bytes attestation_certificate_chain = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The attestationCertificateChain to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAttestationCertificateChain(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ attestationCertificateChain_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation certificate chain for the NVSwitch device. + *+ * + *
bytes attestation_certificate_chain = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAttestationCertificateChain() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ attestationCertificateChain_ = getDefaultInstance().getAttestationCertificateChain();
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString attestationReport_ =
+ com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation report for the NvSwitch device. + * This field contains SPDM request/response defined in + * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf + *+ * + *
bytes attestation_report = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The attestationReport.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAttestationReport() {
+ return attestationReport_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation report for the NvSwitch device. + * This field contains SPDM request/response defined in + * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf + *+ * + *
bytes attestation_report = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The attestationReport to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAttestationReport(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ attestationReport_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The raw attestation report for the NvSwitch device. + * This field contains SPDM request/response defined in + * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf + *+ * + *
bytes attestation_report = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAttestationReport() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ attestationReport_ = getDefaultInstance().getAttestationReport();
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo)
+ private static final com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo();
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. Single GPU quote. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the gpuQuote field is set.
+ */
+ boolean hasGpuQuote();
+
+ /**
+ *
+ *
+ * + * Optional. Single GPU quote. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The gpuQuote.
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuote();
+
+ /**
+ *
+ *
+ * + * Optional. Single GPU quote. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder
+ getGpuQuoteOrBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Single GPU Passthrough (SPT) attestation. + *+ * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation} + */ + public static final class SinglePassthroughAttestation + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation) + SinglePassthroughAttestationOrBuilder { + 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= */ "", + "SinglePassthroughAttestation"); + } + + // Use SinglePassthroughAttestation.newBuilder() to construct. + private SinglePassthroughAttestation(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private SinglePassthroughAttestation() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation.class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation.Builder.class); + } + + private int bitField0_; + public static final int GPU_QUOTE_FIELD_NUMBER = 1; + private com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpuQuote_; + + /** + * + * + *
+ * Optional. Single GPU quote. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the gpuQuote field is set.
+ */
+ @java.lang.Override
+ public boolean hasGpuQuote() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Single GPU quote. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The gpuQuote.
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuote() {
+ return gpuQuote_ == null
+ ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.getDefaultInstance()
+ : gpuQuote_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Single GPU quote. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder
+ getGpuQuoteOrBuilder() {
+ return gpuQuote_ == null
+ ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.getDefaultInstance()
+ : gpuQuote_;
+ }
+
+ 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.writeMessage(1, getGpuQuote());
+ }
+ 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.computeMessageSize(1, getGpuQuote());
+ }
+ 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.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation
+ other =
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation)
+ obj;
+
+ if (hasGpuQuote() != other.hasGpuQuote()) return false;
+ if (hasGpuQuote()) {
+ if (!getGpuQuote().equals(other.getGpuQuote())) 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 (hasGpuQuote()) {
+ hash = (37 * hash) + GPU_QUOTE_FIELD_NUMBER;
+ hash = (53 * hash) + getGpuQuote().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation
+ 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.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation
+ 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.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation
+ 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.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation
+ 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.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation
+ 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.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation
+ 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;
+ }
+
+ /**
+ *
+ *
+ * + * Single GPU Passthrough (SPT) attestation. + *+ * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. Single GPU quote. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the gpuQuote field is set.
+ */
+ public boolean hasGpuQuote() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Single GPU quote. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The gpuQuote.
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuote() {
+ if (gpuQuoteBuilder_ == null) {
+ return gpuQuote_ == null
+ ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo
+ .getDefaultInstance()
+ : gpuQuote_;
+ } else {
+ return gpuQuoteBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Single GPU quote. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setGpuQuote(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) {
+ if (gpuQuoteBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ gpuQuote_ = value;
+ } else {
+ gpuQuoteBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Single GPU quote. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setGpuQuote(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder
+ builderForValue) {
+ if (gpuQuoteBuilder_ == null) {
+ gpuQuote_ = builderForValue.build();
+ } else {
+ gpuQuoteBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Single GPU quote. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeGpuQuote(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) {
+ if (gpuQuoteBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && gpuQuote_ != null
+ && gpuQuote_
+ != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo
+ .getDefaultInstance()) {
+ getGpuQuoteBuilder().mergeFrom(value);
+ } else {
+ gpuQuote_ = value;
+ }
+ } else {
+ gpuQuoteBuilder_.mergeFrom(value);
+ }
+ if (gpuQuote_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Single GPU quote. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearGpuQuote() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ gpuQuote_ = null;
+ if (gpuQuoteBuilder_ != null) {
+ gpuQuoteBuilder_.dispose();
+ gpuQuoteBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Single GPU quote. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder
+ getGpuQuoteBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetGpuQuoteFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Single GPU quote. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder
+ getGpuQuoteOrBuilder() {
+ if (gpuQuoteBuilder_ != null) {
+ return gpuQuoteBuilder_.getMessageOrBuilder();
+ } else {
+ return gpuQuote_ == null
+ ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo
+ .getDefaultInstance()
+ : gpuQuote_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Single GPU quote. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder>
+ internalGetGpuQuoteFieldBuilder() {
+ if (gpuQuoteBuilder_ == null) {
+ gpuQuoteBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder>(
+ getGpuQuote(), getParentForChildren(), isClean());
+ gpuQuote_ = null;
+ }
+ return gpuQuoteBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation)
+ private static final com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation();
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuotes(int index);
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getGpuQuotesCount();
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder>
+ getGpuQuotesOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder
+ getGpuQuotesOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo getSwitchQuotes(
+ int index);
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getSwitchQuotesCount();
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder>
+ getSwitchQuotesOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder
+ getSwitchQuotesOrBuilder(int index);
+ }
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + * Eight Hopper GPUs with Four NVSwitch Passthrough. + *+ * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation} + */ + public static final class ProtectedPcieAttestation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation) + ProtectedPcieAttestationOrBuilder { + 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= */ "", + "ProtectedPcieAttestation"); + } + + // Use ProtectedPcieAttestation.newBuilder() to construct. + private ProtectedPcieAttestation(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ProtectedPcieAttestation() { + gpuQuotes_ = java.util.Collections.emptyList(); + switchQuotes_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .Builder.class); + } + + public static final int GPU_QUOTES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder>
+ getGpuQuotesOrBuilderList() {
+ return gpuQuotes_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getGpuQuotesCount() {
+ return gpuQuotes_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuotes(
+ int index) {
+ return gpuQuotes_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder
+ getGpuQuotesOrBuilder(int index) {
+ return gpuQuotes_.get(index);
+ }
+
+ public static final int SWITCH_QUOTES_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder>
+ getSwitchQuotesOrBuilderList() {
+ return switchQuotes_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getSwitchQuotesCount() {
+ return switchQuotes_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo getSwitchQuotes(
+ int index) {
+ return switchQuotes_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder
+ getSwitchQuotesOrBuilder(int index) {
+ return switchQuotes_.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 < gpuQuotes_.size(); i++) {
+ output.writeMessage(1, gpuQuotes_.get(i));
+ }
+ for (int i = 0; i < switchQuotes_.size(); i++) {
+ output.writeMessage(2, switchQuotes_.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 < gpuQuotes_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, gpuQuotes_.get(i));
+ }
+ for (int i = 0; i < switchQuotes_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, switchQuotes_.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.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation other =
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation)
+ obj;
+
+ if (!getGpuQuotesList().equals(other.getGpuQuotesList())) return false;
+ if (!getSwitchQuotesList().equals(other.getSwitchQuotesList())) 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 (getGpuQuotesCount() > 0) {
+ hash = (37 * hash) + GPU_QUOTES_FIELD_NUMBER;
+ hash = (53 * hash) + getGpuQuotesList().hashCode();
+ }
+ if (getSwitchQuotesCount() > 0) {
+ hash = (37 * hash) + SWITCH_QUOTES_FIELD_NUMBER;
+ hash = (53 * hash) + getSwitchQuotesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation
+ 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.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation
+ 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.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation
+ 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.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation
+ 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.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation
+ 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.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ 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;
+ }
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + * Eight Hopper GPUs with Four NVSwitch Passthrough. + *+ * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getGpuQuotesCount() {
+ if (gpuQuotesBuilder_ == null) {
+ return gpuQuotes_.size();
+ } else {
+ return gpuQuotesBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuotes(
+ int index) {
+ if (gpuQuotesBuilder_ == null) {
+ return gpuQuotes_.get(index);
+ } else {
+ return gpuQuotesBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setGpuQuotes(
+ int index, com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) {
+ if (gpuQuotesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGpuQuotesIsMutable();
+ gpuQuotes_.set(index, value);
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setGpuQuotes(
+ int index,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder
+ builderForValue) {
+ if (gpuQuotesBuilder_ == null) {
+ ensureGpuQuotesIsMutable();
+ gpuQuotes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addGpuQuotes(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) {
+ if (gpuQuotesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGpuQuotesIsMutable();
+ gpuQuotes_.add(value);
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addGpuQuotes(
+ int index, com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) {
+ if (gpuQuotesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGpuQuotesIsMutable();
+ gpuQuotes_.add(index, value);
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addGpuQuotes(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder
+ builderForValue) {
+ if (gpuQuotesBuilder_ == null) {
+ ensureGpuQuotesIsMutable();
+ gpuQuotes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addGpuQuotes(
+ int index,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder
+ builderForValue) {
+ if (gpuQuotesBuilder_ == null) {
+ ensureGpuQuotesIsMutable();
+ gpuQuotes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllGpuQuotes(
+ java.lang.Iterable<
+ ? extends com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo>
+ values) {
+ if (gpuQuotesBuilder_ == null) {
+ ensureGpuQuotesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gpuQuotes_);
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearGpuQuotes() {
+ if (gpuQuotesBuilder_ == null) {
+ gpuQuotes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeGpuQuotes(int index) {
+ if (gpuQuotesBuilder_ == null) {
+ ensureGpuQuotesIsMutable();
+ gpuQuotes_.remove(index);
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder
+ getGpuQuotesBuilder(int index) {
+ return internalGetGpuQuotesFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder
+ getGpuQuotesOrBuilder(int index) {
+ if (gpuQuotesBuilder_ == null) {
+ return gpuQuotes_.get(index);
+ } else {
+ return gpuQuotesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder>
+ getGpuQuotesOrBuilderList() {
+ if (gpuQuotesBuilder_ != null) {
+ return gpuQuotesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(gpuQuotes_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder
+ addGpuQuotesBuilder() {
+ return internalGetGpuQuotesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder
+ addGpuQuotesBuilder(int index) {
+ return internalGetGpuQuotesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder>
+ getGpuQuotesBuilderList() {
+ return internalGetGpuQuotesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder>
+ internalGetGpuQuotesFieldBuilder() {
+ if (gpuQuotesBuilder_ == null) {
+ gpuQuotesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder>(
+ gpuQuotes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ gpuQuotes_ = null;
+ }
+ return gpuQuotesBuilder_;
+ }
+
+ private java.util.List+ * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getSwitchQuotesCount() {
+ if (switchQuotesBuilder_ == null) {
+ return switchQuotes_.size();
+ } else {
+ return switchQuotesBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo getSwitchQuotes(
+ int index) {
+ if (switchQuotesBuilder_ == null) {
+ return switchQuotes_.get(index);
+ } else {
+ return switchQuotesBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSwitchQuotes(
+ int index, com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo value) {
+ if (switchQuotesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSwitchQuotesIsMutable();
+ switchQuotes_.set(index, value);
+ onChanged();
+ } else {
+ switchQuotesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSwitchQuotes(
+ int index,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder
+ builderForValue) {
+ if (switchQuotesBuilder_ == null) {
+ ensureSwitchQuotesIsMutable();
+ switchQuotes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ switchQuotesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addSwitchQuotes(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo value) {
+ if (switchQuotesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSwitchQuotesIsMutable();
+ switchQuotes_.add(value);
+ onChanged();
+ } else {
+ switchQuotesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addSwitchQuotes(
+ int index, com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo value) {
+ if (switchQuotesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSwitchQuotesIsMutable();
+ switchQuotes_.add(index, value);
+ onChanged();
+ } else {
+ switchQuotesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addSwitchQuotes(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder
+ builderForValue) {
+ if (switchQuotesBuilder_ == null) {
+ ensureSwitchQuotesIsMutable();
+ switchQuotes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ switchQuotesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addSwitchQuotes(
+ int index,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder
+ builderForValue) {
+ if (switchQuotesBuilder_ == null) {
+ ensureSwitchQuotesIsMutable();
+ switchQuotes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ switchQuotesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllSwitchQuotes(
+ java.lang.Iterable<
+ ? extends com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo>
+ values) {
+ if (switchQuotesBuilder_ == null) {
+ ensureSwitchQuotesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, switchQuotes_);
+ onChanged();
+ } else {
+ switchQuotesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearSwitchQuotes() {
+ if (switchQuotesBuilder_ == null) {
+ switchQuotes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ switchQuotesBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeSwitchQuotes(int index) {
+ if (switchQuotesBuilder_ == null) {
+ ensureSwitchQuotesIsMutable();
+ switchQuotes_.remove(index);
+ onChanged();
+ } else {
+ switchQuotesBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder
+ getSwitchQuotesBuilder(int index) {
+ return internalGetSwitchQuotesFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder
+ getSwitchQuotesOrBuilder(int index) {
+ if (switchQuotesBuilder_ == null) {
+ return switchQuotes_.get(index);
+ } else {
+ return switchQuotesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder>
+ getSwitchQuotesOrBuilderList() {
+ if (switchQuotesBuilder_ != null) {
+ return switchQuotesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(switchQuotes_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder
+ addSwitchQuotesBuilder() {
+ return internalGetSwitchQuotesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder
+ addSwitchQuotesBuilder(int index) {
+ return internalGetSwitchQuotesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of SWITCH infos. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder>
+ getSwitchQuotesBuilderList() {
+ return internalGetSwitchQuotesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder>
+ internalGetSwitchQuotesFieldBuilder() {
+ if (switchQuotesBuilder_ == null) {
+ switchQuotesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder>(
+ switchQuotes_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ switchQuotes_ = null;
+ }
+ return switchQuotesBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation)
+ private static final com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation();
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuotes(int index);
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getGpuQuotesCount();
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder>
+ getGpuQuotesOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder
+ getGpuQuotesOrBuilder(int index);
+ }
+
+ /**
+ *
+ *
+ * + * MultiGpuSecurePassthroughAttestation contains the attestation evidence + * for a Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation} + */ + public static final class MultiGpuSecurePassthroughAttestation + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation) + MultiGpuSecurePassthroughAttestationOrBuilder { + 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= */ "", + "MultiGpuSecurePassthroughAttestation"); + } + + // Use MultiGpuSecurePassthroughAttestation.newBuilder() to construct. + private MultiGpuSecurePassthroughAttestation( + com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private MultiGpuSecurePassthroughAttestation() { + gpuQuotes_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.Builder.class); + } + + public static final int GPU_QUOTES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder>
+ getGpuQuotesOrBuilderList() {
+ return gpuQuotes_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getGpuQuotesCount() {
+ return gpuQuotes_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuotes(
+ int index) {
+ return gpuQuotes_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder
+ getGpuQuotesOrBuilder(int index) {
+ return gpuQuotes_.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 < gpuQuotes_.size(); i++) {
+ output.writeMessage(1, gpuQuotes_.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 < gpuQuotes_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, gpuQuotes_.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.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ other =
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation)
+ obj;
+
+ if (!getGpuQuotesList().equals(other.getGpuQuotesList())) 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 (getGpuQuotesCount() > 0) {
+ hash = (37 * hash) + GPU_QUOTES_FIELD_NUMBER;
+ hash = (53 * hash) + getGpuQuotesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ 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.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ 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.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ 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.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ 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.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ 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.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ 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;
+ }
+
+ /**
+ *
+ *
+ * + * MultiGpuSecurePassthroughAttestation contains the attestation evidence + * for a Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getGpuQuotesCount() {
+ if (gpuQuotesBuilder_ == null) {
+ return gpuQuotes_.size();
+ } else {
+ return gpuQuotesBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuotes(
+ int index) {
+ if (gpuQuotesBuilder_ == null) {
+ return gpuQuotes_.get(index);
+ } else {
+ return gpuQuotesBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setGpuQuotes(
+ int index, com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) {
+ if (gpuQuotesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGpuQuotesIsMutable();
+ gpuQuotes_.set(index, value);
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setGpuQuotes(
+ int index,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder
+ builderForValue) {
+ if (gpuQuotesBuilder_ == null) {
+ ensureGpuQuotesIsMutable();
+ gpuQuotes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addGpuQuotes(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) {
+ if (gpuQuotesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGpuQuotesIsMutable();
+ gpuQuotes_.add(value);
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addGpuQuotes(
+ int index, com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) {
+ if (gpuQuotesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGpuQuotesIsMutable();
+ gpuQuotes_.add(index, value);
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addGpuQuotes(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder
+ builderForValue) {
+ if (gpuQuotesBuilder_ == null) {
+ ensureGpuQuotesIsMutable();
+ gpuQuotes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addGpuQuotes(
+ int index,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder
+ builderForValue) {
+ if (gpuQuotesBuilder_ == null) {
+ ensureGpuQuotesIsMutable();
+ gpuQuotes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllGpuQuotes(
+ java.lang.Iterable<
+ ? extends com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo>
+ values) {
+ if (gpuQuotesBuilder_ == null) {
+ ensureGpuQuotesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gpuQuotes_);
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearGpuQuotes() {
+ if (gpuQuotesBuilder_ == null) {
+ gpuQuotes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeGpuQuotes(int index) {
+ if (gpuQuotesBuilder_ == null) {
+ ensureGpuQuotesIsMutable();
+ gpuQuotes_.remove(index);
+ onChanged();
+ } else {
+ gpuQuotesBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder
+ getGpuQuotesBuilder(int index) {
+ return internalGetGpuQuotesFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder
+ getGpuQuotesOrBuilder(int index) {
+ if (gpuQuotesBuilder_ == null) {
+ return gpuQuotes_.get(index);
+ } else {
+ return gpuQuotesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder>
+ getGpuQuotesOrBuilderList() {
+ if (gpuQuotesBuilder_ != null) {
+ return gpuQuotesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(gpuQuotes_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder
+ addGpuQuotesBuilder() {
+ return internalGetGpuQuotesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder
+ addGpuQuotesBuilder(int index) {
+ return internalGetGpuQuotesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A list of GPU quotes. + *+ * + *
+ * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder>
+ getGpuQuotesBuilderList() {
+ return internalGetGpuQuotesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder>
+ internalGetGpuQuotesFieldBuilder() {
+ if (gpuQuotesBuilder_ == null) {
+ gpuQuotesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder>(
+ gpuQuotes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ gpuQuotes_ = null;
+ }
+ return gpuQuotesBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation)
+ private static final com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation();
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Single GPU Passthrough (SPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1;
+ *
+ *
+ * @return Whether the spt field is set.
+ */
+ @java.lang.Override
+ public boolean hasSpt() {
+ return ccFeatureCase_ == 1;
+ }
+
+ /**
+ *
+ *
+ * + * Single GPU Passthrough (SPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1;
+ *
+ *
+ * @return The spt.
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation
+ getSpt() {
+ if (ccFeatureCase_ == 1) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation)
+ ccFeature_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation
+ .getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ * + * Single GPU Passthrough (SPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestationOrBuilder
+ getSptOrBuilder() {
+ if (ccFeatureCase_ == 1) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation)
+ ccFeature_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation
+ .getDefaultInstance();
+ }
+
+ public static final int PPCIE_FIELD_NUMBER = 2;
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2;
+ *
+ *
+ * @return Whether the ppcie field is set.
+ */
+ @java.lang.Override
+ public boolean hasPpcie() {
+ return ccFeatureCase_ == 2;
+ }
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2;
+ *
+ *
+ * @return The ppcie.
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ getPpcie() {
+ if (ccFeatureCase_ == 2) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation)
+ ccFeature_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ .getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestationOrBuilder
+ getPpcieOrBuilder() {
+ if (ccFeatureCase_ == 2) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation)
+ ccFeature_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ .getDefaultInstance();
+ }
+
+ public static final int MPT_FIELD_NUMBER = 3;
+
+ /**
+ *
+ *
+ * + * Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3;
+ *
+ *
+ * @return Whether the mpt field is set.
+ */
+ @java.lang.Override
+ public boolean hasMpt() {
+ return ccFeatureCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ * + * Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3;
+ *
+ *
+ * @return The mpt.
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ getMpt() {
+ if (ccFeatureCase_ == 3) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation)
+ ccFeature_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ * + * Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestationOrBuilder
+ getMptOrBuilder() {
+ if (ccFeatureCase_ == 3) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation)
+ ccFeature_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation.getDefaultInstance();
+ }
+
+ 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 (ccFeatureCase_ == 1) {
+ output.writeMessage(
+ 1,
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation)
+ ccFeature_);
+ }
+ if (ccFeatureCase_ == 2) {
+ output.writeMessage(
+ 2,
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation)
+ ccFeature_);
+ }
+ if (ccFeatureCase_ == 3) {
+ output.writeMessage(
+ 3,
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation)
+ ccFeature_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (ccFeatureCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1,
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation)
+ ccFeature_);
+ }
+ if (ccFeatureCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2,
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation)
+ ccFeature_);
+ }
+ if (ccFeatureCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3,
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation)
+ ccFeature_);
+ }
+ 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.confidentialcomputing.v1.NvidiaAttestation)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation other =
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) obj;
+
+ if (!getCcFeatureCase().equals(other.getCcFeatureCase())) return false;
+ switch (ccFeatureCase_) {
+ case 1:
+ if (!getSpt().equals(other.getSpt())) return false;
+ break;
+ case 2:
+ if (!getPpcie().equals(other.getPpcie())) return false;
+ break;
+ case 3:
+ if (!getMpt().equals(other.getMpt())) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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();
+ switch (ccFeatureCase_) {
+ case 1:
+ hash = (37 * hash) + SPT_FIELD_NUMBER;
+ hash = (53 * hash) + getSpt().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + PPCIE_FIELD_NUMBER;
+ hash = (53 * hash) + getPpcie().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + MPT_FIELD_NUMBER;
+ hash = (53 * hash) + getMpt().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation 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.confidentialcomputing.v1.NvidiaAttestation parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation 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.confidentialcomputing.v1.NvidiaAttestation parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation 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.confidentialcomputing.v1.NvidiaAttestation parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation 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.confidentialcomputing.v1.NvidiaAttestation parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation 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.confidentialcomputing.v1.NvidiaAttestation 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;
+ }
+
+ /**
+ *
+ *
+ * + * An Nvidia attestation report for GPU and NVSwitch devices. + * Contains necessary attestation evidence that the client collects for + * verification. + *+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.NvidiaAttestation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Single GPU Passthrough (SPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1;
+ *
+ *
+ * @return Whether the spt field is set.
+ */
+ @java.lang.Override
+ public boolean hasSpt() {
+ return ccFeatureCase_ == 1;
+ }
+
+ /**
+ *
+ *
+ * + * Single GPU Passthrough (SPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1;
+ *
+ *
+ * @return The spt.
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation
+ getSpt() {
+ if (sptBuilder_ == null) {
+ if (ccFeatureCase_ == 1) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation)
+ ccFeature_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation.getDefaultInstance();
+ } else {
+ if (ccFeatureCase_ == 1) {
+ return sptBuilder_.getMessage();
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Single GPU Passthrough (SPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1;
+ *
+ */
+ public Builder setSpt(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation
+ value) {
+ if (sptBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ccFeature_ = value;
+ onChanged();
+ } else {
+ sptBuilder_.setMessage(value);
+ }
+ ccFeatureCase_ = 1;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Single GPU Passthrough (SPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1;
+ *
+ */
+ public Builder setSpt(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation
+ .Builder
+ builderForValue) {
+ if (sptBuilder_ == null) {
+ ccFeature_ = builderForValue.build();
+ onChanged();
+ } else {
+ sptBuilder_.setMessage(builderForValue.build());
+ }
+ ccFeatureCase_ = 1;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Single GPU Passthrough (SPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1;
+ *
+ */
+ public Builder mergeSpt(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation
+ value) {
+ if (sptBuilder_ == null) {
+ if (ccFeatureCase_ == 1
+ && ccFeature_
+ != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation.getDefaultInstance()) {
+ ccFeature_ =
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation.newBuilder(
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation)
+ ccFeature_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ ccFeature_ = value;
+ }
+ onChanged();
+ } else {
+ if (ccFeatureCase_ == 1) {
+ sptBuilder_.mergeFrom(value);
+ } else {
+ sptBuilder_.setMessage(value);
+ }
+ }
+ ccFeatureCase_ = 1;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Single GPU Passthrough (SPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1;
+ *
+ */
+ public Builder clearSpt() {
+ if (sptBuilder_ == null) {
+ if (ccFeatureCase_ == 1) {
+ ccFeatureCase_ = 0;
+ ccFeature_ = null;
+ onChanged();
+ }
+ } else {
+ if (ccFeatureCase_ == 1) {
+ ccFeatureCase_ = 0;
+ ccFeature_ = null;
+ }
+ sptBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Single GPU Passthrough (SPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1;
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation
+ .Builder
+ getSptBuilder() {
+ return internalGetSptFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Single GPU Passthrough (SPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestationOrBuilder
+ getSptOrBuilder() {
+ if ((ccFeatureCase_ == 1) && (sptBuilder_ != null)) {
+ return sptBuilder_.getMessageOrBuilder();
+ } else {
+ if (ccFeatureCase_ == 1) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation)
+ ccFeature_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Single GPU Passthrough (SPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation
+ .Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestationOrBuilder>
+ internalGetSptFieldBuilder() {
+ if (sptBuilder_ == null) {
+ if (!(ccFeatureCase_ == 1)) {
+ ccFeature_ =
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation.getDefaultInstance();
+ }
+ sptBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestationOrBuilder>(
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .SinglePassthroughAttestation)
+ ccFeature_,
+ getParentForChildren(),
+ isClean());
+ ccFeature_ = null;
+ }
+ ccFeatureCase_ = 1;
+ onChanged();
+ return sptBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ .Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestationOrBuilder>
+ ppcieBuilder_;
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2;
+ *
+ *
+ * @return Whether the ppcie field is set.
+ */
+ @java.lang.Override
+ public boolean hasPpcie() {
+ return ccFeatureCase_ == 2;
+ }
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2;
+ *
+ *
+ * @return The ppcie.
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ getPpcie() {
+ if (ppcieBuilder_ == null) {
+ if (ccFeatureCase_ == 2) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation)
+ ccFeature_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ .getDefaultInstance();
+ } else {
+ if (ccFeatureCase_ == 2) {
+ return ppcieBuilder_.getMessage();
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2;
+ *
+ */
+ public Builder setPpcie(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ value) {
+ if (ppcieBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ccFeature_ = value;
+ onChanged();
+ } else {
+ ppcieBuilder_.setMessage(value);
+ }
+ ccFeatureCase_ = 2;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2;
+ *
+ */
+ public Builder setPpcie(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation.Builder
+ builderForValue) {
+ if (ppcieBuilder_ == null) {
+ ccFeature_ = builderForValue.build();
+ onChanged();
+ } else {
+ ppcieBuilder_.setMessage(builderForValue.build());
+ }
+ ccFeatureCase_ = 2;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2;
+ *
+ */
+ public Builder mergePpcie(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ value) {
+ if (ppcieBuilder_ == null) {
+ if (ccFeatureCase_ == 2
+ && ccFeature_
+ != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation.getDefaultInstance()) {
+ ccFeature_ =
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ .newBuilder(
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation)
+ ccFeature_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ ccFeature_ = value;
+ }
+ onChanged();
+ } else {
+ if (ccFeatureCase_ == 2) {
+ ppcieBuilder_.mergeFrom(value);
+ } else {
+ ppcieBuilder_.setMessage(value);
+ }
+ }
+ ccFeatureCase_ = 2;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2;
+ *
+ */
+ public Builder clearPpcie() {
+ if (ppcieBuilder_ == null) {
+ if (ccFeatureCase_ == 2) {
+ ccFeatureCase_ = 0;
+ ccFeature_ = null;
+ onChanged();
+ }
+ } else {
+ if (ccFeatureCase_ == 2) {
+ ccFeatureCase_ = 0;
+ ccFeature_ = null;
+ }
+ ppcieBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2;
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ .Builder
+ getPpcieBuilder() {
+ return internalGetPpcieFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestationOrBuilder
+ getPpcieOrBuilder() {
+ if ((ccFeatureCase_ == 2) && (ppcieBuilder_ != null)) {
+ return ppcieBuilder_.getMessageOrBuilder();
+ } else {
+ if (ccFeatureCase_ == 2) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation)
+ ccFeature_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ .Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestationOrBuilder>
+ internalGetPpcieFieldBuilder() {
+ if (ppcieBuilder_ == null) {
+ if (!(ccFeatureCase_ == 2)) {
+ ccFeature_ =
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ .getDefaultInstance();
+ }
+ ppcieBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation
+ .Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestationOrBuilder>(
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .ProtectedPcieAttestation)
+ ccFeature_,
+ getParentForChildren(),
+ isClean());
+ ccFeature_ = null;
+ }
+ ccFeatureCase_ = 2;
+ onChanged();
+ return ppcieBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestationOrBuilder>
+ mptBuilder_;
+
+ /**
+ *
+ *
+ * + * Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3;
+ *
+ *
+ * @return Whether the mpt field is set.
+ */
+ @java.lang.Override
+ public boolean hasMpt() {
+ return ccFeatureCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ * + * Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3;
+ *
+ *
+ * @return The mpt.
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ getMpt() {
+ if (mptBuilder_ == null) {
+ if (ccFeatureCase_ == 3) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation)
+ ccFeature_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation.getDefaultInstance();
+ } else {
+ if (ccFeatureCase_ == 3) {
+ return mptBuilder_.getMessage();
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3;
+ *
+ */
+ public Builder setMpt(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ value) {
+ if (mptBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ccFeature_ = value;
+ onChanged();
+ } else {
+ mptBuilder_.setMessage(value);
+ }
+ ccFeatureCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3;
+ *
+ */
+ public Builder setMpt(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation.Builder
+ builderForValue) {
+ if (mptBuilder_ == null) {
+ ccFeature_ = builderForValue.build();
+ onChanged();
+ } else {
+ mptBuilder_.setMessage(builderForValue.build());
+ }
+ ccFeatureCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3;
+ *
+ */
+ public Builder mergeMpt(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation
+ value) {
+ if (mptBuilder_ == null) {
+ if (ccFeatureCase_ == 3
+ && ccFeature_
+ != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation.getDefaultInstance()) {
+ ccFeature_ =
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation.newBuilder(
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation)
+ ccFeature_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ ccFeature_ = value;
+ }
+ onChanged();
+ } else {
+ if (ccFeatureCase_ == 3) {
+ mptBuilder_.mergeFrom(value);
+ } else {
+ mptBuilder_.setMessage(value);
+ }
+ }
+ ccFeatureCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3;
+ *
+ */
+ public Builder clearMpt() {
+ if (mptBuilder_ == null) {
+ if (ccFeatureCase_ == 3) {
+ ccFeatureCase_ = 0;
+ ccFeature_ = null;
+ onChanged();
+ }
+ } else {
+ if (ccFeatureCase_ == 3) {
+ ccFeatureCase_ = 0;
+ ccFeature_ = null;
+ }
+ mptBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3;
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation.Builder
+ getMptBuilder() {
+ return internalGetMptFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestationOrBuilder
+ getMptOrBuilder() {
+ if ((ccFeatureCase_ == 3) && (mptBuilder_ != null)) {
+ return mptBuilder_.getMessageOrBuilder();
+ } else {
+ if (ccFeatureCase_ == 3) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation)
+ ccFeature_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestationOrBuilder>
+ internalGetMptFieldBuilder() {
+ if (mptBuilder_ == null) {
+ if (!(ccFeatureCase_ == 3)) {
+ ccFeature_ =
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation.getDefaultInstance();
+ }
+ mptBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestationOrBuilder>(
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestation)
+ ccFeature_,
+ getParentForChildren(),
+ isClean());
+ ccFeature_ = null;
+ }
+ ccFeatureCase_ = 3;
+ onChanged();
+ return mptBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation)
+ private static final com.google.cloud.confidentialcomputing.v1.NvidiaAttestation DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation();
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Single GPU Passthrough (SPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1;
+ *
+ *
+ * @return Whether the spt field is set.
+ */
+ boolean hasSpt();
+
+ /**
+ *
+ *
+ * + * Single GPU Passthrough (SPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1;
+ *
+ *
+ * @return The spt.
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation getSpt();
+
+ /**
+ *
+ *
+ * + * Single GPU Passthrough (SPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1;
+ *
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestationOrBuilder
+ getSptOrBuilder();
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2;
+ *
+ *
+ * @return Whether the ppcie field is set.
+ */
+ boolean hasPpcie();
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2;
+ *
+ *
+ * @return The ppcie.
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation getPpcie();
+
+ /**
+ *
+ *
+ * + * Protected PCIe (PPCIE) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2;
+ *
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestationOrBuilder
+ getPpcieOrBuilder();
+
+ /**
+ *
+ *
+ * + * Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3;
+ *
+ *
+ * @return Whether the mpt field is set.
+ */
+ boolean hasMpt();
+
+ /**
+ *
+ *
+ * + * Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3;
+ *
+ *
+ * @return The mpt.
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation
+ getMpt();
+
+ /**
+ *
+ *
+ * + * Multi-GPU Secure Passthrough (MPT) attestation. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3;
+ *
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .MultiGpuSecurePassthroughAttestationOrBuilder
+ getMptOrBuilder();
+
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.CcFeatureCase getCcFeatureCase();
+}
diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java
index 4714df19f0a0..2917db7279cd 100644
--- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java
+++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java
@@ -52,6 +52,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -128,6 +152,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -160,24 +188,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
+ "!locations.googleapis.com/Location\022H\n"
+ "\tchallenge\030\002 \001(\01320.google.clou"
- + "d.confidentialcomputing.v1.ChallengeB\003\340A\002\"\237\005\n"
+ + "d.confidentialcomputing.v1.ChallengeB\003\340A\002\"\222\006\n"
+ "\030VerifyAttestationRequest\022Q\n"
+ "\007td_ccel\030\006"
+ " \001(\01329.google.cloud.confidentialcomputing.v1.TdxCcelAttestationB\003\340A\001H\000\022\\\n"
+ "\023sev_snp_attestation\030\007 \001(\01328.google.cloud.co"
- + "nfidentialcomputing.v1.SevSnpAttestationB\003\340A\001H\000\022I\n"
+ + "nfidentialcomputing.v1.SevSnpAttestationB\003\340A\001H\000\022[\n"
+ + "\022nvidia_attestation\030\t \001(\01328.go"
+ + "ogle.cloud.confidentialcomputing.v1.NvidiaAttestationB\003\340A\001H\001\022I\n"
+ "\tchallenge\030\001 \001(\tB6\340A\002\372A0\n"
+ ".confidentialcomputing.googleapis.com/Challenge\022S\n"
- + "\017gcp_credentials\030\002 \001(\01325.google.clo"
- + "ud.confidentialcomputing.v1.GcpCredentialsB\003\340A\001\022S\n"
- + "\017tpm_attestation\030\003 \001(\01325.googl"
- + "e.cloud.confidentialcomputing.v1.TpmAttestationB\003\340A\002\022b\n"
- + "\027confidential_space_info\030\004"
- + " \001(\0132<.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoB\003\340A\001\022O\n\r"
- + "token_options\030\005"
- + " \001(\01323.google.cloud.confidentialcomputing.v1.TokenOptionsB\003\340A\001\022\025\n"
+ + "\017gcp_credentials\030\002 \001(\013"
+ + "25.google.cloud.confidentialcomputing.v1.GcpCredentialsB\003\340A\001\022S\n"
+ + "\017tpm_attestation\030\003"
+ + " \001(\01325.google.cloud.confidentialcomputing.v1.TpmAttestationB\003\340A\002\022b\n"
+ + "\027confidential_space_info\030\004 \001(\0132<.google.cloud.confid"
+ + "entialcomputing.v1.ConfidentialSpaceInfoB\003\340A\001\022O\n\r"
+ + "token_options\030\005 \001(\01323.google.cl"
+ + "oud.confidentialcomputing.v1.TokenOptionsB\003\340A\001\022\025\n"
+ "\010attester\030\010 \001(\tB\003\340A\001B\021\n"
- + "\017tee_attestation\"\203\001\n"
+ + "\017tee_attestationB\024\n"
+ + "\022device_attestation\"\273\n\n"
+ + "\021NvidiaAttestation\022d\n"
+ + "\003spt\030\001 \001(\0132U.google.cloud"
+ + ".confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestationH\000\022b\n"
+ + "\005ppcie\030\002 \001(\0132Q.google.cloud.confidentialcom"
+ + "puting.v1.NvidiaAttestation.ProtectedPcieAttestationH\000\022l\n"
+ + "\003mpt\030\003 \001(\0132].google.cloud.confidentialcomputing.v1.NvidiaAttest"
+ + "ation.MultiGpuSecurePassthroughAttestationH\000\032\224\002\n"
+ + "\007GpuInfo\022\021\n"
+ + "\004uuid\030\001 \001(\tB\003\340A\001\022\033\n"
+ + "\016driver_version\030\002 \001(\tB\003\340A\001\022\032\n\r"
+ + "vbios_version\030\003 \001(\tB\003\340A\001\022p\n"
+ + "\025gpu_architecture_type\030\004 \001(\0162L.google.cloud.confidentialcomputing"
+ + ".v1.NvidiaAttestation.GpuArchitectureTypeB\003\340A\001\022*\n"
+ + "\035attestation_certificate_chain\030\005 \001(\014B\003\340A\001\022\037\n"
+ + "\022attestation_report\030\006 \001(\014B\003\340A\001\032l\n\n"
+ + "SwitchInfo\022\021\n"
+ + "\004uuid\030\001 \001(\tB\003\340A\001\022*\n"
+ + "\035attestation_certificate_chain\030\002 \001(\014B\003\340A\001\022\037\n"
+ + "\022attestation_report\030\003 \001(\014B\003\340A\001\032x\n"
+ + "\034SinglePassthroughAttestation\022X\n"
+ + "\tgpu_quote\030\001"
+ + " \001(\0132@.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoB\003\340A\001\032\326\001\n"
+ + "\030ProtectedPcieAttestation\022Y\n\n"
+ + "gpu_quotes\030\001"
+ + " \003(\0132@.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoB\003\340A\001\022_\n\r"
+ + "switch_quotes\030\002 \003(\0132C.google.cloud.confid"
+ + "entialcomputing.v1.NvidiaAttestation.SwitchInfoB\003\340A\001\032\201\001\n"
+ + "$MultiGpuSecurePassthroughAttestation\022Y\n\n"
+ + "gpu_quotes\030\001 \003(\0132@.goog"
+ + "le.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoB\003\340A\001\"\203\001\n"
+ + "\023GpuArchitectureType\022%\n"
+ + "!GPU_ARCHITECTURE_TYPE_UNSPECIFIED\020\000\022 \n"
+ + "\034GPU_ARCHITECTURE_TYPE_HOPPER\020\010\022#\n"
+ + "\037GPU_ARCHITECTURE_TYPE_BLACKWELL\020\n"
+ + "B\014\n\n"
+ + "cc_feature\"\203\001\n"
+ "\022TdxCcelAttestation\022\034\n"
+ "\017ccel_acpi_table\030\001 \001(\014B\003\340A\001\022\026\n"
+ "\tccel_data\030\002 \001(\014B\003\340A\001\022 \n"
@@ -192,74 +259,77 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\016GcpCredentials\022!\n"
+ "\031service_account_id_tokens\030\002 \003(\t\"\205\002\n"
+ "\014TokenOptions\022i\n"
- + "\032aws_principal_tags_options\030\004 \001(\0132>.google.cloud.confidentialco"
- + "mputing.v1.AwsPrincipalTagsOptionsB\003\340A\001H\000\022\025\n"
+ + "\032aws_principal_tags_options\030\004 \001(\0132>.google.clo"
+ + "ud.confidentialcomputing.v1.AwsPrincipalTagsOptionsB\003\340A\001H\000\022\025\n"
+ "\010audience\030\001 \001(\tB\003\340A\001\022\022\n"
+ "\005nonce\030\002 \003(\tB\003\340A\001\022I\n\n"
- + "token_type\030\003 \001(\01620.google.cloud."
- + "confidentialcomputing.v1.TokenTypeB\003\340A\001B\024\n"
+ + "token_type\030\003 \001("
+ + "\01620.google.cloud.confidentialcomputing.v1.TokenTypeB\003\340A\001B\024\n"
+ "\022token_type_options\"\366\002\n"
+ "\027AwsPrincipalTagsOptions\022x\n"
- + "\026allowed_principal_tags\030\001 \001(\0132S.google.cloud.confidentialcomputing.v"
- + "1.AwsPrincipalTagsOptions.AllowedPrincipalTagsB\003\340A\001\032\340\001\n"
+ + "\026allowed_principal_tags\030\001 \001(\0132S.google.cloud.confid"
+ + "entialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTagsB\003\340A\001\032\340\001\n"
+ "\024AllowedPrincipalTags\022\225\001\n"
- + "\032container_image_signatures\030\001 \001(\0132l.goog"
- + "le.cloud.confidentialcomputing.v1.AwsPri"
- + "ncipalTagsOptions.AllowedPrincipalTags.ContainerImageSignaturesB\003\340A\001\0320\n"
+ + "\032container_image_signatures\030\001 \001(\0132l.google.cloud.confidentialco"
+ + "mputing.v1.AwsPrincipalTagsOptions.Allow"
+ + "edPrincipalTags.ContainerImageSignaturesB\003\340A\001\0320\n"
+ "\030ContainerImageSignatures\022\024\n"
+ "\007key_ids\030\001 \003(\tB\003\340A\001\"\217\003\n"
+ "\016TpmAttestation\022K\n"
- + "\006quotes\030\001 \003(\0132;.goog"
- + "le.cloud.confidentialcomputing.v1.TpmAttestation.Quote\022\025\n\r"
+ + "\006quotes\030\001"
+ + " \003(\0132;.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote\022\025\n\r"
+ "tcg_event_log\030\002 \001(\014\022\033\n"
+ "\023canonical_event_log\030\003 \001(\014\022\017\n"
+ "\007ak_cert\030\004 \001(\014\022\022\n\n"
+ "cert_chain\030\005 \003(\014\032\326\001\n"
+ "\005Quote\022\021\n"
+ "\thash_algo\030\001 \001(\005\022^\n\n"
- + "pcr_values\030\002 \003(\0132J.googl"
- + "e.cloud.confidentialcomputing.v1.TpmAttestation.Quote.PcrValuesEntry\022\021\n"
+ + "pcr_values\030\002 \003(\0132J.google.cloud.confidentialcom"
+ + "puting.v1.TpmAttestation.Quote.PcrValuesEntry\022\021\n"
+ "\traw_quote\030\003 \001(\014\022\025\n\r"
+ "raw_signature\030\004 \001(\014\0320\n"
+ "\016PcrValuesEntry\022\013\n"
- + "\003key\030\001 \001(\005\022\r\n"
+ + "\003key\030\001 \001(\005\022\r"
+ + "\n"
+ "\005value\030\002 \001(\014:\0028\001\"j\n"
+ "\025ConfidentialSpaceInfo\022Q\n"
- + "\017signed_entities\030\001"
- + " \003(\01323.google.cloud.confidentialcomputing.v1.SignedEntityB\003\340A\001\"w\n"
+ + "\017signed_entities\030\001 \003(\01323.google.clo"
+ + "ud.confidentialcomputing.v1.SignedEntityB\003\340A\001\"w\n"
+ "\014SignedEntity\022g\n"
- + "\032container_image_signatures\030\001 \003(\013"
- + "2>.google.cloud.confidentialcomputing.v1.ContainerImageSignatureB\003\340A\001\"\257\001\n"
+ + "\032container_image_signatures\030\001 \003(\0132>.google.cloud.confide"
+ + "ntialcomputing.v1.ContainerImageSignatureB\003\340A\001\"\257\001\n"
+ "\027ContainerImageSignature\022\024\n"
+ "\007payload\030\001 \001(\014B\003\340A\001\022\026\n"
+ "\tsignature\030\002 \001(\014B\003\340A\001\022\027\n\n"
+ "public_key\030\003 \001(\014B\003\340A\001\022M\n"
- + "\007sig_alg\030\004 \001(\01627.google.cloud"
- + ".confidentialcomputing.v1.SigningAlgorithmB\003\340A\001\"\226\010\n"
+ + "\007sig_alg\030\004 \001"
+ + "(\01627.google.cloud.confidentialcomputing.v1.SigningAlgorithmB\003\340A\001\"\361\010\n"
+ "\036VerifyConfidentialSpaceRequest\022Q\n"
- + "\007td_ccel\030\003 \001(\01329.google.cloud.confi"
- + "dentialcomputing.v1.TdxCcelAttestationB\003\340A\004H\000\022U\n"
- + "\017tpm_attestation\030\004 \001(\01325.google."
- + "cloud.confidentialcomputing.v1.TpmAttestationB\003\340A\004H\000\022I\n"
+ + "\007td_ccel\030\003 \001(\01329.g"
+ + "oogle.cloud.confidentialcomputing.v1.TdxCcelAttestationB\003\340A\004H\000\022U\n"
+ + "\017tpm_attestation\030\004"
+ + " \001(\01325.google.cloud.confidentialcomputing.v1.TpmAttestationB\003\340A\004H\000\022I\n"
+ "\tchallenge\030\001 \001(\tB6\340A\002\372A0\n"
+ ".confidentialcomputing.googleapis.com/Challenge\022S\n"
- + "\017gcp_credentials\030\002 \001(\01325.googl"
- + "e.cloud.confidentialcomputing.v1.GcpCredentialsB\003\340A\001\022Q\n"
- + "\017signed_entities\030\005 \003(\01323."
- + "google.cloud.confidentialcomputing.v1.SignedEntityB\003\340A\001\022^\n"
- + "\025gce_shielded_identity\030\006"
- + " \001(\0132:.google.cloud.confidentialcomputing.v1.GceShieldedIdentityB\003\340A\001\022t\n"
- + "\007options\030\007 \001(\0132^.google.cloud.confidentialcomp"
- + "uting.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptionsB\003\340A\001\032\355\002\n"
+ + "\017gcp_credentials\030\002"
+ + " \001(\01325.google.cloud.confidentialcomputing.v1.GcpCredentialsB\003\340A\001\022Q\n"
+ + "\017signed_entities\030\005"
+ + " \003(\01323.google.cloud.confidentialcomputing.v1.SignedEntityB\003\340A\001\022^\n"
+ + "\025gce_shielded_identity\030\006 \001(\0132:.google.cloud.c"
+ + "onfidentialcomputing.v1.GceShieldedIdentityB\003\340A\001\022t\n"
+ + "\007options\030\007 \001(\0132^.google.cloud.confidentialcomputing.v1.VerifyConfiden"
+ + "tialSpaceRequest.ConfidentialSpaceOptionsB\003\340A\001\022Y\n"
+ + "\022nvidia_attestation\030\010 \001(\01328.goo"
+ + "gle.cloud.confidentialcomputing.v1.NvidiaAttestationB\003\340A\001\032\355\002\n"
+ "\030ConfidentialSpaceOptions\022i\n"
- + "\032aws_principal_tags_options\030\005 \001(\0132>.google.cloud.confidenti"
- + "alcomputing.v1.AwsPrincipalTagsOptionsB\003\340A\001H\000\022\025\n"
+ + "\032aws_principal_tags_options\030\005 \001"
+ + "(\0132>.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptionsB\003\340A\001H\000\022\025\n"
+ "\010audience\030\001 \001(\tB\003\340A\001\022O\n\r"
- + "token_profile\030\002"
- + " \001(\01623.google.cloud.confidentialcomputing.v1.TokenProfileB\003\340A\001\022\022\n"
+ + "token_profile\030\002 \001(\0162"
+ + "3.google.cloud.confidentialcomputing.v1.TokenProfileB\003\340A\001\022\022\n"
+ "\005nonce\030\003 \003(\tB\003\340A\001\022Q\n"
- + "\016signature_type\030\004 \001(\01624.goog"
- + "le.cloud.confidentialcomputing.v1.SignatureTypeB\003\340A\001B\027\n"
+ + "\016signature_type\030\004 \001(\01624.google.cloud.con"
+ + "fidentialcomputing.v1.SignatureTypeB\003\340A\001B\027\n"
+ "\025token_profile_optionsB\021\n"
+ "\017tee_attestation\"G\n"
+ "\023GceShieldedIdentity\022\024\n"
@@ -267,12 +337,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ak_cert_chain\030\002 \003(\014B\003\340A\001\"r\n"
+ "\037VerifyConfidentialSpaceResponse\022\036\n"
+ "\021attestation_token\030\001 \001(\tB\003\340A\003\022/\n"
- + "\016partial_errors\030\002 \003(\0132\022.google.rpc.StatusB\003\340A\003\"\316\001\n"
+ + "\016partial_errors\030\002 \003(\0132\022.google.rpc.StatusB\003\340A\003\"\331\003\n"
+ "\034VerifyConfidentialGkeRequest\022P\n"
- + "\017tpm_attestation\030\002 \001(\01325.google.cloud.c"
- + "onfidentialcomputing.v1.TpmAttestationH\000\022I\n"
+ + "\017tpm_attestation\030\002"
+ + " \001(\01325.google.cloud.confidentialcomputing.v1.TpmAttestationH\000\022I\n"
+ "\tchallenge\030\001 \001(\tB6\340A\002\372A0\n"
- + ".confidentialcomputing.googleapis.com/ChallengeB\021\n"
+ + ".confidentialcomputing.googleapis.com/Challenge\022p\n"
+ + "\007options\030\003 \001(\0132Z.google.cloud.confidentialcomputing.v1"
+ + ".VerifyConfidentialGkeRequest.ConfidentialGkeOptionsB\003\340A\001\032\226\001\n"
+ + "\026ConfidentialGkeOptions\022\025\n"
+ + "\010audience\030\001 \001(\tB\003\340A\001\022\022\n"
+ + "\005nonce\030\003 \003(\tB\003\340A\001\022Q\n"
+ + "\016signature_type\030\004 \001(\01624.google"
+ + ".cloud.confidentialcomputing.v1.SignatureTypeB\003\340A\001B\021\n"
+ "\017tee_attestation\"?\n"
+ "\035VerifyConfidentialGkeResponse\022\036\n"
+ "\021attestation_token\030\001 \001(\tB\003\340A\003*\177\n"
@@ -296,32 +373,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\031TOKEN_PROFILE_DEFAULT_EAT\020\001\022\025\n"
+ "\021TOKEN_PROFILE_AWS\020\0022\265\010\n"
+ "\025ConfidentialComputing\022\330\001\n"
- + "\017CreateChallenge\022=.google.cloud.confidentialcomputing.v1.C"
- + "reateChallengeRequest\0320.google.cloud.con"
- + "fidentialcomputing.v1.Challenge\"T\332A\020pare"
- + "nt,challenge\202\323\344\223\002;\"./v1/{parent=projects/*/locations/*}/challenges:"
- + "\tchallenge\022\350\001\n"
- + "\021VerifyAttestation\022?.google.cloud.confidentialcomputing.v1.VerifyAttestationReq"
- + "uest\032@.google.cloud.confidentialcomputin"
- + "g.v1.VerifyAttestationResponse\"P\202\323\344\223\002J\"E"
- + "/v1/{challenge=projects/*/locations/*/challenges/*}:verifyAttestation:\001*\022\200\002\n"
- + "\027VerifyConfidentialSpace\022E.google.cloud.conf"
- + "identialcomputing.v1.VerifyConfidentialSpaceRequest\032F.google.cloud.confidentialc"
- + "omputing.v1.VerifyConfidentialSpaceRespo"
- + "nse\"V\202\323\344\223\002P\"K/v1/{challenge=projects/*/l"
- + "ocations/*/challenges/*}:verifyConfidentialSpace:\001*\022\370\001\n"
- + "\025VerifyConfidentialGke\022C.google.cloud.confidentialcomputing.v1.Ve"
- + "rifyConfidentialGkeRequest\032D.google.cloud.confidentialcomputing.v1.VerifyConfide"
- + "ntialGkeResponse\"T\202\323\344\223\002N\"I/v1/{challenge"
- + "=projects/*/locations/*/challenges/*}:ve"
- + "rifyConfidentialGke:\001*\032X\312A$confidentialc"
- + "omputing.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\227\002\n"
- + ")com.google.cloud.confidentialcomputing.v1B\014"
- + "ServiceProtoP\001Z_cloud.google.com/go/confidentialcomputing/apiv1/confidentialcomp"
- + "utingpb;confidentialcomputingpb\252\002%Google"
- + ".Cloud.ConfidentialComputing.V1\312\002%Google"
- + "\\Cloud\\ConfidentialComputing\\V1\352\002(Google"
- + "::Cloud::ConfidentialComputing::V1b\006proto3"
+ + "\017CreateChallenge\022=.google.cloud.confidentia"
+ + "lcomputing.v1.CreateChallengeRequest\0320.google.cloud.confidentialcomputing.v1.Cha"
+ + "llenge\"T\332A\020parent,challenge\202\323\344\223\002;\"./v1/{"
+ + "parent=projects/*/locations/*}/challenges:\tchallenge\022\350\001\n"
+ + "\021VerifyAttestation\022?.google.cloud.confidentialcomputing.v1.Verif"
+ + "yAttestationRequest\032@.google.cloud.confidentialcomputing.v1.VerifyAttestationRes"
+ + "ponse\"P\202\323\344\223\002J\"E/v1/{challenge=projects/*"
+ + "/locations/*/challenges/*}:verifyAttestation:\001*\022\200\002\n"
+ + "\027VerifyConfidentialSpace\022E.google.cloud.confidentialcomputing.v1.Veri"
+ + "fyConfidentialSpaceRequest\032F.google.cloud.confidentialcomputing.v1.VerifyConfide"
+ + "ntialSpaceResponse\"V\202\323\344\223\002P\"K/v1/{challen"
+ + "ge=projects/*/locations/*/challenges/*}:verifyConfidentialSpace:\001*\022\370\001\n"
+ + "\025VerifyConfidentialGke\022C.google.cloud.confidential"
+ + "computing.v1.VerifyConfidentialGkeRequest\032D.google.cloud.confidentialcomputing.v"
+ + "1.VerifyConfidentialGkeResponse\"T\202\323\344\223\002N\""
+ + "I/v1/{challenge=projects/*/locations/*/c"
+ + "hallenges/*}:verifyConfidentialGke:\001*\032X\312"
+ + "A$confidentialcomputing.googleapis.com\322A"
+ + ".https://www.googleapis.com/auth/cloud-platformB\227\002\n"
+ + ")com.google.cloud.confidentialcomputing.v1B\014ServiceProtoP\001Z_cloud.goo"
+ + "gle.com/go/confidentialcomputing/apiv1/confidentialcomputingpb;confidentialcompu"
+ + "tingpb\252\002%Google.Cloud.ConfidentialComput"
+ + "ing.V1\312\002%Google\\Cloud\\ConfidentialComput"
+ + "ing\\V1\352\002(Google::Cloud::ConfidentialComputing::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -358,6 +433,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"TdCcel",
"SevSnpAttestation",
+ "NvidiaAttestation",
"Challenge",
"GcpCredentials",
"TpmAttestation",
@@ -365,9 +441,68 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"TokenOptions",
"Attester",
"TeeAttestation",
+ "DeviceAttestation",
});
- internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_descriptor =
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor =
getDescriptor().getMessageType(3);
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor,
+ new java.lang.String[] {
+ "Spt", "Ppcie", "Mpt", "CcFeature",
+ });
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_descriptor =
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor
+ .getNestedType(0);
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_descriptor,
+ new java.lang.String[] {
+ "Uuid",
+ "DriverVersion",
+ "VbiosVersion",
+ "GpuArchitectureType",
+ "AttestationCertificateChain",
+ "AttestationReport",
+ });
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_descriptor =
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor
+ .getNestedType(1);
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_descriptor,
+ new java.lang.String[] {
+ "Uuid", "AttestationCertificateChain", "AttestationReport",
+ });
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_descriptor =
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor
+ .getNestedType(2);
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_descriptor,
+ new java.lang.String[] {
+ "GpuQuote",
+ });
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_descriptor =
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor
+ .getNestedType(3);
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_descriptor,
+ new java.lang.String[] {
+ "GpuQuotes", "SwitchQuotes",
+ });
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_descriptor =
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor
+ .getNestedType(4);
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_descriptor,
+ new java.lang.String[] {
+ "GpuQuotes",
+ });
+ internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_descriptor =
+ getDescriptor().getMessageType(4);
internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_descriptor,
@@ -375,7 +510,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"CcelAcpiTable", "CcelData", "CanonicalEventLog", "TdQuote",
});
internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_descriptor =
- getDescriptor().getMessageType(4);
+ getDescriptor().getMessageType(5);
internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_descriptor,
@@ -383,7 +518,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Report", "AuxBlob",
});
internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor =
- getDescriptor().getMessageType(5);
+ getDescriptor().getMessageType(6);
internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor,
@@ -391,7 +526,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"OidcClaimsToken", "PartialErrors",
});
internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor =
- getDescriptor().getMessageType(6);
+ getDescriptor().getMessageType(7);
internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor,
@@ -399,7 +534,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ServiceAccountIdTokens",
});
internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor =
- getDescriptor().getMessageType(7);
+ getDescriptor().getMessageType(8);
internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor,
@@ -407,7 +542,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"AwsPrincipalTagsOptions", "Audience", "Nonce", "TokenType", "TokenTypeOptions",
});
internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_descriptor =
- getDescriptor().getMessageType(8);
+ getDescriptor().getMessageType(9);
internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_descriptor,
@@ -433,7 +568,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"KeyIds",
});
internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor =
- getDescriptor().getMessageType(9);
+ getDescriptor().getMessageType(10);
internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor,
@@ -459,7 +594,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Key", "Value",
});
internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor =
- getDescriptor().getMessageType(10);
+ getDescriptor().getMessageType(11);
internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor,
@@ -467,7 +602,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"SignedEntities",
});
internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor =
- getDescriptor().getMessageType(11);
+ getDescriptor().getMessageType(12);
internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor,
@@ -475,7 +610,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ContainerImageSignatures",
});
internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor =
- getDescriptor().getMessageType(12);
+ getDescriptor().getMessageType(13);
internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor,
@@ -483,7 +618,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Payload", "Signature", "PublicKey", "SigAlg",
});
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_descriptor =
- getDescriptor().getMessageType(13);
+ getDescriptor().getMessageType(14);
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_descriptor,
@@ -495,6 +630,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"SignedEntities",
"GceShieldedIdentity",
"Options",
+ "NvidiaAttestation",
"TeeAttestation",
});
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_ConfidentialSpaceOptions_descriptor =
@@ -512,7 +648,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"TokenProfileOptions",
});
internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_descriptor =
- getDescriptor().getMessageType(14);
+ getDescriptor().getMessageType(15);
internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_descriptor,
@@ -520,7 +656,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"AkCert", "AkCertChain",
});
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_descriptor =
- getDescriptor().getMessageType(15);
+ getDescriptor().getMessageType(16);
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_descriptor,
@@ -528,15 +664,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"AttestationToken", "PartialErrors",
});
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_descriptor =
- getDescriptor().getMessageType(16);
+ getDescriptor().getMessageType(17);
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_descriptor,
new java.lang.String[] {
- "TpmAttestation", "Challenge", "TeeAttestation",
+ "TpmAttestation", "Challenge", "Options", "TeeAttestation",
+ });
+ internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_descriptor =
+ internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_descriptor
+ .getNestedType(0);
+ internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_descriptor,
+ new java.lang.String[] {
+ "Audience", "Nonce", "SignatureType",
});
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_descriptor =
- getDescriptor().getMessageType(17);
+ getDescriptor().getMessageType(18);
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_descriptor,
diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java
index 3150609f84b8..9c5745a04898 100644
--- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java
+++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java
@@ -123,6 +123,53 @@ public TeeAttestationCase getTeeAttestationCase() {
return TeeAttestationCase.forNumber(teeAttestationCase_);
}
+ private int deviceAttestationCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object deviceAttestation_;
+
+ public enum DeviceAttestationCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ NVIDIA_ATTESTATION(9),
+ DEVICEATTESTATION_NOT_SET(0);
+ private final int value;
+
+ private DeviceAttestationCase(int value) {
+ this.value = value;
+ }
+
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static DeviceAttestationCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static DeviceAttestationCase forNumber(int value) {
+ switch (value) {
+ case 9:
+ return NVIDIA_ATTESTATION;
+ case 0:
+ return DEVICEATTESTATION_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public DeviceAttestationCase getDeviceAttestationCase() {
+ return DeviceAttestationCase.forNumber(deviceAttestationCase_);
+ }
+
public static final int TD_CCEL_FIELD_NUMBER = 6;
/**
@@ -245,6 +292,67 @@ public com.google.cloud.confidentialcomputing.v1.SevSnpAttestation getSevSnpAtte
return com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.getDefaultInstance();
}
+ public static final int NVIDIA_ATTESTATION_FIELD_NUMBER = 9;
+
+ /**
+ *
+ *
+ * + * Optional. An Nvidia attestation report for GPU and NVSwitch devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the nvidiaAttestation field is set.
+ */
+ @java.lang.Override
+ public boolean hasNvidiaAttestation() {
+ return deviceAttestationCase_ == 9;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An Nvidia attestation report for GPU and NVSwitch devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The nvidiaAttestation.
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getNvidiaAttestation() {
+ if (deviceAttestationCase_ == 9) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An Nvidia attestation report for GPU and NVSwitch devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder
+ getNvidiaAttestationOrBuilder() {
+ if (deviceAttestationCase_ == 9) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance();
+ }
+
public static final int CHALLENGE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -651,6 +759,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(attester_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 8, attester_);
}
+ if (deviceAttestationCase_ == 9) {
+ output.writeMessage(
+ 9, (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_);
+ }
getUnknownFields().writeTo(output);
}
@@ -689,6 +801,11 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(attester_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(8, attester_);
}
+ if (deviceAttestationCase_ == 9) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 9, (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -734,6 +851,14 @@ public boolean equals(final java.lang.Object obj) {
case 0:
default:
}
+ if (!getDeviceAttestationCase().equals(other.getDeviceAttestationCase())) return false;
+ switch (deviceAttestationCase_) {
+ case 9:
+ if (!getNvidiaAttestation().equals(other.getNvidiaAttestation())) return false;
+ break;
+ case 0:
+ default:
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -777,6 +902,14 @@ public int hashCode() {
case 0:
default:
}
+ switch (deviceAttestationCase_) {
+ case 9:
+ hash = (37 * hash) + NVIDIA_ATTESTATION_FIELD_NUMBER;
+ hash = (53 * hash) + getNvidiaAttestation().hashCode();
+ break;
+ case 0:
+ default:
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -939,6 +1072,9 @@ public Builder clear() {
if (sevSnpAttestationBuilder_ != null) {
sevSnpAttestationBuilder_.clear();
}
+ if (nvidiaAttestationBuilder_ != null) {
+ nvidiaAttestationBuilder_.clear();
+ }
challenge_ = "";
gcpCredentials_ = null;
if (gcpCredentialsBuilder_ != null) {
@@ -963,6 +1099,8 @@ public Builder clear() {
attester_ = "";
teeAttestationCase_ = 0;
teeAttestation_ = null;
+ deviceAttestationCase_ = 0;
+ deviceAttestation_ = null;
return this;
}
@@ -1003,33 +1141,33 @@ public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest buildP
private void buildPartial0(
com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000004) != 0)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
result.challenge_ = challenge_;
}
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000008) != 0)) {
+ if (((from_bitField0_ & 0x00000010) != 0)) {
result.gcpCredentials_ =
gcpCredentialsBuilder_ == null ? gcpCredentials_ : gcpCredentialsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
- if (((from_bitField0_ & 0x00000010) != 0)) {
+ if (((from_bitField0_ & 0x00000020) != 0)) {
result.tpmAttestation_ =
tpmAttestationBuilder_ == null ? tpmAttestation_ : tpmAttestationBuilder_.build();
to_bitField0_ |= 0x00000002;
}
- if (((from_bitField0_ & 0x00000020) != 0)) {
+ if (((from_bitField0_ & 0x00000040) != 0)) {
result.confidentialSpaceInfo_ =
confidentialSpaceInfoBuilder_ == null
? confidentialSpaceInfo_
: confidentialSpaceInfoBuilder_.build();
to_bitField0_ |= 0x00000004;
}
- if (((from_bitField0_ & 0x00000040) != 0)) {
+ if (((from_bitField0_ & 0x00000080) != 0)) {
result.tokenOptions_ =
tokenOptionsBuilder_ == null ? tokenOptions_ : tokenOptionsBuilder_.build();
to_bitField0_ |= 0x00000008;
}
- if (((from_bitField0_ & 0x00000080) != 0)) {
+ if (((from_bitField0_ & 0x00000100) != 0)) {
result.attester_ = attester_;
}
result.bitField0_ |= to_bitField0_;
@@ -1045,6 +1183,11 @@ private void buildPartialOneofs(
if (teeAttestationCase_ == 7 && sevSnpAttestationBuilder_ != null) {
result.teeAttestation_ = sevSnpAttestationBuilder_.build();
}
+ result.deviceAttestationCase_ = deviceAttestationCase_;
+ result.deviceAttestation_ = this.deviceAttestation_;
+ if (deviceAttestationCase_ == 9 && nvidiaAttestationBuilder_ != null) {
+ result.deviceAttestation_ = nvidiaAttestationBuilder_.build();
+ }
}
@java.lang.Override
@@ -1065,7 +1208,7 @@ public Builder mergeFrom(
.getDefaultInstance()) return this;
if (!other.getChallenge().isEmpty()) {
challenge_ = other.challenge_;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasGcpCredentials()) {
@@ -1082,7 +1225,7 @@ public Builder mergeFrom(
}
if (!other.getAttester().isEmpty()) {
attester_ = other.attester_;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
}
switch (other.getTeeAttestationCase()) {
@@ -1101,6 +1244,17 @@ public Builder mergeFrom(
break;
}
}
+ switch (other.getDeviceAttestationCase()) {
+ case NVIDIA_ATTESTATION:
+ {
+ mergeNvidiaAttestation(other.getNvidiaAttestation());
+ break;
+ }
+ case DEVICEATTESTATION_NOT_SET:
+ {
+ break;
+ }
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1130,35 +1284,35 @@ public Builder mergeFrom(
case 10:
{
challenge_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
break;
} // case 10
case 18:
{
input.readMessage(
internalGetGcpCredentialsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
break;
} // case 18
case 26:
{
input.readMessage(
internalGetTpmAttestationFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
break;
} // case 26
case 34:
{
input.readMessage(
internalGetConfidentialSpaceInfoFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
break;
} // case 34
case 42:
{
input.readMessage(
internalGetTokenOptionsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
break;
} // case 42
case 50:
@@ -1177,9 +1331,16 @@ public Builder mergeFrom(
case 66:
{
attester_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 66
+ case 74:
+ {
+ input.readMessage(
+ internalGetNvidiaAttestationFieldBuilder().getBuilder(), extensionRegistry);
+ deviceAttestationCase_ = 9;
+ break;
+ } // case 74
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1211,6 +1372,20 @@ public Builder clearTeeAttestation() {
return this;
}
+ private int deviceAttestationCase_ = 0;
+ private java.lang.Object deviceAttestation_;
+
+ public DeviceAttestationCase getDeviceAttestationCase() {
+ return DeviceAttestationCase.forNumber(deviceAttestationCase_);
+ }
+
+ public Builder clearDeviceAttestation() {
+ deviceAttestationCase_ = 0;
+ deviceAttestation_ = null;
+ onChanged();
+ return this;
+ }
+
private int bitField0_;
private com.google.protobuf.SingleFieldBuilder<
@@ -1697,6 +1872,250 @@ public Builder clearSevSnpAttestation() {
return sevSnpAttestationBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder>
+ nvidiaAttestationBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. An Nvidia attestation report for GPU and NVSwitch devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the nvidiaAttestation field is set.
+ */
+ @java.lang.Override
+ public boolean hasNvidiaAttestation() {
+ return deviceAttestationCase_ == 9;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An Nvidia attestation report for GPU and NVSwitch devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The nvidiaAttestation.
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getNvidiaAttestation() {
+ if (nvidiaAttestationBuilder_ == null) {
+ if (deviceAttestationCase_ == 9) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance();
+ } else {
+ if (deviceAttestationCase_ == 9) {
+ return nvidiaAttestationBuilder_.getMessage();
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An Nvidia attestation report for GPU and NVSwitch devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setNvidiaAttestation(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation value) {
+ if (nvidiaAttestationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ deviceAttestation_ = value;
+ onChanged();
+ } else {
+ nvidiaAttestationBuilder_.setMessage(value);
+ }
+ deviceAttestationCase_ = 9;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An Nvidia attestation report for GPU and NVSwitch devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setNvidiaAttestation(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder builderForValue) {
+ if (nvidiaAttestationBuilder_ == null) {
+ deviceAttestation_ = builderForValue.build();
+ onChanged();
+ } else {
+ nvidiaAttestationBuilder_.setMessage(builderForValue.build());
+ }
+ deviceAttestationCase_ = 9;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An Nvidia attestation report for GPU and NVSwitch devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeNvidiaAttestation(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation value) {
+ if (nvidiaAttestationBuilder_ == null) {
+ if (deviceAttestationCase_ == 9
+ && deviceAttestation_
+ != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .getDefaultInstance()) {
+ deviceAttestation_ =
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.newBuilder(
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation)
+ deviceAttestation_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ deviceAttestation_ = value;
+ }
+ onChanged();
+ } else {
+ if (deviceAttestationCase_ == 9) {
+ nvidiaAttestationBuilder_.mergeFrom(value);
+ } else {
+ nvidiaAttestationBuilder_.setMessage(value);
+ }
+ }
+ deviceAttestationCase_ = 9;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An Nvidia attestation report for GPU and NVSwitch devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearNvidiaAttestation() {
+ if (nvidiaAttestationBuilder_ == null) {
+ if (deviceAttestationCase_ == 9) {
+ deviceAttestationCase_ = 0;
+ deviceAttestation_ = null;
+ onChanged();
+ }
+ } else {
+ if (deviceAttestationCase_ == 9) {
+ deviceAttestationCase_ = 0;
+ deviceAttestation_ = null;
+ }
+ nvidiaAttestationBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An Nvidia attestation report for GPU and NVSwitch devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder
+ getNvidiaAttestationBuilder() {
+ return internalGetNvidiaAttestationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An Nvidia attestation report for GPU and NVSwitch devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder
+ getNvidiaAttestationOrBuilder() {
+ if ((deviceAttestationCase_ == 9) && (nvidiaAttestationBuilder_ != null)) {
+ return nvidiaAttestationBuilder_.getMessageOrBuilder();
+ } else {
+ if (deviceAttestationCase_ == 9) {
+ return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_;
+ }
+ return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An Nvidia attestation report for GPU and NVSwitch devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder>
+ internalGetNvidiaAttestationFieldBuilder() {
+ if (nvidiaAttestationBuilder_ == null) {
+ if (!(deviceAttestationCase_ == 9)) {
+ deviceAttestation_ =
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance();
+ }
+ nvidiaAttestationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder>(
+ (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_,
+ getParentForChildren(),
+ isClean());
+ deviceAttestation_ = null;
+ }
+ deviceAttestationCase_ = 9;
+ onChanged();
+ return nvidiaAttestationBuilder_;
+ }
+
private java.lang.Object challenge_ = "";
/**
@@ -1774,7 +2193,7 @@ public Builder setChallenge(java.lang.String value) {
throw new NullPointerException();
}
challenge_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1796,7 +2215,7 @@ public Builder setChallenge(java.lang.String value) {
*/
public Builder clearChallenge() {
challenge_ = getDefaultInstance().getChallenge();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1823,7 +2242,7 @@ public Builder setChallengeBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
challenge_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1850,7 +2269,7 @@ public Builder setChallengeBytes(com.google.protobuf.ByteString value) {
* @return Whether the gcpCredentials field is set.
*/
public boolean hasGcpCredentials() {
- return ((bitField0_ & 0x00000008) != 0);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
@@ -1899,7 +2318,7 @@ public Builder setGcpCredentials(
} else {
gcpCredentialsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1923,7 +2342,7 @@ public Builder setGcpCredentials(
} else {
gcpCredentialsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1943,7 +2362,7 @@ public Builder setGcpCredentials(
public Builder mergeGcpCredentials(
com.google.cloud.confidentialcomputing.v1.GcpCredentials value) {
if (gcpCredentialsBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0)
+ if (((bitField0_ & 0x00000010) != 0)
&& gcpCredentials_ != null
&& gcpCredentials_
!= com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance()) {
@@ -1955,7 +2374,7 @@ public Builder mergeGcpCredentials(
gcpCredentialsBuilder_.mergeFrom(value);
}
if (gcpCredentials_ != null) {
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
}
return this;
@@ -1974,7 +2393,7 @@ public Builder mergeGcpCredentials(
*
*/
public Builder clearGcpCredentials() {
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
gcpCredentials_ = null;
if (gcpCredentialsBuilder_ != null) {
gcpCredentialsBuilder_.dispose();
@@ -1998,7 +2417,7 @@ public Builder clearGcpCredentials() {
*/
public com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder
getGcpCredentialsBuilder() {
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
return internalGetGcpCredentialsFieldBuilder().getBuilder();
}
@@ -2077,7 +2496,7 @@ public Builder clearGcpCredentials() {
* @return Whether the tpmAttestation field is set.
*/
public boolean hasTpmAttestation() {
- return ((bitField0_ & 0x00000010) != 0);
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
@@ -2126,7 +2545,7 @@ public Builder setTpmAttestation(
} else {
tpmAttestationBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2150,7 +2569,7 @@ public Builder setTpmAttestation(
} else {
tpmAttestationBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2170,7 +2589,7 @@ public Builder setTpmAttestation(
public Builder mergeTpmAttestation(
com.google.cloud.confidentialcomputing.v1.TpmAttestation value) {
if (tpmAttestationBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0)
+ if (((bitField0_ & 0x00000020) != 0)
&& tpmAttestation_ != null
&& tpmAttestation_
!= com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance()) {
@@ -2182,7 +2601,7 @@ public Builder mergeTpmAttestation(
tpmAttestationBuilder_.mergeFrom(value);
}
if (tpmAttestation_ != null) {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
}
return this;
@@ -2201,7 +2620,7 @@ public Builder mergeTpmAttestation(
*
*/
public Builder clearTpmAttestation() {
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
tpmAttestation_ = null;
if (tpmAttestationBuilder_ != null) {
tpmAttestationBuilder_.dispose();
@@ -2225,7 +2644,7 @@ public Builder clearTpmAttestation() {
*/
public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder
getTpmAttestationBuilder() {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return internalGetTpmAttestationFieldBuilder().getBuilder();
}
@@ -2303,7 +2722,7 @@ public Builder clearTpmAttestation() {
* @return Whether the confidentialSpaceInfo field is set.
*/
public boolean hasConfidentialSpaceInfo() {
- return ((bitField0_ & 0x00000020) != 0);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
@@ -2351,7 +2770,7 @@ public Builder setConfidentialSpaceInfo(
} else {
confidentialSpaceInfoBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -2374,7 +2793,7 @@ public Builder setConfidentialSpaceInfo(
} else {
confidentialSpaceInfoBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -2393,7 +2812,7 @@ public Builder setConfidentialSpaceInfo(
public Builder mergeConfidentialSpaceInfo(
com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo value) {
if (confidentialSpaceInfoBuilder_ == null) {
- if (((bitField0_ & 0x00000020) != 0)
+ if (((bitField0_ & 0x00000040) != 0)
&& confidentialSpaceInfo_ != null
&& confidentialSpaceInfo_
!= com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo
@@ -2406,7 +2825,7 @@ public Builder mergeConfidentialSpaceInfo(
confidentialSpaceInfoBuilder_.mergeFrom(value);
}
if (confidentialSpaceInfo_ != null) {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
}
return this;
@@ -2424,7 +2843,7 @@ public Builder mergeConfidentialSpaceInfo(
*
*/
public Builder clearConfidentialSpaceInfo() {
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
confidentialSpaceInfo_ = null;
if (confidentialSpaceInfoBuilder_ != null) {
confidentialSpaceInfoBuilder_.dispose();
@@ -2447,7 +2866,7 @@ public Builder clearConfidentialSpaceInfo() {
*/
public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder
getConfidentialSpaceInfoBuilder() {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return internalGetConfidentialSpaceInfoFieldBuilder().getBuilder();
}
@@ -2524,7 +2943,7 @@ public Builder clearConfidentialSpaceInfo() {
* @return Whether the tokenOptions field is set.
*/
public boolean hasTokenOptions() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
@@ -2572,7 +2991,7 @@ public Builder setTokenOptions(com.google.cloud.confidentialcomputing.v1.TokenOp
} else {
tokenOptionsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -2596,7 +3015,7 @@ public Builder setTokenOptions(
} else {
tokenOptionsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -2615,7 +3034,7 @@ public Builder setTokenOptions(
*/
public Builder mergeTokenOptions(com.google.cloud.confidentialcomputing.v1.TokenOptions value) {
if (tokenOptionsBuilder_ == null) {
- if (((bitField0_ & 0x00000040) != 0)
+ if (((bitField0_ & 0x00000080) != 0)
&& tokenOptions_ != null
&& tokenOptions_
!= com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance()) {
@@ -2627,7 +3046,7 @@ public Builder mergeTokenOptions(com.google.cloud.confidentialcomputing.v1.Token
tokenOptionsBuilder_.mergeFrom(value);
}
if (tokenOptions_ != null) {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
}
return this;
@@ -2646,7 +3065,7 @@ public Builder mergeTokenOptions(com.google.cloud.confidentialcomputing.v1.Token
*
*/
public Builder clearTokenOptions() {
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000080);
tokenOptions_ = null;
if (tokenOptionsBuilder_ != null) {
tokenOptionsBuilder_.dispose();
@@ -2669,7 +3088,7 @@ public Builder clearTokenOptions() {
*
*/
public com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder getTokenOptionsBuilder() {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return internalGetTokenOptionsFieldBuilder().getBuilder();
}
@@ -2794,7 +3213,7 @@ public Builder setAttester(java.lang.String value) {
throw new NullPointerException();
}
attester_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -2813,7 +3232,7 @@ public Builder setAttester(java.lang.String value) {
*/
public Builder clearAttester() {
attester_ = getDefaultInstance().getAttester();
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
@@ -2837,7 +3256,7 @@ public Builder setAttesterBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
attester_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java
index 79f4cb0ae090..00225e387834 100644
--- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java
+++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java
@@ -113,6 +113,50 @@ public interface VerifyAttestationRequestOrBuilder
com.google.cloud.confidentialcomputing.v1.SevSnpAttestationOrBuilder
getSevSnpAttestationOrBuilder();
+ /**
+ *
+ *
+ * + * Optional. An Nvidia attestation report for GPU and NVSwitch devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the nvidiaAttestation field is set.
+ */
+ boolean hasNvidiaAttestation();
+
+ /**
+ *
+ *
+ * + * Optional. An Nvidia attestation report for GPU and NVSwitch devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The nvidiaAttestation.
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getNvidiaAttestation();
+
+ /**
+ *
+ *
+ * + * Optional. An Nvidia attestation report for GPU and NVSwitch devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder
+ getNvidiaAttestationOrBuilder();
+
/**
*
*
@@ -359,4 +403,7 @@ public interface VerifyAttestationRequestOrBuilder
com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.TeeAttestationCase
getTeeAttestationCase();
+
+ com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.DeviceAttestationCase
+ getDeviceAttestationCase();
}
diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequest.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequest.java
index a65fba451987..e1bb92965f5f 100644
--- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequest.java
+++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequest.java
@@ -72,6 +72,1286 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.Builder.class);
}
+ public interface ConfidentialGkeOptionsOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * Optional. Optional string to issue the token with a custom audience + * claim. Required if custom nonces are specified. + *+ * + *
string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The audience.
+ */
+ java.lang.String getAudience();
+
+ /**
+ *
+ *
+ * + * Optional. Optional string to issue the token with a custom audience + * claim. Required if custom nonces are specified. + *+ * + *
string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for audience.
+ */
+ com.google.protobuf.ByteString getAudienceBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the nonce.
+ */
+ java.util.List+ * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of nonce.
+ */
+ int getNonceCount();
+
+ /**
+ *
+ *
+ * + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The nonce at the given index.
+ */
+ java.lang.String getNonce(int index);
+
+ /**
+ *
+ *
+ * + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the nonce at the given index.
+ */
+ com.google.protobuf.ByteString getNonceBytes(int index);
+
+ /**
+ *
+ *
+ * + * Optional. Optional specification for how to sign the attestation token. + * Defaults to SIGNATURE_TYPE_OIDC if unspecified. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for signatureType.
+ */
+ int getSignatureTypeValue();
+
+ /**
+ *
+ *
+ * + * Optional. Optional specification for how to sign the attestation token. + * Defaults to SIGNATURE_TYPE_OIDC if unspecified. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The signatureType.
+ */
+ com.google.cloud.confidentialcomputing.v1.SignatureType getSignatureType();
+ }
+
+ /**
+ *
+ *
+ * + * Token options for Confidential GKE attestation. + *+ * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions} + */ + public static final class ConfidentialGkeOptions extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions) + ConfidentialGkeOptionsOrBuilder { + 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= */ "", + "ConfidentialGkeOptions"); + } + + // Use ConfidentialGkeOptions.newBuilder() to construct. + private ConfidentialGkeOptions(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ConfidentialGkeOptions() { + audience_ = ""; + nonce_ = com.google.protobuf.LazyStringArrayList.emptyList(); + signatureType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.class, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.Builder.class); + } + + public static final int AUDIENCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object audience_ = ""; + + /** + * + * + *
+ * Optional. Optional string to issue the token with a custom audience + * claim. Required if custom nonces are specified. + *+ * + *
string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The audience.
+ */
+ @java.lang.Override
+ public java.lang.String getAudience() {
+ java.lang.Object ref = audience_;
+ 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();
+ audience_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional string to issue the token with a custom audience + * claim. Required if custom nonces are specified. + *+ * + *
string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for audience.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAudienceBytes() {
+ java.lang.Object ref = audience_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ audience_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NONCE_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList nonce_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ *
+ * + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the nonce.
+ */
+ public com.google.protobuf.ProtocolStringList getNonceList() {
+ return nonce_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of nonce.
+ */
+ public int getNonceCount() {
+ return nonce_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The nonce at the given index.
+ */
+ public java.lang.String getNonce(int index) {
+ return nonce_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the nonce at the given index.
+ */
+ public com.google.protobuf.ByteString getNonceBytes(int index) {
+ return nonce_.getByteString(index);
+ }
+
+ public static final int SIGNATURE_TYPE_FIELD_NUMBER = 4;
+ private int signatureType_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Optional specification for how to sign the attestation token. + * Defaults to SIGNATURE_TYPE_OIDC if unspecified. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for signatureType.
+ */
+ @java.lang.Override
+ public int getSignatureTypeValue() {
+ return signatureType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional specification for how to sign the attestation token. + * Defaults to SIGNATURE_TYPE_OIDC if unspecified. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The signatureType.
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.SignatureType getSignatureType() {
+ com.google.cloud.confidentialcomputing.v1.SignatureType result =
+ com.google.cloud.confidentialcomputing.v1.SignatureType.forNumber(signatureType_);
+ return result == null
+ ? com.google.cloud.confidentialcomputing.v1.SignatureType.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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(audience_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, audience_);
+ }
+ for (int i = 0; i < nonce_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, nonce_.getRaw(i));
+ }
+ if (signatureType_
+ != com.google.cloud.confidentialcomputing.v1.SignatureType.SIGNATURE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(4, signatureType_);
+ }
+ 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(audience_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, audience_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < nonce_.size(); i++) {
+ dataSize += computeStringSizeNoTag(nonce_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getNonceList().size();
+ }
+ if (signatureType_
+ != com.google.cloud.confidentialcomputing.v1.SignatureType.SIGNATURE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, signatureType_);
+ }
+ 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.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions
+ other =
+ (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions)
+ obj;
+
+ if (!getAudience().equals(other.getAudience())) return false;
+ if (!getNonceList().equals(other.getNonceList())) return false;
+ if (signatureType_ != other.signatureType_) 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) + AUDIENCE_FIELD_NUMBER;
+ hash = (53 * hash) + getAudience().hashCode();
+ if (getNonceCount() > 0) {
+ hash = (37 * hash) + NONCE_FIELD_NUMBER;
+ hash = (53 * hash) + getNonceList().hashCode();
+ }
+ hash = (37 * hash) + SIGNATURE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + signatureType_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ 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.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ 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.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ 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.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ 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.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ 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.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ 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;
+ }
+
+ /**
+ *
+ *
+ * + * Token options for Confidential GKE attestation. + *+ * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. Optional string to issue the token with a custom audience + * claim. Required if custom nonces are specified. + *+ * + *
string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The audience.
+ */
+ public java.lang.String getAudience() {
+ java.lang.Object ref = audience_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ audience_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional string to issue the token with a custom audience + * claim. Required if custom nonces are specified. + *+ * + *
string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for audience.
+ */
+ public com.google.protobuf.ByteString getAudienceBytes() {
+ java.lang.Object ref = audience_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ audience_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional string to issue the token with a custom audience + * claim. Required if custom nonces are specified. + *+ * + *
string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The audience to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAudience(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ audience_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional string to issue the token with a custom audience + * claim. Required if custom nonces are specified. + *+ * + *
string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAudience() {
+ audience_ = getDefaultInstance().getAudience();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional string to issue the token with a custom audience + * claim. Required if custom nonces are specified. + *+ * + *
string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for audience to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAudienceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ audience_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList nonce_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureNonceIsMutable() {
+ if (!nonce_.isModifiable()) {
+ nonce_ = new com.google.protobuf.LazyStringArrayList(nonce_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the nonce.
+ */
+ public com.google.protobuf.ProtocolStringList getNonceList() {
+ nonce_.makeImmutable();
+ return nonce_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of nonce.
+ */
+ public int getNonceCount() {
+ return nonce_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The nonce at the given index.
+ */
+ public java.lang.String getNonce(int index) {
+ return nonce_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the nonce at the given index.
+ */
+ public com.google.protobuf.ByteString getNonceBytes(int index) {
+ return nonce_.getByteString(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index to set the value at.
+ * @param value The nonce to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNonce(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNonceIsMutable();
+ nonce_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The nonce to add.
+ * @return This builder for chaining.
+ */
+ public Builder addNonce(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNonceIsMutable();
+ nonce_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param values The nonce to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllNonce(java.lang.Iterable+ * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNonce() {
+ nonce_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional parameter to place one or more nonces in the eat_nonce + * claim in the output token. The minimum size for JSON-encoded EATs is 10 + * bytes and the maximum size is 74 bytes. + *+ * + *
repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes of the nonce to add.
+ * @return This builder for chaining.
+ */
+ public Builder addNonceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureNonceIsMutable();
+ nonce_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private int signatureType_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Optional specification for how to sign the attestation token. + * Defaults to SIGNATURE_TYPE_OIDC if unspecified. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for signatureType.
+ */
+ @java.lang.Override
+ public int getSignatureTypeValue() {
+ return signatureType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional specification for how to sign the attestation token. + * Defaults to SIGNATURE_TYPE_OIDC if unspecified. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for signatureType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSignatureTypeValue(int value) {
+ signatureType_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional specification for how to sign the attestation token. + * Defaults to SIGNATURE_TYPE_OIDC if unspecified. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The signatureType.
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.SignatureType getSignatureType() {
+ com.google.cloud.confidentialcomputing.v1.SignatureType result =
+ com.google.cloud.confidentialcomputing.v1.SignatureType.forNumber(signatureType_);
+ return result == null
+ ? com.google.cloud.confidentialcomputing.v1.SignatureType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional specification for how to sign the attestation token. + * Defaults to SIGNATURE_TYPE_OIDC if unspecified. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The signatureType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSignatureType(
+ com.google.cloud.confidentialcomputing.v1.SignatureType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ signatureType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Optional specification for how to sign the attestation token. + * Defaults to SIGNATURE_TYPE_OIDC if unspecified. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSignatureType() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ signatureType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions)
+ private static final com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions();
+ }
+
+ public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. A collection of fields that modify the token output. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the options field is set.
+ */
+ @java.lang.Override
+ public boolean hasOptions() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of fields that modify the token output. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The options.
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ getOptions() {
+ return options_ == null
+ ? com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions.getDefaultInstance()
+ : options_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of fields that modify the token output. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptionsOrBuilder
+ getOptionsOrBuilder() {
+ return options_ == null
+ ? com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions.getDefaultInstance()
+ : options_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -259,6 +1606,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeMessage(
2, (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(3, getOptions());
+ }
getUnknownFields().writeTo(output);
}
@@ -276,6 +1626,9 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOptions());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -293,6 +1646,10 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest) obj;
if (!getChallenge().equals(other.getChallenge())) return false;
+ if (hasOptions() != other.hasOptions()) return false;
+ if (hasOptions()) {
+ if (!getOptions().equals(other.getOptions())) return false;
+ }
if (!getTeeAttestationCase().equals(other.getTeeAttestationCase())) return false;
switch (teeAttestationCase_) {
case 2:
@@ -314,6 +1671,10 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CHALLENGE_FIELD_NUMBER;
hash = (53 * hash) + getChallenge().hashCode();
+ if (hasOptions()) {
+ hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getOptions().hashCode();
+ }
switch (teeAttestationCase_) {
case 2:
hash = (37 * hash) + TPM_ATTESTATION_FIELD_NUMBER;
@@ -457,10 +1818,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
// Construct using
// com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ internalGetOptionsFieldBuilder();
+ }
}
@java.lang.Override
@@ -471,6 +1841,11 @@ public Builder clear() {
tpmAttestationBuilder_.clear();
}
challenge_ = "";
+ options_ = null;
+ if (optionsBuilder_ != null) {
+ optionsBuilder_.dispose();
+ optionsBuilder_ = null;
+ }
teeAttestationCase_ = 0;
teeAttestation_ = null;
return this;
@@ -517,6 +1892,12 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000002) != 0)) {
result.challenge_ = challenge_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.options_ = optionsBuilder_ == null ? options_ : optionsBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(
@@ -549,6 +1930,9 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
onChanged();
}
+ if (other.hasOptions()) {
+ mergeOptions(other.getOptions());
+ }
switch (other.getTeeAttestationCase()) {
case TPM_ATTESTATION:
{
@@ -599,6 +1983,12 @@ public Builder mergeFrom(
teeAttestationCase_ = 2;
break;
} // case 18
+ case 26:
+ {
+ input.readMessage(internalGetOptionsFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -996,6 +2386,248 @@ public Builder setChallengeBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ options_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions,
+ com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions.Builder,
+ com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptionsOrBuilder>
+ optionsBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. A collection of fields that modify the token output. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the options field is set.
+ */
+ public boolean hasOptions() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of fields that modify the token output. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The options.
+ */
+ public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ getOptions() {
+ if (optionsBuilder_ == null) {
+ return options_ == null
+ ? com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions.getDefaultInstance()
+ : options_;
+ } else {
+ return optionsBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of fields that modify the token output. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setOptions(
+ com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ value) {
+ if (optionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ options_ = value;
+ } else {
+ optionsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of fields that modify the token output. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setOptions(
+ com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions.Builder
+ builderForValue) {
+ if (optionsBuilder_ == null) {
+ options_ = builderForValue.build();
+ } else {
+ optionsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of fields that modify the token output. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeOptions(
+ com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions
+ value) {
+ if (optionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && options_ != null
+ && options_
+ != com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions.getDefaultInstance()) {
+ getOptionsBuilder().mergeFrom(value);
+ } else {
+ options_ = value;
+ }
+ } else {
+ optionsBuilder_.mergeFrom(value);
+ }
+ if (options_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of fields that modify the token output. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearOptions() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ options_ = null;
+ if (optionsBuilder_ != null) {
+ optionsBuilder_.dispose();
+ optionsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of fields that modify the token output. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions.Builder
+ getOptionsBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return internalGetOptionsFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of fields that modify the token output. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptionsOrBuilder
+ getOptionsOrBuilder() {
+ if (optionsBuilder_ != null) {
+ return optionsBuilder_.getMessageOrBuilder();
+ } else {
+ return options_ == null
+ ? com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions.getDefaultInstance()
+ : options_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A collection of fields that modify the token output. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions,
+ com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions.Builder,
+ com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptionsOrBuilder>
+ internalGetOptionsFieldBuilder() {
+ if (optionsBuilder_ == null) {
+ optionsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions,
+ com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptions.Builder,
+ com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptionsOrBuilder>(
+ getOptions(), getParentForChildren(), isClean());
+ options_ = null;
+ }
+ return optionsBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest)
}
diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequestOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequestOrBuilder.java
index 0523a753865f..7546fd2b87c9 100644
--- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequestOrBuilder.java
+++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequestOrBuilder.java
@@ -100,6 +100,52 @@ public interface VerifyConfidentialGkeRequestOrBuilder
*/
com.google.protobuf.ByteString getChallengeBytes();
+ /**
+ *
+ *
+ * + * Optional. A collection of fields that modify the token output. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the options field is set.
+ */
+ boolean hasOptions();
+
+ /**
+ *
+ *
+ * + * Optional. A collection of fields that modify the token output. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The options.
+ */
+ com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions
+ getOptions();
+
+ /**
+ *
+ *
+ * + * Optional. A collection of fields that modify the token output. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest
+ .ConfidentialGkeOptionsOrBuilder
+ getOptionsOrBuilder();
+
com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.TeeAttestationCase
getTeeAttestationCase();
}
diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequest.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequest.java
index d6c759324463..30d4f7878619 100644
--- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequest.java
+++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequest.java
@@ -2577,6 +2577,69 @@ public boolean hasOptions() {
: options_;
}
+ public static final int NVIDIA_ATTESTATION_FIELD_NUMBER = 8;
+ private com.google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidiaAttestation_;
+
+ /**
+ *
+ *
+ * + * Optional. An optional Nvidia attestation report, used to populate hardware + * rooted claims for Nvidia devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the nvidiaAttestation field is set.
+ */
+ @java.lang.Override
+ public boolean hasNvidiaAttestation() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An optional Nvidia attestation report, used to populate hardware + * rooted claims for Nvidia devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The nvidiaAttestation.
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getNvidiaAttestation() {
+ return nvidiaAttestation_ == null
+ ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance()
+ : nvidiaAttestation_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An optional Nvidia attestation report, used to populate hardware + * rooted claims for Nvidia devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder
+ getNvidiaAttestationOrBuilder() {
+ return nvidiaAttestation_ == null
+ ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance()
+ : nvidiaAttestation_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -2614,6 +2677,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(7, getOptions());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(8, getNvidiaAttestation());
+ }
getUnknownFields().writeTo(output);
}
@@ -2648,6 +2714,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOptions());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getNvidiaAttestation());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -2679,6 +2748,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasOptions()) {
if (!getOptions().equals(other.getOptions())) return false;
}
+ if (hasNvidiaAttestation() != other.hasNvidiaAttestation()) return false;
+ if (hasNvidiaAttestation()) {
+ if (!getNvidiaAttestation().equals(other.getNvidiaAttestation())) return false;
+ }
if (!getTeeAttestationCase().equals(other.getTeeAttestationCase())) return false;
switch (teeAttestationCase_) {
case 3:
@@ -2719,6 +2792,10 @@ public int hashCode() {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
+ if (hasNvidiaAttestation()) {
+ hash = (37 * hash) + NVIDIA_ATTESTATION_FIELD_NUMBER;
+ hash = (53 * hash) + getNvidiaAttestation().hashCode();
+ }
switch (teeAttestationCase_) {
case 3:
hash = (37 * hash) + TD_CCEL_FIELD_NUMBER;
@@ -2881,6 +2958,7 @@ private void maybeForceBuilderInitialization() {
internalGetSignedEntitiesFieldBuilder();
internalGetGceShieldedIdentityFieldBuilder();
internalGetOptionsFieldBuilder();
+ internalGetNvidiaAttestationFieldBuilder();
}
}
@@ -2917,6 +2995,11 @@ public Builder clear() {
optionsBuilder_.dispose();
optionsBuilder_ = null;
}
+ nvidiaAttestation_ = null;
+ if (nvidiaAttestationBuilder_ != null) {
+ nvidiaAttestationBuilder_.dispose();
+ nvidiaAttestationBuilder_ = null;
+ }
teeAttestationCase_ = 0;
teeAttestation_ = null;
return this;
@@ -2994,6 +3077,13 @@ private void buildPartial0(
result.options_ = optionsBuilder_ == null ? options_ : optionsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.nvidiaAttestation_ =
+ nvidiaAttestationBuilder_ == null
+ ? nvidiaAttestation_
+ : nvidiaAttestationBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -3067,6 +3157,9 @@ public Builder mergeFrom(
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
+ if (other.hasNvidiaAttestation()) {
+ mergeNvidiaAttestation(other.getNvidiaAttestation());
+ }
switch (other.getTeeAttestationCase()) {
case TD_CCEL:
{
@@ -3162,6 +3255,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000040;
break;
} // case 58
+ case 66:
+ {
+ input.readMessage(
+ internalGetNvidiaAttestationFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -4959,6 +5059,234 @@ public Builder clearOptions() {
return optionsBuilder_;
}
+ private com.google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidiaAttestation_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder>
+ nvidiaAttestationBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. An optional Nvidia attestation report, used to populate hardware + * rooted claims for Nvidia devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the nvidiaAttestation field is set.
+ */
+ public boolean hasNvidiaAttestation() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An optional Nvidia attestation report, used to populate hardware + * rooted claims for Nvidia devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The nvidiaAttestation.
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getNvidiaAttestation() {
+ if (nvidiaAttestationBuilder_ == null) {
+ return nvidiaAttestation_ == null
+ ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance()
+ : nvidiaAttestation_;
+ } else {
+ return nvidiaAttestationBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An optional Nvidia attestation report, used to populate hardware + * rooted claims for Nvidia devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setNvidiaAttestation(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation value) {
+ if (nvidiaAttestationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nvidiaAttestation_ = value;
+ } else {
+ nvidiaAttestationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An optional Nvidia attestation report, used to populate hardware + * rooted claims for Nvidia devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setNvidiaAttestation(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder builderForValue) {
+ if (nvidiaAttestationBuilder_ == null) {
+ nvidiaAttestation_ = builderForValue.build();
+ } else {
+ nvidiaAttestationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An optional Nvidia attestation report, used to populate hardware + * rooted claims for Nvidia devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeNvidiaAttestation(
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation value) {
+ if (nvidiaAttestationBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0)
+ && nvidiaAttestation_ != null
+ && nvidiaAttestation_
+ != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation
+ .getDefaultInstance()) {
+ getNvidiaAttestationBuilder().mergeFrom(value);
+ } else {
+ nvidiaAttestation_ = value;
+ }
+ } else {
+ nvidiaAttestationBuilder_.mergeFrom(value);
+ }
+ if (nvidiaAttestation_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An optional Nvidia attestation report, used to populate hardware + * rooted claims for Nvidia devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearNvidiaAttestation() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ nvidiaAttestation_ = null;
+ if (nvidiaAttestationBuilder_ != null) {
+ nvidiaAttestationBuilder_.dispose();
+ nvidiaAttestationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An optional Nvidia attestation report, used to populate hardware + * rooted claims for Nvidia devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder
+ getNvidiaAttestationBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return internalGetNvidiaAttestationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An optional Nvidia attestation report, used to populate hardware + * rooted claims for Nvidia devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder
+ getNvidiaAttestationOrBuilder() {
+ if (nvidiaAttestationBuilder_ != null) {
+ return nvidiaAttestationBuilder_.getMessageOrBuilder();
+ } else {
+ return nvidiaAttestation_ == null
+ ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance()
+ : nvidiaAttestation_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An optional Nvidia attestation report, used to populate hardware + * rooted claims for Nvidia devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder>
+ internalGetNvidiaAttestationFieldBuilder() {
+ if (nvidiaAttestationBuilder_ == null) {
+ nvidiaAttestationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder,
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder>(
+ getNvidiaAttestation(), getParentForChildren(), isClean());
+ nvidiaAttestation_ = null;
+ }
+ return nvidiaAttestationBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest)
}
diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequestOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequestOrBuilder.java
index f2ab43d671b0..fb1b1b8b7607 100644
--- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequestOrBuilder.java
+++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequestOrBuilder.java
@@ -363,6 +363,53 @@ com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder getSignedEntitie
.ConfidentialSpaceOptionsOrBuilder
getOptionsOrBuilder();
+ /**
+ *
+ *
+ * + * Optional. An optional Nvidia attestation report, used to populate hardware + * rooted claims for Nvidia devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the nvidiaAttestation field is set.
+ */
+ boolean hasNvidiaAttestation();
+
+ /**
+ *
+ *
+ * + * Optional. An optional Nvidia attestation report, used to populate hardware + * rooted claims for Nvidia devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The nvidiaAttestation.
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getNvidiaAttestation();
+
+ /**
+ *
+ *
+ * + * Optional. An optional Nvidia attestation report, used to populate hardware + * rooted claims for Nvidia devices. + *+ * + *
+ * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder
+ getNvidiaAttestationOrBuilder();
+
com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.TeeAttestationCase
getTeeAttestationCase();
}
diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto
index a4b0a54281af..b9f0bbd5b9aa 100644
--- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto
+++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/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.
@@ -192,6 +192,13 @@ message VerifyAttestationRequest {
[(google.api.field_behavior) = OPTIONAL];
}
+ // An optional device attestation report.
+ oneof device_attestation {
+ // Optional. An Nvidia attestation report for GPU and NVSwitch devices.
+ NvidiaAttestation nvidia_attestation = 9
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
// Required. The name of the Challenge whose nonce was used to generate the
// attestation, in the format `projects/*/locations/*/challenges/*`. The
// provided Challenge will be consumed, and cannot be used again.
@@ -223,6 +230,99 @@ message VerifyAttestationRequest {
string attester = 8 [(google.api.field_behavior) = OPTIONAL];
}
+// An Nvidia attestation report for GPU and NVSwitch devices.
+// Contains necessary attestation evidence that the client collects for
+// verification.
+message NvidiaAttestation {
+ // GpuInfo contains the attestation evidence for a GPU device.
+ message GpuInfo {
+ // Optional. The UUID of the GPU device.
+ string uuid = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The driver version of the GPU.
+ string driver_version = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The vBIOS version of the GPU.
+ string vbios_version = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The GPU architecture type.
+ GpuArchitectureType gpu_architecture_type = 4
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The raw attestation certificate chain for the GPU device.
+ bytes attestation_certificate_chain = 5
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The raw attestation report for the GPU device.
+ // This field contains SPDM request/response defined in
+ // https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf
+ bytes attestation_report = 6 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // SwitchInfo contains the attestation evidence for a NVSwitch device.
+ message SwitchInfo {
+ // Optional. The UUID of the NVSwitch device.
+ string uuid = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The raw attestation certificate chain for the NVSwitch device.
+ bytes attestation_certificate_chain = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The raw attestation report for the NvSwitch device.
+ // This field contains SPDM request/response defined in
+ // https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf
+ bytes attestation_report = 3 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Single GPU Passthrough (SPT) attestation.
+ message SinglePassthroughAttestation {
+ // Optional. Single GPU quote.
+ GpuInfo gpu_quote = 1 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Protected PCIe (PPCIE) attestation.
+ // Eight Hopper GPUs with Four NVSwitch Passthrough.
+ message ProtectedPcieAttestation {
+ // Optional. A list of GPU infos.
+ repeated GpuInfo gpu_quotes = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A list of SWITCH infos.
+ repeated SwitchInfo switch_quotes = 2
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // MultiGpuSecurePassthroughAttestation contains the attestation evidence
+ // for a Multi-GPU Secure Passthrough (MPT) attestation.
+ message MultiGpuSecurePassthroughAttestation {
+ // Optional. A list of GPU quotes.
+ repeated GpuInfo gpu_quotes = 1 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // GpuArchitectureType enumerates the supported GPU architecture types.
+ enum GpuArchitectureType {
+ // Unspecified GPU architecture type.
+ GPU_ARCHITECTURE_TYPE_UNSPECIFIED = 0;
+
+ // Hopper GPU architecture type.
+ GPU_ARCHITECTURE_TYPE_HOPPER = 8;
+
+ // Blackwell GPU architecture type.
+ GPU_ARCHITECTURE_TYPE_BLACKWELL = 10;
+ }
+
+ // The Confidential Computing feature that the attestation is for.
+ oneof cc_feature {
+ // Single GPU Passthrough (SPT) attestation.
+ SinglePassthroughAttestation spt = 1;
+
+ // Protected PCIe (PPCIE) attestation.
+ ProtectedPcieAttestation ppcie = 2;
+
+ // Multi-GPU Secure Passthrough (MPT) attestation.
+ MultiGpuSecurePassthroughAttestation mpt = 3;
+ }
+}
+
// A TDX Attestation quote.
message TdxCcelAttestation {
// Optional. The Confidential Computing Event Log (CCEL) ACPI table. Formatted
@@ -474,6 +574,11 @@ message VerifyConfidentialSpaceRequest {
// Optional. A collection of fields that modify the token output.
ConfidentialSpaceOptions options = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. An optional Nvidia attestation report, used to populate hardware
+ // rooted claims for Nvidia devices.
+ NvidiaAttestation nvidia_attestation = 8
+ [(google.api.field_behavior) = OPTIONAL];
}
// GceShieldedIdentity contains information about a Compute Engine instance.
@@ -509,6 +614,22 @@ message VerifyConfidentialSpaceResponse {
// needed for this service to verify Confidential GKE platform state of the
// requestor.
message VerifyConfidentialGkeRequest {
+ // Token options for Confidential GKE attestation.
+ message ConfidentialGkeOptions {
+ // Optional. Optional string to issue the token with a custom audience
+ // claim. Required if custom nonces are specified.
+ string audience = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Optional parameter to place one or more nonces in the eat_nonce
+ // claim in the output token. The minimum size for JSON-encoded EATs is 10
+ // bytes and the maximum size is 74 bytes.
+ repeated string nonce = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Optional specification for how to sign the attestation token.
+ // Defaults to SIGNATURE_TYPE_OIDC if unspecified.
+ SignatureType signature_type = 4 [(google.api.field_behavior) = OPTIONAL];
+ }
+
// Required. A tee attestation report, used to populate hardware rooted
// claims.
oneof tee_attestation {
@@ -526,6 +647,9 @@ message VerifyConfidentialGkeRequest {
type: "confidentialcomputing.googleapis.com/Challenge"
}
];
+
+ // Optional. A collection of fields that modify the token output.
+ ConfidentialGkeOptions options = 3 [(google.api.field_behavior) = OPTIONAL];
}
// VerifyConfidentialGkeResponse response is returened once a Confidential GKE
diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/AsyncVerifyConfidentialGke.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/AsyncVerifyConfidentialGke.java
index c134944525a0..983ba5564f2b 100644
--- a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/AsyncVerifyConfidentialGke.java
+++ b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/AsyncVerifyConfidentialGke.java
@@ -40,6 +40,7 @@ public static void asyncVerifyConfidentialGke() throws Exception {
VerifyConfidentialGkeRequest request =
VerifyConfidentialGkeRequest.newBuilder()
.setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString())
+ .setOptions(VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder().build())
.build();
ApiFuture
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -299,7 +299,7 @@ public java.lang.String getRoleArn() {
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -329,7 +329,8 @@ public com.google.protobuf.ByteString getRoleArnBytes() {
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -354,7 +355,8 @@ public java.lang.String getKekUri() {
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -926,7 +928,7 @@ public Builder clearKeyType() {
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -951,7 +953,7 @@ public java.lang.String getRoleArn() {
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -976,7 +978,7 @@ public com.google.protobuf.ByteString getRoleArnBytes() {
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -1000,7 +1002,7 @@ public Builder setRoleArn(java.lang.String value) {
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -1020,7 +1022,7 @@ public Builder clearRoleArn() {
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -1046,7 +1048,8 @@ public Builder setRoleArnBytes(com.google.protobuf.ByteString value) {
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1070,7 +1073,8 @@ public java.lang.String getKekUri() {
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1094,7 +1098,8 @@ public com.google.protobuf.ByteString getKekUriBytes() {
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1117,7 +1122,8 @@ public Builder setKekUri(java.lang.String value) {
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1136,7 +1142,8 @@ public Builder clearKekUri() {
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java
index 1c417aed7079..95f4e5466772 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java
@@ -62,7 +62,7 @@ public interface AwsWrappedKeyInfoOrBuilder
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -77,7 +77,7 @@ public interface AwsWrappedKeyInfoOrBuilder
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -91,7 +91,8 @@ public interface AwsWrappedKeyInfoOrBuilder
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -105,7 +106,8 @@ public interface AwsWrappedKeyInfoOrBuilder
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java
index b5008a5741ca..85f4a762baef 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java
@@ -70,13 +70,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\010quantity\030\002 \001(\003B\003\340A\001\022\027\n\nunit_price\030\003 \001(\001"
+ "B\003\340A\001\022\024\n\007item_id\030\004 \001(\tB\003\340A\001\022Q\n\032additiona"
+ "l_item_parameters\030\005 \003(\0132(.google.ads.dat"
- + "amanager.v1.ItemParameterB\003\340A\001B\315\001\n\035com.g"
+ + "amanager.v1.ItemParameterB\003\340A\001B\312\001\n\035com.g"
+ "oogle.ads.datamanager.v1B\rCartDataProtoP"
- + "\001ZDgoogle.golang.org/genproto/googleapis"
- + "/ads/datamanager/v1;datamanager\252\002\031Google"
- + ".Ads.DataManager.V1\312\002\031Google\\Ads\\DataMan"
- + "ager\\V1\352\002\034Google::Ads::DataManager::V1b\006"
- + "proto3"
+ + "\001ZAcloud.google.com/go/datamanager/apiv1"
+ + "/datamanagerpb;datamanagerpb\252\002\031Google.Ad"
+ + "s.DataManager.V1\312\002\031Google\\Ads\\DataManage"
+ + "r\\V1\352\002\034Google::Ads::DataManager::V1b\006pro"
+ + "to3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java
index a3099c4f36c3..f9efcbc3b6e1 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java
@@ -61,13 +61,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "tion\030\002 \001(\0162(.google.ads.datamanager.v1.C"
+ "onsentStatusB\003\340A\001*X\n\rConsentStatus\022\036\n\032CO"
+ "NSENT_STATUS_UNSPECIFIED\020\000\022\023\n\017CONSENT_GR"
- + "ANTED\020\001\022\022\n\016CONSENT_DENIED\020\002B\314\001\n\035com.goog"
- + "le.ads.datamanager.v1B\014ConsentProtoP\001ZDg"
- + "oogle.golang.org/genproto/googleapis/ads"
- + "/datamanager/v1;datamanager\252\002\031Google.Ads"
- + ".DataManager.V1\312\002\031Google\\Ads\\DataManager"
- + "\\V1\352\002\034Google::Ads::DataManager::V1b\006prot"
- + "o3"
+ + "ANTED\020\001\022\022\n\016CONSENT_DENIED\020\002B\311\001\n\035com.goog"
+ + "le.ads.datamanager.v1B\014ConsentProtoP\001ZAc"
+ + "loud.google.com/go/datamanager/apiv1/dat"
+ + "amanagerpb;datamanagerpb\252\002\031Google.Ads.Da"
+ + "taManager.V1\312\002\031Google\\Ads\\DataManager\\V1"
+ + "\352\002\034Google::Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java
index 64023f8c2d40..dcba72cabe42 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java
@@ -79,12 +79,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "uct\022\027\n\023PRODUCT_UNSPECIFIED\020\000\022\016\n\nGOOGLE_A"
+ "DS\020\001\022\031\n\025DISPLAY_VIDEO_PARTNER\020\002\022\034\n\030DISPL"
+ "AY_VIDEO_ADVERTISER\020\003\022\020\n\014DATA_PARTNER\020\004\032"
- + "\002\030\001B\320\001\n\035com.google.ads.datamanager.v1B\020D"
- + "estinationProtoP\001ZDgoogle.golang.org/gen"
- + "proto/googleapis/ads/datamanager/v1;data"
- + "manager\252\002\031Google.Ads.DataManager.V1\312\002\031Go"
- + "ogle\\Ads\\DataManager\\V1\352\002\034Google::Ads::D"
- + "ataManager::V1b\006proto3"
+ + "\002\030\001B\315\001\n\035com.google.ads.datamanager.v1B\020D"
+ + "estinationProtoP\001ZAcloud.google.com/go/d"
+ + "atamanager/apiv1/datamanagerpb;datamanag"
+ + "erpb\252\002\031Google.Ads.DataManager.V1\312\002\031Googl"
+ + "e\\Ads\\DataManager\\V1\352\002\034Google::Ads::Data"
+ + "Manager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java
index d052b330b1ed..b6c5cf073868 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java
@@ -57,12 +57,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "proto\022\031google.ads.datamanager.v1\032\037google"
+ "/api/field_behavior.proto\">\n\nDeviceInfo\022"
+ "\027\n\nuser_agent\030\001 \001(\tB\003\340A\001\022\027\n\nip_address\030\002"
- + " \001(\tB\003\340A\001B\317\001\n\035com.google.ads.datamanager"
- + ".v1B\017DeviceInfoProtoP\001ZDgoogle.golang.or"
- + "g/genproto/googleapis/ads/datamanager/v1"
- + ";datamanager\252\002\031Google.Ads.DataManager.V1"
- + "\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::A"
- + "ds::DataManager::V1b\006proto3"
+ + " \001(\tB\003\340A\001B\314\001\n\035com.google.ads.datamanager"
+ + ".v1B\017DeviceInfoProtoP\001ZAcloud.google.com"
+ + "/go/datamanager/apiv1/datamanagerpb;data"
+ + "managerpb\252\002\031Google.Ads.DataManager.V1\312\002\031"
+ + "Google\\Ads\\DataManager\\V1\352\002\034Google::Ads:"
+ + ":DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java
index 0d5374be2cd2..cc530e5c4306 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java
@@ -87,12 +87,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "encrypted_dek\030\004 \001(\tB\003\340A\002\";\n"
+ "\007KeyType\022\030\n"
+ "\024KEY_TYPE_UNSPECIFIED\020\000\022\026\n"
- + "\022XCHACHA20_POLY1305\020\001B\323\001\n"
- + "\035com.google.ads.datamanager.v1B\023EncryptionInfoProtoP\001ZDgoogle.golan"
- + "g.org/genproto/googleapis/ads/datamanage"
- + "r/v1;datamanager\252\002\031Google.Ads.DataManage"
- + "r.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Googl"
- + "e::Ads::DataManager::V1b\006proto3"
+ + "\022XCHACHA20_POLY1305\020\001B\320\001\n"
+ + "\035com.google.ads.datamanager.v1B\023EncryptionInfoProtoP\001ZAcloud.google"
+ + ".com/go/datamanager/apiv1/datamanagerpb;"
+ + "datamanagerpb\252\002\031Google.Ads.DataManager.V"
+ + "1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::"
+ + "Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java
index da92d6f29499..7be2b5520d81 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java
@@ -92,12 +92,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\022INVALID_REQUEST_ID\0200\0224\n0MULTIPLE_DESTIN"
+ "ATIONS_FOR_GOOGLE_ANALYTICS_EVENT\0201\022\030\n\024F"
+ "IELD_VALUE_TOO_LONG\0202\022\025\n\021TOO_MANY_ELEMEN"
- + "TS\0203B\312\001\n\035com.google.ads.datamanager.v1B\n"
- + "ErrorProtoP\001ZDgoogle.golang.org/genproto"
- + "/googleapis/ads/datamanager/v1;datamanag"
- + "er\252\002\031Google.Ads.DataManager.V1\312\002\031Google\\"
- + "Ads\\DataManager\\V1\352\002\034Google::Ads::DataMa"
- + "nager::V1b\006proto3"
+ + "TS\0203B\307\001\n\035com.google.ads.datamanager.v1B\n"
+ + "ErrorProtoP\001ZAcloud.google.com/go/datama"
+ + "nager/apiv1/datamanagerpb;datamanagerpb\252"
+ + "\002\031Google.Ads.DataManager.V1\312\002\031Google\\Ads"
+ + "\\DataManager\\V1\352\002\034Google::Ads::DataManag"
+ + "er::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java
index dc2cb39e4850..92cc8222a784 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java
@@ -126,11 +126,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\003APP\020\002\022\014\n"
+ "\010IN_STORE\020\003\022\t\n"
+ "\005PHONE\020\004\022\t\n"
- + "\005OTHER\020\005B\312\001\n"
+ + "\005OTHER\020\005B\307\001\n"
+ "\035com.google.ads.datamanager.v1B\n"
- + "EventProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/datamanager/v1;datamana"
- + "ger\252\002\031Google.Ads.DataManager.V1\312\002\031Google"
- + "\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3"
+ + "EventProtoP\001ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"
+ + "\252\002\031Google.Ads.DataManager.V1\312\002\031Google\\Ad"
+ + "s\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java
index 078ca71fe26e..b11adc9dce76 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java
@@ -57,12 +57,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "_field.proto\022\031google.ads.datamanager.v1\032"
+ "\037google/api/field_behavior.proto\";\n\021Expe"
+ "rimentalField\022\022\n\005field\030\001 \001(\tB\003\340A\001\022\022\n\005val"
- + "ue\030\002 \001(\tB\003\340A\001B\326\001\n\035com.google.ads.dataman"
- + "ager.v1B\026ExperimentalFieldProtoP\001ZDgoogl"
- + "e.golang.org/genproto/googleapis/ads/dat"
- + "amanager/v1;datamanager\252\002\031Google.Ads.Dat"
- + "aManager.V1\312\002\031Google\\Ads\\DataManager\\V1\352"
- + "\002\034Google::Ads::DataManager::V1b\006proto3"
+ + "ue\030\002 \001(\tB\003\340A\001B\323\001\n\035com.google.ads.dataman"
+ + "ager.v1B\026ExperimentalFieldProtoP\001ZAcloud"
+ + ".google.com/go/datamanager/apiv1/dataman"
+ + "agerpb;datamanagerpb\252\002\031Google.Ads.DataMa"
+ + "nager.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034G"
+ + "oogle::Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java
index 35166aee4e68..af83469e1247 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java
@@ -332,7 +332,9 @@ public com.google.protobuf.ByteString getWipProviderBytes() {
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -359,7 +361,9 @@ public java.lang.String getKekUri() {
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1054,7 +1058,9 @@ public Builder setWipProviderBytes(com.google.protobuf.ByteString value) {
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1080,7 +1086,9 @@ public java.lang.String getKekUri() {
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1106,7 +1114,9 @@ public com.google.protobuf.ByteString getKekUriBytes() {
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1131,7 +1141,9 @@ public Builder setKekUri(java.lang.String value) {
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1152,7 +1164,9 @@ public Builder clearKekUri() {
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java
index 841149635d5d..6c24d9acdf2b 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java
@@ -93,7 +93,9 @@ public interface GcpWrappedKeyInfoOrBuilder
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -109,7 +111,9 @@ public interface GcpWrappedKeyInfoOrBuilder
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java
index 8d1d8e4fec73..aaaf7d0a7d3e 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java
@@ -151,13 +151,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "datamanager.v1.RetrieveRequestStatusResp"
+ "onse\"\"\202\323\344\223\002\034\022\032/v1/requestStatus:retrieve"
+ "\032K\312A\032datamanager.googleapis.com\322A+https:"
- + "//www.googleapis.com/auth/datamanagerB\325\001"
+ + "//www.googleapis.com/auth/datamanagerB\322\001"
+ "\n\035com.google.ads.datamanager.v1B\025Ingesti"
- + "onServiceProtoP\001ZDgoogle.golang.org/genp"
- + "roto/googleapis/ads/datamanager/v1;datam"
- + "anager\252\002\031Google.Ads.DataManager.V1\312\002\031Goo"
- + "gle\\Ads\\DataManager\\V1\352\002\034Google::Ads::Da"
- + "taManager::V1b\006proto3"
+ + "onServiceProtoP\001ZAcloud.google.com/go/da"
+ + "tamanager/apiv1/datamanagerpb;datamanage"
+ + "rpb\252\002\031Google.Ads.DataManager.V1\312\002\031Google"
+ + "\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataM"
+ + "anager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java
index dff9b0f78dda..86101d19dc2c 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java
@@ -57,12 +57,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "er.proto\022\031google.ads.datamanager.v1\032\037goo"
+ "gle/api/field_behavior.proto\"@\n\rItemPara"
+ "meter\022\033\n\016parameter_name\030\001 \001(\tB\003\340A\002\022\022\n\005va"
- + "lue\030\002 \001(\tB\003\340A\002B\322\001\n\035com.google.ads.datama"
- + "nager.v1B\022ItemParameterProtoP\001ZDgoogle.g"
- + "olang.org/genproto/googleapis/ads/datama"
- + "nager/v1;datamanager\252\002\031Google.Ads.DataMa"
- + "nager.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034G"
- + "oogle::Ads::DataManager::V1b\006proto3"
+ + "lue\030\002 \001(\tB\003\340A\002B\317\001\n\035com.google.ads.datama"
+ + "nager.v1B\022ItemParameterProtoP\001ZAcloud.go"
+ + "ogle.com/go/datamanager/apiv1/datamanage"
+ + "rpb;datamanagerpb\252\002\031Google.Ads.DataManag"
+ + "er.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Goog"
+ + "le::Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java
index 3a8c335cd94a..c1c8a89fc981 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java
@@ -59,12 +59,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "TCH_RATE_RANGE_61_TO_70\020\007\022\035\n\031MATCH_RATE_"
+ "RANGE_71_TO_80\020\010\022\035\n\031MATCH_RATE_RANGE_81_"
+ "TO_90\020\t\022\036\n\032MATCH_RATE_RANGE_91_TO_100\020\nB"
- + "\316\001\n\035com.google.ads.datamanager.v1B\016Match"
- + "RateProtoP\001ZDgoogle.golang.org/genproto/"
- + "googleapis/ads/datamanager/v1;datamanage"
- + "r\252\002\031Google.Ads.DataManager.V1\312\002\031Google\\A"
- + "ds\\DataManager\\V1\352\002\034Google::Ads::DataMan"
- + "ager::V1b\006proto3"
+ + "\313\001\n\035com.google.ads.datamanager.v1B\016Match"
+ + "RateProtoP\001ZAcloud.google.com/go/dataman"
+ + "ager/apiv1/datamanagerpb;datamanagerpb\252\002"
+ + "\031Google.Ads.DataManager.V1\312\002\031Google\\Ads\\"
+ + "DataManager\\V1\352\002\034Google::Ads::DataManage"
+ + "r::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java
index ed757a546550..ec5c38d9a3b9 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java
@@ -124,12 +124,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "SER_IDENTIFIER_DECRYPTION_ERROR\020\007\022,\n(PRO"
+ "CESSING_WARNING_REASON_INTERNAL_ERROR\020\010\022"
+ "-\n)PROCESSING_WARNING_REASON_AWS_AUTH_FA"
- + "ILED\020\tB\325\001\n\035com.google.ads.datamanager.v1"
- + "B\025ProcessingErrorsProtoP\001ZDgoogle.golang"
- + ".org/genproto/googleapis/ads/datamanager"
- + "/v1;datamanager\252\002\031Google.Ads.DataManager"
- + ".V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google"
- + "::Ads::DataManager::V1b\006proto3"
+ + "ILED\020\tB\322\001\n\035com.google.ads.datamanager.v1"
+ + "B\025ProcessingErrorsProtoP\001ZAcloud.google."
+ + "com/go/datamanager/apiv1/datamanagerpb;d"
+ + "atamanagerpb\252\002\031Google.Ads.DataManager.V1"
+ + "\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::A"
+ + "ds::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java
index 2c6160e4b327..708ae83dda00 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java
@@ -147,13 +147,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "cord_count\030\001 \001(\003\022\025\n\rpair_id_count\030\002 \001(\003\""
+ "i\n\rRequestStatus\022\032\n\026REQUEST_STATUS_UNKNO"
+ "WN\020\000\022\013\n\007SUCCESS\020\001\022\016\n\nPROCESSING\020\002\022\n\n\006FAI"
- + "LED\020\003\022\023\n\017PARTIAL_SUCCESS\020\004B\010\n\006statusB\340\001\n"
+ + "LED\020\003\022\023\n\017PARTIAL_SUCCESS\020\004B\010\n\006statusB\335\001\n"
+ "\035com.google.ads.datamanager.v1B RequestS"
- + "tatusPerDestinationProtoP\001ZDgoogle.golan"
- + "g.org/genproto/googleapis/ads/datamanage"
- + "r/v1;datamanager\252\002\031Google.Ads.DataManage"
- + "r.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Googl"
- + "e::Ads::DataManager::V1b\006proto3"
+ + "tatusPerDestinationProtoP\001ZAcloud.google"
+ + ".com/go/datamanager/apiv1/datamanagerpb;"
+ + "datamanagerpb\252\002\031Google.Ads.DataManager.V"
+ + "1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::"
+ + "Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java
index f5665198d57f..0d30a1a79b02 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java
@@ -61,12 +61,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "r.v1.TermsOfServiceStatusB\003\340A\001*[\n\024TermsO"
+ "fServiceStatus\022\'\n#TERMS_OF_SERVICE_STATU"
+ "S_UNSPECIFIED\020\000\022\014\n\010ACCEPTED\020\001\022\014\n\010REJECTE"
- + "D\020\002B\323\001\n\035com.google.ads.datamanager.v1B\023T"
- + "ermsOfServiceProtoP\001ZDgoogle.golang.org/"
- + "genproto/googleapis/ads/datamanager/v1;d"
- + "atamanager\252\002\031Google.Ads.DataManager.V1\312\002"
- + "\031Google\\Ads\\DataManager\\V1\352\002\034Google::Ads"
- + "::DataManager::V1b\006proto3"
+ + "D\020\002B\320\001\n\035com.google.ads.datamanager.v1B\023T"
+ + "ermsOfServiceProtoP\001ZAcloud.google.com/g"
+ + "o/datamanager/apiv1/datamanagerpb;datama"
+ + "nagerpb\252\002\031Google.Ads.DataManager.V1\312\002\031Go"
+ + "ogle\\Ads\\DataManager\\V1\352\002\034Google::Ads::D"
+ + "ataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java
index ca0ccfac4aa1..e672e98b0fc1 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java
@@ -76,11 +76,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "given_name\030\001 \001(\tB\003\340A\002\022\030\n"
+ "\013family_name\030\002 \001(\tB\003\340A\002\022\030\n"
+ "\013region_code\030\003 \001(\tB\003\340A\002\022\030\n"
- + "\013postal_code\030\004 \001(\tB\003\340A\002B\315\001\n"
+ + "\013postal_code\030\004 \001(\tB\003\340A\002B\312\001\n"
+ "\035com.google.ads.datamanager.v1B\r"
- + "UserDataProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/datamanager/v1;da"
- + "tamanager\252\002\031Google.Ads.DataManager.V1\312\002\031"
- + "Google\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3"
+ + "UserDataProtoP\001ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;dataman"
+ + "agerpb\252\002\031Google.Ads.DataManager.V1\312\002\031Goo"
+ + "gle\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java
index 775afcf48623..fcb0534cee35 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java
@@ -72,12 +72,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "W\020\001\022\r\n\tRETURNING\020\002\022\r\n\tREENGAGED\020\003*[\n\023Cus"
+ "tomerValueBucket\022%\n!CUSTOMER_VALUE_BUCKE"
+ "T_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\n\n\006MEDIUM\020\002\022\010\n\004"
- + "HIGH\020\003B\323\001\n\035com.google.ads.datamanager.v1"
- + "B\023UserPropertiesProtoP\001ZDgoogle.golang.o"
- + "rg/genproto/googleapis/ads/datamanager/v"
- + "1;datamanager\252\002\031Google.Ads.DataManager.V"
- + "1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::"
- + "Ads::DataManager::V1b\006proto3"
+ + "HIGH\020\003B\320\001\n\035com.google.ads.datamanager.v1"
+ + "B\023UserPropertiesProtoP\001ZAcloud.google.co"
+ + "m/go/datamanager/apiv1/datamanagerpb;dat"
+ + "amanagerpb\252\002\031Google.Ads.DataManager.V1\312\002"
+ + "\031Google\\Ads\\DataManager\\V1\352\002\034Google::Ads"
+ + "::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto
index 9940294a00e7..8bbda8751542 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.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.
@@ -21,7 +21,7 @@ import "google/ads/datamanager/v1/user_data.proto";
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "AudienceProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.proto
index 26c483a00395..5ddd8d9ba6fe 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.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.
@@ -20,7 +20,7 @@ import "google/ads/datamanager/v1/item_parameter.proto";
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "CartDataProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.proto
index 9e7cad217b67..4fec4a414c52 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.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.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "ConsentProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto
index 41c41ea34aab..5cdb43a689e0 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.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.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "DestinationProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto
index ed59798b737f..702c6022c03b 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.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.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "DeviceInfoProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto
index 421aab420127..365e5cd12e05 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.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.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "EncryptionInfoProto";
option java_package = "com.google.ads.datamanager.v1";
@@ -62,7 +62,9 @@ message GcpWrappedKeyInfo {
// Required. Google Cloud Platform [Cloud Key Management Service resource
// ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
// format of
- // "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ // or
+ // `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
string kek_uri = 3 [(google.api.field_behavior) = REQUIRED];
// Required. The base64 encoded encrypted data encryption key.
@@ -85,11 +87,12 @@ message AwsWrappedKeyInfo {
// Required. The Amazon Resource Name of the IAM Role to assume for KMS
// decryption access. Should be in the format of
- // "arn:{partition}:iam::{account_id}:role/{role_name}"
+ // `arn:{partition}:iam::{account_id}:role/{role_name}`
string role_arn = 2 [(google.api.field_behavior) = REQUIRED];
// Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- // the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ // the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ // `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
string kek_uri = 3 [(google.api.field_behavior) = REQUIRED];
// Required. The base64 encoded encrypted data encryption key.
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto
index 28f9d22ee3ab..44c3ed5e79ee 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.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.
@@ -17,7 +17,7 @@ syntax = "proto3";
package google.ads.datamanager.v1;
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "ErrorProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.proto
index c24be7e56d0b..213af3f461c3 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.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.
@@ -26,7 +26,7 @@ import "google/api/field_behavior.proto";
import "google/protobuf/timestamp.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "EventProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.proto
index 48ca08b28981..da9eb1063984 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.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.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "ExperimentalFieldProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto
index dd6066117c3b..d388f7691b90 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_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.
@@ -28,7 +28,7 @@ import "google/api/client.proto";
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "IngestionServiceProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.proto
index 711ef464384d..59ae9e3e2337 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.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.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "ItemParameterProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.proto
index f6309d2e3864..1fdfc7ed9ef9 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.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.
@@ -17,7 +17,7 @@ syntax = "proto3";
package google.ads.datamanager.v1;
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "MatchRateProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto
index 1a28815b7a56..c2d77837de5a 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.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.
@@ -17,7 +17,7 @@ syntax = "proto3";
package google.ads.datamanager.v1;
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "ProcessingErrorsProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto
index bac562d00988..739851242af8 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.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.
@@ -21,7 +21,7 @@ import "google/ads/datamanager/v1/match_rate.proto";
import "google/ads/datamanager/v1/processing_errors.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "RequestStatusPerDestinationProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_service.proto
index 71a6b4ce8994..c4231dfa5aa1 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_service.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_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.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "TermsOfServiceProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto
index 649f9f41d150..887c02b30e97 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.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.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "UserDataProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.proto
index 0a28a561d20b..75c59e2b0309 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.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.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "UserPropertiesProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-dataplex/README.md b/java-dataplex/README.md
index 3e34de47b11c..173cc3b406aa 100644
--- a/java-dataplex/README.md
+++ b/java-dataplex/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
+ * Optional. If multiple utterances are detected in the audio stream, process + * them individually instead of stitching them together to form a single + * utterance. + *+ * + *
bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The outputMultipleUtterances.
+ */
+ @java.lang.Override
+ public boolean getOutputMultipleUtterances() {
+ return outputMultipleUtterances_;
+ }
+
public static final int ENABLE_DEBUGGING_INFO_FIELD_NUMBER = 19;
private boolean enableDebuggingInfo_ = false;
@@ -1192,6 +1213,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (inputCase_ == 17) {
com.google.protobuf.GeneratedMessage.writeString(output, 17, input_);
}
+ if (outputMultipleUtterances_ != false) {
+ output.writeBool(18, outputMultipleUtterances_);
+ }
if (enableDebuggingInfo_ != false) {
output.writeBool(19, enableDebuggingInfo_);
}
@@ -1259,6 +1283,9 @@ public int getSerializedSize() {
if (inputCase_ == 17) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(17, input_);
}
+ if (outputMultipleUtterances_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, outputMultipleUtterances_);
+ }
if (enableDebuggingInfo_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, enableDebuggingInfo_);
}
@@ -1302,6 +1329,7 @@ public boolean equals(final java.lang.Object obj) {
if (getEnableExtendedStreaming() != other.getEnableExtendedStreaming()) return false;
if (getEnablePartialAutomatedAgentReply() != other.getEnablePartialAutomatedAgentReply())
return false;
+ if (getOutputMultipleUtterances() != other.getOutputMultipleUtterances()) return false;
if (getEnableDebuggingInfo() != other.getEnableDebuggingInfo()) return false;
if (!getConfigCase().equals(other.getConfigCase())) return false;
switch (configCase_) {
@@ -1371,6 +1399,8 @@ public int hashCode() {
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashBoolean(getEnablePartialAutomatedAgentReply());
+ hash = (37 * hash) + OUTPUT_MULTIPLE_UTTERANCES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutputMultipleUtterances());
hash = (37 * hash) + ENABLE_DEBUGGING_INFO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDebuggingInfo());
switch (configCase_) {
@@ -1640,6 +1670,7 @@ public Builder clear() {
cxCurrentPage_ = "";
enableExtendedStreaming_ = false;
enablePartialAutomatedAgentReply_ = false;
+ outputMultipleUtterances_ = false;
enableDebuggingInfo_ = false;
configCase_ = 0;
config_ = null;
@@ -1721,6 +1752,9 @@ private void buildPartial0(
result.enablePartialAutomatedAgentReply_ = enablePartialAutomatedAgentReply_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
+ result.outputMultipleUtterances_ = outputMultipleUtterances_;
+ }
+ if (((from_bitField0_ & 0x00010000) != 0)) {
result.enableDebuggingInfo_ = enableDebuggingInfo_;
}
result.bitField0_ |= to_bitField0_;
@@ -1787,6 +1821,9 @@ public Builder mergeFrom(
if (other.getEnablePartialAutomatedAgentReply() != false) {
setEnablePartialAutomatedAgentReply(other.getEnablePartialAutomatedAgentReply());
}
+ if (other.getOutputMultipleUtterances() != false) {
+ setOutputMultipleUtterances(other.getOutputMultipleUtterances());
+ }
if (other.getEnableDebuggingInfo() != false) {
setEnableDebuggingInfo(other.getEnableDebuggingInfo());
}
@@ -1962,10 +1999,16 @@ public Builder mergeFrom(
input_ = s;
break;
} // case 138
+ case 144:
+ {
+ outputMultipleUtterances_ = input.readBool();
+ bitField0_ |= 0x00008000;
+ break;
+ } // case 144
case 152:
{
enableDebuggingInfo_ = input.readBool();
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
break;
} // case 152
case 162:
@@ -4614,6 +4657,68 @@ public Builder clearEnablePartialAutomatedAgentReply() {
return this;
}
+ private boolean outputMultipleUtterances_;
+
+ /**
+ *
+ *
+ * + * Optional. If multiple utterances are detected in the audio stream, process + * them individually instead of stitching them together to form a single + * utterance. + *+ * + *
bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The outputMultipleUtterances.
+ */
+ @java.lang.Override
+ public boolean getOutputMultipleUtterances() {
+ return outputMultipleUtterances_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. If multiple utterances are detected in the audio stream, process + * them individually instead of stitching them together to form a single + * utterance. + *+ * + *
bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The outputMultipleUtterances to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputMultipleUtterances(boolean value) {
+
+ outputMultipleUtterances_ = value;
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. If multiple utterances are detected in the audio stream, process + * them individually instead of stitching them together to form a single + * utterance. + *+ * + *
bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOutputMultipleUtterances() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ outputMultipleUtterances_ = false;
+ onChanged();
+ return this;
+ }
+
private boolean enableDebuggingInfo_;
/**
@@ -4649,7 +4754,7 @@ public boolean getEnableDebuggingInfo() {
public Builder setEnableDebuggingInfo(boolean value) {
enableDebuggingInfo_ = value;
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
onChanged();
return this;
}
@@ -4667,7 +4772,7 @@ public Builder setEnableDebuggingInfo(boolean value) {
* @return This builder for chaining.
*/
public Builder clearEnableDebuggingInfo() {
- bitField0_ = (bitField0_ & ~0x00008000);
+ bitField0_ = (bitField0_ & ~0x00010000);
enableDebuggingInfo_ = false;
onChanged();
return this;
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java
index b6e54478a37c..b9ddf2c92846 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java
@@ -627,6 +627,21 @@ public interface StreamingAnalyzeContentRequestOrBuilder
*/
boolean getEnablePartialAutomatedAgentReply();
+ /**
+ *
+ *
+ * + * Optional. If multiple utterances are detected in the audio stream, process + * them individually instead of stitching them together to form a single + * utterance. + *+ * + *
bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The outputMultipleUtterances.
+ */
+ boolean getOutputMultipleUtterances();
+
/**
*
*
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto
index bdfaad14076e..61cd31352728 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.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.
@@ -1044,6 +1044,11 @@ message StreamingAnalyzeContentRequest {
bool enable_partial_automated_agent_reply = 12
[(google.api.field_behavior) = OPTIONAL];
+ // Optional. If multiple utterances are detected in the audio stream, process
+ // them individually instead of stitching them together to form a single
+ // utterance.
+ bool output_multiple_utterances = 18 [(google.api.field_behavior) = OPTIONAL];
+
// if true, `StreamingAnalyzeContentResponse.debugging_info` will get
// populated.
bool enable_debugging_info = 19;
diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java
index f4f20e621c9d..78aae13ceb61 100644
--- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java
+++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java
@@ -55,6 +55,7 @@ public static void asyncStreamingAnalyzeContent() throws Exception {
.setCxCurrentPage("cxCurrentPage1596907507")
.setEnableExtendedStreaming(true)
.setEnablePartialAutomatedAgentReply(true)
+ .setOutputMultipleUtterances(true)
.setEnableDebuggingInfo(true)
.build();
bidiStream.send(request);
diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md
index 8fd973e561a4..8c53ca88c1b5 100644
--- a/java-discoveryengine/README.md
+++ b/java-discoveryengine/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
ListLocations
Lists information about the supported locations for this service.
Lists information about the supported locations for this service.This method can be called in two ways: + *
* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
** **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -4177,7 +4196,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -4212,7 +4237,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code:
*
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java
index 5200e1c84015..637e9b35a65f 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java
@@ -317,12 +317,22 @@ public UnaryCallSettings
ListLocations
Lists information about the supported locations for this service.
Lists information about the supported locations for this service.This method can be called in two ways: + *
* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
** **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -1310,7 +1317,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -1344,7 +1357,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code:
*
diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStub.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStub.java
index e1789b02cf32..0a0fd793d411 100644
--- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStub.java
+++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStub.java
@@ -266,12 +266,14 @@ public UnaryCallablebool skip_human_review = 4;
+ * bool skip_human_review = 4 [deprecated = true];
*
+ * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.skip_human_review is
+ * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=620
* @return The skipHumanReview.
*/
@java.lang.Override
+ @java.lang.Deprecated
public boolean getSkipHumanReview() {
return skipHumanReview_;
}
@@ -3411,7 +3414,7 @@ public Builder removeInputConfigs(int index) {
*
*
* @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated.
- * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=602
+ * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=606
* @return Whether the outputConfig field is set.
*/
@java.lang.Deprecated
@@ -3431,7 +3434,7 @@ public boolean hasOutputConfig() {
*
*
* @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated.
- * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=602
+ * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=606
* @return The outputConfig.
*/
@java.lang.Deprecated
@@ -4083,11 +4086,14 @@ public Builder clearDocumentOutputConfig() {
* `false`.
*
*
- * bool skip_human_review = 4;
+ * bool skip_human_review = 4 [deprecated = true];
*
+ * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.skip_human_review is
+ * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=620
* @return The skipHumanReview.
*/
@java.lang.Override
+ @java.lang.Deprecated
public boolean getSkipHumanReview() {
return skipHumanReview_;
}
@@ -4100,11 +4106,14 @@ public boolean getSkipHumanReview() {
* `false`.
*
*
- * bool skip_human_review = 4;
+ * bool skip_human_review = 4 [deprecated = true];
*
+ * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.skip_human_review is
+ * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=620
* @param value The skipHumanReview to set.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder setSkipHumanReview(boolean value) {
skipHumanReview_ = value;
@@ -4121,10 +4130,13 @@ public Builder setSkipHumanReview(boolean value) {
* `false`.
*
*
- * bool skip_human_review = 4;
+ * bool skip_human_review = 4 [deprecated = true];
*
+ * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.skip_human_review is
+ * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=620
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder clearSkipHumanReview() {
bitField0_ = (bitField0_ & ~0x00000020);
skipHumanReview_ = false;
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java
index 86b3d37fc53c..81ac116753f3 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java
@@ -154,7 +154,7 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu
*
*
* @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated.
- * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=602
+ * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=606
* @return Whether the outputConfig field is set.
*/
@java.lang.Deprecated
@@ -172,7 +172,7 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu
*
*
* @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated.
- * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=602
+ * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=606
* @return The outputConfig.
*/
@java.lang.Deprecated
@@ -289,10 +289,13 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu
* `false`.
*
*
- * bool skip_human_review = 4;
+ * bool skip_human_review = 4 [deprecated = true];
*
+ * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.skip_human_review is
+ * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=620
* @return The skipHumanReview.
*/
+ @java.lang.Deprecated
boolean getSkipHumanReview();
/**
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Dataset.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Dataset.java
index af3092b58089..d5a902ef15d1 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Dataset.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Dataset.java
@@ -2299,397 +2299,6 @@ public com.google.protobuf.Parser
- * Configuration specific to spanner-based indexing.
- *
- *
- * Protobuf type {@code google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig}
- */
- public static final class SpannerIndexingConfig extends com.google.protobuf.GeneratedMessage
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig)
- SpannerIndexingConfigOrBuilder {
- 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= */ "",
- "SpannerIndexingConfig");
- }
-
- // Use SpannerIndexingConfig.newBuilder() to construct.
- private SpannerIndexingConfig(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- }
-
- private SpannerIndexingConfig() {}
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.documentai.v1beta3.DatasetProto
- .internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.documentai.v1beta3.DatasetProto
- .internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.class,
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder.class);
- }
-
- 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 {
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- 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.documentai.v1beta3.Dataset.SpannerIndexingConfig)) {
- return super.equals(obj);
- }
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig other =
- (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) obj;
-
- 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 = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig 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.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig 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.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig 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.documentai.v1beta3.Dataset.SpannerIndexingConfig
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig
- 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.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig 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.documentai.v1beta3.Dataset.SpannerIndexingConfig 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;
- }
-
- /**
- *
- *
- *
- * Configuration specific to spanner-based indexing.
- *
- *
- * Protobuf type {@code google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
- * Optional. A lightweight indexing source with low latency and high
- * reliability, but lacking advanced features like CMEK and content-based
- * search.
- *
- *
- *
- * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return Whether the spannerIndexingConfig field is set.
- */
- @java.lang.Override
- public boolean hasSpannerIndexingConfig() {
- return indexingSourceCase_ == 4;
- }
-
- /**
- *
- *
- *
- * Optional. A lightweight indexing source with low latency and high
- * reliability, but lacking advanced features like CMEK and content-based
- * search.
- *
- *
- *
- * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The spannerIndexingConfig.
- */
- @java.lang.Override
- public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig
- getSpannerIndexingConfig() {
- if (indexingSourceCase_ == 4) {
- return (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) indexingSource_;
- }
- return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.getDefaultInstance();
- }
-
- /**
- *
- *
- *
- * Optional. A lightweight indexing source with low latency and high
- * reliability, but lacking advanced features like CMEK and content-based
- * search.
- *
- *
- *
- * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- @java.lang.Override
- public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder
- getSpannerIndexingConfigOrBuilder() {
- if (indexingSourceCase_ == 4) {
- return (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) indexingSource_;
- }
- return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.getDefaultInstance();
- }
-
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -3226,10 +2720,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeMessage(
3, (com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) storageSource_);
}
- if (indexingSourceCase_ == 4) {
- output.writeMessage(
- 4, (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) indexingSource_);
- }
if (storageSourceCase_ == 5) {
output.writeMessage(
5, (com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) storageSource_);
@@ -3264,12 +2754,6 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, (com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) storageSource_);
}
- if (indexingSourceCase_ == 4) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 4,
- (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) indexingSource_);
- }
if (storageSourceCase_ == 5) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
@@ -3322,14 +2806,6 @@ public boolean equals(final java.lang.Object obj) {
case 0:
default:
}
- if (!getIndexingSourceCase().equals(other.getIndexingSourceCase())) return false;
- switch (indexingSourceCase_) {
- case 4:
- if (!getSpannerIndexingConfig().equals(other.getSpannerIndexingConfig())) return false;
- break;
- case 0:
- default:
- }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -3365,14 +2841,6 @@ public int hashCode() {
case 0:
default:
}
- switch (indexingSourceCase_) {
- case 4:
- hash = (37 * hash) + SPANNER_INDEXING_CONFIG_FIELD_NUMBER;
- hash = (53 * hash) + getSpannerIndexingConfig().hashCode();
- break;
- case 0:
- default:
- }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -3524,17 +2992,12 @@ public Builder clear() {
if (unmanagedDatasetConfigBuilder_ != null) {
unmanagedDatasetConfigBuilder_.clear();
}
- if (spannerIndexingConfigBuilder_ != null) {
- spannerIndexingConfigBuilder_.clear();
- }
name_ = "";
state_ = 0;
satisfiesPzs_ = false;
satisfiesPzi_ = false;
storageSourceCase_ = 0;
storageSource_ = null;
- indexingSourceCase_ = 0;
- indexingSource_ = null;
return this;
}
@@ -3572,16 +3035,16 @@ public com.google.cloud.documentai.v1beta3.Dataset buildPartial() {
private void buildPartial0(com.google.cloud.documentai.v1beta3.Dataset result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000010) != 0)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
result.name_ = name_;
}
- if (((from_bitField0_ & 0x00000020) != 0)) {
+ if (((from_bitField0_ & 0x00000010) != 0)) {
result.state_ = state_;
}
- if (((from_bitField0_ & 0x00000040) != 0)) {
+ if (((from_bitField0_ & 0x00000020) != 0)) {
result.satisfiesPzs_ = satisfiesPzs_;
}
- if (((from_bitField0_ & 0x00000080) != 0)) {
+ if (((from_bitField0_ & 0x00000040) != 0)) {
result.satisfiesPzi_ = satisfiesPzi_;
}
}
@@ -3598,11 +3061,6 @@ private void buildPartialOneofs(com.google.cloud.documentai.v1beta3.Dataset resu
if (storageSourceCase_ == 6 && unmanagedDatasetConfigBuilder_ != null) {
result.storageSource_ = unmanagedDatasetConfigBuilder_.build();
}
- result.indexingSourceCase_ = indexingSourceCase_;
- result.indexingSource_ = this.indexingSource_;
- if (indexingSourceCase_ == 4 && spannerIndexingConfigBuilder_ != null) {
- result.indexingSource_ = spannerIndexingConfigBuilder_.build();
- }
}
@java.lang.Override
@@ -3619,7 +3077,7 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.Dataset other) {
if (other == com.google.cloud.documentai.v1beta3.Dataset.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000008;
onChanged();
}
if (other.state_ != 0) {
@@ -3652,17 +3110,6 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.Dataset other) {
break;
}
}
- switch (other.getIndexingSourceCase()) {
- case SPANNER_INDEXING_CONFIG:
- {
- mergeSpannerIndexingConfig(other.getSpannerIndexingConfig());
- break;
- }
- case INDEXINGSOURCE_NOT_SET:
- {
- break;
- }
- }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -3692,13 +3139,13 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000008;
break;
} // case 10
case 16:
{
state_ = input.readEnum();
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000010;
break;
} // case 16
case 26:
@@ -3708,13 +3155,6 @@ public Builder mergeFrom(
storageSourceCase_ = 3;
break;
} // case 26
- case 34:
- {
- input.readMessage(
- internalGetSpannerIndexingConfigFieldBuilder().getBuilder(), extensionRegistry);
- indexingSourceCase_ = 4;
- break;
- } // case 34
case 42:
{
input.readMessage(
@@ -3734,13 +3174,13 @@ public Builder mergeFrom(
case 64:
{
satisfiesPzs_ = input.readBool();
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000020;
break;
} // case 64
case 72:
{
satisfiesPzi_ = input.readBool();
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000040;
break;
} // case 72
default:
@@ -3774,20 +3214,6 @@ public Builder clearStorageSource() {
return this;
}
- private int indexingSourceCase_ = 0;
- private java.lang.Object indexingSource_;
-
- public IndexingSourceCase getIndexingSourceCase() {
- return IndexingSourceCase.forNumber(indexingSourceCase_);
- }
-
- public Builder clearIndexingSource() {
- indexingSourceCase_ = 0;
- indexingSource_ = null;
- onChanged();
- return this;
- }
-
private int bitField0_;
private com.google.protobuf.SingleFieldBuilder<
@@ -4070,7 +3496,7 @@ public Builder clearGcsManagedConfig() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Dataset.document_warehouse_config is deprecated.
- * See google/cloud/documentai/v1beta3/dataset.proto;l=98
+ * See google/cloud/documentai/v1beta3/dataset.proto;l=95
* @return Whether the documentWarehouseConfig field is set.
*/
@java.lang.Override
@@ -4092,7 +3518,7 @@ public boolean hasDocumentWarehouseConfig() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Dataset.document_warehouse_config is deprecated.
- * See google/cloud/documentai/v1beta3/dataset.proto;l=98
+ * See google/cloud/documentai/v1beta3/dataset.proto;l=95
* @return The documentWarehouseConfig.
*/
@java.lang.Override
@@ -4595,275 +4021,6 @@ public Builder clearUnmanagedDatasetConfig() {
return unmanagedDatasetConfigBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig,
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder,
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder>
- spannerIndexingConfigBuilder_;
-
- /**
- *
- *
- *
- * Optional. A lightweight indexing source with low latency and high
- * reliability, but lacking advanced features like CMEK and content-based
- * search.
- *
- *
- *
- * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return Whether the spannerIndexingConfig field is set.
- */
- @java.lang.Override
- public boolean hasSpannerIndexingConfig() {
- return indexingSourceCase_ == 4;
- }
-
- /**
- *
- *
- *
- * Optional. A lightweight indexing source with low latency and high
- * reliability, but lacking advanced features like CMEK and content-based
- * search.
- *
- *
- *
- * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The spannerIndexingConfig.
- */
- @java.lang.Override
- public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig
- getSpannerIndexingConfig() {
- if (spannerIndexingConfigBuilder_ == null) {
- if (indexingSourceCase_ == 4) {
- return (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig)
- indexingSource_;
- }
- return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig
- .getDefaultInstance();
- } else {
- if (indexingSourceCase_ == 4) {
- return spannerIndexingConfigBuilder_.getMessage();
- }
- return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig
- .getDefaultInstance();
- }
- }
-
- /**
- *
- *
- *
- * Optional. A lightweight indexing source with low latency and high
- * reliability, but lacking advanced features like CMEK and content-based
- * search.
- *
- *
- *
- * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- public Builder setSpannerIndexingConfig(
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig value) {
- if (spannerIndexingConfigBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- indexingSource_ = value;
- onChanged();
- } else {
- spannerIndexingConfigBuilder_.setMessage(value);
- }
- indexingSourceCase_ = 4;
- return this;
- }
-
- /**
- *
- *
- *
- * Optional. A lightweight indexing source with low latency and high
- * reliability, but lacking advanced features like CMEK and content-based
- * search.
- *
- *
- *
- * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- public Builder setSpannerIndexingConfig(
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder builderForValue) {
- if (spannerIndexingConfigBuilder_ == null) {
- indexingSource_ = builderForValue.build();
- onChanged();
- } else {
- spannerIndexingConfigBuilder_.setMessage(builderForValue.build());
- }
- indexingSourceCase_ = 4;
- return this;
- }
-
- /**
- *
- *
- *
- * Optional. A lightweight indexing source with low latency and high
- * reliability, but lacking advanced features like CMEK and content-based
- * search.
- *
- *
- *
- * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- public Builder mergeSpannerIndexingConfig(
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig value) {
- if (spannerIndexingConfigBuilder_ == null) {
- if (indexingSourceCase_ == 4
- && indexingSource_
- != com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig
- .getDefaultInstance()) {
- indexingSource_ =
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.newBuilder(
- (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig)
- indexingSource_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- indexingSource_ = value;
- }
- onChanged();
- } else {
- if (indexingSourceCase_ == 4) {
- spannerIndexingConfigBuilder_.mergeFrom(value);
- } else {
- spannerIndexingConfigBuilder_.setMessage(value);
- }
- }
- indexingSourceCase_ = 4;
- return this;
- }
-
- /**
- *
- *
- *
- * Optional. A lightweight indexing source with low latency and high
- * reliability, but lacking advanced features like CMEK and content-based
- * search.
- *
- *
- *
- * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- public Builder clearSpannerIndexingConfig() {
- if (spannerIndexingConfigBuilder_ == null) {
- if (indexingSourceCase_ == 4) {
- indexingSourceCase_ = 0;
- indexingSource_ = null;
- onChanged();
- }
- } else {
- if (indexingSourceCase_ == 4) {
- indexingSourceCase_ = 0;
- indexingSource_ = null;
- }
- spannerIndexingConfigBuilder_.clear();
- }
- return this;
- }
-
- /**
- *
- *
- *
- * Optional. A lightweight indexing source with low latency and high
- * reliability, but lacking advanced features like CMEK and content-based
- * search.
- *
- *
- *
- * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder
- getSpannerIndexingConfigBuilder() {
- return internalGetSpannerIndexingConfigFieldBuilder().getBuilder();
- }
-
- /**
- *
- *
- *
- * Optional. A lightweight indexing source with low latency and high
- * reliability, but lacking advanced features like CMEK and content-based
- * search.
- *
- *
- *
- * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- @java.lang.Override
- public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder
- getSpannerIndexingConfigOrBuilder() {
- if ((indexingSourceCase_ == 4) && (spannerIndexingConfigBuilder_ != null)) {
- return spannerIndexingConfigBuilder_.getMessageOrBuilder();
- } else {
- if (indexingSourceCase_ == 4) {
- return (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig)
- indexingSource_;
- }
- return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig
- .getDefaultInstance();
- }
- }
-
- /**
- *
- *
- *
- * Optional. A lightweight indexing source with low latency and high
- * reliability, but lacking advanced features like CMEK and content-based
- * search.
- *
- *
- *
- * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- private com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig,
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder,
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder>
- internalGetSpannerIndexingConfigFieldBuilder() {
- if (spannerIndexingConfigBuilder_ == null) {
- if (!(indexingSourceCase_ == 4)) {
- indexingSource_ =
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig
- .getDefaultInstance();
- }
- spannerIndexingConfigBuilder_ =
- new com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig,
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder,
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder>(
- (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) indexingSource_,
- getParentForChildren(),
- isClean());
- indexingSource_ = null;
- }
- indexingSourceCase_ = 4;
- onChanged();
- return spannerIndexingConfigBuilder_;
- }
-
private java.lang.Object name_ = "";
/**
@@ -4935,7 +4092,7 @@ public Builder setName(java.lang.String value) {
throw new NullPointerException();
}
name_ = value;
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -4955,7 +4112,7 @@ public Builder setName(java.lang.String value) {
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -4980,7 +4137,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
name_ = value;
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -5021,7 +4178,7 @@ public int getStateValue() {
*/
public Builder setStateValue(int value) {
state_ = value;
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -5066,7 +4223,7 @@ public Builder setState(com.google.cloud.documentai.v1beta3.Dataset.State value)
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000010;
state_ = value.getNumber();
onChanged();
return this;
@@ -5086,7 +4243,7 @@ public Builder setState(com.google.cloud.documentai.v1beta3.Dataset.State value)
* @return This builder for chaining.
*/
public Builder clearState() {
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000010);
state_ = 0;
onChanged();
return this;
@@ -5125,7 +4282,7 @@ public boolean getSatisfiesPzs() {
public Builder setSatisfiesPzs(boolean value) {
satisfiesPzs_ = value;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -5142,7 +4299,7 @@ public Builder setSatisfiesPzs(boolean value) {
* @return This builder for chaining.
*/
public Builder clearSatisfiesPzs() {
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000020);
satisfiesPzs_ = false;
onChanged();
return this;
@@ -5181,7 +4338,7 @@ public boolean getSatisfiesPzi() {
public Builder setSatisfiesPzi(boolean value) {
satisfiesPzi_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -5198,7 +4355,7 @@ public Builder setSatisfiesPzi(boolean value) {
* @return This builder for chaining.
*/
public Builder clearSatisfiesPzi() {
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000040);
satisfiesPzi_ = false;
onChanged();
return this;
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetOrBuilder.java
index 190166060af8..59f3f213aeb3 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetOrBuilder.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetOrBuilder.java
@@ -89,7 +89,7 @@ public interface DatasetOrBuilder
*
*
* @deprecated google.cloud.documentai.v1beta3.Dataset.document_warehouse_config is deprecated.
- * See google/cloud/documentai/v1beta3/dataset.proto;l=98
+ * See google/cloud/documentai/v1beta3/dataset.proto;l=95
* @return Whether the documentWarehouseConfig field is set.
*/
@java.lang.Deprecated
@@ -108,7 +108,7 @@ public interface DatasetOrBuilder
*
*
* @deprecated google.cloud.documentai.v1beta3.Dataset.document_warehouse_config is deprecated.
- * See google/cloud/documentai/v1beta3/dataset.proto;l=98
+ * See google/cloud/documentai/v1beta3/dataset.proto;l=95
* @return The documentWarehouseConfig.
*/
@java.lang.Deprecated
@@ -180,56 +180,6 @@ public interface DatasetOrBuilder
com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfigOrBuilder
getUnmanagedDatasetConfigOrBuilder();
- /**
- *
- *
- *
- * Optional. A lightweight indexing source with low latency and high
- * reliability, but lacking advanced features like CMEK and content-based
- * search.
- *
- *
- *
- * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return Whether the spannerIndexingConfig field is set.
- */
- boolean hasSpannerIndexingConfig();
-
- /**
- *
- *
- *
- * Optional. A lightweight indexing source with low latency and high
- * reliability, but lacking advanced features like CMEK and content-based
- * search.
- *
- *
- *
- * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The spannerIndexingConfig.
- */
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig getSpannerIndexingConfig();
-
- /**
- *
- *
- *
- * Optional. A lightweight indexing source with low latency and high
- * reliability, but lacking advanced features like CMEK and content-based
- * search.
- *
- *
- *
- * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder
- getSpannerIndexingConfigOrBuilder();
-
/**
*
*
@@ -317,6 +267,4 @@ public interface DatasetOrBuilder
boolean getSatisfiesPzi();
com.google.cloud.documentai.v1beta3.Dataset.StorageSourceCase getStorageSourceCase();
-
- com.google.cloud.documentai.v1beta3.Dataset.IndexingSourceCase getIndexingSourceCase();
}
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java
index c242c2ca4400..5d87ab2fab25 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java
@@ -56,10 +56,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor;
- static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_documentai_v1beta3_DocumentId_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -93,73 +89,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n-google/cloud/documentai/v1beta3/datase"
- + "t.proto\022\037google.cloud.documentai.v1beta3"
+ "\n"
+ + "-google/cloud/documentai/v1beta3/dataset.proto\022\037google.cloud.documentai.v1beta3"
+ "\032\037google/api/field_behavior.proto\032\031googl"
- + "e/api/resource.proto\032.google/cloud/docum"
- + "entai/v1beta3/document.proto\0321google/clo"
+ + "e/api/resource.proto\032.google/cloud/documentai/v1beta3/document.proto\0321google/clo"
+ "ud/documentai/v1beta3/document_io.proto\032"
- + "5google/cloud/documentai/v1beta3/documen"
- + "t_schema.proto\"\234\010\n\007Dataset\022\\\n\022gcs_manage"
- + "d_config\030\003 \001(\01329.google.cloud.documentai"
- + ".v1beta3.Dataset.GCSManagedConfigB\003\340A\001H\000"
- + "\022l\n\031document_warehouse_config\030\005 \001(\0132@.go"
- + "ogle.cloud.documentai.v1beta3.Dataset.Do"
- + "cumentWarehouseConfigB\005\030\001\340A\001H\000\022h\n\030unmana"
- + "ged_dataset_config\030\006 \001(\0132?.google.cloud."
- + "documentai.v1beta3.Dataset.UnmanagedData"
- + "setConfigB\003\340A\001H\000\022f\n\027spanner_indexing_con"
- + "fig\030\004 \001(\0132>.google.cloud.documentai.v1be"
- + "ta3.Dataset.SpannerIndexingConfigB\003\340A\001H\001"
- + "\022\014\n\004name\030\001 \001(\t\022B\n\005state\030\002 \001(\0162..google.c"
- + "loud.documentai.v1beta3.Dataset.StateB\003\340"
- + "A\002\022\032\n\rsatisfies_pzs\030\010 \001(\010B\003\340A\003\022\032\n\rsatisf"
- + "ies_pzi\030\t \001(\010B\003\340A\003\032W\n\020GCSManagedConfig\022C"
- + "\n\ngcs_prefix\030\001 \001(\0132*.google.cloud.docume"
- + "ntai.v1beta3.GcsPrefixB\003\340A\002\032r\n\027DocumentW"
- + "arehouseConfig\022\027\n\ncollection\030\001 \001(\tB\003\340A\003\022"
- + ">\n\006schema\030\002 \001(\tB.\340A\003\372A(\n&contentwarehous"
- + "e.googleapis.com/Schema\032\030\n\026UnmanagedData"
- + "setConfig\032\027\n\025SpannerIndexingConfig\"T\n\005St"
- + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\021\n\rUNINITIALI"
- + "ZED\020\001\022\020\n\014INITIALIZING\020\002\022\017\n\013INITIALIZED\020\003"
- + ":n\352Ak\n!documentai.googleapis.com/Dataset"
- + "\022Fprojects/{project}/locations/{location"
- + "}/processors/{processor}/datasetB\020\n\016stor"
- + "age_sourceB\021\n\017indexing_source\"\206\003\n\nDocume"
- + "ntId\022^\n\022gcs_managed_doc_id\030\001 \001(\0132@.googl"
- + "e.cloud.documentai.v1beta3.DocumentId.GC"
- + "SManagedDocumentIdH\000\022[\n\020unmanaged_doc_id"
- + "\030\004 \001(\0132?.google.cloud.documentai.v1beta3"
- + ".DocumentId.UnmanagedDocumentIdH\000\022B\n\014rev"
- + "ision_ref\030\003 \001(\0132,.google.cloud.documenta"
- + "i.v1beta3.RevisionRef\032C\n\024GCSManagedDocum"
- + "entId\022\024\n\007gcs_uri\030\001 \001(\tB\003\340A\002\022\025\n\tcw_doc_id"
- + "\030\002 \001(\tB\002\030\001\032*\n\023UnmanagedDocumentId\022\023\n\006doc"
- + "_id\030\001 \001(\tB\003\340A\002B\006\n\004type\"\251\002\n\rDatasetSchema"
- + "\022\014\n\004name\030\001 \001(\t\022M\n\017document_schema\030\003 \001(\0132"
- + "/.google.cloud.documentai.v1beta3.Docume"
- + "ntSchemaB\003\340A\001\022\032\n\rsatisfies_pzs\030\004 \001(\010B\003\340A"
- + "\003\022\032\n\rsatisfies_pzi\030\005 \001(\010B\003\340A\003:\202\001\352A\177\n\'doc"
- + "umentai.googleapis.com/DatasetSchema\022Tpr"
- + "ojects/{project}/locations/{location}/pr"
- + "ocessors/{processor}/dataset/datasetSche"
- + "ma\"\207\002\n\025BatchDatasetDocuments\022o\n\027individu"
- + "al_document_ids\030\001 \001(\0132L.google.cloud.doc"
- + "umentai.v1beta3.BatchDatasetDocuments.In"
- + "dividualDocumentIdsH\000\022\020\n\006filter\030\002 \001(\tH\000\032"
- + "_\n\025IndividualDocumentIds\022F\n\014document_ids"
- + "\030\001 \003(\0132+.google.cloud.documentai.v1beta3"
- + ".DocumentIdB\003\340A\002B\n\n\010criteriaB\310\002\n#com.goo"
- + "gle.cloud.documentai.v1beta3B\014DatasetPro"
- + "toP\001ZCcloud.google.com/go/documentai/api"
- + "v1beta3/documentaipb;documentaipb\252\002\037Goog"
- + "le.Cloud.DocumentAI.V1Beta3\312\002\037Google\\Clo"
- + "ud\\DocumentAI\\V1beta3\352\002\"Google::Cloud::D"
- + "ocumentAI::V1beta3\352Ab\n&contentwarehouse."
- + "googleapis.com/Schema\0228projects/{project"
- + "}/locations/{location}/schemas/{schema}b"
- + "\006proto3"
+ + "5google/cloud/documentai/v1beta3/document_schema.proto\"\210\007\n"
+ + "\007Dataset\022\\\n"
+ + "\022gcs_managed_config\030\003 \001(\01329.google.cloud.documentai"
+ + ".v1beta3.Dataset.GCSManagedConfigB\003\340A\001H\000\022l\n"
+ + "\031document_warehouse_config\030\005 \001(\0132@.go"
+ + "ogle.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfigB\005\030\001\340A\001H\000\022h\n"
+ + "\030unmanaged_dataset_config\030\006 \001(\0132?.google.cloud."
+ + "documentai.v1beta3.Dataset.UnmanagedDatasetConfigB\003\340A\001H\000\022\014\n"
+ + "\004name\030\001 \001(\t\022B\n"
+ + "\005state\030\002"
+ + " \001(\0162..google.cloud.documentai.v1beta3.Dataset.StateB\003\340A\002\022\032\n\r"
+ + "satisfies_pzs\030\010 \001(\010B\003\340A\003\022\032\n\r"
+ + "satisfies_pzi\030\t \001(\010B\003\340A\003\032W\n"
+ + "\020GCSManagedConfig\022C\n\n"
+ + "gcs_prefix\030\001 \001(\0132*.goo"
+ + "gle.cloud.documentai.v1beta3.GcsPrefixB\003\340A\002\032r\n"
+ + "\027DocumentWarehouseConfig\022\027\n\n"
+ + "collection\030\001 \001(\tB\003\340A\003\022>\n"
+ + "\006schema\030\002 \001(\tB.\340A\003\372A(\n"
+ + "&contentwarehouse.googleapis.com/Schema\032\030\n"
+ + "\026UnmanagedDatasetConfig\"T\n"
+ + "\005State\022\025\n"
+ + "\021STATE_UNSPECIFIED\020\000\022\021\n\r"
+ + "UNINITIALIZED\020\001\022\020\n"
+ + "\014INITIALIZING\020\002\022\017\n"
+ + "\013INITIALIZED\020\003:n\352Ak\n"
+ + "!documentai.googleapis.com/Dataset\022Fproject"
+ + "s/{project}/locations/{location}/processors/{processor}/datasetB\020\n"
+ + "\016storage_source\"\206\003\n\n"
+ + "DocumentId\022^\n"
+ + "\022gcs_managed_doc_id\030\001"
+ + " \001(\0132@.google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentIdH\000\022[\n"
+ + "\020unmanaged_doc_id\030\004 \001(\0132?.google.cloud.docume"
+ + "ntai.v1beta3.DocumentId.UnmanagedDocumentIdH\000\022B\n"
+ + "\014revision_ref\030\003"
+ + " \001(\0132,.google.cloud.documentai.v1beta3.RevisionRef\032C\n"
+ + "\024GCSManagedDocumentId\022\024\n"
+ + "\007gcs_uri\030\001 \001(\tB\003\340A\002\022\025\n"
+ + "\tcw_doc_id\030\002 \001(\tB\002\030\001\032*\n"
+ + "\023UnmanagedDocumentId\022\023\n"
+ + "\006doc_id\030\001 \001(\tB\003\340A\002B\006\n"
+ + "\004type\"\251\002\n\r"
+ + "DatasetSchema\022\014\n"
+ + "\004name\030\001 \001(\t\022M\n"
+ + "\017document_schema\030\003"
+ + " \001(\0132/.google.cloud.documentai.v1beta3.DocumentSchemaB\003\340A\001\022\032\n\r"
+ + "satisfies_pzs\030\004 \001(\010B\003\340A\003\022\032\n\r"
+ + "satisfies_pzi\030\005 \001(\010B\003\340A\003:\202\001\352A\177\n"
+ + "\'documentai.googleapis.com/DatasetSchema\022Tprojects/{project}/locations/{"
+ + "location}/processors/{processor}/dataset/datasetSchema\"\207\002\n"
+ + "\025BatchDatasetDocuments\022o\n"
+ + "\027individual_document_ids\030\001 \001(\0132L.goog"
+ + "le.cloud.documentai.v1beta3.BatchDatasetDocuments.IndividualDocumentIdsH\000\022\020\n"
+ + "\006filter\030\002 \001(\tH\000\032_\n"
+ + "\025IndividualDocumentIds\022F\n"
+ + "\014document_ids\030\001"
+ + " \003(\0132+.google.cloud.documentai.v1beta3.DocumentIdB\003\340A\002B\n\n"
+ + "\010criteriaB\310\002\n"
+ + "#com.google.cloud.documentai.v1beta3B\014DatasetProtoP\001ZCcloud.google.com/go/do"
+ + "cumentai/apiv1beta3/documentaipb;documen"
+ + "taipb\252\002\037Google.Cloud.DocumentAI.V1Beta3\312"
+ + "\002\037Google\\Cloud\\DocumentAI\\V1beta3\352\002\"Google::Cloud::DocumentAI::V1beta3\352Ab\n"
+ + "&contentwarehouse.googleapis.com/Schema\0228proje"
+ + "cts/{project}/locations/{location}/schemas/{schema}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -180,13 +178,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"GcsManagedConfig",
"DocumentWarehouseConfig",
"UnmanagedDatasetConfig",
- "SpannerIndexingConfig",
"Name",
"State",
"SatisfiesPzs",
"SatisfiesPzi",
"StorageSource",
- "IndexingSource",
});
internal_static_google_cloud_documentai_v1beta3_Dataset_GCSManagedConfig_descriptor =
internal_static_google_cloud_documentai_v1beta3_Dataset_descriptor.getNestedType(0);
@@ -210,12 +206,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_descriptor,
new java.lang.String[] {});
- internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor =
- internal_static_google_cloud_documentai_v1beta3_Dataset_descriptor.getNestedType(3);
- internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor,
- new java.lang.String[] {});
internal_static_google_cloud_documentai_v1beta3_DocumentId_descriptor =
getDescriptor().getMessageType(1);
internal_static_google_cloud_documentai_v1beta3_DocumentId_fieldAccessorTable =
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java
index 1a3643930deb..cee047b35564 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java
@@ -4694,7 +4694,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.ParagraphOrBuilder getParagrap
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -4709,7 +4709,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.ParagraphOrBuilder getParagrap
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -4723,7 +4723,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.ParagraphOrBuilder getParagrap
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -4737,7 +4737,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.ParagraphOrBuilder getParagrap
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -4753,7 +4753,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.ParagraphOrBuilder getParagrap
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -5065,7 +5065,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode getDetectedBar
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=552
+ * google/cloud/documentai/v1beta3/document.proto;l=553
* @return Whether the provenance field is set.
*/
@java.lang.Deprecated
@@ -5083,7 +5083,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode getDetectedBar
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=552
+ * google/cloud/documentai/v1beta3/document.proto;l=553
* @return The provenance.
*/
@java.lang.Deprecated
@@ -9608,7 +9608,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=207
+ * See google/cloud/documentai/v1beta3/document.proto;l=208
* @return Whether the provenance field is set.
*/
@java.lang.Deprecated
@@ -9626,7 +9626,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=207
+ * See google/cloud/documentai/v1beta3/document.proto;l=208
* @return The provenance.
*/
@java.lang.Deprecated
@@ -9861,7 +9861,7 @@ public int getDetectedLanguagesCount() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=207
+ * See google/cloud/documentai/v1beta3/document.proto;l=208
* @return Whether the provenance field is set.
*/
@java.lang.Override
@@ -9882,7 +9882,7 @@ public boolean hasProvenance() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=207
+ * See google/cloud/documentai/v1beta3/document.proto;l=208
* @return The provenance.
*/
@java.lang.Override
@@ -11018,7 +11018,7 @@ public Builder removeDetectedLanguages(int index) {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=207
+ * See google/cloud/documentai/v1beta3/document.proto;l=208
* @return Whether the provenance field is set.
*/
@java.lang.Deprecated
@@ -11038,7 +11038,7 @@ public boolean hasProvenance() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=207
+ * See google/cloud/documentai/v1beta3/document.proto;l=208
* @return The provenance.
*/
@java.lang.Deprecated
@@ -11409,7 +11409,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is
- * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220
+ * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=221
* @return Whether the provenance field is set.
*/
@java.lang.Deprecated
@@ -11427,7 +11427,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is
- * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220
+ * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=221
* @return The provenance.
*/
@java.lang.Deprecated
@@ -11661,7 +11661,7 @@ public int getDetectedLanguagesCount() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is
- * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220
+ * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=221
* @return Whether the provenance field is set.
*/
@java.lang.Override
@@ -11682,7 +11682,7 @@ public boolean hasProvenance() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is
- * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220
+ * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=221
* @return The provenance.
*/
@java.lang.Override
@@ -12821,7 +12821,7 @@ public Builder removeDetectedLanguages(int index) {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is
- * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220
+ * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=221
* @return Whether the provenance field is set.
*/
@java.lang.Deprecated
@@ -12841,7 +12841,7 @@ public boolean hasProvenance() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is
- * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220
+ * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=221
* @return The provenance.
*/
@java.lang.Deprecated
@@ -13215,7 +13215,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=234
+ * See google/cloud/documentai/v1beta3/document.proto;l=235
* @return Whether the provenance field is set.
*/
@java.lang.Deprecated
@@ -13233,7 +13233,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=234
+ * See google/cloud/documentai/v1beta3/document.proto;l=235
* @return The provenance.
*/
@java.lang.Deprecated
@@ -13468,7 +13468,7 @@ public int getDetectedLanguagesCount() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=234
+ * See google/cloud/documentai/v1beta3/document.proto;l=235
* @return Whether the provenance field is set.
*/
@java.lang.Override
@@ -13489,7 +13489,7 @@ public boolean hasProvenance() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=234
+ * See google/cloud/documentai/v1beta3/document.proto;l=235
* @return The provenance.
*/
@java.lang.Override
@@ -14625,7 +14625,7 @@ public Builder removeDetectedLanguages(int index) {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=234
+ * See google/cloud/documentai/v1beta3/document.proto;l=235
* @return Whether the provenance field is set.
*/
@java.lang.Deprecated
@@ -14645,7 +14645,7 @@ public boolean hasProvenance() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=234
+ * See google/cloud/documentai/v1beta3/document.proto;l=235
* @return The provenance.
*/
@java.lang.Deprecated
@@ -15063,7 +15063,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=326
+ * See google/cloud/documentai/v1beta3/document.proto;l=327
* @return Whether the provenance field is set.
*/
@java.lang.Deprecated
@@ -15081,7 +15081,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=326
+ * See google/cloud/documentai/v1beta3/document.proto;l=327
* @return The provenance.
*/
@java.lang.Deprecated
@@ -18871,7 +18871,7 @@ public int getDetectedLanguagesCount() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=326
+ * See google/cloud/documentai/v1beta3/document.proto;l=327
* @return Whether the provenance field is set.
*/
@java.lang.Override
@@ -18892,7 +18892,7 @@ public boolean hasProvenance() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=326
+ * See google/cloud/documentai/v1beta3/document.proto;l=327
* @return The provenance.
*/
@java.lang.Override
@@ -20383,7 +20383,7 @@ public Builder removeDetectedLanguages(int index) {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=326
+ * See google/cloud/documentai/v1beta3/document.proto;l=327
* @return Whether the provenance field is set.
*/
@java.lang.Deprecated
@@ -20403,7 +20403,7 @@ public boolean hasProvenance() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=326
+ * See google/cloud/documentai/v1beta3/document.proto;l=327
* @return The provenance.
*/
@java.lang.Deprecated
@@ -22428,7 +22428,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa
*
*
*
- * Detected non-text visual elements, for example, checkbox, signature, etc.
+ * Detected non-text visual elements, for example, checkbox, signature etc.
* on the page.
*
*
@@ -22874,7 +22874,7 @@ protected Builder newBuilderForType(
*
*
*
- * Detected non-text visual elements, for example, checkbox, signature, etc.
+ * Detected non-text visual elements, for example, checkbox, signature etc.
* on the page.
*
*
@@ -24194,7 +24194,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=395
+ * See google/cloud/documentai/v1beta3/document.proto;l=396
* @return Whether the provenance field is set.
*/
@java.lang.Deprecated
@@ -24212,7 +24212,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=395
+ * See google/cloud/documentai/v1beta3/document.proto;l=396
* @return The provenance.
*/
@java.lang.Deprecated
@@ -27347,7 +27347,7 @@ public int getDetectedLanguagesCount() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=395
+ * See google/cloud/documentai/v1beta3/document.proto;l=396
* @return Whether the provenance field is set.
*/
@java.lang.Override
@@ -27368,7 +27368,7 @@ public boolean hasProvenance() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=395
+ * See google/cloud/documentai/v1beta3/document.proto;l=396
* @return The provenance.
*/
@java.lang.Override
@@ -29502,7 +29502,7 @@ public Builder removeDetectedLanguages(int index) {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=395
+ * See google/cloud/documentai/v1beta3/document.proto;l=396
* @return Whether the provenance field is set.
*/
@java.lang.Deprecated
@@ -29522,7 +29522,7 @@ public boolean hasProvenance() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=395
+ * See google/cloud/documentai/v1beta3/document.proto;l=396
* @return The provenance.
*/
@java.lang.Deprecated
@@ -37961,7 +37961,7 @@ public com.google.cloud.documentai.v1beta3.Document.Page.TokenOrBuilder getToken
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -37979,7 +37979,7 @@ public com.google.cloud.documentai.v1beta3.Document.Page.TokenOrBuilder getToken
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -37998,7 +37998,7 @@ public com.google.cloud.documentai.v1beta3.Document.Page.TokenOrBuilder getToken
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -38015,7 +38015,7 @@ public int getVisualElementsCount() {
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -38033,7 +38033,7 @@ public com.google.cloud.documentai.v1beta3.Document.Page.VisualElement getVisual
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -38458,7 +38458,7 @@ public boolean hasImageQualityScores() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=552
+ * google/cloud/documentai/v1beta3/document.proto;l=553
* @return Whether the provenance field is set.
*/
@java.lang.Override
@@ -38479,7 +38479,7 @@ public boolean hasProvenance() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=552
+ * google/cloud/documentai/v1beta3/document.proto;l=553
* @return The provenance.
*/
@java.lang.Override
@@ -42969,7 +42969,7 @@ private void ensureVisualElementsIsMutable() {
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -42990,7 +42990,7 @@ private void ensureVisualElementsIsMutable() {
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43010,7 +43010,7 @@ public int getVisualElementsCount() {
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43031,7 +43031,7 @@ public com.google.cloud.documentai.v1beta3.Document.Page.VisualElement getVisual
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43058,7 +43058,7 @@ public Builder setVisualElements(
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43083,7 +43083,7 @@ public Builder setVisualElements(
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43110,7 +43110,7 @@ public Builder addVisualElements(
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43137,7 +43137,7 @@ public Builder addVisualElements(
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43161,7 +43161,7 @@ public Builder addVisualElements(
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43186,7 +43186,7 @@ public Builder addVisualElements(
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43212,7 +43212,7 @@ public Builder addAllVisualElements(
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43235,7 +43235,7 @@ public Builder clearVisualElements() {
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43258,7 +43258,7 @@ public Builder removeVisualElements(int index) {
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43275,7 +43275,7 @@ public Builder removeVisualElements(int index) {
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43296,7 +43296,7 @@ public Builder removeVisualElements(int index) {
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43318,7 +43318,7 @@ public Builder removeVisualElements(int index) {
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43338,7 +43338,7 @@ public Builder removeVisualElements(int index) {
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -43359,7 +43359,7 @@ public Builder removeVisualElements(int index) {
*
*
*
- * A list of detected non-text visual elements for example, checkbox,
+ * A list of detected non-text visual elements, for example, checkbox,
* signature etc. on the page.
*
*
@@ -45233,7 +45233,7 @@ public Builder clearImageQualityScores() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=552
+ * google/cloud/documentai/v1beta3/document.proto;l=553
* @return Whether the provenance field is set.
*/
@java.lang.Deprecated
@@ -45253,7 +45253,7 @@ public boolean hasProvenance() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=552
+ * google/cloud/documentai/v1beta3/document.proto;l=553
* @return The provenance.
*/
@java.lang.Deprecated
@@ -45553,7 +45553,7 @@ public interface EntityOrBuilder
*
*
*
- * Required. Entity type from a schema for example, `Address`.
+ * Required. Entity type from a schema, for example, `Address`.
*
*
* string type = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -45566,7 +45566,7 @@ public interface EntityOrBuilder
*
*
*
- * Required. Entity type from a schema for example, `Address`.
+ * Required. Entity type from a schema, for example, `Address`.
*
*
* string type = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -45579,7 +45579,8 @@ public interface EntityOrBuilder
*
*
*
- * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
+ * Optional. Text value of the entity, for example, `1600 Amphitheatre
+ * Pkwy`.
*
*
* string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -45592,7 +45593,8 @@ public interface EntityOrBuilder
*
*
*
- * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
+ * Optional. Text value of the entity, for example, `1600 Amphitheatre
+ * Pkwy`.
*
*
* string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -45690,7 +45692,7 @@ public interface EntityOrBuilder
*
*
*
- * Optional. Canonical ID. This will be a unique value in the entity list
+ * Optional. Canonical id. This will be a unique value in the entity list
* for this document.
*
*
@@ -45704,7 +45706,7 @@ public interface EntityOrBuilder
*
*
*
- * Optional. Canonical ID. This will be a unique value in the entity list
+ * Optional. Canonical id. This will be a unique value in the entity list
* for this document.
*
*
@@ -49134,7 +49136,7 @@ public com.google.cloud.documentai.v1beta3.Document.TextAnchor getTextAnchor() {
*
*
*
- * Required. Entity type from a schema for example, `Address`.
+ * Required. Entity type from a schema, for example, `Address`.
*
*
* string type = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -49158,7 +49160,7 @@ public java.lang.String getType() {
*
*
*
- * Required. Entity type from a schema for example, `Address`.
+ * Required. Entity type from a schema, for example, `Address`.
*
*
* string type = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -49187,7 +49189,8 @@ public com.google.protobuf.ByteString getTypeBytes() {
*
*
*
- * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
+ * Optional. Text value of the entity, for example, `1600 Amphitheatre
+ * Pkwy`.
*
*
* string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -49211,7 +49214,8 @@ public java.lang.String getMentionText() {
*
*
*
- * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
+ * Optional. Text value of the entity, for example, `1600 Amphitheatre
+ * Pkwy`.
*
*
* string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -49375,7 +49379,7 @@ public com.google.cloud.documentai.v1beta3.Document.PageAnchor getPageAnchor() {
*
*
*
- * Optional. Canonical ID. This will be a unique value in the entity list
+ * Optional. Canonical id. This will be a unique value in the entity list
* for this document.
*
*
@@ -49400,7 +49404,7 @@ public java.lang.String getId() {
*
*
*
- * Optional. Canonical ID. This will be a unique value in the entity list
+ * Optional. Canonical id. This will be a unique value in the entity list
* for this document.
*
*
@@ -50627,7 +50631,7 @@ public Builder clearTextAnchor() {
*
*
*
- * Required. Entity type from a schema for example, `Address`.
+ * Required. Entity type from a schema, for example, `Address`.
*
*
* string type = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -50650,7 +50654,7 @@ public java.lang.String getType() {
*
*
*
- * Required. Entity type from a schema for example, `Address`.
+ * Required. Entity type from a schema, for example, `Address`.
*
*
* string type = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -50673,7 +50677,7 @@ public com.google.protobuf.ByteString getTypeBytes() {
*
*
*
- * Required. Entity type from a schema for example, `Address`.
+ * Required. Entity type from a schema, for example, `Address`.
*
*
* string type = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -50695,7 +50699,7 @@ public Builder setType(java.lang.String value) {
*
*
*
- * Required. Entity type from a schema for example, `Address`.
+ * Required. Entity type from a schema, for example, `Address`.
*
*
* string type = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -50713,7 +50717,7 @@ public Builder clearType() {
*
*
*
- * Required. Entity type from a schema for example, `Address`.
+ * Required. Entity type from a schema, for example, `Address`.
*
*
* string type = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -50738,7 +50742,8 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
+ * Optional. Text value of the entity, for example, `1600 Amphitheatre
+ * Pkwy`.
*
*
* string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -50761,7 +50766,8 @@ public java.lang.String getMentionText() {
*
*
*
- * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
+ * Optional. Text value of the entity, for example, `1600 Amphitheatre
+ * Pkwy`.
*
*
* string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -50784,7 +50790,8 @@ public com.google.protobuf.ByteString getMentionTextBytes() {
*
*
*
- * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
+ * Optional. Text value of the entity, for example, `1600 Amphitheatre
+ * Pkwy`.
*
*
* string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -50806,7 +50813,8 @@ public Builder setMentionText(java.lang.String value) {
*
*
*
- * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
+ * Optional. Text value of the entity, for example, `1600 Amphitheatre
+ * Pkwy`.
*
*
* string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -50824,7 +50832,8 @@ public Builder clearMentionText() {
*
*
*
- * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
+ * Optional. Text value of the entity, for example, `1600 Amphitheatre
+ * Pkwy`.
*
*
* string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -51242,7 +51251,7 @@ public Builder clearPageAnchor() {
*
*
*
- * Optional. Canonical ID. This will be a unique value in the entity list
+ * Optional. Canonical id. This will be a unique value in the entity list
* for this document.
*
*
@@ -51266,7 +51275,7 @@ public java.lang.String getId() {
*
*
*
- * Optional. Canonical ID. This will be a unique value in the entity list
+ * Optional. Canonical id. This will be a unique value in the entity list
* for this document.
*
*
@@ -51290,7 +51299,7 @@ public com.google.protobuf.ByteString getIdBytes() {
*
*
*
- * Optional. Canonical ID. This will be a unique value in the entity list
+ * Optional. Canonical id. This will be a unique value in the entity list
* for this document.
*
*
@@ -51313,7 +51322,7 @@ public Builder setId(java.lang.String value) {
*
*
*
- * Optional. Canonical ID. This will be a unique value in the entity list
+ * Optional. Canonical id. This will be a unique value in the entity list
* for this document.
*
*
@@ -51332,7 +51341,7 @@ public Builder clearId() {
*
*
*
- * Optional. Canonical ID. This will be a unique value in the entity list
+ * Optional. Canonical id. This will be a unique value in the entity list
* for this document.
*
*
@@ -52477,7 +52486,7 @@ public interface EntityRelationOrBuilder
*
*
*
- * Subject entity ID.
+ * Subject entity id.
*
*
* string subject_id = 1;
@@ -52490,7 +52499,7 @@ public interface EntityRelationOrBuilder
*
*
*
- * Subject entity ID.
+ * Subject entity id.
*
*
* string subject_id = 1;
@@ -52503,7 +52512,7 @@ public interface EntityRelationOrBuilder
*
*
*
- * Object entity ID.
+ * Object entity id.
*
*
* string object_id = 2;
@@ -52516,7 +52525,7 @@ public interface EntityRelationOrBuilder
*
*
*
- * Object entity ID.
+ * Object entity id.
*
*
* string object_id = 2;
@@ -52613,7 +52622,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Subject entity ID.
+ * Subject entity id.
*
*
* string subject_id = 1;
@@ -52637,7 +52646,7 @@ public java.lang.String getSubjectId() {
*
*
*
- * Subject entity ID.
+ * Subject entity id.
*
*
* string subject_id = 1;
@@ -52666,7 +52675,7 @@ public com.google.protobuf.ByteString getSubjectIdBytes() {
*
*
*
- * Object entity ID.
+ * Object entity id.
*
*
* string object_id = 2;
@@ -52690,7 +52699,7 @@ public java.lang.String getObjectId() {
*
*
*
- * Object entity ID.
+ * Object entity id.
*
*
* string object_id = 2;
@@ -53132,7 +53141,7 @@ public Builder mergeFrom(
*
*
*
- * Subject entity ID.
+ * Subject entity id.
*
*
* string subject_id = 1;
@@ -53155,7 +53164,7 @@ public java.lang.String getSubjectId() {
*
*
*
- * Subject entity ID.
+ * Subject entity id.
*
*
* string subject_id = 1;
@@ -53178,7 +53187,7 @@ public com.google.protobuf.ByteString getSubjectIdBytes() {
*
*
*
- * Subject entity ID.
+ * Subject entity id.
*
*
* string subject_id = 1;
@@ -53200,7 +53209,7 @@ public Builder setSubjectId(java.lang.String value) {
*
*
*
- * Subject entity ID.
+ * Subject entity id.
*
*
* string subject_id = 1;
@@ -53218,7 +53227,7 @@ public Builder clearSubjectId() {
*
*
*
- * Subject entity ID.
+ * Subject entity id.
*
*
* string subject_id = 1;
@@ -53243,7 +53252,7 @@ public Builder setSubjectIdBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Object entity ID.
+ * Object entity id.
*
*
* string object_id = 2;
@@ -53266,7 +53275,7 @@ public java.lang.String getObjectId() {
*
*
*
- * Object entity ID.
+ * Object entity id.
*
*
* string object_id = 2;
@@ -53289,7 +53298,7 @@ public com.google.protobuf.ByteString getObjectIdBytes() {
*
*
*
- * Object entity ID.
+ * Object entity id.
*
*
* string object_id = 2;
@@ -53311,7 +53320,7 @@ public Builder setObjectId(java.lang.String value) {
*
*
*
- * Object entity ID.
+ * Object entity id.
*
*
* string object_id = 2;
@@ -53329,7 +53338,7 @@ public Builder clearObjectId() {
*
*
*
- * Object entity ID.
+ * Object entity id.
*
*
* string object_id = 2;
@@ -55684,7 +55693,7 @@ public interface PageRefOrBuilder
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is
- * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778
+ * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780
* @return The layoutId.
*/
@java.lang.Deprecated
@@ -55703,7 +55712,7 @@ public interface PageRefOrBuilder
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is
- * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778
+ * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780
* @return The bytes for layoutId.
*/
@java.lang.Deprecated
@@ -56230,7 +56239,7 @@ public int getLayoutTypeValue() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is
- * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778
+ * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780
* @return The layoutId.
*/
@java.lang.Override
@@ -56260,7 +56269,7 @@ public java.lang.String getLayoutId() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is
- * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778
+ * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780
* @return The bytes for layoutId.
*/
@java.lang.Override
@@ -57004,7 +57013,7 @@ public Builder clearLayoutType() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is
- * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778
+ * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780
* @return The layoutId.
*/
@java.lang.Deprecated
@@ -57033,7 +57042,7 @@ public java.lang.String getLayoutId() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is
- * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778
+ * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780
* @return The bytes for layoutId.
*/
@java.lang.Deprecated
@@ -57062,7 +57071,7 @@ public com.google.protobuf.ByteString getLayoutIdBytes() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is
- * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778
+ * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780
* @param value The layoutId to set.
* @return This builder for chaining.
*/
@@ -57090,7 +57099,7 @@ public Builder setLayoutId(java.lang.String value) {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is
- * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778
+ * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -57114,7 +57123,7 @@ public Builder clearLayoutId() {
*
*
* @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is
- * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778
+ * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780
* @param value The bytes for layoutId to set.
* @return This builder for chaining.
*/
@@ -58398,7 +58407,7 @@ public interface ProvenanceOrBuilder
* int32 revision = 1 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=846
+ * google/cloud/documentai/v1beta3/document.proto;l=848
* @return The revision.
*/
@java.lang.Deprecated
@@ -58408,14 +58417,14 @@ public interface ProvenanceOrBuilder
*
*
*
- * The ID of this operation. Needs to be unique within the scope of the
+ * The Id of this operation. Needs to be unique within the scope of the
* revision.
*
*
* int32 id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=850
+ * google/cloud/documentai/v1beta3/document.proto;l=852
* @return The id.
*/
@java.lang.Deprecated
@@ -58901,13 +58910,13 @@ public interface ParentOrBuilder
*
*
*
- * The ID of the parent provenance.
+ * The id of the parent provenance.
*
*
* int32 id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=809
+ * See google/cloud/documentai/v1beta3/document.proto;l=811
* @return The id.
*/
@java.lang.Deprecated
@@ -59008,13 +59017,13 @@ public int getIndex() {
*
*
*
- * The ID of the parent provenance.
+ * The id of the parent provenance.
*
*
* int32 id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=809
+ * See google/cloud/documentai/v1beta3/document.proto;l=811
* @return The id.
*/
@java.lang.Override
@@ -59509,13 +59518,13 @@ public Builder clearIndex() {
*
*
*
- * The ID of the parent provenance.
+ * The id of the parent provenance.
*
*
* int32 id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=809
+ * See google/cloud/documentai/v1beta3/document.proto;l=811
* @return The id.
*/
@java.lang.Override
@@ -59528,13 +59537,13 @@ public int getId() {
*
*
*
- * The ID of the parent provenance.
+ * The id of the parent provenance.
*
*
* int32 id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=809
+ * See google/cloud/documentai/v1beta3/document.proto;l=811
* @param value The id to set.
* @return This builder for chaining.
*/
@@ -59551,13 +59560,13 @@ public Builder setId(int value) {
*
*
*
- * The ID of the parent provenance.
+ * The id of the parent provenance.
*
*
* int32 id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated.
- * See google/cloud/documentai/v1beta3/document.proto;l=809
+ * See google/cloud/documentai/v1beta3/document.proto;l=811
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -59636,7 +59645,7 @@ public com.google.protobuf.Parserint32 revision = 1 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=846
+ * google/cloud/documentai/v1beta3/document.proto;l=848
* @return The revision.
*/
@java.lang.Override
@@ -59652,14 +59661,14 @@ public int getRevision() {
*
*
*
- * The ID of this operation. Needs to be unique within the scope of the
+ * The Id of this operation. Needs to be unique within the scope of the
* revision.
*
*
* int32 id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=850
+ * google/cloud/documentai/v1beta3/document.proto;l=852
* @return The id.
*/
@java.lang.Override
@@ -60236,7 +60245,7 @@ public Builder mergeFrom(
* int32 revision = 1 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=846
+ * google/cloud/documentai/v1beta3/document.proto;l=848
* @return The revision.
*/
@java.lang.Override
@@ -60255,7 +60264,7 @@ public int getRevision() {
* int32 revision = 1 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=846
+ * google/cloud/documentai/v1beta3/document.proto;l=848
* @param value The revision to set.
* @return This builder for chaining.
*/
@@ -60278,7 +60287,7 @@ public Builder setRevision(int value) {
* int32 revision = 1 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=846
+ * google/cloud/documentai/v1beta3/document.proto;l=848
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -60295,14 +60304,14 @@ public Builder clearRevision() {
*
*
*
- * The ID of this operation. Needs to be unique within the scope of the
+ * The Id of this operation. Needs to be unique within the scope of the
* revision.
*
*
* int32 id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=850
+ * google/cloud/documentai/v1beta3/document.proto;l=852
* @return The id.
*/
@java.lang.Override
@@ -60315,14 +60324,14 @@ public int getId() {
*
*
*
- * The ID of this operation. Needs to be unique within the scope of the
+ * The Id of this operation. Needs to be unique within the scope of the
* revision.
*
*
* int32 id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=850
+ * google/cloud/documentai/v1beta3/document.proto;l=852
* @param value The id to set.
* @return This builder for chaining.
*/
@@ -60339,14 +60348,14 @@ public Builder setId(int value) {
*
*
*
- * The ID of this operation. Needs to be unique within the scope of the
+ * The Id of this operation. Needs to be unique within the scope of the
* revision.
*
*
* int32 id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=850
+ * google/cloud/documentai/v1beta3/document.proto;l=852
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -60921,7 +60930,7 @@ public interface RevisionOrBuilder
*
*
*
- * If the change was made by a person specify the name or ID of that
+ * If the change was made by a person specify the name or id of that
* person.
*
*
@@ -60935,7 +60944,7 @@ public interface RevisionOrBuilder
*
*
*
- * If the change was made by a person specify the name or ID of that
+ * If the change was made by a person specify the name or id of that
* person.
*
*
@@ -60949,7 +60958,7 @@ public interface RevisionOrBuilder
*
*
*
- * If the change was made by a person specify the name or ID of that
+ * If the change was made by a person specify the name or id of that
* person.
*
*
@@ -61005,7 +61014,7 @@ public interface RevisionOrBuilder
*
*
*
- * ID of the revision, internally generated by doc proto storage.
+ * Id of the revision, internally generated by doc proto storage.
* Unique within the context of the document.
*
*
@@ -61019,7 +61028,7 @@ public interface RevisionOrBuilder
*
*
*
- * ID of the revision, internally generated by doc proto storage.
+ * Id of the revision, internally generated by doc proto storage.
* Unique within the context of the document.
*
*
@@ -61041,7 +61050,7 @@ public interface RevisionOrBuilder
* repeated int32 parent = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=889
+ * google/cloud/documentai/v1beta3/document.proto;l=891
* @return A list containing the parent.
*/
@java.lang.Deprecated
@@ -61059,7 +61068,7 @@ public interface RevisionOrBuilder
* repeated int32 parent = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=889
+ * google/cloud/documentai/v1beta3/document.proto;l=891
* @return The count of parent.
*/
@java.lang.Deprecated
@@ -61077,7 +61086,7 @@ public interface RevisionOrBuilder
* repeated int32 parent = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=889
+ * google/cloud/documentai/v1beta3/document.proto;l=891
* @param index The index of the element to return.
* @return The parent at the given index.
*/
@@ -61088,7 +61097,7 @@ public interface RevisionOrBuilder
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -61103,7 +61112,7 @@ public interface RevisionOrBuilder
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -61118,7 +61127,7 @@ public interface RevisionOrBuilder
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -61134,7 +61143,7 @@ public interface RevisionOrBuilder
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -62181,7 +62190,7 @@ public SourceCase getSourceCase() {
*
*
*
- * If the change was made by a person specify the name or ID of that
+ * If the change was made by a person specify the name or id of that
* person.
*
*
@@ -62197,7 +62206,7 @@ public boolean hasAgent() {
*
*
*
- * If the change was made by a person specify the name or ID of that
+ * If the change was made by a person specify the name or id of that
* person.
*
*
@@ -62226,7 +62235,7 @@ public java.lang.String getAgent() {
*
*
*
- * If the change was made by a person specify the name or ID of that
+ * If the change was made by a person specify the name or id of that
* person.
*
*
@@ -62336,7 +62345,7 @@ public com.google.protobuf.ByteString getProcessorBytes() {
*
*
*
- * ID of the revision, internally generated by doc proto storage.
+ * Id of the revision, internally generated by doc proto storage.
* Unique within the context of the document.
*
*
@@ -62361,7 +62370,7 @@ public java.lang.String getId() {
*
*
*
- * ID of the revision, internally generated by doc proto storage.
+ * Id of the revision, internally generated by doc proto storage.
* Unique within the context of the document.
*
*
@@ -62399,7 +62408,7 @@ public com.google.protobuf.ByteString getIdBytes() {
* repeated int32 parent = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=889
+ * google/cloud/documentai/v1beta3/document.proto;l=891
* @return A list containing the parent.
*/
@java.lang.Override
@@ -62420,7 +62429,7 @@ public java.util.Listrepeated int32 parent = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=889
+ * google/cloud/documentai/v1beta3/document.proto;l=891
* @return The count of parent.
*/
@java.lang.Deprecated
@@ -62440,7 +62449,7 @@ public int getParentCount() {
* repeated int32 parent = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=889
+ * google/cloud/documentai/v1beta3/document.proto;l=891
* @param index The index of the element to return.
* @return The parent at the given index.
*/
@@ -62461,7 +62470,7 @@ public int getParent(int index) {
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -62478,7 +62487,7 @@ public com.google.protobuf.ProtocolStringList getParentIdsList() {
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -62495,7 +62504,7 @@ public int getParentIdsCount() {
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -62513,7 +62522,7 @@ public java.lang.String getParentIds(int index) {
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -63218,7 +63227,7 @@ public Builder clearSource() {
*
*
*
- * If the change was made by a person specify the name or ID of that
+ * If the change was made by a person specify the name or id of that
* person.
*
*
@@ -63235,7 +63244,7 @@ public boolean hasAgent() {
*
*
*
- * If the change was made by a person specify the name or ID of that
+ * If the change was made by a person specify the name or id of that
* person.
*
*
@@ -63265,7 +63274,7 @@ public java.lang.String getAgent() {
*
*
*
- * If the change was made by a person specify the name or ID of that
+ * If the change was made by a person specify the name or id of that
* person.
*
*
@@ -63295,7 +63304,7 @@ public com.google.protobuf.ByteString getAgentBytes() {
*
*
*
- * If the change was made by a person specify the name or ID of that
+ * If the change was made by a person specify the name or id of that
* person.
*
*
@@ -63318,7 +63327,7 @@ public Builder setAgent(java.lang.String value) {
*
*
*
- * If the change was made by a person specify the name or ID of that
+ * If the change was made by a person specify the name or id of that
* person.
*
*
@@ -63339,7 +63348,7 @@ public Builder clearAgent() {
*
*
*
- * If the change was made by a person specify the name or ID of that
+ * If the change was made by a person specify the name or id of that
* person.
*
*
@@ -63510,7 +63519,7 @@ public Builder setProcessorBytes(com.google.protobuf.ByteString value) {
*
*
*
- * ID of the revision, internally generated by doc proto storage.
+ * Id of the revision, internally generated by doc proto storage.
* Unique within the context of the document.
*
*
@@ -63534,7 +63543,7 @@ public java.lang.String getId() {
*
*
*
- * ID of the revision, internally generated by doc proto storage.
+ * Id of the revision, internally generated by doc proto storage.
* Unique within the context of the document.
*
*
@@ -63558,7 +63567,7 @@ public com.google.protobuf.ByteString getIdBytes() {
*
*
*
- * ID of the revision, internally generated by doc proto storage.
+ * Id of the revision, internally generated by doc proto storage.
* Unique within the context of the document.
*
*
@@ -63581,7 +63590,7 @@ public Builder setId(java.lang.String value) {
*
*
*
- * ID of the revision, internally generated by doc proto storage.
+ * Id of the revision, internally generated by doc proto storage.
* Unique within the context of the document.
*
*
@@ -63600,7 +63609,7 @@ public Builder clearId() {
*
*
*
- * ID of the revision, internally generated by doc proto storage.
+ * Id of the revision, internally generated by doc proto storage.
* Unique within the context of the document.
*
*
@@ -63641,7 +63650,7 @@ private void ensureParentIsMutable() {
* repeated int32 parent = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=889
+ * google/cloud/documentai/v1beta3/document.proto;l=891
* @return A list containing the parent.
*/
@java.lang.Deprecated
@@ -63662,7 +63671,7 @@ public java.util.Listrepeated int32 parent = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=889
+ * google/cloud/documentai/v1beta3/document.proto;l=891
* @return The count of parent.
*/
@java.lang.Deprecated
@@ -63682,7 +63691,7 @@ public int getParentCount() {
* repeated int32 parent = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=889
+ * google/cloud/documentai/v1beta3/document.proto;l=891
* @param index The index of the element to return.
* @return The parent at the given index.
*/
@@ -63703,7 +63712,7 @@ public int getParent(int index) {
* repeated int32 parent = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=889
+ * google/cloud/documentai/v1beta3/document.proto;l=891
* @param index The index to set the value at.
* @param value The parent to set.
* @return This builder for chaining.
@@ -63730,7 +63739,7 @@ public Builder setParent(int index, int value) {
* repeated int32 parent = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=889
+ * google/cloud/documentai/v1beta3/document.proto;l=891
* @param value The parent to add.
* @return This builder for chaining.
*/
@@ -63756,7 +63765,7 @@ public Builder addParent(int value) {
* repeated int32 parent = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=889
+ * google/cloud/documentai/v1beta3/document.proto;l=891
* @param values The parent to add.
* @return This builder for chaining.
*/
@@ -63781,7 +63790,7 @@ public Builder addAllParent(java.lang.Iterable extends java.lang.Integer> valu
* repeated int32 parent = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
- * google/cloud/documentai/v1beta3/document.proto;l=889
+ * google/cloud/documentai/v1beta3/document.proto;l=891
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -63806,7 +63815,7 @@ private void ensureParentIdsIsMutable() {
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -63824,7 +63833,7 @@ public com.google.protobuf.ProtocolStringList getParentIdsList() {
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -63841,7 +63850,7 @@ public int getParentIdsCount() {
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -63859,7 +63868,7 @@ public java.lang.String getParentIds(int index) {
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -63877,7 +63886,7 @@ public com.google.protobuf.ByteString getParentIdsBytes(int index) {
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -63903,7 +63912,7 @@ public Builder setParentIds(int index, java.lang.String value) {
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -63928,7 +63937,7 @@ public Builder addParentIds(java.lang.String value) {
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -63950,7 +63959,7 @@ public Builder addAllParentIds(java.lang.Iterable
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -63971,7 +63980,7 @@ public Builder clearParentIds() {
*
*
*
- * The revisions that this revision is based on. Must include all the IDs
+ * The revisions that this revision is based on. Must include all the ids
* that have anything to do with this revision - eg. there are
* `provenance.parent.revision` fields that index into this field.
*
@@ -77600,7 +77609,7 @@ public interface LayoutImageBlockOrBuilder
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -77614,7 +77623,7 @@ public interface LayoutImageBlockOrBuilder
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -77628,7 +77637,7 @@ public interface LayoutImageBlockOrBuilder
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -77642,7 +77651,7 @@ public interface LayoutImageBlockOrBuilder
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -77655,7 +77664,7 @@ public interface LayoutImageBlockOrBuilder
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -77668,7 +77677,7 @@ public interface LayoutImageBlockOrBuilder
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -77681,11 +77690,11 @@ public interface LayoutImageBlockOrBuilder
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -77698,11 +77707,11 @@ public interface LayoutImageBlockOrBuilder
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -77715,11 +77724,11 @@ public interface LayoutImageBlockOrBuilder
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -77939,7 +77948,7 @@ public ImageSourceCase getImageSourceCase() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -77955,7 +77964,7 @@ public boolean hasBlobAssetId() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -77984,7 +77993,7 @@ public java.lang.String getBlobAssetId() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -78015,7 +78024,7 @@ public com.google.protobuf.ByteString getBlobAssetIdBytes() {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -78030,7 +78039,7 @@ public boolean hasGcsUri() {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -78058,7 +78067,7 @@ public java.lang.String getGcsUri() {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -78088,11 +78097,11 @@ public com.google.protobuf.ByteString getGcsUriBytes() {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -78107,11 +78116,11 @@ public boolean hasDataUri() {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -78139,11 +78148,11 @@ public java.lang.String getDataUri() {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -78899,7 +78908,7 @@ public Builder clearImageSource() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -78916,7 +78925,7 @@ public boolean hasBlobAssetId() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -78946,7 +78955,7 @@ public java.lang.String getBlobAssetId() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -78976,7 +78985,7 @@ public com.google.protobuf.ByteString getBlobAssetIdBytes() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -78999,7 +79008,7 @@ public Builder setBlobAssetId(java.lang.String value) {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -79020,7 +79029,7 @@ public Builder clearBlobAssetId() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -79044,7 +79053,7 @@ public Builder setBlobAssetIdBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -79060,7 +79069,7 @@ public boolean hasGcsUri() {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -79089,7 +79098,7 @@ public java.lang.String getGcsUri() {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -79118,7 +79127,7 @@ public com.google.protobuf.ByteString getGcsUriBytes() {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -79140,7 +79149,7 @@ public Builder setGcsUri(java.lang.String value) {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -79160,7 +79169,7 @@ public Builder clearGcsUri() {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -79183,11 +79192,11 @@ public Builder setGcsUriBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -79203,11 +79212,11 @@ public boolean hasDataUri() {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -79236,11 +79245,11 @@ public java.lang.String getDataUri() {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -79269,11 +79278,11 @@ public com.google.protobuf.ByteString getDataUriBytes() {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -79295,11 +79304,11 @@ public Builder setDataUri(java.lang.String value) {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -79319,11 +79328,11 @@ public Builder clearDataUri() {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL];
@@ -86978,7 +86987,7 @@ public interface ImageChunkFieldOrBuilder
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -86992,7 +87001,7 @@ public interface ImageChunkFieldOrBuilder
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -87006,7 +87015,7 @@ public interface ImageChunkFieldOrBuilder
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -87020,7 +87029,7 @@ public interface ImageChunkFieldOrBuilder
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -87033,7 +87042,7 @@ public interface ImageChunkFieldOrBuilder
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -87046,7 +87055,7 @@ public interface ImageChunkFieldOrBuilder
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -87059,11 +87068,11 @@ public interface ImageChunkFieldOrBuilder
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -87076,11 +87085,11 @@ public interface ImageChunkFieldOrBuilder
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -87093,11 +87102,11 @@ public interface ImageChunkFieldOrBuilder
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -87258,7 +87267,7 @@ public ImageSourceCase getImageSourceCase() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -87274,7 +87283,7 @@ public boolean hasBlobAssetId() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -87303,7 +87312,7 @@ public java.lang.String getBlobAssetId() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -87334,7 +87343,7 @@ public com.google.protobuf.ByteString getBlobAssetIdBytes() {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -87349,7 +87358,7 @@ public boolean hasGcsUri() {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -87377,7 +87386,7 @@ public java.lang.String getGcsUri() {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -87407,11 +87416,11 @@ public com.google.protobuf.ByteString getGcsUriBytes() {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -87426,11 +87435,11 @@ public boolean hasDataUri() {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -87458,11 +87467,11 @@ public java.lang.String getDataUri() {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -88047,7 +88056,7 @@ public Builder clearImageSource() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -88064,7 +88073,7 @@ public boolean hasBlobAssetId() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -88094,7 +88103,7 @@ public java.lang.String getBlobAssetId() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -88124,7 +88133,7 @@ public com.google.protobuf.ByteString getBlobAssetIdBytes() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -88147,7 +88156,7 @@ public Builder setBlobAssetId(java.lang.String value) {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -88168,7 +88177,7 @@ public Builder clearBlobAssetId() {
*
*
*
- * Optional. Asset ID of the inline image. If set, find the image
+ * Optional. Asset id of the inline image. If set, find the image
* content in the blob_assets field.
*
*
@@ -88192,7 +88201,7 @@ public Builder setBlobAssetIdBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -88208,7 +88217,7 @@ public boolean hasGcsUri() {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -88237,7 +88246,7 @@ public java.lang.String getGcsUri() {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -88266,7 +88275,7 @@ public com.google.protobuf.ByteString getGcsUriBytes() {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -88288,7 +88297,7 @@ public Builder setGcsUri(java.lang.String value) {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -88308,7 +88317,7 @@ public Builder clearGcsUri() {
*
*
*
- * Optional. Google Cloud Storage URI of the image.
+ * Optional. Google Cloud Storage uri of the image.
*
*
* string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -88331,11 +88340,11 @@ public Builder setGcsUriBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -88351,11 +88360,11 @@ public boolean hasDataUri() {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -88384,11 +88393,11 @@ public java.lang.String getDataUri() {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -88417,11 +88426,11 @@ public com.google.protobuf.ByteString getDataUriBytes() {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -88443,11 +88452,11 @@ public Builder setDataUri(java.lang.String value) {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -88467,11 +88476,11 @@ public Builder clearDataUri() {
*
*
*
- * Optional. Data URI of the image.
+ * Optional. Data uri of the image.
* It is composed of four parts: a prefix (data:), a MIME type
* indicating the type of data, an optional base64 token if
* non-textual, and the data itself:
- * data:[<mediatype>][;base64],<data>.
+ * data:[<mediatype>][;base64],<data>
*
*
* string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -95075,7 +95084,7 @@ public interface BlobAssetOrBuilder
*
*
*
- * Optional. The ID of the blob asset.
+ * Optional. The id of the blob asset.
*
*
* string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -95088,7 +95097,7 @@ public interface BlobAssetOrBuilder
*
*
*
- * Optional. The ID of the blob asset.
+ * Optional. The id of the blob asset.
*
*
* string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -95203,7 +95212,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Optional. The ID of the blob asset.
+ * Optional. The id of the blob asset.
*
*
* string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -95227,7 +95236,7 @@ public java.lang.String getAssetId() {
*
*
*
- * Optional. The ID of the blob asset.
+ * Optional. The id of the blob asset.
*
*
* string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -95688,7 +95697,7 @@ public Builder mergeFrom(
*
*
*
- * Optional. The ID of the blob asset.
+ * Optional. The id of the blob asset.
*
*
* string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -95711,7 +95720,7 @@ public java.lang.String getAssetId() {
*
*
*
- * Optional. The ID of the blob asset.
+ * Optional. The id of the blob asset.
*
*
* string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -95734,7 +95743,7 @@ public com.google.protobuf.ByteString getAssetIdBytes() {
*
*
*
- * Optional. The ID of the blob asset.
+ * Optional. The id of the blob asset.
*
*
* string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -95756,7 +95765,7 @@ public Builder setAssetId(java.lang.String value) {
*
*
*
- * Optional. The ID of the blob asset.
+ * Optional. The id of the blob asset.
*
*
* string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -95774,7 +95783,7 @@ public Builder clearAssetId() {
*
*
*
- * Optional. The ID of the blob asset.
+ * Optional. The id of the blob asset.
*
*
* string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -96175,7 +96184,7 @@ public interface ValidationResultOrBuilder
*
*
*
- * The name of the validation rule.
+ * The display name of the validation rule.
*
*
* string rule_name = 1;
@@ -96188,7 +96197,7 @@ public interface ValidationResultOrBuilder
*
*
*
- * The name of the validation rule.
+ * The display name of the validation rule.
*
*
* string rule_name = 1;
@@ -96571,7 +96580,7 @@ private ValidationResultType(int value) {
*
*
*
- * The name of the validation rule.
+ * The display name of the validation rule.
*
*
* string rule_name = 1;
@@ -96595,7 +96604,7 @@ public java.lang.String getRuleName() {
*
*
*
- * The name of the validation rule.
+ * The display name of the validation rule.
*
*
* string rule_name = 1;
@@ -97214,7 +97223,7 @@ public Builder mergeFrom(
*
*
*
- * The name of the validation rule.
+ * The display name of the validation rule.
*
*
* string rule_name = 1;
@@ -97237,7 +97246,7 @@ public java.lang.String getRuleName() {
*
*
*
- * The name of the validation rule.
+ * The display name of the validation rule.
*
*
* string rule_name = 1;
@@ -97260,7 +97269,7 @@ public com.google.protobuf.ByteString getRuleNameBytes() {
*
*
*
- * The name of the validation rule.
+ * The display name of the validation rule.
*
*
* string rule_name = 1;
@@ -97282,7 +97291,7 @@ public Builder setRuleName(java.lang.String value) {
*
*
*
- * The name of the validation rule.
+ * The display name of the validation rule.
*
*
* string rule_name = 1;
@@ -97300,7 +97309,7 @@ public Builder clearRuleName() {
*
*
*
- * The name of the validation rule.
+ * The display name of the validation rule.
*
*
* string rule_name = 1;
@@ -98812,7 +98821,7 @@ public interface EntitiesRevisionOrBuilder
*
*
*
- * The revision ID.
+ * The revision id.
*
*
* string revision_id = 1;
@@ -98825,7 +98834,7 @@ public interface EntitiesRevisionOrBuilder
*
*
*
- * The revision ID.
+ * The revision id.
*
*
* string revision_id = 1;
@@ -98933,6 +98942,49 @@ public interface EntitiesRevisionOrBuilder
*/
com.google.cloud.documentai.v1beta3.Document.EntityValidationOutputOrBuilder
getEntityValidationOutputOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. The history of this revision.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the provenance field is set.
+ */
+ boolean hasProvenance();
+
+ /**
+ *
+ *
+ *
+ * Optional. The history of this revision.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The provenance.
+ */
+ com.google.cloud.documentai.v1beta3.Document.Provenance getProvenance();
+
+ /**
+ *
+ *
+ *
+ * Optional. The history of this revision.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder getProvenanceOrBuilder();
}
/**
@@ -98995,7 +99047,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * The revision ID.
+ * The revision id.
*
*
* string revision_id = 1;
@@ -99019,7 +99071,7 @@ public java.lang.String getRevisionId() {
*
*
*
- * The revision ID.
+ * The revision id.
*
*
* string revision_id = 1;
@@ -99178,6 +99230,66 @@ public boolean hasEntityValidationOutput() {
: entityValidationOutput_;
}
+ public static final int PROVENANCE_FIELD_NUMBER = 4;
+ private com.google.cloud.documentai.v1beta3.Document.Provenance provenance_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The history of this revision.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the provenance field is set.
+ */
+ @java.lang.Override
+ public boolean hasProvenance() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The history of this revision.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The provenance.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Document.Provenance getProvenance() {
+ return provenance_ == null
+ ? com.google.cloud.documentai.v1beta3.Document.Provenance.getDefaultInstance()
+ : provenance_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The history of this revision.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder
+ getProvenanceOrBuilder() {
+ return provenance_ == null
+ ? com.google.cloud.documentai.v1beta3.Document.Provenance.getDefaultInstance()
+ : provenance_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -99201,6 +99313,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getEntityValidationOutput());
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(4, getProvenance());
+ }
getUnknownFields().writeTo(output);
}
@@ -99221,6 +99336,9 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, getEntityValidationOutput());
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProvenance());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -99243,6 +99361,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasEntityValidationOutput()) {
if (!getEntityValidationOutput().equals(other.getEntityValidationOutput())) return false;
}
+ if (hasProvenance() != other.hasProvenance()) return false;
+ if (hasProvenance()) {
+ if (!getProvenance().equals(other.getProvenance())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -99264,6 +99386,10 @@ public int hashCode() {
hash = (37 * hash) + ENTITY_VALIDATION_OUTPUT_FIELD_NUMBER;
hash = (53 * hash) + getEntityValidationOutput().hashCode();
}
+ if (hasProvenance()) {
+ hash = (37 * hash) + PROVENANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getProvenance().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -99408,6 +99534,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
internalGetEntitiesFieldBuilder();
internalGetEntityValidationOutputFieldBuilder();
+ internalGetProvenanceFieldBuilder();
}
}
@@ -99428,6 +99555,11 @@ public Builder clear() {
entityValidationOutputBuilder_.dispose();
entityValidationOutputBuilder_ = null;
}
+ provenance_ = null;
+ if (provenanceBuilder_ != null) {
+ provenanceBuilder_.dispose();
+ provenanceBuilder_ = null;
+ }
return this;
}
@@ -99491,6 +99623,11 @@ private void buildPartial0(
: entityValidationOutputBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.provenance_ =
+ provenanceBuilder_ == null ? provenance_ : provenanceBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -99544,6 +99681,9 @@ public Builder mergeFrom(
if (other.hasEntityValidationOutput()) {
mergeEntityValidationOutput(other.getEntityValidationOutput());
}
+ if (other.hasProvenance()) {
+ mergeProvenance(other.getProvenance());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -99598,6 +99738,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 26
+ case 34:
+ {
+ input.readMessage(
+ internalGetProvenanceFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -99623,7 +99770,7 @@ public Builder mergeFrom(
*
*
*
- * The revision ID.
+ * The revision id.
*
*
* string revision_id = 1;
@@ -99646,7 +99793,7 @@ public java.lang.String getRevisionId() {
*
*
*
- * The revision ID.
+ * The revision id.
*
*
* string revision_id = 1;
@@ -99669,7 +99816,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() {
*
*
*
- * The revision ID.
+ * The revision id.
*
*
* string revision_id = 1;
@@ -99691,7 +99838,7 @@ public Builder setRevisionId(java.lang.String value) {
*
*
*
- * The revision ID.
+ * The revision id.
*
*
* string revision_id = 1;
@@ -99709,7 +99856,7 @@ public Builder clearRevisionId() {
*
*
*
- * The revision ID.
+ * The revision id.
*
*
* string revision_id = 1;
@@ -100328,6 +100475,223 @@ public Builder clearEntityValidationOutput() {
return entityValidationOutputBuilder_;
}
+ private com.google.cloud.documentai.v1beta3.Document.Provenance provenance_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.documentai.v1beta3.Document.Provenance,
+ com.google.cloud.documentai.v1beta3.Document.Provenance.Builder,
+ com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder>
+ provenanceBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The history of this revision.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the provenance field is set.
+ */
+ public boolean hasProvenance() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The history of this revision.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The provenance.
+ */
+ public com.google.cloud.documentai.v1beta3.Document.Provenance getProvenance() {
+ if (provenanceBuilder_ == null) {
+ return provenance_ == null
+ ? com.google.cloud.documentai.v1beta3.Document.Provenance.getDefaultInstance()
+ : provenance_;
+ } else {
+ return provenanceBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The history of this revision.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setProvenance(com.google.cloud.documentai.v1beta3.Document.Provenance value) {
+ if (provenanceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ provenance_ = value;
+ } else {
+ provenanceBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The history of this revision.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setProvenance(
+ com.google.cloud.documentai.v1beta3.Document.Provenance.Builder builderForValue) {
+ if (provenanceBuilder_ == null) {
+ provenance_ = builderForValue.build();
+ } else {
+ provenanceBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The history of this revision.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeProvenance(
+ com.google.cloud.documentai.v1beta3.Document.Provenance value) {
+ if (provenanceBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && provenance_ != null
+ && provenance_
+ != com.google.cloud.documentai.v1beta3.Document.Provenance.getDefaultInstance()) {
+ getProvenanceBuilder().mergeFrom(value);
+ } else {
+ provenance_ = value;
+ }
+ } else {
+ provenanceBuilder_.mergeFrom(value);
+ }
+ if (provenance_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The history of this revision.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearProvenance() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ provenance_ = null;
+ if (provenanceBuilder_ != null) {
+ provenanceBuilder_.dispose();
+ provenanceBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The history of this revision.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.documentai.v1beta3.Document.Provenance.Builder
+ getProvenanceBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return internalGetProvenanceFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The history of this revision.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder
+ getProvenanceOrBuilder() {
+ if (provenanceBuilder_ != null) {
+ return provenanceBuilder_.getMessageOrBuilder();
+ } else {
+ return provenance_ == null
+ ? com.google.cloud.documentai.v1beta3.Document.Provenance.getDefaultInstance()
+ : provenance_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The history of this revision.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.documentai.v1beta3.Document.Provenance,
+ com.google.cloud.documentai.v1beta3.Document.Provenance.Builder,
+ com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder>
+ internalGetProvenanceFieldBuilder() {
+ if (provenanceBuilder_ == null) {
+ provenanceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.documentai.v1beta3.Document.Provenance,
+ com.google.cloud.documentai.v1beta3.Document.Provenance.Builder,
+ com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder>(
+ getProvenance(), getParentForChildren(), isClean());
+ provenance_ = null;
+ }
+ return provenanceBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.Document.EntitiesRevision)
}
@@ -101737,7 +102101,7 @@ public com.google.cloud.documentai.v1beta3.Document.EntitiesRevision getEntities
* The entity revision ID that `document.entities` field is based on.
* If this field is set and `entities_revisions` is not empty, the entities in
* `document.entities` field are the entities in the entity revision with this
- * ID and `document.entity_validation_output` field is the
+ * id and `document.entity_validation_output` field is the
* `entity_validation_output` field in this entity revision.
*
*
@@ -101765,7 +102129,7 @@ public java.lang.String getEntitiesRevisionId() {
* The entity revision ID that `document.entities` field is based on.
* If this field is set and `entities_revisions` is not empty, the entities in
* `document.entities` field are the entities in the entity revision with this
- * ID and `document.entity_validation_output` field is the
+ * id and `document.entity_validation_output` field is the
* `entity_validation_output` field in this entity revision.
*
*
@@ -108020,7 +108384,7 @@ public Builder removeEntitiesRevisions(int index) {
* The entity revision ID that `document.entities` field is based on.
* If this field is set and `entities_revisions` is not empty, the entities in
* `document.entities` field are the entities in the entity revision with this
- * ID and `document.entity_validation_output` field is the
+ * id and `document.entity_validation_output` field is the
* `entity_validation_output` field in this entity revision.
*
*
@@ -108047,7 +108411,7 @@ public java.lang.String getEntitiesRevisionId() {
* The entity revision ID that `document.entities` field is based on.
* If this field is set and `entities_revisions` is not empty, the entities in
* `document.entities` field are the entities in the entity revision with this
- * ID and `document.entity_validation_output` field is the
+ * id and `document.entity_validation_output` field is the
* `entity_validation_output` field in this entity revision.
*
*
@@ -108074,7 +108438,7 @@ public com.google.protobuf.ByteString getEntitiesRevisionIdBytes() {
* The entity revision ID that `document.entities` field is based on.
* If this field is set and `entities_revisions` is not empty, the entities in
* `document.entities` field are the entities in the entity revision with this
- * ID and `document.entity_validation_output` field is the
+ * id and `document.entity_validation_output` field is the
* `entity_validation_output` field in this entity revision.
*
*
@@ -108100,7 +108464,7 @@ public Builder setEntitiesRevisionId(java.lang.String value) {
* The entity revision ID that `document.entities` field is based on.
* If this field is set and `entities_revisions` is not empty, the entities in
* `document.entities` field are the entities in the entity revision with this
- * ID and `document.entity_validation_output` field is the
+ * id and `document.entity_validation_output` field is the
* `entity_validation_output` field in this entity revision.
*
*
@@ -108122,7 +108486,7 @@ public Builder clearEntitiesRevisionId() {
* The entity revision ID that `document.entities` field is based on.
* If this field is set and `entities_revisions` is not empty, the entities in
* `document.entities` field are the entities in the entity revision with this
- * ID and `document.entity_validation_output` field is the
+ * id and `document.entity_validation_output` field is the
* `entity_validation_output` field in this entity revision.
*
*
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentSchema.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentSchema.java
index 1bced38eae69..8e3ef2614479 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentSchema.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentSchema.java
@@ -85,67 +85,93 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n5google/cloud/documentai/v1beta3/docume"
- + "nt_schema.proto\022\037google.cloud.documentai"
- + ".v1beta3\"\254\002\n\016SummaryOptions\022F\n\006length\030\001 "
- + "\001(\01626.google.cloud.documentai.v1beta3.Su"
- + "mmaryOptions.Length\022F\n\006format\030\002 \001(\01626.go"
- + "ogle.cloud.documentai.v1beta3.SummaryOpt"
- + "ions.Format\"L\n\006Length\022\026\n\022LENGTH_UNSPECIF"
- + "IED\020\000\022\t\n\005BRIEF\020\001\022\014\n\010MODERATE\020\002\022\021\n\rCOMPRE"
- + "HENSIVE\020\003\"<\n\006Format\022\026\n\022FORMAT_UNSPECIFIE"
- + "D\020\000\022\r\n\tPARAGRAPH\020\001\022\013\n\007BULLETS\020\002\"c\n\027Field"
- + "ExtractionMetadata\022H\n\017summary_options\030\002 "
- + "\001(\0132/.google.cloud.documentai.v1beta3.Su"
- + "mmaryOptions\"\201\001\n\020PropertyMetadata\022\020\n\010ina"
- + "ctive\030\003 \001(\010\022[\n\031field_extraction_metadata"
- + "\030\t \001(\01328.google.cloud.documentai.v1beta3"
- + ".FieldExtractionMetadata\"&\n\022EntityTypeMe"
- + "tadata\022\020\n\010inactive\030\005 \001(\010\"\270\n\n\016DocumentSch"
- + "ema\022\024\n\014display_name\030\001 \001(\t\022\023\n\013description"
- + "\030\002 \001(\t\022P\n\014entity_types\030\003 \003(\0132:.google.cl"
- + "oud.documentai.v1beta3.DocumentSchema.En"
- + "tityType\022J\n\010metadata\030\004 \001(\01328.google.clou"
- + "d.documentai.v1beta3.DocumentSchema.Meta"
- + "data\032\305\007\n\nEntityType\022\\\n\013enum_values\030\016 \001(\013"
- + "2E.google.cloud.documentai.v1beta3.Docum"
- + "entSchema.EntityType.EnumValuesH\000\022\024\n\014dis"
- + "play_name\030\r \001(\t\022\014\n\004name\030\001 \001(\t\022\023\n\013descrip"
- + "tion\030\017 \001(\t\022\022\n\nbase_types\030\002 \003(\t\022W\n\nproper"
- + "ties\030\006 \003(\0132C.google.cloud.documentai.v1b"
- + "eta3.DocumentSchema.EntityType.Property\022"
- + "Q\n\024entity_type_metadata\030\013 \001(\01323.google.c"
- + "loud.documentai.v1beta3.EntityTypeMetada"
- + "ta\032\034\n\nEnumValues\022\016\n\006values\030\001 \003(\t\032\261\004\n\010Pro"
- + "perty\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\007 \001(\t"
- + "\022\024\n\014display_name\030\006 \001(\t\022\022\n\nvalue_type\030\002 \001"
- + "(\t\022k\n\017occurrence_type\030\003 \001(\0162R.google.clo"
- + "ud.documentai.v1beta3.DocumentSchema.Ent"
- + "ityType.Property.OccurrenceType\022Z\n\006metho"
- + "d\030\010 \001(\0162J.google.cloud.documentai.v1beta"
- + "3.DocumentSchema.EntityType.Property.Met"
- + "hod\022L\n\021property_metadata\030\005 \001(\01321.google."
- + "cloud.documentai.v1beta3.PropertyMetadat"
- + "a\"\205\001\n\016OccurrenceType\022\037\n\033OCCURRENCE_TYPE_"
- + "UNSPECIFIED\020\000\022\021\n\rOPTIONAL_ONCE\020\001\022\025\n\021OPTI"
- + "ONAL_MULTIPLE\020\002\022\021\n\rREQUIRED_ONCE\020\003\022\025\n\021RE"
- + "QUIRED_MULTIPLE\020\004\"9\n\006Method\022\026\n\022METHOD_UN"
- + "SPECIFIED\020\000\022\013\n\007EXTRACT\020\001\022\n\n\006DERIVE\020\002B\016\n\014"
- + "value_source\032\224\001\n\010Metadata\022\031\n\021document_sp"
- + "litter\030\001 \001(\010\022&\n\036document_allow_multiple_"
- + "labels\030\002 \001(\010\022%\n\035prefixed_naming_on_prope"
- + "rties\030\006 \001(\010\022\036\n\026skip_naming_validation\030\007 "
- + "\001(\010B\357\001\n#com.google.cloud.documentai.v1be"
- + "ta3B\030DocumentAiDocumentSchemaP\001ZCcloud.g"
- + "oogle.com/go/documentai/apiv1beta3/docum"
- + "entaipb;documentaipb\252\002\037Google.Cloud.Docu"
- + "mentAI.V1Beta3\312\002\037Google\\Cloud\\DocumentAI"
- + "\\V1beta3\352\002\"Google::Cloud::DocumentAI::V1"
- + "beta3b\006proto3"
+ "\n"
+ + "5google/cloud/documentai/v1beta3/document_schema.proto\022\037google.cloud.documentai"
+ + ".v1beta3\032\037google/api/field_behavior.proto\"\254\002\n"
+ + "\016SummaryOptions\022F\n"
+ + "\006length\030\001 \001(\01626.g"
+ + "oogle.cloud.documentai.v1beta3.SummaryOptions.Length\022F\n"
+ + "\006format\030\002 \001(\01626.google.cl"
+ + "oud.documentai.v1beta3.SummaryOptions.Format\"L\n"
+ + "\006Length\022\026\n"
+ + "\022LENGTH_UNSPECIFIED\020\000\022\t\n"
+ + "\005BRIEF\020\001\022\014\n"
+ + "\010MODERATE\020\002\022\021\n\r"
+ + "COMPREHENSIVE\020\003\"<\n"
+ + "\006Format\022\026\n"
+ + "\022FORMAT_UNSPECIFIED\020\000\022\r\n"
+ + "\tPARAGRAPH\020\001\022\013\n"
+ + "\007BULLETS\020\002\"c\n"
+ + "\027FieldExtractionMetadata\022H\n"
+ + "\017summary_options\030\002 \001(\0132/.g"
+ + "oogle.cloud.documentai.v1beta3.SummaryOptions\"\201\001\n"
+ + "\020PropertyMetadata\022\020\n"
+ + "\010inactive\030\003 \001(\010\022[\n"
+ + "\031field_extraction_metadata\030\t \001(\0132"
+ + "8.google.cloud.documentai.v1beta3.FieldExtractionMetadata\"&\n"
+ + "\022EntityTypeMetadata\022\020\n"
+ + "\010inactive\030\005 \001(\010\"\326\n\n"
+ + "\016DocumentSchema\022\024\n"
+ + "\014display_name\030\001 \001(\t\022\023\n"
+ + "\013description\030\002 \001(\t\022P\n"
+ + "\014entity_types\030\003 \003(\0132:.google.cloud.doc"
+ + "umentai.v1beta3.DocumentSchema.EntityType\022J\n"
+ + "\010metadata\030\004"
+ + " \001(\01328.google.cloud.documentai.v1beta3.DocumentSchema.Metadata\022\034\n"
+ + "\017document_prompt\030\005 \001(\tB\003\340A\001\032\305\007\n\n"
+ + "EntityType\022\\\n"
+ + "\013enum_values\030\016 \001(\0132E.google.cloud.d"
+ + "ocumentai.v1beta3.DocumentSchema.EntityType.EnumValuesH\000\022\024\n"
+ + "\014display_name\030\r"
+ + " \001(\t\022\014\n"
+ + "\004name\030\001 \001(\t\022\023\n"
+ + "\013description\030\017 \001(\t\022\022\n\n"
+ + "base_types\030\002 \003(\t\022W\n\n"
+ + "properties\030\006 \003(\0132C.goog"
+ + "le.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property\022Q\n"
+ + "\024entity_type_metadata\030\013"
+ + " \001(\01323.google.cloud.documentai.v1beta3.EntityTypeMetadata\032\034\n\n"
+ + "EnumValues\022\016\n"
+ + "\006values\030\001 \003(\t\032\261\004\n"
+ + "\010Property\022\014\n"
+ + "\004name\030\001 \001(\t\022\023\n"
+ + "\013description\030\007 \001(\t\022\024\n"
+ + "\014display_name\030\006 \001(\t\022\022\n\n"
+ + "value_type\030\002 \001(\t\022k\n"
+ + "\017occurrence_type\030\003 \001(\0162R.google.cloud.documentai.v1b"
+ + "eta3.DocumentSchema.EntityType.Property.OccurrenceType\022Z\n"
+ + "\006method\030\010 \001(\0162J.google."
+ + "cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.Method\022L\n"
+ + "\021property_metadata\030\005"
+ + " \001(\01321.google.cloud.documentai.v1beta3.PropertyMetadata\"\205\001\n"
+ + "\016OccurrenceType\022\037\n"
+ + "\033OCCURRENCE_TYPE_UNSPECIFIED\020\000\022\021\n\r"
+ + "OPTIONAL_ONCE\020\001\022\025\n"
+ + "\021OPTIONAL_MULTIPLE\020\002\022\021\n\r"
+ + "REQUIRED_ONCE\020\003\022\025\n"
+ + "\021REQUIRED_MULTIPLE\020\004\"9\n"
+ + "\006Method\022\026\n"
+ + "\022METHOD_UNSPECIFIED\020\000\022\013\n"
+ + "\007EXTRACT\020\001\022\n\n"
+ + "\006DERIVE\020\002B\016\n"
+ + "\014value_source\032\224\001\n"
+ + "\010Metadata\022\031\n"
+ + "\021document_splitter\030\001 \001(\010\022&\n"
+ + "\036document_allow_multiple_labels\030\002 \001(\010\022%\n"
+ + "\035prefixed_naming_on_properties\030\006 \001(\010\022\036\n"
+ + "\026skip_naming_validation\030\007 \001(\010B\357\001\n"
+ + "#com.google.cloud.documentai.v1beta3B\030DocumentAiDo"
+ + "cumentSchemaP\001ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documenta"
+ + "ipb\252\002\037Google.Cloud.DocumentAI.V1Beta3\312\002\037"
+ + "Google\\Cloud\\DocumentAI\\V1beta3\352\002\"Google"
+ + "::Cloud::DocumentAI::V1beta3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
- descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ });
internal_static_google_cloud_documentai_v1beta3_SummaryOptions_descriptor =
getDescriptor().getMessageType(0);
internal_static_google_cloud_documentai_v1beta3_SummaryOptions_fieldAccessorTable =
@@ -184,7 +210,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_DocumentSchema_descriptor,
new java.lang.String[] {
- "DisplayName", "Description", "EntityTypes", "Metadata",
+ "DisplayName", "Description", "EntityTypes", "Metadata", "DocumentPrompt",
});
internal_static_google_cloud_documentai_v1beta3_DocumentSchema_EntityType_descriptor =
internal_static_google_cloud_documentai_v1beta3_DocumentSchema_descriptor.getNestedType(0);
@@ -237,6 +263,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"SkipNamingValidation",
});
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-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentService.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentService.java
index 397883dd747f..17c6dfb3386d 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentService.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentService.java
@@ -149,12 +149,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"s\n"
+ "\036UpdateDatasetOperationMetadata\022Q\n"
+ "\017common_metadata\030\001 \001(\01328.google.cloud.doc"
- + "umentai.v1beta3.CommonOperationMetadata\"\337\004\n"
+ + "umentai.v1beta3.CommonOperationMetadata\"\373\004\n"
+ "\026ImportDocumentsRequest\022:\n"
+ "\007dataset\030\001 \001(\tB)\340A\002\372A#\n"
+ "!documentai.googleapis.com/Dataset\022\177\n"
+ "\036batch_documents_import_configs\030\004 \003(\0132R.google.cloud.documentai.v1beta3"
- + ".ImportDocumentsRequest.BatchDocumentsImportConfigB\003\340A\002\032\207\003\n"
+ + ".ImportDocumentsRequest.BatchDocumentsImportConfigB\003\340A\002\032\243\003\n"
+ "\032BatchDocumentsImportConfig\022J\n\r"
+ "dataset_split\030\002 \001(\01621.google.c"
+ "loud.documentai.v1beta3.DatasetSplitTypeH\000\022\177\n"
@@ -162,18 +162,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "loud.documentai.v1beta3.ImportDocumentsR"
+ "equest.BatchDocumentsImportConfig.AutoSplitConfigH\000\022V\n"
+ "\022batch_input_config\030\001 \001(\0132"
- + ":.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\032/\n"
+ + ":.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\022\032\n\r"
+ + "document_type\030\006 \001(\tB\003\340A\001\032/\n"
+ "\017AutoSplitConfig\022\034\n"
+ "\024training_split_ratio\030\001 \001(\002B\023\n"
+ "\021split_type_config\"\031\n"
+ "\027ImportDocumentsResponse\"\200\005\n"
+ "\027ImportDocumentsMetadata\022Q\n"
- + "\017common_metadata\030\001"
- + " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\022s\n"
- + "\032individual_import_statuses\030\002 \003(\0132O.google.cloud.d"
- + "ocumentai.v1beta3.ImportDocumentsMetadata.IndividualImportStatus\022\177\n"
- + " import_config_validation_results\030\004 \003(\0132U.google.clou"
- + "d.documentai.v1beta3.ImportDocumentsMetadata.ImportConfigValidationResult\022\034\n"
+ + "\017common_metadata\030\001 \001(\01328."
+ + "google.cloud.documentai.v1beta3.CommonOperationMetadata\022s\n"
+ + "\032individual_import_statuses\030\002 \003(\0132O.google.cloud.documentai.v1"
+ + "beta3.ImportDocumentsMetadata.IndividualImportStatus\022\177\n"
+ + " import_config_validation_results\030\004 \003(\0132U.google.cloud.documentai"
+ + ".v1beta3.ImportDocumentsMetadata.ImportConfigValidationResult\022\034\n"
+ "\024total_document_count\030\003 \001(\005\032\237\001\n"
+ "\026IndividualImportStatus\022\030\n"
+ "\020input_gcs_source\030\001 \001(\t\022\"\n"
@@ -201,21 +202,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021return_total_size\030\006 \001(\010B\003\340A\001\022\021\n"
+ "\004skip\030\010 \001(\005B\003\340A\001\"\222\001\n"
+ "\025ListDocumentsResponse\022L\n"
- + "\021document_metadata\030\001"
- + " \003(\01321.google.cloud.documentai.v1beta3.DocumentMetadata\022\027\n"
+ + "\021document_metadata\030\001 \003(\01321.goog"
+ + "le.cloud.documentai.v1beta3.DocumentMetadata\022\027\n"
+ "\017next_page_token\030\002 \001(\t\022\022\n\n"
+ "total_size\030\003 \001(\005\"\213\001\n"
+ "\033BatchDeleteDocumentsRequest\022\024\n"
+ "\007dataset\030\001 \001(\tB\003\340A\002\022V\n"
- + "\021dataset_documents\030\003 \001(\01326.google.cloud.do"
- + "cumentai.v1beta3.BatchDatasetDocumentsB\003\340A\002\"\036\n"
+ + "\021dataset_documents\030\003"
+ + " \001(\01326.google.cloud.documentai.v1beta3.BatchDatasetDocumentsB\003\340A\002\"\036\n"
+ "\034BatchDeleteDocumentsResponse\"\271\003\n"
+ "\034BatchDeleteDocumentsMetadata\022Q\n"
- + "\017common_metadata\030\001"
- + " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\022\203\001\n"
- + " individual_batch_delete_statuses\030\002 \003(\0132Y.goo"
- + "gle.cloud.documentai.v1beta3.BatchDelete"
- + "DocumentsMetadata.IndividualBatchDeleteStatus\022\034\n"
+ + "\017common_metadata\030\001 \001("
+ + "\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\022\203\001\n"
+ + " individual_batch_delete_statuses\030\002 \003(\0132Y.google.cloud.do"
+ + "cumentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus\022\034\n"
+ "\024total_document_count\030\003 \001(\005\022\034\n"
+ "\024error_document_count\030\004 \001(\005\032\203\001\n"
+ "\033IndividualBatchDeleteStatus\022@\n"
@@ -226,20 +226,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\'documentai.googleapis.com/DatasetSchema\022\033\n"
+ "\023visible_fields_only\030\002 \001(\010\"\232\001\n"
+ "\032UpdateDatasetSchemaRequest\022K\n"
- + "\016dataset_schema\030\001"
- + " \001(\0132..google.cloud.documentai.v1beta3.DatasetSchemaB\003\340A\002\022/\n"
+ + "\016dataset_schema\030\001 \001("
+ + "\0132..google.cloud.documentai.v1beta3.DatasetSchemaB\003\340A\002\022/\n"
+ "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"/\n"
+ "\021DocumentPageRange\022\r\n"
+ "\005start\030\001 \001(\005\022\013\n"
+ "\003end\030\002 \001(\005\"\227\002\n"
+ "\020DocumentMetadata\022@\n"
- + "\013document_id\030\001"
- + " \001(\0132+.google.cloud.documentai.v1beta3.DocumentId\022\022\n\n"
+ + "\013document_id\030\001 \001(\0132+.goo"
+ + "gle.cloud.documentai.v1beta3.DocumentId\022\022\n\n"
+ "page_count\030\002 \001(\005\022G\n"
- + "\014dataset_type\030\003"
- + " \001(\01621.google.cloud.documentai.v1beta3.DatasetSplitType\022N\n"
- + "\016labeling_state\030\005"
- + " \001(\01626.google.cloud.documentai.v1beta3.DocumentLabelingState\022\024\n"
+ + "\014dataset_type\030\003 \001("
+ + "\01621.google.cloud.documentai.v1beta3.DatasetSplitType\022N\n"
+ + "\016labeling_state\030\005 \001(\01626.g"
+ + "oogle.cloud.documentai.v1beta3.DocumentLabelingState\022\024\n"
+ "\014display_name\030\006 \001(\t*\205\001\n"
+ "\020DatasetSplitType\022\"\n"
+ "\036DATASET_SPLIT_TYPE_UNSPECIFIED\020\000\022\027\n"
@@ -252,47 +252,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\022DOCUMENT_UNLABELED\020\002\022\031\n"
+ "\025DOCUMENT_AUTO_LABELED\020\0032\263\016\n"
+ "\017DocumentService\022\376\001\n\r"
- + "UpdateDataset\0225.google.cloud.documentai.v1beta3.Updat"
- + "eDatasetRequest\032\035.google.longrunning.Operation\"\226\001\312A)\n"
- + "\007Dataset\022\036UpdateDatasetOper"
- + "ationMetadata\332A\023dataset,update_mask\202\323\344\223\002"
- + "N2C/v1beta3/{dataset.name=projects/*/loc"
- + "ations/*/processors/*/dataset}:\007dataset\022\204\002\n"
- + "\017ImportDocuments\0227.google.cloud.docum"
- + "entai.v1beta3.ImportDocumentsRequest\032\035.google.longrunning.Operation\"\230\001\312A2\n"
- + "\027ImportDocumentsResponse\022\027ImportDocumentsMetad"
- + "ata\332A\007dataset\202\323\344\223\002S\"N/v1beta3/{dataset=p"
- + "rojects/*/locations/*/processors/*/dataset}:importDocuments:\001*\022\326\001\n"
- + "\013GetDocument\0223.google.cloud.documentai.v1beta3.GetDocu"
- + "mentRequest\0324.google.cloud.documentai.v1"
- + "beta3.GetDocumentResponse\"\\\332A\007dataset\202\323\344"
- + "\223\002L\022J/v1beta3/{dataset=projects/*/locati"
- + "ons/*/processors/*/dataset}:getDocument\022\341\001\n\r"
- + "ListDocuments\0225.google.cloud.documentai.v1beta3.ListDocumentsRequest\0326.googl"
- + "e.cloud.documentai.v1beta3.ListDocuments"
- + "Response\"a\332A\007dataset\202\323\344\223\002Q\"L/v1beta3/{da"
- + "taset=projects/*/locations/*/processors/*/dataset}:listDocuments:\001*\022\235\002\n"
- + "\024BatchDeleteDocuments\022<.google.cloud.documentai.v"
- + "1beta3.BatchDeleteDocumentsRequest\032\035.google.longrunning.Operation\"\247\001\312A<\n"
- + "\034BatchDeleteDocumentsResponse\022\034BatchDeleteDocume"
- + "ntsMetadata\332A\007dataset\202\323\344\223\002X\"S/v1beta3/{d"
- + "ataset=projects/*/locations/*/processors/*/dataset}:batchDeleteDocuments:\001*\022\326\001\n"
- + "\020GetDatasetSchema\0228.google.cloud.document"
- + "ai.v1beta3.GetDatasetSchemaRequest\032..google.cloud.documentai.v1beta3.DatasetSche"
- + "ma\"X\332A\004name\202\323\344\223\002K\022I/v1beta3/{name=projec"
- + "ts/*/locations/*/processors/*/dataset/datasetSchema}\022\222\002\n"
- + "\023UpdateDatasetSchema\022;.google.cloud.documentai.v1beta3.UpdateDat"
- + "asetSchemaRequest\032..google.cloud.documen"
- + "tai.v1beta3.DatasetSchema\"\215\001\332A\032dataset_s"
- + "chema,update_mask\202\323\344\223\002j2X/v1beta3/{datas"
- + "et_schema.name=projects/*/locations/*/processors/*/dataset/datasetSchema}:\016datas"
- + "et_schema\032M\312A\031documentai.googleapis.com\322"
- + "A.https://www.googleapis.com/auth/cloud-platformB\360\001\n"
- + "#com.google.cloud.documentai.v1beta3B\031DocumentAiDocumentServiceP\001ZCc"
- + "loud.google.com/go/documentai/apiv1beta3"
- + "/documentaipb;documentaipb\252\002\037Google.Clou"
- + "d.DocumentAI.V1Beta3\312\002\037Google\\Cloud\\Docu"
- + "mentAI\\V1beta3\352\002\"Google::Cloud::DocumentAI::V1beta3b\006proto3"
+ + "UpdateDataset\0225.google.cloud.documentai.v1beta3.UpdateDatasetRequ"
+ + "est\032\035.google.longrunning.Operation\"\226\001\312A)\n"
+ + "\007Dataset\022\036UpdateDatasetOperationMetadat"
+ + "a\332A\023dataset,update_mask\202\323\344\223\002N2C/v1beta3/"
+ + "{dataset.name=projects/*/locations/*/processors/*/dataset}:\007dataset\022\204\002\n"
+ + "\017ImportDocuments\0227.google.cloud.documentai.v1beta"
+ + "3.ImportDocumentsRequest\032\035.google.longrunning.Operation\"\230\001\312A2\n"
+ + "\027ImportDocumentsResponse\022\027ImportDocumentsMetadata\332A\007datase"
+ + "t\202\323\344\223\002S\"N/v1beta3/{dataset=projects/*/lo"
+ + "cations/*/processors/*/dataset}:importDocuments:\001*\022\326\001\n"
+ + "\013GetDocument\0223.google.cloud.documentai.v1beta3.GetDocumentRequest\032"
+ + "4.google.cloud.documentai.v1beta3.GetDoc"
+ + "umentResponse\"\\\332A\007dataset\202\323\344\223\002L\022J/v1beta"
+ + "3/{dataset=projects/*/locations/*/processors/*/dataset}:getDocument\022\341\001\n\r"
+ + "ListDocuments\0225.google.cloud.documentai.v1beta3."
+ + "ListDocumentsRequest\0326.google.cloud.docu"
+ + "mentai.v1beta3.ListDocumentsResponse\"a\332A"
+ + "\007dataset\202\323\344\223\002Q\"L/v1beta3/{dataset=projec"
+ + "ts/*/locations/*/processors/*/dataset}:listDocuments:\001*\022\235\002\n"
+ + "\024BatchDeleteDocuments\022<.google.cloud.documentai.v1beta3.Batch"
+ + "DeleteDocumentsRequest\032\035.google.longrunning.Operation\"\247\001\312A<\n"
+ + "\034BatchDeleteDocumentsResponse\022\034BatchDeleteDocumentsMetadata\332"
+ + "A\007dataset\202\323\344\223\002X\"S/v1beta3/{dataset=proje"
+ + "cts/*/locations/*/processors/*/dataset}:batchDeleteDocuments:\001*\022\326\001\n"
+ + "\020GetDatasetSchema\0228.google.cloud.documentai.v1beta3.G"
+ + "etDatasetSchemaRequest\032..google.cloud.do"
+ + "cumentai.v1beta3.DatasetSchema\"X\332A\004name\202"
+ + "\323\344\223\002K\022I/v1beta3/{name=projects/*/locatio"
+ + "ns/*/processors/*/dataset/datasetSchema}\022\222\002\n"
+ + "\023UpdateDatasetSchema\022;.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRe"
+ + "quest\032..google.cloud.documentai.v1beta3."
+ + "DatasetSchema\"\215\001\332A\032dataset_schema,update"
+ + "_mask\202\323\344\223\002j2X/v1beta3/{dataset_schema.na"
+ + "me=projects/*/locations/*/processors/*/d"
+ + "ataset/datasetSchema}:\016dataset_schema\032M\312"
+ + "A\031documentai.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\360\001\n"
+ + "#com.google.cloud.documentai.v1beta3B\031DocumentAiDocumentServiceP\001ZCcloud.google."
+ + "com/go/documentai/apiv1beta3/documentaip"
+ + "b;documentaipb\252\002\037Google.Cloud.DocumentAI"
+ + ".V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\V1bet"
+ + "a3\352\002\"Google::Cloud::DocumentAI::V1beta3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -341,7 +341,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_ImportDocumentsRequest_BatchDocumentsImportConfig_descriptor,
new java.lang.String[] {
- "DatasetSplit", "AutoSplitConfig", "BatchInputConfig", "SplitTypeConfig",
+ "DatasetSplit",
+ "AutoSplitConfig",
+ "BatchInputConfig",
+ "DocumentType",
+ "SplitTypeConfig",
});
internal_static_google_cloud_documentai_v1beta3_ImportDocumentsRequest_BatchDocumentsImportConfig_AutoSplitConfig_descriptor =
internal_static_google_cloud_documentai_v1beta3_ImportDocumentsRequest_BatchDocumentsImportConfig_descriptor
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiEvaluation.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiEvaluation.java
index fe43f0a6ea8d..2b7a5ed2c8b2 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiEvaluation.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiEvaluation.java
@@ -64,6 +64,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_documentai_v1beta3_Evaluation_MultiConfidenceMetrics_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_documentai_v1beta3_Evaluation_MultiConfidenceMetrics_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_EntityMetricsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_EntityMetricsEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_documentai_v1beta3_Evaluation_EntityMetricsEntry_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -77,77 +85,83 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n"
- + "0google/cloud/documentai/v1beta3/evaluation.proto\022\037google.cloud.documentai.v1be"
+ "\n0google/cloud/documentai/v1beta3/evalua"
+ + "tion.proto\022\037google.cloud.documentai.v1be"
+ "ta3\032\037google/api/field_behavior.proto\032\031go"
- + "ogle/api/resource.proto\032\037google/protobuf/timestamp.proto\"\215\002\n"
- + "\023EvaluationReference\022\021\n"
- + "\toperation\030\001 \001(\t\022=\n\n"
- + "evaluation\030\002 \001(\tB)\372A&\n"
- + "$documentai.googleapis.com/Evaluation\022N\n"
- + "\021aggregate_metrics\030\004 \001(\01323.google.c"
- + "loud.documentai.v1beta3.Evaluation.Metrics\022T\n"
- + "\027aggregate_metrics_exact\030\005 \001(\01323.go"
- + "ogle.cloud.documentai.v1beta3.Evaluation.Metrics\"\215\016\n\n"
- + "Evaluation\022\014\n"
- + "\004name\030\001 \001(\t\022/\n"
- + "\013create_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022O\n"
- + "\021document_counters\030\005 \001(\01324.goog"
- + "le.cloud.documentai.v1beta3.Evaluation.Counters\022`\n"
- + "\024all_entities_metrics\030\003 \001(\0132B."
- + "google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics\022V\n"
- + "\016entity_metrics\030\004"
- + " \003(\0132>.google.cloud.documentai.v1beta3.Evaluation.EntityMetricsEntry\022\024\n"
- + "\014kms_key_name\030\006 \001(\t\022\034\n"
- + "\024kms_key_version_name\030\007 \001(\t\032\215\001\n"
- + "\010Counters\022\035\n"
- + "\025input_documents_count\030\001 \001(\005\022\037\n"
- + "\027invalid_documents_count\030\002 \001(\005\022\036\n"
- + "\026failed_documents_count\030\003 \001(\005\022!\n"
- + "\031evaluated_documents_count\030\004 \001(\005\032\315\002\n"
- + "\007Metrics\022\021\n"
- + "\tprecision\030\001 \001(\002\022\016\n"
- + "\006recall\030\002 \001(\002\022\020\n"
- + "\010f1_score\030\003 \001(\002\022#\n"
- + "\033predicted_occurrences_count\030\004 \001(\005\022&\n"
- + "\036ground_truth_occurrences_count\030\005 \001(\005\022 \n"
- + "\030predicted_document_count\030\n"
- + " \001(\005\022#\n"
- + "\033ground_truth_document_count\030\013 \001(\005\022\034\n"
- + "\024true_positives_count\030\006 \001(\005\022\035\n"
- + "\025false_positives_count\030\007 \001(\005\022\035\n"
- + "\025false_negatives_count\030\010 \001(\005\022\035\n"
- + "\025total_documents_count\030\t \001(\005\032x\n"
- + "\026ConfidenceLevelMetrics\022\030\n"
- + "\020confidence_level\030\001 \001(\002\022D\n"
- + "\007metrics\030\002 \001(\01323.goo"
- + "gle.cloud.documentai.v1beta3.Evaluation.Metrics\032\200\004\n"
- + "\026MultiConfidenceMetrics\022d\n"
- + "\030confidence_level_metrics\030\001 \003(\0132B.google.cl"
- + "oud.documentai.v1beta3.Evaluation.ConfidenceLevelMetrics\022j\n"
- + "\036confidence_level_metrics_exact\030\004 \003(\0132B.google.cloud.document"
- + "ai.v1beta3.Evaluation.ConfidenceLevelMetrics\022\r\n"
- + "\005auprc\030\002 \001(\002\022#\n"
- + "\033estimated_calibration_error\030\003 \001(\002\022\023\n"
- + "\013auprc_exact\030\005 \001(\002\022)\n"
- + "!estimated_calibration_error_exact\030\006 \001(\002\022d\n"
- + "\014metrics_type\030\007 \001(\0162N.google.cloud.do"
- + "cumentai.v1beta3.Evaluation.MultiConfidenceMetrics.MetricsType\":\n"
- + "\013MetricsType\022\034\n"
- + "\030METRICS_TYPE_UNSPECIFIED\020\000\022\r\n"
- + "\tAGGREGATE\020\001\032x\n"
- + "\022EntityMetricsEntry\022\013\n"
- + "\003key\030\001 \001(\t\022Q\n"
- + "\005value\030\002 \001(\0132B.google.cloud.documentai.v"
- + "1beta3.Evaluation.MultiConfidenceMetrics:\0028\001:\251\001\352A\245\001\n"
- + "$documentai.googleapis.com/Evaluation\022}projects/{project}/locations/"
- + "{location}/processors/{processor}/proces"
- + "sorVersions/{processor_version}/evaluations/{evaluation}B\353\001\n"
- + "#com.google.cloud.documentai.v1beta3B\024DocumentAiEvaluationP\001"
- + "ZCcloud.google.com/go/documentai/apiv1be"
- + "ta3/documentaipb;documentaipb\252\002\037Google.C"
- + "loud.DocumentAI.V1Beta3\312\002\037Google\\Cloud\\D"
- + "ocumentAI\\V1beta3\352\002\"Google::Cloud::DocumentAI::V1beta3b\006proto3"
+ + "ogle/api/resource.proto\032\037google/protobuf"
+ + "/timestamp.proto\"\215\002\n\023EvaluationReference"
+ + "\022\021\n\toperation\030\001 \001(\t\022=\n\nevaluation\030\002 \001(\tB"
+ + ")\372A&\n$documentai.googleapis.com/Evaluati"
+ + "on\022N\n\021aggregate_metrics\030\004 \001(\01323.google.c"
+ + "loud.documentai.v1beta3.Evaluation.Metri"
+ + "cs\022T\n\027aggregate_metrics_exact\030\005 \001(\01323.go"
+ + "ogle.cloud.documentai.v1beta3.Evaluation"
+ + ".Metrics\"\270\022\n\nEvaluation\022\014\n\004name\030\001 \001(\t\022/\n"
+ + "\013create_time\030\002 \001(\0132\032.google.protobuf.Tim"
+ + "estamp\022O\n\021document_counters\030\005 \001(\01324.goog"
+ + "le.cloud.documentai.v1beta3.Evaluation.C"
+ + "ounters\022`\n\024all_entities_metrics\030\003 \001(\0132B."
+ + "google.cloud.documentai.v1beta3.Evaluati"
+ + "on.MultiConfidenceMetrics\022V\n\016entity_metr"
+ + "ics\030\004 \003(\0132>.google.cloud.documentai.v1be"
+ + "ta3.Evaluation.EntityMetricsEntry\022\024\n\014kms"
+ + "_key_name\030\006 \001(\t\022\034\n\024kms_key_version_name\030"
+ + "\007 \001(\t\022Q\n\trevisions\030\t \003(\0132>.google.cloud."
+ + "documentai.v1beta3.Evaluation.Evaluation"
+ + "Revision\032\215\001\n\010Counters\022\035\n\025input_documents"
+ + "_count\030\001 \001(\005\022\037\n\027invalid_documents_count\030"
+ + "\002 \001(\005\022\036\n\026failed_documents_count\030\003 \001(\005\022!\n"
+ + "\031evaluated_documents_count\030\004 \001(\005\032\315\002\n\007Met"
+ + "rics\022\021\n\tprecision\030\001 \001(\002\022\016\n\006recall\030\002 \001(\002\022"
+ + "\020\n\010f1_score\030\003 \001(\002\022#\n\033predicted_occurrenc"
+ + "es_count\030\004 \001(\005\022&\n\036ground_truth_occurrenc"
+ + "es_count\030\005 \001(\005\022 \n\030predicted_document_cou"
+ + "nt\030\n \001(\005\022#\n\033ground_truth_document_count\030"
+ + "\013 \001(\005\022\034\n\024true_positives_count\030\006 \001(\005\022\035\n\025f"
+ + "alse_positives_count\030\007 \001(\005\022\035\n\025false_nega"
+ + "tives_count\030\010 \001(\005\022\035\n\025total_documents_cou"
+ + "nt\030\t \001(\005\032x\n\026ConfidenceLevelMetrics\022\030\n\020co"
+ + "nfidence_level\030\001 \001(\002\022D\n\007metrics\030\002 \001(\01323."
+ + "google.cloud.documentai.v1beta3.Evaluati"
+ + "on.Metrics\032\200\004\n\026MultiConfidenceMetrics\022d\n"
+ + "\030confidence_level_metrics\030\001 \003(\0132B.google"
+ + ".cloud.documentai.v1beta3.Evaluation.Con"
+ + "fidenceLevelMetrics\022j\n\036confidence_level_"
+ + "metrics_exact\030\004 \003(\0132B.google.cloud.docum"
+ + "entai.v1beta3.Evaluation.ConfidenceLevel"
+ + "Metrics\022\r\n\005auprc\030\002 \001(\002\022#\n\033estimated_cali"
+ + "bration_error\030\003 \001(\002\022\023\n\013auprc_exact\030\005 \001(\002"
+ + "\022)\n!estimated_calibration_error_exact\030\006 "
+ + "\001(\002\022d\n\014metrics_type\030\007 \001(\0162N.google.cloud"
+ + ".documentai.v1beta3.Evaluation.MultiConf"
+ + "idenceMetrics.MetricsType\":\n\013MetricsType"
+ + "\022\034\n\030METRICS_TYPE_UNSPECIFIED\020\000\022\r\n\tAGGREG"
+ + "ATE\020\001\032\325\003\n\022EvaluationRevision\022\030\n\013revision"
+ + "_id\030\001 \001(\tB\003\340A\003\022T\n\021document_counters\030\002 \001("
+ + "\01324.google.cloud.documentai.v1beta3.Eval"
+ + "uation.CountersB\003\340A\003\022e\n\024all_entities_met"
+ + "rics\030\003 \001(\0132B.google.cloud.documentai.v1b"
+ + "eta3.Evaluation.MultiConfidenceMetricsB\003"
+ + "\340A\003\022n\n\016entity_metrics\030\004 \003(\0132Q.google.clo"
+ + "ud.documentai.v1beta3.Evaluation.Evaluat"
+ + "ionRevision.EntityMetricsEntryB\003\340A\003\032x\n\022E"
+ + "ntityMetricsEntry\022\013\n\003key\030\001 \001(\t\022Q\n\005value\030"
+ + "\002 \001(\0132B.google.cloud.documentai.v1beta3."
+ + "Evaluation.MultiConfidenceMetrics:\0028\001\032x\n"
+ + "\022EntityMetricsEntry\022\013\n\003key\030\001 \001(\t\022Q\n\005valu"
+ + "e\030\002 \001(\0132B.google.cloud.documentai.v1beta"
+ + "3.Evaluation.MultiConfidenceMetrics:\0028\001:"
+ + "\251\001\352A\245\001\n$documentai.googleapis.com/Evalua"
+ + "tion\022}projects/{project}/locations/{loca"
+ + "tion}/processors/{processor}/processorVe"
+ + "rsions/{processor_version}/evaluations/{"
+ + "evaluation}B\353\001\n#com.google.cloud.documen"
+ + "tai.v1beta3B\024DocumentAiEvaluationP\001ZCclo"
+ + "ud.google.com/go/documentai/apiv1beta3/d"
+ + "ocumentaipb;documentaipb\252\002\037Google.Cloud."
+ + "DocumentAI.V1Beta3\312\002\037Google\\Cloud\\Docume"
+ + "ntAI\\V1beta3\352\002\"Google::Cloud::DocumentAI"
+ + "::V1beta3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -178,6 +192,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"EntityMetrics",
"KmsKeyName",
"KmsKeyVersionName",
+ "Revisions",
});
internal_static_google_cloud_documentai_v1beta3_Evaluation_Counters_descriptor =
internal_static_google_cloud_documentai_v1beta3_Evaluation_descriptor.getNestedType(0);
@@ -230,8 +245,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"EstimatedCalibrationErrorExact",
"MetricsType",
});
- internal_static_google_cloud_documentai_v1beta3_Evaluation_EntityMetricsEntry_descriptor =
+ internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_descriptor =
internal_static_google_cloud_documentai_v1beta3_Evaluation_descriptor.getNestedType(4);
+ internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_descriptor,
+ new java.lang.String[] {
+ "RevisionId", "DocumentCounters", "AllEntitiesMetrics", "EntityMetrics",
+ });
+ internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_EntityMetricsEntry_descriptor =
+ internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_descriptor
+ .getNestedType(0);
+ internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_EntityMetricsEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_EntityMetricsEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_cloud_documentai_v1beta3_Evaluation_EntityMetricsEntry_descriptor =
+ internal_static_google_cloud_documentai_v1beta3_Evaluation_descriptor.getNestedType(5);
internal_static_google_cloud_documentai_v1beta3_Evaluation_EntityMetricsEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_Evaluation_EntityMetricsEntry_descriptor,
@@ -244,6 +276,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.TimestampProto.getDescriptor();
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.ResourceProto.resource);
registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java
index 0e58eb9bb769..711f2795a39b 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java
@@ -304,6 +304,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_documentai_v1beta3_ImportProcessorVersionMetadata_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_documentai_v1beta3_ImportProcessorVersionMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -325,7 +329,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "proto\0324google/cloud/documentai/v1beta3/processor_type.proto\032#google/longrunning/"
+ "operations.proto\032\033google/protobuf/empty.proto\032"
+ " google/protobuf/field_mask.proto\032"
- + "\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\316\007\n"
+ + "\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\357\007\n"
+ "\016ProcessOptions\022j\n"
+ "\030individual_page_selector\030\005 \001(\0132F.google."
+ "cloud.documentai.v1beta3.ProcessOptions.IndividualPageSelectorH\000\022\024\n\n"
@@ -335,7 +339,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "layout_config\030\t \001(\0132<.goog"
+ "le.cloud.documentai.v1beta3.ProcessOptions.LayoutConfigB\003\340A\001\022M\n"
+ "\017schema_override\030\010"
- + " \001(\0132/.google.cloud.documentai.v1beta3.DocumentSchemaB\003\340A\001\032\200\004\n"
+ + " \001(\0132/.google.cloud.documentai.v1beta3.DocumentSchemaB\003\340A\001\032\241\004\n"
+ "\014LayoutConfig\022i\n"
+ "\017chunking_config\030\001 \001(\0132K.google.cloud.doc"
+ "umentai.v1beta3.ProcessOptions.LayoutConfig.ChunkingConfigB\003\340A\001\022\032\n\r"
@@ -344,7 +348,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\027enable_image_annotation\030\004 \001(\010B\003\340A\001\022$\n"
+ "\027enable_image_extraction\030\007 \001(\010B\003\340A\001\022&\n"
+ "\031enable_llm_layout_parsing\030\005 \001(\010B\003\340A\001\022$\n"
- + "\027enable_table_annotation\030\006 \001(\010B\003\340A\001\032\252\001\n"
+ + "\027enable_table_annotation\030\006 \001(\010B\003\340A\001\022\037\n"
+ + "\022enable_table_split\030\010 \001(\010B\003\340A\001\032\252\001\n"
+ "\016ChunkingConfig\022\027\n\n"
+ "chunk_size\030\001 \001(\005B\003\340A\001\022&\n"
+ "\031include_ancestor_headings\030\002 \001(\010B\003\340A\001\022)\n"
@@ -352,10 +357,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\037breakpoint_percentile_threshold\030\004 \001(\005B\003\340A\001\032,\n"
+ "\026IndividualPageSelector\022\022\n"
+ "\005pages\030\001 \003(\005B\003\340A\001B\014\n\n"
- + "page_range\"\371\004\n"
+ + "page_range\"\375\004\n"
+ "\016ProcessRequest\022D\n"
- + "\017inline_document\030\004 \001(\0132)"
- + ".google.cloud.documentai.v1beta3.DocumentH\000\022D\n"
+ + "\017inline_document\030\004"
+ + " \001(\0132).google.cloud.documentai.v1beta3.DocumentH\000\022D\n"
+ "\014raw_document\030\005"
+ " \001(\0132,.google.cloud.documentai.v1beta3.RawDocumentH\000\022D\n"
+ "\014gcs_document\030\010"
@@ -363,22 +368,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004name\030\001 \001(\tB\t\340A\002\372A\003\n"
+ "\001*\022?\n"
+ "\010document\030\002"
- + " \001(\0132).google.cloud.documentai.v1beta3.DocumentB\002\030\001\022\031\n"
- + "\021skip_human_review\030\003 \001(\010\022.\n\n"
+ + " \001(\0132).google.cloud.documentai.v1beta3.DocumentB\002\030\001\022\035\n"
+ + "\021skip_human_review\030\003 \001(\010B\002\030\001\022.\n\n"
+ "field_mask\030\006 \001(\0132\032.google.protobuf.FieldMask\022H\n"
+ "\017process_options\030\007"
+ " \001(\0132/.google.cloud.documentai.v1beta3.ProcessOptions\022P\n"
+ "\006labels\030\n"
- + " \003(\0132;"
- + ".google.cloud.documentai.v1beta3.ProcessRequest.LabelsEntryB\003\340A\001\022\033\n"
+ + " \003(\0132;.go"
+ + "ogle.cloud.documentai.v1beta3.ProcessRequest.LabelsEntryB\003\340A\001\022\033\n"
+ "\016imageless_mode\030\013 \001(\010B\003\340A\001\032-\n"
+ "\013LabelsEntry\022\013\n"
- + "\003key\030\001 \001(\t\022\r\n"
+ + "\003key\030\001 \001(\t\022\r"
+ + "\n"
+ "\005value\030\002 \001(\t:\0028\001B\010\n"
+ "\006source\"\363\001\n"
+ "\021HumanReviewStatus\022G\n"
- + "\005state\030\001 \001(\01628.google.clo"
- + "ud.documentai.v1beta3.HumanReviewStatus.State\022\025\n\r"
+ + "\005state\030\001 \001(\01628.google.cloud."
+ + "documentai.v1beta3.HumanReviewStatus.State\022\025\n\r"
+ "state_message\030\002 \001(\t\022\036\n"
+ "\026human_review_operation\030\003 \001(\t\"^\n"
+ "\005State\022\025\n"
@@ -391,23 +397,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\010document\030\001 \001(\0132).google.cloud.documentai.v1beta3.Document\022\"\n"
+ "\026human_review_operation\030\002 \001(\tB\002\030\001\022O\n"
+ "\023human_review_status\030\003"
- + " \001(\01322.google.cloud.documentai.v1beta3.HumanReviewStatus\"\373\005\n"
+ + " \001(\01322.google.cloud.documentai.v1beta3.HumanReviewStatus\"\377\005\n"
+ "\023BatchProcessRequest\022\027\n"
+ "\004name\030\001 \001(\tB\t\340A\002\372A\003\n"
+ "\001*\022`\n\r"
- + "input_configs\030\002 \003(\0132E.google.clou"
- + "d.documentai.v1beta3.BatchProcessRequest.BatchInputConfigB\002\030\001\022a\n\r"
- + "output_config\030\003 \001(\0132F.google.cloud.documentai.v1beta3.B"
- + "atchProcessRequest.BatchOutputConfigB\002\030\001\022S\n"
- + "\017input_documents\030\005 \001(\0132:.google.cloud"
- + ".documentai.v1beta3.BatchDocumentsInputConfig\022U\n"
- + "\026document_output_config\030\006 \001(\01325."
- + "google.cloud.documentai.v1beta3.DocumentOutputConfig\022\031\n"
- + "\021skip_human_review\030\004 \001(\010\022H\n"
+ + "input_configs\030\002 \003(\0132E.google.cloud.d"
+ + "ocumentai.v1beta3.BatchProcessRequest.BatchInputConfigB\002\030\001\022a\n\r"
+ + "output_config\030\003 \001("
+ + "\0132F.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfigB\002\030\001\022S\n"
+ + "\017input_documents\030\005 \001(\0132:.google.cloud.do"
+ + "cumentai.v1beta3.BatchDocumentsInputConfig\022U\n"
+ + "\026document_output_config\030\006 \001(\01325.goo"
+ + "gle.cloud.documentai.v1beta3.DocumentOutputConfig\022\035\n"
+ + "\021skip_human_review\030\004 \001(\010B\002\030\001\022H\n"
+ "\017process_options\030\007"
+ " \001(\0132/.google.cloud.documentai.v1beta3.ProcessOptions\022U\n"
- + "\006labels\030\t \003(\0132@.google.cloud.documentai.v1be"
- + "ta3.BatchProcessRequest.LabelsEntryB\003\340A\001\032=\n"
+ + "\006labels\030\t \003(\0132@.google.cloud.documentai.v1b"
+ + "eta3.BatchProcessRequest.LabelsEntryB\003\340A\001\032=\n"
+ "\020BatchInputConfig\022\022\n\n"
+ "gcs_source\030\001 \001(\t\022\021\n"
+ "\tmime_type\030\002 \001(\t:\002\030\001\0320\n"
@@ -418,20 +424,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005value\030\002 \001(\t:\0028\001\"\026\n"
+ "\024BatchProcessResponse\"\262\005\n"
+ "\024BatchProcessMetadata\022J\n"
- + "\005state\030\001 \001(\0162;.google.cloud."
- + "documentai.v1beta3.BatchProcessMetadata.State\022\025\n\r"
+ + "\005state\030\001 \001(\0162;.google.cloud"
+ + ".documentai.v1beta3.BatchProcessMetadata.State\022\025\n\r"
+ "state_message\030\002 \001(\t\022/\n"
+ "\013create_time\030\003 \001(\0132\032.google.protobuf.Timestamp\022/\n"
+ "\013update_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022r\n"
- + "\033individual_process_statuses\030\005 \003(\0132M.google.cloud.documentai.v1beta3.Ba"
- + "tchProcessMetadata.IndividualProcessStatus\032\354\001\n"
+ + "\033individual_process_statuses\030\005 \003(\0132M.google.cloud.documentai.v1beta3.B"
+ + "atchProcessMetadata.IndividualProcessStatus\032\354\001\n"
+ "\027IndividualProcessStatus\022\030\n"
+ "\020input_gcs_source\030\001 \001(\t\022\"\n"
+ "\006status\030\002 \001(\0132\022.google.rpc.Status\022\036\n"
+ "\026output_gcs_destination\030\003 \001(\t\022\"\n"
+ "\026human_review_operation\030\004 \001(\tB\002\030\001\022O\n"
- + "\023human_review_status\030\005 \001(\01322.google.c"
- + "loud.documentai.v1beta3.HumanReviewStatus\"r\n"
+ + "\023human_review_status\030\005 \001(\01322.google."
+ + "cloud.documentai.v1beta3.HumanReviewStatus\"r\n"
+ "\005State\022\025\n"
+ "\021STATE_UNSPECIFIED\020\000\022\013\n"
+ "\007WAITING\020\001\022\013\n"
@@ -444,8 +450,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006parent\030\001 \001("
+ "\tB/\340A\002\372A)\022\'documentai.googleapis.com/ProcessorType\"f\n"
+ "\033FetchProcessorTypesResponse\022G\n"
- + "\017processor_types\030\001"
- + " \003(\0132..google.cloud.documentai.v1beta3.ProcessorType\"\203\001\n"
+ + "\017processor_types\030\001 \003(\0132..google.c"
+ + "loud.documentai.v1beta3.ProcessorType\"\203\001\n"
+ "\031ListProcessorTypesRequest\022?\n"
+ "\006parent\030\001 \001("
+ "\tB/\340A\002\372A)\022\'documentai.googleapis.com/ProcessorType\022\021\n"
@@ -485,8 +491,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004name\030\001 \001(\tB2\340A\002\372A,\n"
+ "*documentai.googleapis.com/ProcessorVersion\"s\n"
+ "\036DeleteProcessorVersionMetadata\022Q\n"
- + "\017common_metadata\030\001 \001"
- + "(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"a\n"
+ + "\017common_metadata\030\001 "
+ + "\001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"a\n"
+ "\035DeployProcessorVersionRequest\022@\n"
+ "\004name\030\001 \001(\tB2\340A\002\372A,\n"
+ "*documentai.googleapis.com/ProcessorVersion\" \n"
@@ -499,33 +505,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "*documentai.googleapis.com/ProcessorVersion\"\"\n"
+ " UndeployProcessorVersionResponse\"u\n"
+ " UndeployProcessorVersionMetadata\022Q\n"
- + "\017common_metadata\030\001 \001(\01328.google.cl"
- + "oud.documentai.v1beta3.CommonOperationMetadata\"\231\001\n"
+ + "\017common_metadata\030\001 \001(\01328.google.c"
+ + "loud.documentai.v1beta3.CommonOperationMetadata\"\231\001\n"
+ "\026CreateProcessorRequest\022;\n"
+ "\006parent\030\001 \001("
+ "\tB+\340A\002\372A%\022#documentai.googleapis.com/Processor\022B\n"
- + "\tprocessor\030\002 \001(\0132*.goog"
- + "le.cloud.documentai.v1beta3.ProcessorB\003\340A\002\"S\n"
+ + "\tprocessor\030\002 \001(\0132*.goo"
+ + "gle.cloud.documentai.v1beta3.ProcessorB\003\340A\002\"S\n"
+ "\026DeleteProcessorRequest\0229\n"
+ "\004name\030\001 \001(\tB+\340A\002\372A%\n"
+ "#documentai.googleapis.com/Processor\"l\n"
+ "\027DeleteProcessorMetadata\022Q\n"
- + "\017common_metadata\030\005"
- + " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"S\n"
+ + "\017common_metadata\030\005 \001(\01328.google.cloud.docu"
+ + "mentai.v1beta3.CommonOperationMetadata\"S\n"
+ "\026EnableProcessorRequest\0229\n"
+ "\004name\030\001 \001(\tB+\340A\002\372A%\n"
+ "#documentai.googleapis.com/Processor\"\031\n"
+ "\027EnableProcessorResponse\"l\n"
+ "\027EnableProcessorMetadata\022Q\n"
- + "\017common_metadata\030\005 \001("
- + "\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"T\n"
+ + "\017common_metadata\030\005 \001"
+ + "(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"T\n"
+ "\027DisableProcessorRequest\0229\n"
+ "\004name\030\001 \001(\tB+\340A\002\372A%\n"
+ "#documentai.googleapis.com/Processor\"\032\n"
+ "\030DisableProcessorResponse\"m\n"
+ "\030DisableProcessorMetadata\022Q\n"
- + "\017common_metadata\030\005 \001(\01328.google.clou"
- + "d.documentai.v1beta3.CommonOperationMetadata\"\272\001\n"
+ + "\017common_metadata\030\005 \001(\01328.google.clo"
+ + "ud.documentai.v1beta3.CommonOperationMetadata\"\272\001\n"
+ "!SetDefaultProcessorVersionRequest\022>\n"
+ "\tprocessor\030\001 \001(\tB+\340A\002\372A%\n"
+ "#documentai.googleapis.com/Processor\022U\n"
@@ -536,29 +542,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017common_metadata\030\001"
+ " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\321\t\n"
+ "\034TrainProcessorVersionRequest\022\213\001\n"
- + "\"custom_document_extraction_options\030\005 \001(\0132].google."
- + "cloud.documentai.v1beta3.TrainProcessorV"
- + "ersionRequest.CustomDocumentExtractionOptionsH\000\022\205\001\n"
- + "\037foundation_model_tuning_options\030\014 \001(\0132Z.google.cloud.documentai.v1be"
- + "ta3.TrainProcessorVersionRequest.FoundationModelTuningOptionsH\000\022;\n"
+ + "\"custom_document_extraction_options\030\005 \001(\0132].google"
+ + ".cloud.documentai.v1beta3.TrainProcessor"
+ + "VersionRequest.CustomDocumentExtractionOptionsH\000\022\205\001\n"
+ + "\037foundation_model_tuning_options\030\014 \001(\0132Z.google.cloud.documentai.v1b"
+ + "eta3.TrainProcessorVersionRequest.FoundationModelTuningOptionsH\000\022;\n"
+ "\006parent\030\001 \001(\tB+\340A\002\372A%\n"
+ "#documentai.googleapis.com/Processor\022Q\n"
- + "\021processor_version\030\002 \001(\01321.google"
- + ".cloud.documentai.v1beta3.ProcessorVersionB\003\340A\002\022M\n"
+ + "\021processor_version\030\002 \001(\01321.googl"
+ + "e.cloud.documentai.v1beta3.ProcessorVersionB\003\340A\002\022M\n"
+ "\017document_schema\030\n"
+ " \001(\0132/.google.cloud.documentai.v1beta3.DocumentSchemaB\003\340A\001\022`\n\n"
- + "input_data\030\004 \001(\0132G.google.clou"
- + "d.documentai.v1beta3.TrainProcessorVersionRequest.InputDataB\003\340A\001\022#\n"
+ + "input_data\030\004 \001(\0132G.google.clo"
+ + "ud.documentai.v1beta3.TrainProcessorVersionRequest.InputDataB\003\340A\001\022#\n"
+ "\026base_processor_version\030\010 \001(\tB\003\340A\001\032\267\001\n"
+ "\tInputData\022V\n"
- + "\022training_documents\030\003 \001(\0132:.google.cloud.d"
- + "ocumentai.v1beta3.BatchDocumentsInputConfig\022R\n"
- + "\016test_documents\030\004 \001(\0132:.google.clo"
- + "ud.documentai.v1beta3.BatchDocumentsInputConfig\032\206\002\n"
+ + "\022training_documents\030\003 \001(\0132:.google.cloud."
+ + "documentai.v1beta3.BatchDocumentsInputConfig\022R\n"
+ + "\016test_documents\030\004 \001(\0132:.google.cl"
+ + "oud.documentai.v1beta3.BatchDocumentsInputConfig\032\206\002\n"
+ "\037CustomDocumentExtractionOptions\022\212\001\n"
- + "\017training_method\030\003 \001(\0162l.google.c"
- + "loud.documentai.v1beta3.TrainProcessorVe"
- + "rsionRequest.CustomDocumentExtractionOptions.TrainingMethodB\003\340A\001\"V\n"
+ + "\017training_method\030\003 \001(\0162l.google."
+ + "cloud.documentai.v1beta3.TrainProcessorV"
+ + "ersionRequest.CustomDocumentExtractionOptions.TrainingMethodB\003\340A\001\"V\n"
+ "\016TrainingMethod\022\037\n"
+ "\033TRAINING_METHOD_UNSPECIFIED\020\000\022\017\n"
+ "\013MODEL_BASED\020\001\022\022\n"
@@ -570,14 +576,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\035TrainProcessorVersionResponse\022\031\n"
+ "\021processor_version\030\001 \001(\t\"\206\004\n"
+ "\035TrainProcessorVersionMetadata\022Q\n"
- + "\017common_metadata\030\001 \001(\01328.google.clo"
- + "ud.documentai.v1beta3.CommonOperationMetadata\022u\n"
- + "\033training_dataset_validation\030\002 \001"
- + "(\0132P.google.cloud.documentai.v1beta3.Tra"
- + "inProcessorVersionMetadata.DatasetValidation\022q\n"
- + "\027test_dataset_validation\030\003 \001(\0132P."
- + "google.cloud.documentai.v1beta3.TrainPro"
- + "cessorVersionMetadata.DatasetValidation\032\247\001\n"
+ + "\017common_metadata\030\001 \001(\01328.google.cl"
+ + "oud.documentai.v1beta3.CommonOperationMetadata\022u\n"
+ + "\033training_dataset_validation\030\002 \001(\0132P.google.cloud.documentai.v1beta3.Tr"
+ + "ainProcessorVersionMetadata.DatasetValidation\022q\n"
+ + "\027test_dataset_validation\030\003 \001(\0132P"
+ + ".google.cloud.documentai.v1beta3.TrainPr"
+ + "ocessorVersionMetadata.DatasetValidation\032\247\001\n"
+ "\021DatasetValidation\022\034\n"
+ "\024document_error_count\030\003 \001(\005\022\033\n"
+ "\023dataset_error_count\030\004 \001(\005\022+\n"
@@ -591,26 +596,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\010document\030\002"
+ " \001(\0132).google.cloud.documentai.v1beta3.DocumentB\002\030\001\022 \n"
+ "\030enable_schema_validation\030\003 \001(\010\022Q\n"
- + "\010priority\030\005 \001(\0162?.google.cloud."
- + "documentai.v1beta3.ReviewDocumentRequest.Priority\022H\n"
- + "\017document_schema\030\006 \001(\0132/.goo"
- + "gle.cloud.documentai.v1beta3.DocumentSchema\"#\n"
+ + "\010priority\030\005 \001(\0162?.google.cloud"
+ + ".documentai.v1beta3.ReviewDocumentRequest.Priority\022H\n"
+ + "\017document_schema\030\006 \001(\0132/.go"
+ + "ogle.cloud.documentai.v1beta3.DocumentSchema\"#\n"
+ "\010Priority\022\013\n"
+ "\007DEFAULT\020\000\022\n\n"
+ "\006URGENT\020\001B\010\n"
+ "\006source\"\326\001\n"
+ "\026ReviewDocumentResponse\022\027\n"
+ "\017gcs_destination\030\001 \001(\t\022L\n"
- + "\005state\030\002 \001(\0162=."
- + "google.cloud.documentai.v1beta3.ReviewDocumentResponse.State\022\030\n"
+ + "\005state\030\002 \001(\0162="
+ + ".google.cloud.documentai.v1beta3.ReviewDocumentResponse.State\022\030\n"
+ "\020rejection_reason\030\003 \001(\t\";\n"
+ "\005State\022\025\n"
+ "\021STATE_UNSPECIFIED\020\000\022\014\n"
+ "\010REJECTED\020\001\022\r\n"
+ "\tSUCCEEDED\020\002\"\300\003\n"
+ "\037ReviewDocumentOperationMetadata\022U\n"
- + "\005state\030\001 \001(\0162F"
- + ".google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State\022\025\n\r"
+ + "\005state\030\001 \001(\0162"
+ + "F.google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State\022\025\n\r"
+ "state_message\030\002 \001(\t\022/\n"
+ "\013create_time\030\003 \001(\0132\032.google.protobuf.Timestamp\022/\n"
+ "\013update_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022Q\n"
@@ -627,11 +632,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\037EvaluateProcessorVersionRequest\022M\n"
+ "\021processor_version\030\001 \001(\tB2\340A\002\372A,\n"
+ "*documentai.googleapis.com/ProcessorVersion\022]\n"
- + "\024evaluation_documents\030\003 \001(\0132:.google.cloud.d"
- + "ocumentai.v1beta3.BatchDocumentsInputConfigB\003\340A\001\"u\n"
+ + "\024evaluation_documents\030\003 \001(\0132:.google.cloud."
+ + "documentai.v1beta3.BatchDocumentsInputConfigB\003\340A\001\"u\n"
+ " EvaluateProcessorVersionMetadata\022Q\n"
- + "\017common_metadata\030\001 \001(\01328.google.c"
- + "loud.documentai.v1beta3.CommonOperationMetadata\"6\n"
+ + "\017common_metadata\030\001 \001(\01328.google."
+ + "cloud.documentai.v1beta3.CommonOperationMetadata\"6\n"
+ " EvaluateProcessorVersionResponse\022\022\n\n"
+ "evaluation\030\002 \001(\t\"R\n"
+ "\024GetEvaluationRequest\022:\n"
@@ -649,11 +654,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\035ImportProcessorVersionRequest\022S\n"
+ "\030processor_version_source\030\002 \001(\tB/\372A,\n"
+ "*documentai.googleapis.com/ProcessorVersionH\000\022\212\001\n"
- + "!external_processor_version_source\030\003 \001"
- + "(\0132].google.cloud.documentai.v1beta3.Imp"
- + "ortProcessorVersionRequest.ExternalProcessorVersionSourceH\000\022B\n"
- + "\006parent\030\001 \001(\tB2\340A\002"
- + "\372A,\022*documentai.googleapis.com/ProcessorVersion\032_\n"
+ + "!external_processor_version_source\030\003 "
+ + "\001(\0132].google.cloud.documentai.v1beta3.Im"
+ + "portProcessorVersionRequest.ExternalProcessorVersionSourceH\000\022B\n"
+ + "\006parent\030\001 \001(\tB2\340A"
+ + "\002\372A,\022*documentai.googleapis.com/ProcessorVersion\032_\n"
+ "\036ExternalProcessorVersionSource\022\036\n"
+ "\021processor_version\030\001 \001(\tB\003\340A\002\022\035\n"
+ "\020service_endpoint\030\002 \001(\tB\003\340A\001B\010\n"
@@ -662,141 +667,146 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021processor_version\030\001 \001(\tB/\372A,\n"
+ "*documentai.googleapis.com/ProcessorVersion\"s\n"
+ "\036ImportProcessorVersionMetadata\022Q\n"
- + "\017common_metadata\030\001 "
- + "\001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata2\353.\n"
+ + "\017common_metadata\030\001"
+ + " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"s\n"
+ + "\036UpdateProcessorVersionMetadata\022Q\n"
+ + "\017common_metadata\030\001 \001("
+ + "\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata2\356.\n"
+ "\030DocumentProcessorService\022\233\002\n"
- + "\017ProcessDocument\022/.google.cloud.documentai.v1beta3.ProcessRequest\032"
- + "0.google.cloud.documentai.v1beta3.Proces"
- + "sResponse\"\244\001\332A\004name\202\323\344\223\002\226\001\";/v1beta3/{na"
- + "me=projects/*/locations/*/processors/*}:process:\001*ZT\"O/v1beta3/{name=projects/*/"
- + "locations/*/processors/*/processorVersions/*}:process:\001*\022\314\002\n"
- + "\025BatchProcessDocuments\0224.google.cloud.documentai.v1beta3.Bat"
- + "chProcessRequest\032\035.google.longrunning.Operation\"\335\001\312A,\n"
- + "\024BatchProcessResponse\022\024Bat"
- + "chProcessMetadata\332A\004name\202\323\344\223\002\240\001\"@/v1beta"
- + "3/{name=projects/*/locations/*/processors/*}:batchProcess:\001*ZY\"T/v1beta3/{name=p"
- + "rojects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\001*\022\337\001\n"
- + "\023FetchProcessorTypes\022;.google.cloud.documenta"
- + "i.v1beta3.FetchProcessorTypesRequest\032<.google.cloud.documentai.v1beta3.FetchProc"
- + "essorTypesResponse\"M\332A\006parent\202\323\344\223\002>\022\n"
- + "\035TrainProcessorVersionResponse\022\035TrainProcessorVersionM"
- + "etadata\332A\030parent,processor_version\202\323\344\223\002R"
- + "\"M/v1beta3/{parent=projects/*/locations/"
- + "*/processors/*}/processorVersions:train:\001*\022\335\001\n"
- + "\023GetProcessorVersion\022;.google.cloud.documentai.v1beta3.GetProcessorVersion"
- + "Request\0321.google.cloud.documentai.v1beta"
- + "3.ProcessorVersion\"V\332A\004name\202\323\344\223\002I\022G/v1be"
- + "ta3/{name=projects/*/locations/*/processors/*/processorVersions/*}\022\360\001\n"
- + "\025ListProcessorVersions\022=.google.cloud.documentai.v"
- + "1beta3.ListProcessorVersionsRequest\032>.google.cloud.documentai.v1beta3.ListProces"
- + "sorVersionsResponse\"X\332A\006parent\202\323\344\223\002I\022G/v"
- + "1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions\022\212\002\n"
- + "\026DeleteProcessorVersion\022>.google.cloud.document"
- + "ai.v1beta3.DeleteProcessorVersionRequest\032\035.google.longrunning.Operation\"\220\001\312A7\n"
- + "\025google.protobuf.Empty\022\036DeleteProcessorVer"
- + "sionMetadata\332A\004name\202\323\344\223\002I*G/v1beta3/{nam"
- + "e=projects/*/locations/*/processors/*/processorVersions/*}\022\235\002\n"
- + "\026DeployProcessorVersion\022>.google.cloud.documentai.v1beta3."
- + "DeployProcessorVersionRequest\032\035.google.longrunning.Operation\"\243\001\312A@\n"
- + "\036DeployProcessorVersionResponse\022\036DeployProcessorVersi"
- + "onMetadata\332A\004name\202\323\344\223\002S\"N/v1beta3/{name="
- + "projects/*/locations/*/processors/*/processorVersions/*}:deploy:\001*\022\247\002\n"
- + "\030UndeployProcessorVersion\022@.google.cloud.documenta"
- + "i.v1beta3.UndeployProcessorVersionRequest\032\035.google.longrunning.Operation\"\251\001\312AD\n"
- + " UndeployProcessorVersionResponse\022 Undepl"
- + "oyProcessorVersionMetadata\332A\004name\202\323\344\223\002U\""
- + "P/v1beta3/{name=projects/*/locations/*/p"
- + "rocessors/*/processorVersions/*}:undeploy:\001*\022\321\001\n"
- + "\017CreateProcessor\0227.google.cloud.documentai.v1beta3.CreateProcessorReques"
- + "t\032*.google.cloud.documentai.v1beta3.Proc"
- + "essor\"Y\332A\020parent,processor\202\323\344\223\002@\"3/v1bet"
- + "a3/{parent=projects/*/locations/*}/processors:\tprocessor\022\340\001\n"
- + "\017DeleteProcessor\0227.google.cloud.documentai.v1beta3.DeletePro"
- + "cessorRequest\032\035.google.longrunning.Operation\"u\312A0\n"
- + "\025google.protobuf.Empty\022\027Delete"
- + "ProcessorMetadata\332A\004name\202\323\344\223\0025*3/v1beta3"
- + "/{name=projects/*/locations/*/processors/*}\022\345\001\n"
- + "\017EnableProcessor\0227.google.cloud.d"
- + "ocumentai.v1beta3.EnableProcessorRequest\032\035.google.longrunning.Operation\"z\312A2\n"
- + "\027EnableProcessorResponse\022\027EnableProcessorMe"
- + "tadata\202\323\344\223\002?\":/v1beta3/{name=projects/*/locations/*/processors/*}:enable:\001*\022\352\001\n"
- + "\020DisableProcessor\0228.google.cloud.document"
- + "ai.v1beta3.DisableProcessorRequest\032\035.google.longrunning.Operation\"}\312A4\n"
- + "\030DisableProcessorResponse\022\030DisableProcessorMetada"
- + "ta\202\323\344\223\002@\";/v1beta3/{name=projects/*/locations/*/processors/*}:disable:\001*\022\253\002\n"
- + "\032SetDefaultProcessorVersion\022B.google.cloud.d",
- "ocumentai.v1beta3.SetDefaultProcessorVer"
+ + "\017ProcessDocument\022/.google.cloud.documentai.v1beta3.ProcessRequest\0320."
+ + "google.cloud.documentai.v1beta3.ProcessR"
+ + "esponse\"\244\001\332A\004name\202\323\344\223\002\226\001\";/v1beta3/{name"
+ + "=projects/*/locations/*/processors/*}:process:\001*ZT\"O/v1beta3/{name=projects/*/lo"
+ + "cations/*/processors/*/processorVersions/*}:process:\001*\022\314\002\n"
+ + "\025BatchProcessDocuments\0224.google.cloud.documentai.v1beta3.Batch"
+ + "ProcessRequest\032\035.google.longrunning.Operation\"\335\001\312A,\n"
+ + "\024BatchProcessResponse\022\024Batch"
+ + "ProcessMetadata\332A\004name\202\323\344\223\002\240\001\"@/v1beta3/"
+ + "{name=projects/*/locations/*/processors/*}:batchProcess:\001*ZY\"T/v1beta3/{name=pro"
+ + "jects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\001*\022\337\001\n"
+ + "\023FetchProcessorTypes\022;.google.cloud.documentai."
+ + "v1beta3.FetchProcessorTypesRequest\032<.google.cloud.documentai.v1beta3.FetchProces"
+ + "sorTypesResponse\"M\332A\006parent\202\323\344\223\002>\022\n"
+ + "\035TrainProcessorVersionResponse\022\035TrainProcessorVersionMet"
+ + "adata\332A\030parent,processor_version\202\323\344\223\002R\"M"
+ + "/v1beta3/{parent=projects/*/locations/*/"
+ + "processors/*}/processorVersions:train:\001*\022\335\001\n"
+ + "\023GetProcessorVersion\022;.google.cloud.documentai.v1beta3.GetProcessorVersionRe"
+ + "quest\0321.google.cloud.documentai.v1beta3."
+ + "ProcessorVersion\"V\332A\004name\202\323\344\223\002I\022G/v1beta"
+ + "3/{name=projects/*/locations/*/processors/*/processorVersions/*}\022\360\001\n"
+ + "\025ListProcessorVersions\022=.google.cloud.documentai.v1b"
+ + "eta3.ListProcessorVersionsRequest\032>.google.cloud.documentai.v1beta3.ListProcesso"
+ + "rVersionsResponse\"X\332A\006parent\202\323\344\223\002I\022G/v1b"
+ + "eta3/{parent=projects/*/locations/*/processors/*}/processorVersions\022\212\002\n"
+ + "\026DeleteProcessorVersion\022>.google.cloud.documentai"
+ + ".v1beta3.DeleteProcessorVersionRequest\032\035.google.longrunning.Operation\"\220\001\312A7\n"
+ + "\025google.protobuf.Empty\022\036DeleteProcessorVersi"
+ + "onMetadata\332A\004name\202\323\344\223\002I*G/v1beta3/{name="
+ + "projects/*/locations/*/processors/*/processorVersions/*}\022\235\002\n"
+ + "\026DeployProcessorVersion\022>.google.cloud.documentai.v1beta3.De"
+ + "ployProcessorVersionRequest\032\035.google.longrunning.Operation\"\243\001\312A@\n"
+ + "\036DeployProcessorVersionResponse\022\036DeployProcessorVersion"
+ + "Metadata\332A\004name\202\323\344\223\002S\"N/v1beta3/{name=pr"
+ + "ojects/*/locations/*/processors/*/processorVersions/*}:deploy:\001*\022\247\002\n"
+ + "\030UndeployProcessorVersion\022@.google.cloud.documentai."
+ + "v1beta3.UndeployProcessorVersionRequest\032\035.google.longrunning.Operation\"\251\001\312AD\n"
+ + " UndeployProcessorVersionResponse\022 Undeploy"
+ + "ProcessorVersionMetadata\332A\004name\202\323\344\223\002U\"P/"
+ + "v1beta3/{name=projects/*/locations/*/pro"
+ + "cessors/*/processorVersions/*}:undeploy:\001*\022\321\001\n"
+ + "\017CreateProcessor\0227.google.cloud.documentai.v1beta3.CreateProcessorRequest\032"
+ + "*.google.cloud.documentai.v1beta3.Proces"
+ + "sor\"Y\332A\020parent,processor\202\323\344\223\002@\"3/v1beta3"
+ + "/{parent=projects/*/locations/*}/processors:\tprocessor\022\340\001\n"
+ + "\017DeleteProcessor\0227.google.cloud.documentai.v1beta3.DeleteProce"
+ + "ssorRequest\032\035.google.longrunning.Operation\"u\312A0\n"
+ + "\025google.protobuf.Empty\022\027DeletePr"
+ + "ocessorMetadata\332A\004name\202\323\344\223\0025*3/v1beta3/{"
+ + "name=projects/*/locations/*/processors/*}\022\345\001\n"
+ + "\017EnableProcessor\0227.google.cloud.doc"
+ + "umentai.v1beta3.EnableProcessorRequest\032\035.google.longrunning.Operation\"z\312A2\n"
+ + "\027EnableProcessorResponse\022\027EnableProcessorMeta"
+ + "data\202\323\344\223\002?\":/v1beta3/{name=projects/*/locations/*/processors/*}:enable:\001*\022\352\001\n"
+ + "\020DisableProcessor\0228.google.cloud.documentai"
+ + ".v1beta3.DisableProcessorRequest\032\035.google.longrunning.Operation\"}\312A4\n"
+ + "\030DisablePro",
+ "cessorResponse\022\030DisableProcessorMetadata"
+ + "\202\323\344\223\002@\";/v1beta3/{name=projects/*/locati"
+ + "ons/*/processors/*}:disable:\001*\022\253\002\n\032SetDe"
+ + "faultProcessorVersion\022B.google.cloud.doc"
+ + "umentai.v1beta3.SetDefaultProcessorVersi"
+ + "onRequest\032\035.google.longrunning.Operation"
+ + "\"\251\001\312AH\n\"SetDefaultProcessorVersionRespon"
+ + "se\022\"SetDefaultProcessorVersionMetadata\202\323"
+ + "\344\223\002X\"S/v1beta3/{processor=projects/*/loc"
+ + "ations/*/processors/*}:setDefaultProcess"
+ + "orVersion:\001*\022\255\002\n\016ReviewDocument\0226.google"
+ + ".cloud.documentai.v1beta3.ReviewDocument"
+ + "Request\032\035.google.longrunning.Operation\"\303"
+ + "\001\210\002\001\312A9\n\026ReviewDocumentResponse\022\037ReviewD"
+ + "ocumentOperationMetadata\332A\023human_review_"
+ + "config\202\323\344\223\002h\"c/v1beta3/{human_review_con"
+ + "fig=projects/*/locations/*/processors/*/"
+ + "humanReviewConfig}:reviewDocument:\001*\022\321\002\n"
+ + "\030EvaluateProcessorVersion\022@.google.cloud"
+ + ".documentai.v1beta3.EvaluateProcessorVer"
+ "sionRequest\032\035.google.longrunning.Operati"
- + "on\"\251\001\312AH\n\"SetDefaultProcessorVersionResp"
- + "onse\022\"SetDefaultProcessorVersionMetadata"
- + "\202\323\344\223\002X\"S/v1beta3/{processor=projects/*/l"
- + "ocations/*/processors/*}:setDefaultProce"
- + "ssorVersion:\001*\022\252\002\n\016ReviewDocument\0226.goog"
- + "le.cloud.documentai.v1beta3.ReviewDocume"
- + "ntRequest\032\035.google.longrunning.Operation"
- + "\"\300\001\312A9\n\026ReviewDocumentResponse\022\037ReviewDo"
- + "cumentOperationMetadata\332A\023human_review_c"
- + "onfig\202\323\344\223\002h\"c/v1beta3/{human_review_conf"
- + "ig=projects/*/locations/*/processors/*/h"
- + "umanReviewConfig}:reviewDocument:\001*\022\321\002\n\030"
- + "EvaluateProcessorVersion\022@.google.cloud."
- + "documentai.v1beta3.EvaluateProcessorVers"
- + "ionRequest\032\035.google.longrunning.Operatio"
- + "n\"\323\001\312AD\n EvaluateProcessorVersionRespons"
- + "e\022 EvaluateProcessorVersionMetadata\332A\021pr"
- + "ocessor_version\202\323\344\223\002r\"m/v1beta3/{process"
- + "or_version=projects/*/locations/*/proces"
- + "sors/*/processorVersions/*}:evaluateProc"
- + "essorVersion:\001*\022\331\001\n\rGetEvaluation\0225.goog"
- + "le.cloud.documentai.v1beta3.GetEvaluatio"
- + "nRequest\032+.google.cloud.documentai.v1bet"
- + "a3.Evaluation\"d\332A\004name\202\323\344\223\002W\022U/v1beta3/{"
- + "name=projects/*/locations/*/processors/*"
- + "/processorVersions/*/evaluations/*}\022\354\001\n\017"
- + "ListEvaluations\0227.google.cloud.documenta"
- + "i.v1beta3.ListEvaluationsRequest\0328.googl"
- + "e.cloud.documentai.v1beta3.ListEvaluatio"
- + "nsResponse\"f\332A\006parent\202\323\344\223\002W\022U/v1beta3/{p"
- + "arent=projects/*/locations/*/processors/"
- + "*/processorVersions/*}/evaluations\022\257\002\n\026I"
- + "mportProcessorVersion\022>.google.cloud.doc"
- + "umentai.v1beta3.ImportProcessorVersionRe"
- + "quest\032\035.google.longrunning.Operation\"\265\001\312"
- + "A@\n\036ImportProcessorVersionResponse\022\036Impo"
- + "rtProcessorVersionMetadata\332A\006parent\202\323\344\223\002"
- + "c\"^/v1beta3/{parent=projects/*/locations"
- + "/*/processors/*}/processorVersions:impor"
- + "tProcessorVersion:\001*\032M\312A\031documentai.goog"
- + "leapis.com\322A.https://www.googleapis.com/"
- + "auth/cloud-platformB\303\003\n#com.google.cloud"
- + ".documentai.v1beta3B\032DocumentAiProcessor"
- + "ServiceP\001ZCcloud.google.com/go/documenta"
- + "i/apiv1beta3/documentaipb;documentaipb\252\002"
- + "\037Google.Cloud.DocumentAI.V1Beta3\312\002\037Googl"
- + "e\\Cloud\\DocumentAI\\V1beta3\352\002\"Google::Clo"
- + "ud::DocumentAI::V1beta3\352A\177\n+documentai.g"
- + "oogleapis.com/HumanReviewConfig\022Pproject"
- + "s/{project}/locations/{location}/process"
- + "ors/{processor}/humanReviewConfig\352AM\n\"do"
- + "cumentai.googleapis.com/Location\022\'projec"
- + "ts/{project}/locations/{location}b\006proto"
- + "3"
+ + "on\"\323\001\312AD\n EvaluateProcessorVersionRespon"
+ + "se\022 EvaluateProcessorVersionMetadata\332A\021p"
+ + "rocessor_version\202\323\344\223\002r\"m/v1beta3/{proces"
+ + "sor_version=projects/*/locations/*/proce"
+ + "ssors/*/processorVersions/*}:evaluatePro"
+ + "cessorVersion:\001*\022\331\001\n\rGetEvaluation\0225.goo"
+ + "gle.cloud.documentai.v1beta3.GetEvaluati"
+ + "onRequest\032+.google.cloud.documentai.v1be"
+ + "ta3.Evaluation\"d\332A\004name\202\323\344\223\002W\022U/v1beta3/"
+ + "{name=projects/*/locations/*/processors/"
+ + "*/processorVersions/*/evaluations/*}\022\354\001\n"
+ + "\017ListEvaluations\0227.google.cloud.document"
+ + "ai.v1beta3.ListEvaluationsRequest\0328.goog"
+ + "le.cloud.documentai.v1beta3.ListEvaluati"
+ + "onsResponse\"f\332A\006parent\202\323\344\223\002W\022U/v1beta3/{"
+ + "parent=projects/*/locations/*/processors"
+ + "/*/processorVersions/*}/evaluations\022\257\002\n\026"
+ + "ImportProcessorVersion\022>.google.cloud.do"
+ + "cumentai.v1beta3.ImportProcessorVersionR"
+ + "equest\032\035.google.longrunning.Operation\"\265\001"
+ + "\312A@\n\036ImportProcessorVersionResponse\022\036Imp"
+ + "ortProcessorVersionMetadata\332A\006parent\202\323\344\223"
+ + "\002c\"^/v1beta3/{parent=projects/*/location"
+ + "s/*/processors/*}/processorVersions:impo"
+ + "rtProcessorVersion:\001*\032M\312A\031documentai.goo"
+ + "gleapis.com\322A.https://www.googleapis.com"
+ + "/auth/cloud-platformB\303\003\n#com.google.clou"
+ + "d.documentai.v1beta3B\032DocumentAiProcesso"
+ + "rServiceP\001ZCcloud.google.com/go/document"
+ + "ai/apiv1beta3/documentaipb;documentaipb\252"
+ + "\002\037Google.Cloud.DocumentAI.V1Beta3\312\002\037Goog"
+ + "le\\Cloud\\DocumentAI\\V1beta3\352\002\"Google::Cl"
+ + "oud::DocumentAI::V1beta3\352A\177\n+documentai."
+ + "googleapis.com/HumanReviewConfig\022Pprojec"
+ + "ts/{project}/locations/{location}/proces"
+ + "sors/{processor}/humanReviewConfig\352AM\n\"d"
+ + "ocumentai.googleapis.com/Location\022\'proje"
+ + "cts/{project}/locations/{location}b\006prot"
+ + "o3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -846,6 +856,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"EnableImageExtraction",
"EnableLlmLayoutParsing",
"EnableTableAnnotation",
+ "EnableTableSplit",
});
internal_static_google_cloud_documentai_v1beta3_ProcessOptions_LayoutConfig_ChunkingConfig_descriptor =
internal_static_google_cloud_documentai_v1beta3_ProcessOptions_LayoutConfig_descriptor
@@ -1394,6 +1405,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"CommonMetadata",
});
+ internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_descriptor =
+ getDescriptor().getMessageType(53);
+ internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_descriptor,
+ new java.lang.String[] {
+ "CommonMetadata",
+ });
descriptor.resolveAllFeaturesImmutable();
com.google.api.AnnotationsProto.getDescriptor();
com.google.api.ClientProto.getDescriptor();
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentId.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentId.java
index 2d1fabba2db1..287bf00fc363 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentId.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentId.java
@@ -109,7 +109,7 @@ public interface GCSManagedDocumentIdOrBuilder
* string cw_doc_id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is
- * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140
+ * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129
* @return The cwDocId.
*/
@java.lang.Deprecated
@@ -125,7 +125,7 @@ public interface GCSManagedDocumentIdOrBuilder
* string cw_doc_id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is
- * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140
+ * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129
* @return The bytes for cwDocId.
*/
@java.lang.Deprecated
@@ -251,7 +251,7 @@ public com.google.protobuf.ByteString getGcsUriBytes() {
* string cw_doc_id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is
- * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140
+ * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129
* @return The cwDocId.
*/
@java.lang.Override
@@ -278,7 +278,7 @@ public java.lang.String getCwDocId() {
* string cw_doc_id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is
- * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140
+ * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129
* @return The bytes for cwDocId.
*/
@java.lang.Override
@@ -762,7 +762,7 @@ public Builder setGcsUriBytes(com.google.protobuf.ByteString value) {
* string cw_doc_id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is
- * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140
+ * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129
* @return The cwDocId.
*/
@java.lang.Deprecated
@@ -788,7 +788,7 @@ public java.lang.String getCwDocId() {
* string cw_doc_id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is
- * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140
+ * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129
* @return The bytes for cwDocId.
*/
@java.lang.Deprecated
@@ -814,7 +814,7 @@ public com.google.protobuf.ByteString getCwDocIdBytes() {
* string cw_doc_id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is
- * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140
+ * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129
* @param value The cwDocId to set.
* @return This builder for chaining.
*/
@@ -839,7 +839,7 @@ public Builder setCwDocId(java.lang.String value) {
* string cw_doc_id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is
- * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140
+ * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -860,7 +860,7 @@ public Builder clearCwDocId() {
* string cw_doc_id = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is
- * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140
+ * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129
* @param value The bytes for cwDocId to set.
* @return This builder for chaining.
*/
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java
index 23bb27504e7f..b31703fd4b10 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java
@@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
}
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_documentai_v1beta3_Documents_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_documentai_v1beta3_Documents_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_documentai_v1beta3_RawDocument_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -56,6 +60,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_documentai_v1beta3_GcsPrefix_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_documentai_v1beta3_GcsPrefix_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_documentai_v1beta3_RawDocuments_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_documentai_v1beta3_RawDocuments_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_documentai_v1beta3_BatchDocumentsInputConfig_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -95,56 +103,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n1google/cloud/documentai/v1beta3/docume"
+ "nt_io.proto\022\037google.cloud.documentai.v1b"
- + "eta3\032 google/protobuf/field_mask.proto\"G"
- + "\n\013RawDocument\022\017\n\007content\030\001 \001(\014\022\021\n\tmime_t"
- + "ype\030\002 \001(\t\022\024\n\014display_name\030\003 \001(\t\"1\n\013GcsDo"
- + "cument\022\017\n\007gcs_uri\030\001 \001(\t\022\021\n\tmime_type\030\002 \001"
- + "(\t\"O\n\014GcsDocuments\022?\n\tdocuments\030\001 \003(\0132,."
- + "google.cloud.documentai.v1beta3.GcsDocum"
- + "ent\"#\n\tGcsPrefix\022\026\n\016gcs_uri_prefix\030\001 \001(\t"
- + "\"\257\001\n\031BatchDocumentsInputConfig\022@\n\ngcs_pr"
- + "efix\030\001 \001(\0132*.google.cloud.documentai.v1b"
- + "eta3.GcsPrefixH\000\022F\n\rgcs_documents\030\002 \001(\0132"
- + "-.google.cloud.documentai.v1beta3.GcsDoc"
- + "umentsH\000B\010\n\006source\"\217\003\n\024DocumentOutputCon"
- + "fig\022b\n\021gcs_output_config\030\001 \001(\0132E.google."
- + "cloud.documentai.v1beta3.DocumentOutputC"
- + "onfig.GcsOutputConfigH\000\032\203\002\n\017GcsOutputCon"
- + "fig\022\017\n\007gcs_uri\030\001 \001(\t\022.\n\nfield_mask\030\002 \001(\013"
- + "2\032.google.protobuf.FieldMask\022m\n\017sharding"
- + "_config\030\003 \001(\0132T.google.cloud.documentai."
- + "v1beta3.DocumentOutputConfig.GcsOutputCo"
- + "nfig.ShardingConfig\032@\n\016ShardingConfig\022\027\n"
- + "\017pages_per_shard\030\001 \001(\005\022\025\n\rpages_overlap\030"
- + "\002 \001(\005B\r\n\013destination\"\374\003\n\tOcrConfig\022?\n\005hi"
- + "nts\030\002 \001(\01320.google.cloud.documentai.v1be"
- + "ta3.OcrConfig.Hints\022!\n\031enable_native_pdf"
- + "_parsing\030\003 \001(\010\022#\n\033enable_image_quality_s"
- + "cores\030\004 \001(\010\022\034\n\024advanced_ocr_options\030\005 \003("
- + "\t\022\025\n\renable_symbol\030\006 \001(\010\022\036\n\022compute_styl"
- + "e_info\030\010 \001(\010B\002\030\001\022)\n!disable_character_bo"
- + "xes_detection\030\n \001(\010\022T\n\020premium_features\030"
- + "\013 \001(\0132:.google.cloud.documentai.v1beta3."
- + "OcrConfig.PremiumFeatures\032\037\n\005Hints\022\026\n\016la"
- + "nguage_hints\030\001 \003(\t\032o\n\017PremiumFeatures\022\'\n"
- + "\037enable_selection_mark_detection\030\003 \001(\010\022\032"
- + "\n\022compute_style_info\030\004 \001(\010\022\027\n\017enable_mat"
- + "h_ocr\030\005 \001(\010B\346\001\n#com.google.cloud.documen"
- + "tai.v1beta3B\017DocumentIoProtoP\001ZCcloud.go"
- + "ogle.com/go/documentai/apiv1beta3/docume"
- + "ntaipb;documentaipb\252\002\037Google.Cloud.Docum"
- + "entAI.V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\"
- + "V1beta3\352\002\"Google::Cloud::DocumentAI::V1b"
- + "eta3b\006proto3"
+ + "eta3\032.google/cloud/documentai/v1beta3/do"
+ + "cument.proto\032 google/protobuf/field_mask"
+ + ".proto\"I\n\tDocuments\022<\n\tdocuments\030\001 \003(\0132)"
+ + ".google.cloud.documentai.v1beta3.Documen"
+ + "t\"G\n\013RawDocument\022\017\n\007content\030\001 \001(\014\022\021\n\tmim"
+ + "e_type\030\002 \001(\t\022\024\n\014display_name\030\003 \001(\t\"1\n\013Gc"
+ + "sDocument\022\017\n\007gcs_uri\030\001 \001(\t\022\021\n\tmime_type\030"
+ + "\002 \001(\t\"O\n\014GcsDocuments\022?\n\tdocuments\030\001 \003(\013"
+ + "2,.google.cloud.documentai.v1beta3.GcsDo"
+ + "cument\"#\n\tGcsPrefix\022\026\n\016gcs_uri_prefix\030\001 "
+ + "\001(\t\"O\n\014RawDocuments\022?\n\tdocuments\030\001 \003(\0132,"
+ + ".google.cloud.documentai.v1beta3.RawDocu"
+ + "ment\"\257\001\n\031BatchDocumentsInputConfig\022@\n\ngc"
+ + "s_prefix\030\001 \001(\0132*.google.cloud.documentai"
+ + ".v1beta3.GcsPrefixH\000\022F\n\rgcs_documents\030\002 "
+ + "\001(\0132-.google.cloud.documentai.v1beta3.Gc"
+ + "sDocumentsH\000B\010\n\006source\"\217\003\n\024DocumentOutpu"
+ + "tConfig\022b\n\021gcs_output_config\030\001 \001(\0132E.goo"
+ + "gle.cloud.documentai.v1beta3.DocumentOut"
+ + "putConfig.GcsOutputConfigH\000\032\203\002\n\017GcsOutpu"
+ + "tConfig\022\017\n\007gcs_uri\030\001 \001(\t\022.\n\nfield_mask\030\002"
+ + " \001(\0132\032.google.protobuf.FieldMask\022m\n\017shar"
+ + "ding_config\030\003 \001(\0132T.google.cloud.documen"
+ + "tai.v1beta3.DocumentOutputConfig.GcsOutp"
+ + "utConfig.ShardingConfig\032@\n\016ShardingConfi"
+ + "g\022\027\n\017pages_per_shard\030\001 \001(\005\022\025\n\rpages_over"
+ + "lap\030\002 \001(\005B\r\n\013destination\"\374\003\n\tOcrConfig\022?"
+ + "\n\005hints\030\002 \001(\01320.google.cloud.documentai."
+ + "v1beta3.OcrConfig.Hints\022!\n\031enable_native"
+ + "_pdf_parsing\030\003 \001(\010\022#\n\033enable_image_quali"
+ + "ty_scores\030\004 \001(\010\022\034\n\024advanced_ocr_options\030"
+ + "\005 \003(\t\022\025\n\renable_symbol\030\006 \001(\010\022\036\n\022compute_"
+ + "style_info\030\010 \001(\010B\002\030\001\022)\n!disable_characte"
+ + "r_boxes_detection\030\n \001(\010\022T\n\020premium_featu"
+ + "res\030\013 \001(\0132:.google.cloud.documentai.v1be"
+ + "ta3.OcrConfig.PremiumFeatures\032\037\n\005Hints\022\026"
+ + "\n\016language_hints\030\001 \003(\t\032o\n\017PremiumFeature"
+ + "s\022\'\n\037enable_selection_mark_detection\030\003 \001"
+ + "(\010\022\032\n\022compute_style_info\030\004 \001(\010\022\027\n\017enable"
+ + "_math_ocr\030\005 \001(\010B\346\001\n#com.google.cloud.doc"
+ + "umentai.v1beta3B\017DocumentIoProtoP\001ZCclou"
+ + "d.google.com/go/documentai/apiv1beta3/do"
+ + "cumentaipb;documentaipb\252\002\037Google.Cloud.D"
+ + "ocumentAI.V1Beta3\312\002\037Google\\Cloud\\Documen"
+ + "tAI\\V1beta3\352\002\"Google::Cloud::DocumentAI:"
+ + ":V1beta3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.cloud.documentai.v1beta3.DocumentProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
});
- internal_static_google_cloud_documentai_v1beta3_RawDocument_descriptor =
+ internal_static_google_cloud_documentai_v1beta3_Documents_descriptor =
getDescriptor().getMessageType(0);
+ internal_static_google_cloud_documentai_v1beta3_Documents_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_documentai_v1beta3_Documents_descriptor,
+ new java.lang.String[] {
+ "Documents",
+ });
+ internal_static_google_cloud_documentai_v1beta3_RawDocument_descriptor =
+ getDescriptor().getMessageType(1);
internal_static_google_cloud_documentai_v1beta3_RawDocument_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_RawDocument_descriptor,
@@ -152,7 +174,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Content", "MimeType", "DisplayName",
});
internal_static_google_cloud_documentai_v1beta3_GcsDocument_descriptor =
- getDescriptor().getMessageType(1);
+ getDescriptor().getMessageType(2);
internal_static_google_cloud_documentai_v1beta3_GcsDocument_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_GcsDocument_descriptor,
@@ -160,7 +182,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"GcsUri", "MimeType",
});
internal_static_google_cloud_documentai_v1beta3_GcsDocuments_descriptor =
- getDescriptor().getMessageType(2);
+ getDescriptor().getMessageType(3);
internal_static_google_cloud_documentai_v1beta3_GcsDocuments_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_GcsDocuments_descriptor,
@@ -168,15 +190,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Documents",
});
internal_static_google_cloud_documentai_v1beta3_GcsPrefix_descriptor =
- getDescriptor().getMessageType(3);
+ getDescriptor().getMessageType(4);
internal_static_google_cloud_documentai_v1beta3_GcsPrefix_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_GcsPrefix_descriptor,
new java.lang.String[] {
"GcsUriPrefix",
});
+ internal_static_google_cloud_documentai_v1beta3_RawDocuments_descriptor =
+ getDescriptor().getMessageType(5);
+ internal_static_google_cloud_documentai_v1beta3_RawDocuments_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_documentai_v1beta3_RawDocuments_descriptor,
+ new java.lang.String[] {
+ "Documents",
+ });
internal_static_google_cloud_documentai_v1beta3_BatchDocumentsInputConfig_descriptor =
- getDescriptor().getMessageType(4);
+ getDescriptor().getMessageType(6);
internal_static_google_cloud_documentai_v1beta3_BatchDocumentsInputConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_BatchDocumentsInputConfig_descriptor,
@@ -184,7 +214,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"GcsPrefix", "GcsDocuments", "Source",
});
internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_descriptor =
- getDescriptor().getMessageType(5);
+ getDescriptor().getMessageType(7);
internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_descriptor,
@@ -210,7 +240,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"PagesPerShard", "PagesOverlap",
});
internal_static_google_cloud_documentai_v1beta3_OcrConfig_descriptor =
- getDescriptor().getMessageType(6);
+ getDescriptor().getMessageType(8);
internal_static_google_cloud_documentai_v1beta3_OcrConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_OcrConfig_descriptor,
@@ -241,6 +271,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"EnableSelectionMarkDetection", "ComputeStyleInfo", "EnableMathOcr",
});
descriptor.resolveAllFeaturesImmutable();
+ com.google.cloud.documentai.v1beta3.DocumentProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
}
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java
index 77908f690eda..b102420be500 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java
@@ -948,7 +948,7 @@ com.google.cloud.documentai.v1beta3.Document.TextChangeOrBuilder getTextChangesO
* The entity revision ID that `document.entities` field is based on.
* If this field is set and `entities_revisions` is not empty, the entities in
* `document.entities` field are the entities in the entity revision with this
- * ID and `document.entity_validation_output` field is the
+ * id and `document.entity_validation_output` field is the
* `entity_validation_output` field in this entity revision.
*
*
@@ -965,7 +965,7 @@ com.google.cloud.documentai.v1beta3.Document.TextChangeOrBuilder getTextChangesO
* The entity revision ID that `document.entities` field is based on.
* If this field is set and `entities_revisions` is not empty, the entities in
* `document.entities` field are the entities in the entity revision with this
- * ID and `document.entity_validation_output` field is the
+ * id and `document.entity_validation_output` field is the
* `entity_validation_output` field in this entity revision.
*
*
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java
index f246cd5b871e..47e7908dc1d6 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java
@@ -295,13 +295,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n"
+ ".google/cloud/documentai/v1beta3/document.proto\022\037google.cloud.documentai.v1beta"
- + "3\032\037google/api/field_behavior.proto\032-goog"
- + "le/cloud/documentai/v1beta3/barcode.proto\032.google/cloud/documentai/v1beta3/geome"
- + "try.proto\032\037google/protobuf/timestamp.pro"
- + "to\032\027google/rpc/status.proto\032\027google/type"
- + "/color.proto\032\026google/type/date.proto\032\032go"
- + "ogle/type/datetime.proto\032\027google/type/money.proto\032"
- + " google/type/postal_address.proto\"\335p\n"
+ + "3\032\037google/api/field_behavior.proto\032\031goog"
+ + "le/api/resource.proto\032-google/cloud/documentai/v1beta3/barcode.proto\032.google/clo"
+ + "ud/documentai/v1beta3/geometry.proto\032\037go"
+ + "ogle/protobuf/timestamp.proto\032\027google/rp"
+ + "c/status.proto\032\027google/type/color.proto\032"
+ + "\026google/type/date.proto\032\032google/type/datetime.proto\032\027google/type/money.proto\032"
+ + " google/type/postal_address.proto\"\254q\n"
+ "\010Document\022\022\n"
+ "\003uri\030\001 \001(\tB\003\340A\001H\000\022\026\n"
+ "\007content\030\002 \001(\014B\003\340A\001H\000\022\022\n"
@@ -311,42 +311,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013text_styles\030\005"
+ " \003(\0132/.google.cloud.documentai.v1beta3.Document.StyleB\002\030\001\022=\n"
+ "\005pages\030\006 \003(\0132..google.cloud.documentai.v1beta3.Document.Page\022B\n"
- + "\010entities\030\007 \003(\01320.goog"
- + "le.cloud.documentai.v1beta3.Document.Entity\022R\n"
- + "\020entity_relations\030\010 \003(\01328.google.c"
- + "loud.documentai.v1beta3.Document.EntityRelation\022J\n"
- + "\014text_changes\030\016 \003(\01324.google.c"
- + "loud.documentai.v1beta3.Document.TextChange\022G\n\n"
+ + "\010entities\030\007"
+ + " \003(\01320.google.cloud.documentai.v1beta3.Document.Entity\022R\n"
+ + "\020entity_relations\030\010"
+ + " \003(\01328.google.cloud.documentai.v1beta3.Document.EntityRelation\022J\n"
+ + "\014text_changes\030\016"
+ + " \003(\01324.google.cloud.documentai.v1beta3.Document.TextChange\022G\n\n"
+ "shard_info\030\t \001(\01323.google.cloud.documentai.v1beta3.Document.ShardInfo\022!\n"
+ "\005error\030\n"
+ " \001(\0132\022.google.rpc.Status\022E\n"
+ "\trevisions\030\r"
+ " \003(\01322.google.cloud.documentai.v1beta3.Document.Revision\022Q\n"
- + "\017document_layout\030\021"
- + " \001(\01328.google.cloud.documentai.v1beta3.Document.DocumentLayout\022S\n"
- + "\020chunked_document\030\022"
- + " \001(\01329.google.cloud.documentai.v1beta3.Document.ChunkedDocument\022M\n"
- + "\013blob_assets\030\023"
- + " \003(\01323.google.cloud.documentai.v1beta3.Document.BlobAssetB\003\340A\001\022b\n"
- + "\030entity_validation_output\030\025 \001(\0132@.google.cloud.d"
- + "ocumentai.v1beta3.Document.EntityValidationOutput\022V\n"
- + "\022entities_revisions\030\026 \003(\0132:."
- + "google.cloud.documentai.v1beta3.Document.EntitiesRevision\022\034\n"
+ + "\017document_layout\030\021 \001(\01328.goo"
+ + "gle.cloud.documentai.v1beta3.Document.DocumentLayout\022S\n"
+ + "\020chunked_document\030\022 \001(\01329"
+ + ".google.cloud.documentai.v1beta3.Document.ChunkedDocument\022M\n"
+ + "\013blob_assets\030\023 \003(\01323"
+ + ".google.cloud.documentai.v1beta3.Document.BlobAssetB\003\340A\001\022b\n"
+ + "\030entity_validation_output\030\025"
+ + " \001(\0132@.google.cloud.documentai.v1beta3.Document.EntityValidationOutput\022V\n"
+ + "\022entities_revisions\030\026 \003(\0132:.google.cloud."
+ + "documentai.v1beta3.Document.EntitiesRevision\022\034\n"
+ "\024entities_revision_id\030\027 \001(\t\032J\n"
+ "\tShardInfo\022\023\n"
+ "\013shard_index\030\001 \001(\003\022\023\n"
+ "\013shard_count\030\002 \001(\003\022\023\n"
+ "\013text_offset\030\003 \001(\003\032\357\002\n"
+ "\005Style\022I\n"
- + "\013text_anchor\030\001 \001(\01324.goo"
- + "gle.cloud.documentai.v1beta3.Document.TextAnchor\022!\n"
+ + "\013text_anchor\030\001"
+ + " \001(\01324.google.cloud.documentai.v1beta3.Document.TextAnchor\022!\n"
+ "\005color\030\002 \001(\0132\022.google.type.Color\022,\n"
+ "\020background_color\030\003 \001(\0132\022.google.type.Color\022\023\n"
+ "\013font_weight\030\004 \001(\t\022\022\n\n"
+ "text_style\030\005 \001(\t\022\027\n"
+ "\017text_decoration\030\006 \001(\t\022K\n"
- + "\tfont_size\030\007"
- + " \001(\01328.google.cloud.documentai.v1beta3.Document.Style.FontSize\022\023\n"
+ + "\tfont_size\030\007 \001("
+ + "\01328.google.cloud.documentai.v1beta3.Document.Style.FontSize\022\023\n"
+ "\013font_family\030\010 \001(\t\032&\n"
+ "\010FontSize\022\014\n"
+ "\004size\030\001 \001(\002\022\014\n"
@@ -355,36 +355,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013page_number\030\001 \001(\005\022C\n"
+ "\005image\030\r"
+ " \001(\01324.google.cloud.documentai.v1beta3.Document.Page.Image\022I\n\n"
- + "transforms\030\016"
- + " \003(\01325.google.cloud.documentai.v1beta3.Document.Page.Matrix\022K\n"
- + "\tdimension\030\002"
- + " \001(\01328.google.cloud.documentai.v1beta3.Document.Page.Dimension\022E\n"
- + "\006layout\030\003 \001(\013"
- + "25.google.cloud.documentai.v1beta3.Document.Page.Layout\022[\n"
- + "\022detected_languages\030\004 "
- + "\003(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022D\n"
- + "\006blocks\030\005"
- + " \003(\01324.google.cloud.documentai.v1beta3.Document.Page.Block\022L\n\n"
- + "paragraphs\030\006 \003(\01328"
- + ".google.cloud.documentai.v1beta3.Document.Page.Paragraph\022B\n"
- + "\005lines\030\007 \003(\01323.google"
- + ".cloud.documentai.v1beta3.Document.Page.Line\022D\n"
+ + "transforms\030\016 \003(\0132"
+ + "5.google.cloud.documentai.v1beta3.Document.Page.Matrix\022K\n"
+ + "\tdimension\030\002 \001(\01328.goog"
+ + "le.cloud.documentai.v1beta3.Document.Page.Dimension\022E\n"
+ + "\006layout\030\003 \001(\01325.google.clo"
+ + "ud.documentai.v1beta3.Document.Page.Layout\022[\n"
+ + "\022detected_languages\030\004 \003(\0132?.google."
+ + "cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022D\n"
+ + "\006blocks\030\005 \003(\01324.google"
+ + ".cloud.documentai.v1beta3.Document.Page.Block\022L\n\n"
+ + "paragraphs\030\006 \003(\01328.google.cloud"
+ + ".documentai.v1beta3.Document.Page.Paragraph\022B\n"
+ + "\005lines\030\007"
+ + " \003(\01323.google.cloud.documentai.v1beta3.Document.Page.Line\022D\n"
+ "\006tokens\030\010"
+ " \003(\01324.google.cloud.documentai.v1beta3.Document.Page.Token\022U\n"
- + "\017visual_elements\030\t \003(\0132<.google.cloud.docum"
- + "entai.v1beta3.Document.Page.VisualElement\022D\n"
+ + "\017visual_elements\030\t"
+ + " \003(\0132<.google.cloud.documentai.v1beta3.Document.Page.VisualElement\022D\n"
+ "\006tables\030\n"
+ " \003(\01324.google.cloud.documentai.v1beta3.Document.Page.Table\022M\n"
- + "\013form_fields\030\013"
- + " \003(\01328.google.cloud.documentai.v1beta3.Document.Page.FormField\022F\n"
- + "\007symbols\030\014"
- + " \003(\01325.google.cloud.documentai.v1beta3.Document.Page.Symbol\022Y\n"
- + "\021detected_barcodes\030\017"
- + " \003(\0132>.google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode\022_\n"
- + "\024image_quality_scores\030\021 \001(\0132A.google.cloud.d"
- + "ocumentai.v1beta3.Document.Page.ImageQualityScores\022L\n\n"
- + "provenance\030\020 \001(\01324.google."
- + "cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\0328\n"
+ + "\013form_fields\030\013 \003(\0132"
+ + "8.google.cloud.documentai.v1beta3.Document.Page.FormField\022F\n"
+ + "\007symbols\030\014 \003(\01325.goo"
+ + "gle.cloud.documentai.v1beta3.Document.Page.Symbol\022Y\n"
+ + "\021detected_barcodes\030\017 \003(\0132>.g"
+ + "oogle.cloud.documentai.v1beta3.Document.Page.DetectedBarcode\022_\n"
+ + "\024image_quality_scores\030\021"
+ + " \001(\0132A.google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores\022L\n"
+ + "\n"
+ + "provenance\030\020"
+ + " \001(\01324.google.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\0328\n"
+ "\tDimension\022\r\n"
+ "\005width\030\001 \001(\002\022\016\n"
+ "\006height\030\002 \001(\002\022\014\n"
@@ -400,12 +401,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004type\030\003 \001(\005\022\014\n"
+ "\004data\030\004 \001(\014\032\354\002\n"
+ "\006Layout\022I\n"
- + "\013text_anchor\030\001 \001(\013"
- + "24.google.cloud.documentai.v1beta3.Document.TextAnchor\022\022\n\n"
+ + "\013text_anchor\030\001 \001(\01324.google.clo"
+ + "ud.documentai.v1beta3.Document.TextAnchor\022\022\n\n"
+ "confidence\030\002 \001(\002\022D\n\r"
+ "bounding_poly\030\003 \001(\0132-.google.cloud.documentai.v1beta3.BoundingPoly\022V\n"
- + "\013orientation\030\004"
- + " \001(\0162A.google.cloud.documentai.v1beta3.Document.Page.Layout.Orientation\"e\n"
+ + "\013orientation\030\004 \001(\0162A.googl"
+ + "e.cloud.documentai.v1beta3.Document.Page.Layout.Orientation\"e\n"
+ "\013Orientation\022\033\n"
+ "\027ORIENTATION_UNSPECIFIED\020\000\022\013\n"
+ "\007PAGE_UP\020\001\022\016\n\n"
@@ -413,40 +414,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\tPAGE_DOWN\020\003\022\r\n"
+ "\tPAGE_LEFT\020\004\032\371\001\n"
+ "\005Block\022E\n"
- + "\006layout\030\001 \001("
- + "\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022[\n"
- + "\022detected_languages\030\002"
- + " \003(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022L\n\n"
- + "provenance\030\003"
- + " \001(\01324.google.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\032\375\001\n"
- + "\tParagraph\022E\n"
- + "\006layout\030\001"
- + " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022[\n"
- + "\022detected_languages\030\002 \003(\0132?.google.cloud.docu"
- + "mentai.v1beta3.Document.Page.DetectedLanguage\022L\n\n"
- + "provenance\030\003 \001(\01324.google.cloud"
- + ".documentai.v1beta3.Document.ProvenanceB\002\030\001\032\370\001\n"
- + "\004Line\022E\n"
+ "\006layout\030\001 \001(\01325.google.cl"
+ "oud.documentai.v1beta3.Document.Page.Layout\022[\n"
+ "\022detected_languages\030\002 \003(\0132?.google"
+ ".cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022L\n\n"
+ "provenance\030\003 \001(\01324.g"
- + "oogle.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\032\274\007\n"
+ + "oogle.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\032\375\001\n"
+ + "\tParagraph\022E\n"
+ + "\006layout\030\001"
+ + " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022[\n"
+ + "\022detected_languages\030\002"
+ + " \003(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022L\n\n"
+ + "provenance\030\003"
+ + " \001(\01324.google.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\032\370\001\n"
+ + "\004Line\022E\n"
+ + "\006layout\030\001"
+ + " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022[\n"
+ + "\022detected_languages\030\002 \003(\0132?.google.cloud.docume"
+ + "ntai.v1beta3.Document.Page.DetectedLanguage\022L\n\n"
+ + "provenance\030\003 \001(\01324.google.cloud.d"
+ + "ocumentai.v1beta3.Document.ProvenanceB\002\030\001\032\274\007\n"
+ "\005Token\022E\n"
- + "\006layout\030\001 \001(\013"
- + "25.google.cloud.documentai.v1beta3.Document.Page.Layout\022Z\n"
- + "\016detected_break\030\002 \001(\0132"
- + "B.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak\022[\n"
- + "\022detected_languages\030\003 \003(\0132?.google.cloud.documenta"
- + "i.v1beta3.Document.Page.DetectedLanguage\022L\n\n"
- + "provenance\030\004 \001(\01324.google.cloud.docu"
- + "mentai.v1beta3.Document.ProvenanceB\002\030\001\022R\n\n"
- + "style_info\030\005 \001(\0132>.google.cloud.docume"
- + "ntai.v1beta3.Document.Page.Token.StyleInfo\032\253\001\n\r"
+ + "\006layout\030\001 \001(\01325.google.clo"
+ + "ud.documentai.v1beta3.Document.Page.Layout\022Z\n"
+ + "\016detected_break\030\002 \001(\0132B.google.clou"
+ + "d.documentai.v1beta3.Document.Page.Token.DetectedBreak\022[\n"
+ + "\022detected_languages\030\003 \003"
+ + "(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022L\n\n"
+ + "provenance\030\004"
+ + " \001(\01324.google.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\022R\n\n"
+ + "style_info\030\005"
+ + " \001(\0132>.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo\032\253\001\n\r"
+ "DetectedBreak\022U\n"
- + "\004type\030\001 \001(\0162G.goo"
- + "gle.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type\"C\n"
+ + "\004type\030\001 \001(\0162G.google.cloud.doc"
+ + "umentai.v1beta3.Document.Page.Token.DetectedBreak.Type\"C\n"
+ "\004Type\022\024\n"
+ "\020TYPE_UNSPECIFIED\020\000\022\t\n"
+ "\005SPACE\020\001\022\016\n\n"
@@ -471,51 +472,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "text_color\030\016 \001(\0132\022.google.type.Color\022,\n"
+ "\020background_color\030\017 \001(\0132\022.google.type.Color\032\254\001\n"
+ "\006Symbol\022E\n"
- + "\006layout\030\001 \001(\013"
- + "25.google.cloud.documentai.v1beta3.Document.Page.Layout\022[\n"
- + "\022detected_languages\030\002 "
- + "\003(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\032\301\001\n\r"
+ + "\006layout\030\001 \001(\01325.google.clo"
+ + "ud.documentai.v1beta3.Document.Page.Layout\022[\n"
+ + "\022detected_languages\030\002 \003(\0132?.google."
+ + "cloud.documentai.v1beta3.Document.Page.DetectedLanguage\032\301\001\n\r"
+ "VisualElement\022E\n"
+ "\006layout\030\001"
+ " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022\014\n"
+ "\004type\030\002 \001(\t\022[\n"
- + "\022detected_languages\030\003 \003(\0132"
- + "?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\032\320\005\n"
+ + "\022detected_languages\030\003 \003(\0132?.google.clou"
+ + "d.documentai.v1beta3.Document.Page.DetectedLanguage\032\320\005\n"
+ "\005Table\022E\n"
- + "\006layout\030\001"
- + " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022R\n"
- + "\013header_rows\030\002"
- + " \003(\0132=.google.cloud.documentai.v1beta3.Document.Page.Table.TableRow\022P\n"
- + "\tbody_rows\030\003"
- + " \003(\0132=.google.cloud.documentai.v1beta3.Document.Page.Table.TableRow\022[\n"
- + "\022detected_languages\030\004 \003(\0132?.google.cloud.docum"
- + "entai.v1beta3.Document.Page.DetectedLanguage\022L\n\n"
- + "provenance\030\005 \001(\01324.google.cloud."
- + "documentai.v1beta3.Document.ProvenanceB\002\030\001\032Y\n"
+ + "\006layout\030\001 \001(\01325."
+ + "google.cloud.documentai.v1beta3.Document.Page.Layout\022R\n"
+ + "\013header_rows\030\002 \003(\0132=.goog"
+ + "le.cloud.documentai.v1beta3.Document.Page.Table.TableRow\022P\n"
+ + "\tbody_rows\030\003 \003(\0132=.go"
+ + "ogle.cloud.documentai.v1beta3.Document.Page.Table.TableRow\022[\n"
+ + "\022detected_languages\030\004"
+ + " \003(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022L\n\n"
+ + "provenance\030\005"
+ + " \001(\01324.google.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\032Y\n"
+ "\010TableRow\022M\n"
- + "\005cells\030\001 \003(\0132>.google.c"
- + "loud.documentai.v1beta3.Document.Page.Table.TableCell\032\323\001\n"
+ + "\005cells\030\001 \003(\0132>.google.cloud.document"
+ + "ai.v1beta3.Document.Page.Table.TableCell\032\323\001\n"
+ "\tTableCell\022E\n"
- + "\006layout\030\001 "
- + "\001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022\020\n"
+ + "\006layout\030\001 \001(\01325.google."
+ + "cloud.documentai.v1beta3.Document.Page.Layout\022\020\n"
+ "\010row_span\030\002 \001(\005\022\020\n"
+ "\010col_span\030\003 \001(\005\022[\n"
- + "\022detected_languages\030\004 \003"
- + "(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\032\377\003\n"
+ + "\022detected_languages\030\004 \003(\0132?.google.c"
+ + "loud.documentai.v1beta3.Document.Page.DetectedLanguage\032\377\003\n"
+ "\tFormField\022I\n\n"
+ "field_name\030\001"
+ " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022J\n"
+ "\013field_value\030\002"
+ " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022`\n"
- + "\027name_detected_languages\030\003 \003(\0132?.google.cloud"
- + ".documentai.v1beta3.Document.Page.DetectedLanguage\022a\n"
- + "\030value_detected_languages\030\004"
- + " \003(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022\022\n\n"
+ + "\027name_detected_languages\030\003"
+ + " \003(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022a\n"
+ + "\030value_detected_languages\030\004 \003(\0132?.google"
+ + ".cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022\022\n\n"
+ "value_type\030\005 \001(\t\022\032\n"
+ "\022corrected_key_text\030\006 \001(\t\022\034\n"
+ "\024corrected_value_text\030\007 \001(\t\022H\n\n"
- + "provenance\030\010"
- + " \001(\01324.google.cloud.documentai.v1beta3.Document.Provenance\032\223\001\n"
+ + "provenance\030\010 \001(\01324.goo"
+ + "gle.cloud.documentai.v1beta3.Document.Provenance\032\223\001\n"
+ "\017DetectedBarcode\022E\n"
+ "\006layout\030\001"
+ " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\0229\n"
@@ -525,30 +526,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "confidence\030\002 \001(\002\032\313\001\n"
+ "\022ImageQualityScores\022\025\n\r"
+ "quality_score\030\001 \001(\002\022j\n"
- + "\020detected_defects\030\002 \003(\0132P.google.clou"
- + "d.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect\0322\n"
+ + "\020detected_defects\030\002 \003(\0132P.google.cloud.documentai."
+ + "v1beta3.Document.Page.ImageQualityScores.DetectedDefect\0322\n"
+ "\016DetectedDefect\022\014\n"
+ "\004type\030\001 \001(\t\022\022\n\n"
+ "confidence\030\002 \001(\002\032\215\010\n"
+ "\006Entity\022N\n"
- + "\013text_anchor\030\001 \001(\01324.googl"
- + "e.cloud.documentai.v1beta3.Document.TextAnchorB\003\340A\001\022\021\n"
+ + "\013text_anchor\030\001 \001(\01324.google.cloud.docum"
+ + "entai.v1beta3.Document.TextAnchorB\003\340A\001\022\021\n"
+ "\004type\030\002 \001(\tB\003\340A\002\022\031\n"
+ "\014mention_text\030\003 \001(\tB\003\340A\001\022\027\n\n"
+ "mention_id\030\004 \001(\tB\003\340A\001\022\027\n\n"
+ "confidence\030\005 \001(\002B\003\340A\001\022N\n"
- + "\013page_anchor\030\006"
- + " \001(\01324.google.cloud.documentai.v1beta3.Document.PageAnchorB\003\340A\001\022\017\n"
+ + "\013page_anchor\030\006 \001(\01324.go"
+ + "ogle.cloud.documentai.v1beta3.Document.PageAnchorB\003\340A\001\022\017\n"
+ "\002id\030\007 \001(\tB\003\340A\001\022_\n"
- + "\020normalized_value\030\t \001(\0132@.google."
- + "cloud.documentai.v1beta3.Document.Entity.NormalizedValueB\003\340A\001\022I\n\n"
+ + "\020normalized_value\030\t \001(\0132@.google.cloud.documen"
+ + "tai.v1beta3.Document.Entity.NormalizedValueB\003\340A\001\022I\n\n"
+ "properties\030\n"
+ " \003(\01320.google.cloud.documentai.v1beta3.Document.EntityB\003\340A\001\022M\n\n"
- + "provenance\030\013 \001(\01324.g"
- + "oogle.cloud.documentai.v1beta3.Document.ProvenanceB\003\340A\001\022\025\n"
+ + "provenance\030\013 \001(\01324.google.cloud.d"
+ + "ocumentai.v1beta3.Document.ProvenanceB\003\340A\001\022\025\n"
+ "\010redacted\030\014 \001(\010B\003\340A\001\022L\n"
- + "\006method\030\017"
- + " \001(\01627.google.cloud.documentai.v1beta3.Document.Entity.MethodB\003\340A\001\032\326\002\n"
+ + "\006method\030\017 \001("
+ + "\01627.google.cloud.documentai.v1beta3.Document.Entity.MethodB\003\340A\001\032\326\002\n"
+ "\017NormalizedValue\022)\n"
+ "\013money_value\030\002 \001(\0132\022.google.type.MoneyH\000\022\'\n\n"
+ "date_value\030\003 \001(\0132\021.google.type.DateH\000\022/\n"
@@ -569,23 +570,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "subject_id\030\001 \001(\t\022\021\n"
+ "\tobject_id\030\002 \001(\t\022\020\n"
+ "\010relation\030\003 \001(\t\032\255\001\n\n"
- + "TextAnchor\022W\n\r"
- + "text_segments\030\001 \003(\0132@.goog"
- + "le.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment\022\017\n"
+ + "TextAnchor\022W\n"
+ + "\r"
+ + "text_segments\030\001 \003(\0132@.google.cloud.docu"
+ + "mentai.v1beta3.Document.TextAnchor.TextSegment\022\017\n"
+ "\007content\030\002 \001(\t\0325\n"
+ "\013TextSegment\022\023\n"
+ "\013start_index\030\001 \001(\003\022\021\n"
+ "\tend_index\030\002 \001(\003\032\347\003\n\n"
+ "PageAnchor\022O\n"
- + "\tpage_refs\030\001"
- + " \003(\0132<.google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef\032\207\003\n"
+ + "\tpage_refs\030\001 \003(\0132<.googl"
+ + "e.cloud.documentai.v1beta3.Document.PageAnchor.PageRef\032\207\003\n"
+ "\007PageRef\022\021\n"
+ "\004page\030\001 \001(\003B\003\340A\002\022a\n"
- + "\013layout_type\030\002 \001(\0162"
- + "G.google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.LayoutTypeB\003\340A\001\022\030\n"
+ + "\013layout_type\030\002 \001(\0162G.google.clou"
+ + "d.documentai.v1beta3.Document.PageAnchor.PageRef.LayoutTypeB\003\340A\001\022\030\n"
+ "\tlayout_id\030\003 \001(\tB\005\030\001\340A\001\022I\n\r"
- + "bounding_poly\030\004"
- + " \001(\0132-.google.cloud.documentai.v1beta3.BoundingPolyB\003\340A\001\022\027\n\n"
+ + "bounding_poly\030\004 \001(\0132-.goog"
+ + "le.cloud.documentai.v1beta3.BoundingPolyB\003\340A\001\022\027\n\n"
+ "confidence\030\005 \001(\002B\003\340A\001\"\207\001\n\n"
+ "LayoutType\022\033\n"
+ "\027LAYOUT_TYPE_UNSPECIFIED\020\000\022\t\n"
@@ -599,10 +601,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "Provenance\022\024\n"
+ "\010revision\030\001 \001(\005B\002\030\001\022\016\n"
+ "\002id\030\002 \001(\005B\002\030\001\022L\n"
- + "\007parents\030\003"
- + " \003(\0132;.google.cloud.documentai.v1beta3.Document.Provenance.Parent\022P\n"
- + "\004type\030\004"
- + " \001(\0162B.google.cloud.documentai.v1beta3.Document.Provenance.OperationType\0329\n"
+ + "\007parents\030\003 \003(\0132;"
+ + ".google.cloud.documentai.v1beta3.Document.Provenance.Parent\022P\n"
+ + "\004type\030\004 \001(\0162B.goog"
+ + "le.cloud.documentai.v1beta3.Document.Provenance.OperationType\0329\n"
+ "\006Parent\022\020\n"
+ "\010revision\030\001 \001(\005\022\r\n"
+ "\005index\030\003 \001(\005\022\016\n"
@@ -623,36 +625,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006parent\030\002 \003(\005B\002\030\001\022\022\n\n"
+ "parent_ids\030\007 \003(\t\022/\n"
+ "\013create_time\030\003 \001(\0132\032.google.protobuf.Timestamp\022T\n"
- + "\014human_review\030\006 \001(\0132>.googl"
- + "e.cloud.documentai.v1beta3.Document.Revision.HumanReview\0323\n"
+ + "\014human_review\030\006 \001(\0132>.google.cloud.docum"
+ + "entai.v1beta3.Document.Revision.HumanReview\0323\n"
+ "\013HumanReview\022\r\n"
+ "\005state\030\001 \001(\t\022\025\n\r"
+ "state_message\030\002 \001(\tB\010\n"
+ "\006source\032\273\001\n\n"
+ "TextChange\022I\n"
- + "\013text_anchor\030\001 \001(\01324.go"
- + "ogle.cloud.documentai.v1beta3.Document.TextAnchor\022\024\n"
+ + "\013text_anchor\030\001"
+ + " \001(\01324.google.cloud.documentai.v1beta3.Document.TextAnchor\022\024\n"
+ "\014changed_text\030\002 \001(\t\022L\n\n"
- + "provenance\030\003"
- + " \003(\01324.google.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\032\"\n"
+ + "provenance\030\003 \003(\01324"
+ + ".google.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\032\"\n"
+ "\013Annotations\022\023\n"
+ "\013description\030\001 \001(\t\032\223\021\n"
+ "\016DocumentLayout\022\\\n"
- + "\006blocks\030\001 \003(\0132L.google.cloud.docu"
- + "mentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock\032\242\020\n"
+ + "\006blocks\030\001 \003(\0132L.google.cloud.documentai.v1beta"
+ + "3.Document.DocumentLayout.DocumentLayoutBlock\032\242\020\n"
+ "\023DocumentLayoutBlock\022r\n\n"
- + "text_block\030\002 \001(\0132\\.google.cloud.do"
- + "cumentai.v1beta3.Document.DocumentLayout"
- + ".DocumentLayoutBlock.LayoutTextBlockH\000\022t\n"
- + "\013table_block\030\003 \001(\0132].google.cloud.docum"
- + "entai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlockH\000\022r\n\n"
- + "list_block\030\004 \001(\0132\\.google.cloud.document"
- + "ai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlockH\000\022t\n"
- + "\013image_block\030\007 \001(\0132].google.cloud.documentai."
- + "v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlockH\000\022\020\n"
+ + "text_block\030\002 \001(\0132\\.google.cloud.documentai.v1be"
+ + "ta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockH\000\022t\n"
+ + "\013table_block\030\003 \001(\0132].google.cloud.documentai.v1beta3"
+ + ".Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlockH\000\022r\n\n"
+ + "list_block\030\004 \001(\0132\\.google.cloud.documentai.v1beta3.Do"
+ + "cument.DocumentLayout.DocumentLayoutBlock.LayoutListBlockH\000\022t\n"
+ + "\013image_block\030\007 \001(\0132].google.cloud.documentai.v1beta3.Docum"
+ + "ent.DocumentLayout.DocumentLayoutBlock.LayoutImageBlockH\000\022\020\n"
+ "\010block_id\030\001 \001(\t\022n\n"
- + "\tpage_span\030\005 \001(\0132[.google.cloud.documentai.v1beta3.Document.DocumentL"
- + "ayout.DocumentLayoutBlock.LayoutPageSpan\022C\n"
+ + "\tpage_span\030\005 \001(\0132[.google.cloud.documentai"
+ + ".v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan\022C\n"
+ "\014bounding_box\030\006"
+ " \001(\0132-.google.cloud.documentai.v1beta3.BoundingPoly\0326\n"
+ "\016LayoutPageSpan\022\022\n\n"
@@ -661,118 +662,119 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017LayoutTextBlock\022\014\n"
+ "\004text\030\001 \001(\t\022\014\n"
+ "\004type\030\002 \001(\t\022\\\n"
- + "\006blocks\030\003 \003(\0132L.google.c"
- + "loud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock\022J\n"
- + "\013annotations\030\004"
- + " \001(\01325.google.cloud.documentai.v1beta3.Document.Annotations\032\321\002\n"
+ + "\006blocks\030\003 \003(\0132L.google.cloud.document"
+ + "ai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock\022J\n"
+ + "\013annotations\030\004 \001(\01325.go"
+ + "ogle.cloud.documentai.v1beta3.Document.Annotations\032\321\002\n"
+ "\020LayoutTableBlock\022p\n"
- + "\013header_rows\030\001 \003(\0132[.google.cloud"
- + ".documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\022n\n"
- + "\tbody_rows\030\002 \003(\0132[.google.cloud.documen"
- + "tai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\022\017\n"
+ + "\013header_rows\030\001 \003(\0132[.google.cloud.documentai.v"
+ + "1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\022n\n"
+ + "\tbody_rows\030\002 \003(\0132[.google.cloud.documentai.v1beta3.D"
+ + "ocument.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\022\017\n"
+ "\007caption\030\003 \001(\t\022J\n"
- + "\013annotations\030\004 \001(\01325.google.cl"
- + "oud.documentai.v1beta3.Document.Annotations\032}\n"
+ + "\013annotations\030\004"
+ + " \001(\01325.google.cloud.documentai.v1beta3.Document.Annotations\032}\n"
+ "\016LayoutTableRow\022k\n"
- + "\005cells\030\001 \003(\0132\\.google.cloud.documentai.v1beta3.Document."
- + "DocumentLayout.DocumentLayoutBlock.LayoutTableCell\032\223\001\n"
+ + "\005cells\030\001 \003(\0132\\.google.cloud.documentai.v1beta3.Document.DocumentLayou"
+ + "t.DocumentLayoutBlock.LayoutTableCell\032\223\001\n"
+ "\017LayoutTableCell\022\\\n"
- + "\006blocks\030\001 \003(\0132L.google.cloud.documentai.v1beta3"
- + ".Document.DocumentLayout.DocumentLayoutBlock\022\020\n"
+ + "\006blocks\030\001 \003(\0132L.goog"
+ + "le.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock\022\020\n"
+ "\010row_span\030\002 \001(\005\022\020\n"
+ "\010col_span\030\003 \001(\005\032\223\001\n"
+ "\017LayoutListBlock\022r\n"
- + "\014list_entries\030\001 \003(\0132\\.google.cloud.documentai.v1beta3.Doc"
- + "ument.DocumentLayout.DocumentLayoutBlock.LayoutListEntry\022\014\n"
+ + "\014list_entries\030\001 \003(\0132\\.google.cloud.documentai.v1beta3.Document.Documen"
+ + "tLayout.DocumentLayoutBlock.LayoutListEntry\022\014\n"
+ "\004type\030\002 \001(\t\032o\n"
+ "\017LayoutListEntry\022\\\n"
- + "\006blocks\030\001 \003(\0132L.google.cloud"
- + ".documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock\032\344\001\n"
+ + "\006blocks\030\001 \003(\0132L.google.cloud.documentai.v"
+ + "1beta3.Document.DocumentLayout.DocumentLayoutBlock\032\344\001\n"
+ "\020LayoutImageBlock\022\034\n\r"
+ "blob_asset_id\030\004 \001(\tB\003\340A\001H\000\022\026\n"
+ "\007gcs_uri\030\005 \001(\tB\003\340A\001H\000\022\027\n"
+ "\010data_uri\030\006 \001(\tB\003\340A\001H\000\022\021\n"
+ "\tmime_type\030\001 \001(\t\022\022\n\n"
+ "image_text\030\002 \001(\t\022J\n"
- + "\013annotations\030\003 \001(\01325.google.cloud.d"
- + "ocumentai.v1beta3.Document.AnnotationsB\016\n"
+ + "\013annotations\030\003"
+ + " \001(\01325.google.cloud.documentai.v1beta3.Document.AnnotationsB\016\n"
+ "\014image_sourceB\007\n"
+ "\005block\032\221\013\n"
+ "\017ChunkedDocument\022O\n"
- + "\006chunks\030\001 \003(\0132?.google.cloud.docum"
- + "entai.v1beta3.Document.ChunkedDocument.Chunk\032\254\n\n"
+ + "\006chunks\030\001"
+ + " \003(\0132?.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk\032\254\n\n"
+ "\005Chunk\022\020\n"
+ "\010chunk_id\030\001 \001(\t\022\030\n"
+ "\020source_block_ids\030\002 \003(\t\022\017\n"
+ "\007content\030\003 \001(\t\022`\n"
- + "\tpage_span\030\004 \001(\0132M.google.cloud.documentai"
- + ".v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan\022e\n"
- + "\014page_headers\030\005 \003(\0132O.go"
- + "ogle.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader\022e\n"
- + "\014page_footers\030\006 \003(\0132O.google.cloud.docume"
- + "ntai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter\022`\n"
- + "\014chunk_fields\030\007 \003("
- + "\0132J.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkField\0325\n"
- + "\r"
+ + "\tpage_span\030\004 \001(\0132M.google.cloud.documentai.v1beta3.Docu"
+ + "ment.ChunkedDocument.Chunk.ChunkPageSpan\022e\n"
+ + "\014page_headers\030\005 \003(\0132O.google.cloud.do"
+ + "cumentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader\022e\n"
+ + "\014page_footers\030\006 \003(\0132O.google.cloud.documentai.v1beta3."
+ + "Document.ChunkedDocument.Chunk.ChunkPageFooter\022`\n"
+ + "\014chunk_fields\030\007 \003(\0132J.google.cl"
+ + "oud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkField\0325\n\r"
+ "ChunkPageSpan\022\022\n\n"
+ "page_start\030\001 \001(\005\022\020\n"
+ "\010page_end\030\002 \001(\005\032\201\001\n"
+ "\017ChunkPageHeader\022\014\n"
+ "\004text\030\001 \001(\t\022`\n"
- + "\tpage_span\030\002 \001(\0132M.google.cloud"
- + ".documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan\032\201\001\n"
+ + "\tpage_span\030\002 \001(\0132M.google.cloud.documentai.v"
+ + "1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan\032\201\001\n"
+ "\017ChunkPageFooter\022\014\n"
+ "\004text\030\001 \001(\t\022`\n"
- + "\tpage_span\030\002 \001(\0132M."
- + "google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan\032\274\001\n"
+ + "\tpage_span\030\002 \001(\0132M.google.cloud."
+ + "documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan\032\274\001\n"
+ "\017ImageChunkField\022\034\n\r"
+ "blob_asset_id\030\001 \001(\tB\003\340A\001H\000\022\026\n"
+ "\007gcs_uri\030\002 \001(\tB\003\340A\001H\000\022\027\n"
+ "\010data_uri\030\003 \001(\tB\003\340A\001H\000\022J\n"
- + "\013annotations\030\004 \001(\01325.g"
- + "oogle.cloud.documentai.v1beta3.Document.AnnotationsB\016\n"
+ + "\013annotations\030\004 \001(\01325.google.cloud.d"
+ + "ocumentai.v1beta3.Document.AnnotationsB\016\n"
+ "\014image_source\032]\n"
+ "\017TableChunkField\022J\n"
- + "\013annotations\030\001 \001(\01325.google.clo"
- + "ud.documentai.v1beta3.Document.Annotations\032\366\001\n\n"
+ + "\013annotations\030\001"
+ + " \001(\01325.google.cloud.documentai.v1beta3.Document.Annotations\032\366\001\n\n"
+ "ChunkField\022l\n"
- + "\021image_chunk_field\030\001 \001(\0132O.google.cloud.documentai.v1beta3.D"
- + "ocument.ChunkedDocument.Chunk.ImageChunkFieldH\000\022l\n"
- + "\021table_chunk_field\030\002 \001(\0132O.goo"
- + "gle.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.TableChunkFieldH\000B\014\n"
- + "\n"
+ + "\021image_chunk_field\030\001 \001(\0132O.google"
+ + ".cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ImageChunkFieldH\000\022l\n"
+ + "\021table_chunk_field\030\002 \001(\0132O.google.cloud.doc"
+ + "umentai.v1beta3.Document.ChunkedDocument.Chunk.TableChunkFieldH\000B\014\n\n"
+ "field_type\032K\n"
+ "\tBlobAsset\022\025\n"
+ "\010asset_id\030\001 \001(\tB\003\340A\001\022\024\n"
+ "\007content\030\002 \001(\014B\003\340A\001\022\021\n"
+ "\tmime_type\030\003 \001(\t\032\334\004\n"
+ "\026EntityValidationOutput\022m\n"
- + "\022validation_results\030\001 \003(\0132Q.google.cloud.d"
- + "ocumentai.v1beta3.Document.EntityValidationOutput.ValidationResult\022\026\n"
+ + "\022validation_results\030\001 \003(\0132Q.google.cloud.documentai.v1b"
+ + "eta3.Document.EntityValidationOutput.ValidationResult\022\026\n"
+ "\016pass_all_rules\030\002 \001(\010\032\272\003\n"
+ "\020ValidationResult\022\021\n"
+ "\trule_name\030\001 \001(\t\022\030\n"
+ "\020rule_description\030\002 \001(\t\022\206\001\n"
- + "\026validation_result_type\030\003 \001(\0162f.google.c"
- + "loud.documentai.v1beta3.Document.EntityV"
- + "alidationOutput.ValidationResult.ValidationResultType\022\032\n"
+ + "\026validation_result_type\030\003 \001(\0162f.google.cloud.document"
+ + "ai.v1beta3.Document.EntityValidationOutp"
+ + "ut.ValidationResult.ValidationResultType\022\032\n"
+ "\022validation_details\030\004 \001(\t\"\323\001\n"
+ "\024ValidationResultType\022&\n"
+ "\"VALIDATION_RESULT_TYPE_UNSPECIFIED\020\000\022 \n"
+ "\034VALIDATION_RESULT_TYPE_VALID\020\001\022\"\n"
+ "\036VALIDATION_RESULT_TYPE_INVALID\020\002\022\"\n"
+ "\036VALIDATION_RESULT_TYPE_SKIPPED\020\003\022)\n"
- + "%VALIDATION_RESULT_TYPE_NOT_APPLICABLE\020\004\032\317\001\n"
+ + "%VALIDATION_RESULT_TYPE_NOT_APPLICABLE\020\004\032\236\002\n"
+ "\020EntitiesRevision\022\023\n"
+ "\013revision_id\030\001 \001(\t\022B\n"
- + "\010entities\030\002 \003(\01320.go"
- + "ogle.cloud.documentai.v1beta3.Document.Entity\022b\n"
- + "\030entity_validation_output\030\003 \001(\0132"
- + "@.google.cloud.documentai.v1beta3.Document.EntityValidationOutputB\010\n"
+ + "\010entities\030\002"
+ + " \003(\01320.google.cloud.documentai.v1beta3.Document.Entity\022b\n"
+ + "\030entity_validation_output\030\003 \001(\0132@.google.clou"
+ + "d.documentai.v1beta3.Document.EntityValidationOutput\022M\n\n"
+ + "provenance\030\004 \001(\01324.googl"
+ + "e.cloud.documentai.v1beta3.Document.ProvenanceB\003\340A\001B\010\n"
+ "\006source\"\233\002\n"
- + "\013RevisionRef\022R\n\r"
- + "revision_case\030\001 \001(\01629.goo"
- + "gle.cloud.documentai.v1beta3.RevisionRef.RevisionCaseH\000\022\025\n"
+ + "\013RevisionRef\022R\n"
+ + "\r"
+ + "revision_case\030\001 \001(\01629.google.cloud.docu"
+ + "mentai.v1beta3.RevisionRef.RevisionCaseH\000\022\025\n"
+ "\013revision_id\030\002 \001(\tH\000\022\"\n"
+ "\030latest_processor_version\030\003 \001(\tH\000\"s\n"
+ "\014RevisionCase\022\035\n"
@@ -782,16 +784,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021BASE_OCR_REVISION\020\003B\010\n"
+ "\006sourceB\344\001\n"
+ "#com.google.cloud.documentai.v1beta3B\r"
- + "DocumentProtoP\001ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;docum"
- + "entaipb\252\002\037Google.Cloud.DocumentAI.V1Beta"
- + "3\312\002\037Google\\Cloud\\DocumentAI\\V1beta3\352\002\"Go"
- + "ogle::Cloud::DocumentAI::V1beta3b\006proto3"
+ + "DocumentProtoP\001ZCcloud.google.com/go/documentai/api"
+ + "v1beta3/documentaipb;documentaipb\252\002\037Goog"
+ + "le.Cloud.DocumentAI.V1Beta3\312\002\037Google\\Clo"
+ + "ud\\DocumentAI\\V1beta3\352\002\"Google::Cloud::DocumentAI::V1beta3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.documentai.v1beta3.BarcodeProto.getDescriptor(),
com.google.cloud.documentai.v1beta3.GeometryProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
@@ -1415,7 +1418,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_Document_EntitiesRevision_descriptor,
new java.lang.String[] {
- "RevisionId", "Entities", "EntityValidationOutput",
+ "RevisionId", "Entities", "EntityValidationOutput", "Provenance",
});
internal_static_google_cloud_documentai_v1beta3_RevisionRef_descriptor =
getDescriptor().getMessageType(1);
@@ -1427,6 +1430,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
});
descriptor.resolveAllFeaturesImmutable();
com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
com.google.cloud.documentai.v1beta3.BarcodeProto.getDescriptor();
com.google.cloud.documentai.v1beta3.GeometryProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchema.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchema.java
index 7e9124ed7de7..a1ceefc0c7d9 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchema.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchema.java
@@ -55,6 +55,7 @@ private DocumentSchema() {
displayName_ = "";
description_ = "";
entityTypes_ = java.util.Collections.emptyList();
+ documentPrompt_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -83,7 +84,7 @@ public interface EntityTypeOrBuilder
*
* If specified, lists all the possible values for this entity. This
* should not be more than a handful of values. If the number of values
- * is >10 or could change frequently use the `EntityType.value_ontology`
+ * is >10 or could change frequently, use the `EntityType.value_ontology`
* field and specify a list of all possible values in a value ontology
* file.
*
@@ -101,7 +102,7 @@ public interface EntityTypeOrBuilder
*
* If specified, lists all the possible values for this entity. This
* should not be more than a handful of values. If the number of values
- * is >10 or could change frequently use the `EntityType.value_ontology`
+ * is >10 or could change frequently, use the `EntityType.value_ontology`
* field and specify a list of all possible values in a value ontology
* file.
*
@@ -119,7 +120,7 @@ public interface EntityTypeOrBuilder
*
* If specified, lists all the possible values for this entity. This
* should not be more than a handful of values. If the number of values
- * is >10 or could change frequently use the `EntityType.value_ontology`
+ * is >10 or could change frequently, use the `EntityType.value_ontology`
* field and specify a list of all possible values in a value ontology
* file.
*
@@ -168,7 +169,7 @@ public interface EntityTypeOrBuilder
* - Maximum 64 characters.
* - Must start with a letter.
* - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward
- * compatibility internal infrastructure and tooling can handle any ascii
+ * compatibility, internal infrastructure and tooling can handle any ASCII
* character.)
* - The `/` is sometimes used to denote a property of a type. For example
* `line_item/amount`. This convention is deprecated, but will still be
@@ -193,7 +194,7 @@ public interface EntityTypeOrBuilder
* - Maximum 64 characters.
* - Must start with a letter.
* - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward
- * compatibility internal infrastructure and tooling can handle any ascii
+ * compatibility, internal infrastructure and tooling can handle any ASCII
* character.)
* - The `/` is sometimes used to denote a property of a type. For example
* `line_item/amount`. This convention is deprecated, but will still be
@@ -1503,9 +1504,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* For example, a bank statement might only have one
* `account_number`, but this account number can be mentioned in several
* places on the document. In this case, the `account_number` is
- * considered a `REQUIRED_ONCE` entity type. If, on the other hand, we
- * expect a bank statement to contain the status of multiple different
- * accounts for the customers, the occurrence type is set to
+ * considered a `REQUIRED_ONCE` entity type. If, on the other hand, it's
+ * expected that a bank statement contains the status of multiple
+ * different accounts for the customers, the occurrence type is set to
* `REQUIRED_MULTIPLE`.
*
*
@@ -3784,7 +3785,7 @@ public ValueSourceCase getValueSourceCase() {
*
* If specified, lists all the possible values for this entity. This
* should not be more than a handful of values. If the number of values
- * is >10 or could change frequently use the `EntityType.value_ontology`
+ * is >10 or could change frequently, use the `EntityType.value_ontology`
* field and specify a list of all possible values in a value ontology
* file.
*
@@ -3805,7 +3806,7 @@ public boolean hasEnumValues() {
*
* If specified, lists all the possible values for this entity. This
* should not be more than a handful of values. If the number of values
- * is >10 or could change frequently use the `EntityType.value_ontology`
+ * is >10 or could change frequently, use the `EntityType.value_ontology`
* field and specify a list of all possible values in a value ontology
* file.
*
@@ -3832,7 +3833,7 @@ public boolean hasEnumValues() {
*
* If specified, lists all the possible values for this entity. This
* should not be more than a handful of values. If the number of values
- * is >10 or could change frequently use the `EntityType.value_ontology`
+ * is >10 or could change frequently, use the `EntityType.value_ontology`
* field and specify a list of all possible values in a value ontology
* file.
*
@@ -3921,7 +3922,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
* - Maximum 64 characters.
* - Must start with a letter.
* - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward
- * compatibility internal infrastructure and tooling can handle any ascii
+ * compatibility, internal infrastructure and tooling can handle any ASCII
* character.)
* - The `/` is sometimes used to denote a property of a type. For example
* `line_item/amount`. This convention is deprecated, but will still be
@@ -3957,7 +3958,7 @@ public java.lang.String getName() {
* - Maximum 64 characters.
* - Must start with a letter.
* - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward
- * compatibility internal infrastructure and tooling can handle any ascii
+ * compatibility, internal infrastructure and tooling can handle any ASCII
* character.)
* - The `/` is sometimes used to denote a property of a type. For example
* `line_item/amount`. This convention is deprecated, but will still be
@@ -4868,7 +4869,7 @@ public Builder clearValueSource() {
*
* If specified, lists all the possible values for this entity. This
* should not be more than a handful of values. If the number of values
- * is >10 or could change frequently use the `EntityType.value_ontology`
+ * is >10 or could change frequently, use the `EntityType.value_ontology`
* field and specify a list of all possible values in a value ontology
* file.
*
@@ -4890,7 +4891,7 @@ public boolean hasEnumValues() {
*
* If specified, lists all the possible values for this entity. This
* should not be more than a handful of values. If the number of values
- * is >10 or could change frequently use the `EntityType.value_ontology`
+ * is >10 or could change frequently, use the `EntityType.value_ontology`
* field and specify a list of all possible values in a value ontology
* file.
*
@@ -4926,7 +4927,7 @@ public boolean hasEnumValues() {
*
* If specified, lists all the possible values for this entity. This
* should not be more than a handful of values. If the number of values
- * is >10 or could change frequently use the `EntityType.value_ontology`
+ * is >10 or could change frequently, use the `EntityType.value_ontology`
* field and specify a list of all possible values in a value ontology
* file.
*
@@ -4956,7 +4957,7 @@ public Builder setEnumValues(
*
* If specified, lists all the possible values for this entity. This
* should not be more than a handful of values. If the number of values
- * is >10 or could change frequently use the `EntityType.value_ontology`
+ * is >10 or could change frequently, use the `EntityType.value_ontology`
* field and specify a list of all possible values in a value ontology
* file.
*
@@ -4984,7 +4985,7 @@ public Builder setEnumValues(
*
* If specified, lists all the possible values for this entity. This
* should not be more than a handful of values. If the number of values
- * is >10 or could change frequently use the `EntityType.value_ontology`
+ * is >10 or could change frequently, use the `EntityType.value_ontology`
* field and specify a list of all possible values in a value ontology
* file.
*
@@ -5027,7 +5028,7 @@ public Builder mergeEnumValues(
*
* If specified, lists all the possible values for this entity. This
* should not be more than a handful of values. If the number of values
- * is >10 or could change frequently use the `EntityType.value_ontology`
+ * is >10 or could change frequently, use the `EntityType.value_ontology`
* field and specify a list of all possible values in a value ontology
* file.
*
@@ -5059,7 +5060,7 @@ public Builder clearEnumValues() {
*
* If specified, lists all the possible values for this entity. This
* should not be more than a handful of values. If the number of values
- * is >10 or could change frequently use the `EntityType.value_ontology`
+ * is >10 or could change frequently, use the `EntityType.value_ontology`
* field and specify a list of all possible values in a value ontology
* file.
*
@@ -5079,7 +5080,7 @@ public Builder clearEnumValues() {
*
* If specified, lists all the possible values for this entity. This
* should not be more than a handful of values. If the number of values
- * is >10 or could change frequently use the `EntityType.value_ontology`
+ * is >10 or could change frequently, use the `EntityType.value_ontology`
* field and specify a list of all possible values in a value ontology
* file.
*
@@ -5109,7 +5110,7 @@ public Builder clearEnumValues() {
*
* If specified, lists all the possible values for this entity. This
* should not be more than a handful of values. If the number of values
- * is >10 or could change frequently use the `EntityType.value_ontology`
+ * is >10 or could change frequently, use the `EntityType.value_ontology`
* field and specify a list of all possible values in a value ontology
* file.
*
@@ -5271,7 +5272,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
* - Maximum 64 characters.
* - Must start with a letter.
* - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward
- * compatibility internal infrastructure and tooling can handle any ascii
+ * compatibility, internal infrastructure and tooling can handle any ASCII
* character.)
* - The `/` is sometimes used to denote a property of a type. For example
* `line_item/amount`. This convention is deprecated, but will still be
@@ -5306,7 +5307,7 @@ public java.lang.String getName() {
* - Maximum 64 characters.
* - Must start with a letter.
* - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward
- * compatibility internal infrastructure and tooling can handle any ascii
+ * compatibility, internal infrastructure and tooling can handle any ASCII
* character.)
* - The `/` is sometimes used to denote a property of a type. For example
* `line_item/amount`. This convention is deprecated, but will still be
@@ -5341,7 +5342,7 @@ public com.google.protobuf.ByteString getNameBytes() {
* - Maximum 64 characters.
* - Must start with a letter.
* - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward
- * compatibility internal infrastructure and tooling can handle any ascii
+ * compatibility, internal infrastructure and tooling can handle any ASCII
* character.)
* - The `/` is sometimes used to denote a property of a type. For example
* `line_item/amount`. This convention is deprecated, but will still be
@@ -5375,7 +5376,7 @@ public Builder setName(java.lang.String value) {
* - Maximum 64 characters.
* - Must start with a letter.
* - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward
- * compatibility internal infrastructure and tooling can handle any ascii
+ * compatibility, internal infrastructure and tooling can handle any ASCII
* character.)
* - The `/` is sometimes used to denote a property of a type. For example
* `line_item/amount`. This convention is deprecated, but will still be
@@ -5405,7 +5406,7 @@ public Builder clearName() {
* - Maximum 64 characters.
* - Must start with a letter.
* - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward
- * compatibility internal infrastructure and tooling can handle any ascii
+ * compatibility, internal infrastructure and tooling can handle any ASCII
* character.)
* - The `/` is sometimes used to denote a property of a type. For example
* `line_item/amount`. This convention is deprecated, but will still be
@@ -6472,7 +6473,7 @@ public interface MetadataOrBuilder
*
*
*
- * If set, we will skip the naming format validation in the schema. So the
+ * If set, this will skip the naming format validation in the schema. So the
* string values in `DocumentSchema.EntityType.name` and
* `DocumentSchema.EntityType.Property.name` will not be checked.
*
@@ -6598,7 +6599,7 @@ public boolean getPrefixedNamingOnProperties() {
*
*
*
- * If set, we will skip the naming format validation in the schema. So the
+ * If set, this will skip the naming format validation in the schema. So the
* string values in `DocumentSchema.EntityType.name` and
* `DocumentSchema.EntityType.Property.name` will not be checked.
*
@@ -7177,7 +7178,7 @@ public Builder clearPrefixedNamingOnProperties() {
*
*
*
- * If set, we will skip the naming format validation in the schema. So the
+ * If set, this will skip the naming format validation in the schema. So the
* string values in `DocumentSchema.EntityType.name` and
* `DocumentSchema.EntityType.Property.name` will not be checked.
*
@@ -7195,7 +7196,7 @@ public boolean getSkipNamingValidation() {
*
*
*
- * If set, we will skip the naming format validation in the schema. So the
+ * If set, this will skip the naming format validation in the schema. So the
* string values in `DocumentSchema.EntityType.name` and
* `DocumentSchema.EntityType.Property.name` will not be checked.
*
@@ -7217,7 +7218,7 @@ public Builder setSkipNamingValidation(boolean value) {
*
*
*
- * If set, we will skip the naming format validation in the schema. So the
+ * If set, this will skip the naming format validation in the schema. So the
* string values in `DocumentSchema.EntityType.name` and
* `DocumentSchema.EntityType.Property.name` will not be checked.
*
@@ -7296,7 +7297,7 @@ public com.google.cloud.documentai.v1beta3.DocumentSchema.Metadata getDefaultIns
*
*
*
- * Display name to show to users.
+ * Display name to show users.
*
*
* string display_name = 1;
@@ -7320,7 +7321,7 @@ public java.lang.String getDisplayName() {
*
*
*
- * Display name to show to users.
+ * Display name to show users.
*
*
* string display_name = 1;
@@ -7532,6 +7533,63 @@ public com.google.cloud.documentai.v1beta3.DocumentSchema.Metadata getMetadata()
: metadata_;
}
+ public static final int DOCUMENT_PROMPT_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object documentPrompt_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Document level prompt provided by the user. This custom text is
+ * injected into the AI model's prompt to provide extra, document-wide
+ * guidance for processing.
+ *
+ *
+ * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The documentPrompt.
+ */
+ @java.lang.Override
+ public java.lang.String getDocumentPrompt() {
+ java.lang.Object ref = documentPrompt_;
+ 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();
+ documentPrompt_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Document level prompt provided by the user. This custom text is
+ * injected into the AI model's prompt to provide extra, document-wide
+ * guidance for processing.
+ *
+ *
+ * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for documentPrompt.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDocumentPromptBytes() {
+ java.lang.Object ref = documentPrompt_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ documentPrompt_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -7558,6 +7616,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getMetadata());
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentPrompt_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, documentPrompt_);
+ }
getUnknownFields().writeTo(output);
}
@@ -7579,6 +7640,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata());
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentPrompt_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, documentPrompt_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -7602,6 +7666,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasMetadata()) {
if (!getMetadata().equals(other.getMetadata())) return false;
}
+ if (!getDocumentPrompt().equals(other.getDocumentPrompt())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -7625,6 +7690,8 @@ public int hashCode() {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
+ hash = (37 * hash) + DOCUMENT_PROMPT_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentPrompt().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -7789,6 +7856,7 @@ public Builder clear() {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
+ documentPrompt_ = "";
return this;
}
@@ -7850,6 +7918,9 @@ private void buildPartial0(com.google.cloud.documentai.v1beta3.DocumentSchema re
result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.documentPrompt_ = documentPrompt_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -7906,6 +7977,11 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.DocumentSchema othe
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
+ if (!other.getDocumentPrompt().isEmpty()) {
+ documentPrompt_ = other.documentPrompt_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -7965,6 +8041,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000008;
break;
} // case 34
+ case 42:
+ {
+ documentPrompt_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -7990,7 +8072,7 @@ public Builder mergeFrom(
*
*
*
- * Display name to show to users.
+ * Display name to show users.
*
*
* string display_name = 1;
@@ -8013,7 +8095,7 @@ public java.lang.String getDisplayName() {
*
*
*
- * Display name to show to users.
+ * Display name to show users.
*
*
* string display_name = 1;
@@ -8036,7 +8118,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
*
- * Display name to show to users.
+ * Display name to show users.
*
*
* string display_name = 1;
@@ -8058,7 +8140,7 @@ public Builder setDisplayName(java.lang.String value) {
*
*
*
- * Display name to show to users.
+ * Display name to show users.
*
*
* string display_name = 1;
@@ -8076,7 +8158,7 @@ public Builder clearDisplayName() {
*
*
*
- * Display name to show to users.
+ * Display name to show users.
*
*
* string display_name = 1;
@@ -8808,6 +8890,127 @@ public Builder clearMetadata() {
return metadataBuilder_;
}
+ private java.lang.Object documentPrompt_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Document level prompt provided by the user. This custom text is
+ * injected into the AI model's prompt to provide extra, document-wide
+ * guidance for processing.
+ *
+ *
+ * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The documentPrompt.
+ */
+ public java.lang.String getDocumentPrompt() {
+ java.lang.Object ref = documentPrompt_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ documentPrompt_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Document level prompt provided by the user. This custom text is
+ * injected into the AI model's prompt to provide extra, document-wide
+ * guidance for processing.
+ *
+ *
+ * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for documentPrompt.
+ */
+ public com.google.protobuf.ByteString getDocumentPromptBytes() {
+ java.lang.Object ref = documentPrompt_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ documentPrompt_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Document level prompt provided by the user. This custom text is
+ * injected into the AI model's prompt to provide extra, document-wide
+ * guidance for processing.
+ *
+ *
+ * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The documentPrompt to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocumentPrompt(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ documentPrompt_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Document level prompt provided by the user. This custom text is
+ * injected into the AI model's prompt to provide extra, document-wide
+ * guidance for processing.
+ *
+ *
+ * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDocumentPrompt() {
+ documentPrompt_ = getDefaultInstance().getDocumentPrompt();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Document level prompt provided by the user. This custom text is
+ * injected into the AI model's prompt to provide extra, document-wide
+ * guidance for processing.
+ *
+ *
+ * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for documentPrompt to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocumentPromptBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ documentPrompt_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.DocumentSchema)
}
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchemaOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchemaOrBuilder.java
index 8684c68ad695..fb58aa68cb86 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchemaOrBuilder.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchemaOrBuilder.java
@@ -30,7 +30,7 @@ public interface DocumentSchemaOrBuilder
*
*
*
- * Display name to show to users.
+ * Display name to show users.
*
*
* string display_name = 1;
@@ -43,7 +43,7 @@ public interface DocumentSchemaOrBuilder
*
*
*
- * Display name to show to users.
+ * Display name to show users.
*
*
* string display_name = 1;
@@ -177,4 +177,34 @@ com.google.cloud.documentai.v1beta3.DocumentSchema.EntityTypeOrBuilder getEntity
* .google.cloud.documentai.v1beta3.DocumentSchema.Metadata metadata = 4;
*/
com.google.cloud.documentai.v1beta3.DocumentSchema.MetadataOrBuilder getMetadataOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Document level prompt provided by the user. This custom text is
+ * injected into the AI model's prompt to provide extra, document-wide
+ * guidance for processing.
+ *
+ *
+ * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The documentPrompt.
+ */
+ java.lang.String getDocumentPrompt();
+
+ /**
+ *
+ *
+ *
+ * Optional. Document level prompt provided by the user. This custom text is
+ * injected into the AI model's prompt to provide extra, document-wide
+ * guidance for processing.
+ *
+ *
+ * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for documentPrompt.
+ */
+ com.google.protobuf.ByteString getDocumentPromptBytes();
}
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Documents.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Documents.java
new file mode 100644
index 000000000000..8b6e562a354c
--- /dev/null
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Documents.java
@@ -0,0 +1,922 @@
+/*
+ * 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/documentai/v1beta3/document_io.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.documentai.v1beta3;
+
+/**
+ *
+ *
+ *
+ * A set of inline documents.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.Documents}
+ */
+@com.google.protobuf.Generated
+public final class Documents extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Documents)
+ DocumentsOrBuilder {
+ 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= */ "",
+ "Documents");
+ }
+
+ // Use Documents.newBuilder() to construct.
+ private Documents(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private Documents() {
+ documents_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_Documents_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_Documents_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.Documents.class,
+ com.google.cloud.documentai.v1beta3.Documents.Builder.class);
+ }
+
+ public static final int DOCUMENTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private java.util.List
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ @java.lang.Override
+ public java.util.List
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.documentai.v1beta3.DocumentOrBuilder>
+ getDocumentsOrBuilderList() {
+ return documents_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ @java.lang.Override
+ public int getDocumentsCount() {
+ return documents_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Document getDocuments(int index) {
+ return documents_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentsOrBuilder(int index) {
+ return documents_.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 < documents_.size(); i++) {
+ output.writeMessage(1, documents_.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 < documents_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documents_.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.documentai.v1beta3.Documents)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.documentai.v1beta3.Documents other =
+ (com.google.cloud.documentai.v1beta3.Documents) obj;
+
+ if (!getDocumentsList().equals(other.getDocumentsList())) 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 (getDocumentsCount() > 0) {
+ hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Documents parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Documents 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.documentai.v1beta3.Documents parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Documents 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.documentai.v1beta3.Documents parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Documents parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Documents parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Documents 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.documentai.v1beta3.Documents parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Documents 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.documentai.v1beta3.Documents parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Documents 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.documentai.v1beta3.Documents 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;
+ }
+
+ /**
+ *
+ *
+ *
+ * A set of inline documents.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.Documents}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public java.util.List
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public int getDocumentsCount() {
+ if (documentsBuilder_ == null) {
+ return documents_.size();
+ } else {
+ return documentsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.Document getDocuments(int index) {
+ if (documentsBuilder_ == null) {
+ return documents_.get(index);
+ } else {
+ return documentsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public Builder setDocuments(int index, com.google.cloud.documentai.v1beta3.Document value) {
+ if (documentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.set(index, value);
+ onChanged();
+ } else {
+ documentsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public Builder setDocuments(
+ int index, com.google.cloud.documentai.v1beta3.Document.Builder builderForValue) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ documentsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public Builder addDocuments(com.google.cloud.documentai.v1beta3.Document value) {
+ if (documentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.add(value);
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public Builder addDocuments(int index, com.google.cloud.documentai.v1beta3.Document value) {
+ if (documentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.add(index, value);
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public Builder addDocuments(
+ com.google.cloud.documentai.v1beta3.Document.Builder builderForValue) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.add(builderForValue.build());
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public Builder addDocuments(
+ int index, com.google.cloud.documentai.v1beta3.Document.Builder builderForValue) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public Builder addAllDocuments(
+ java.lang.Iterable extends com.google.cloud.documentai.v1beta3.Document> values) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_);
+ onChanged();
+ } else {
+ documentsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public Builder clearDocuments() {
+ if (documentsBuilder_ == null) {
+ documents_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ documentsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public Builder removeDocuments(int index) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.remove(index);
+ onChanged();
+ } else {
+ documentsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.Document.Builder getDocumentsBuilder(int index) {
+ return internalGetDocumentsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentsOrBuilder(int index) {
+ if (documentsBuilder_ == null) {
+ return documents_.get(index);
+ } else {
+ return documentsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public java.util.List extends com.google.cloud.documentai.v1beta3.DocumentOrBuilder>
+ getDocumentsOrBuilderList() {
+ if (documentsBuilder_ != null) {
+ return documentsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(documents_);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.Document.Builder addDocumentsBuilder() {
+ return internalGetDocumentsFieldBuilder()
+ .addBuilder(com.google.cloud.documentai.v1beta3.Document.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.Document.Builder addDocumentsBuilder(int index) {
+ return internalGetDocumentsFieldBuilder()
+ .addBuilder(index, com.google.cloud.documentai.v1beta3.Document.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ public java.util.List
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ java.util.List
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ com.google.cloud.documentai.v1beta3.Document getDocuments(int index);
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ int getDocumentsCount();
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ java.util.List extends com.google.cloud.documentai.v1beta3.DocumentOrBuilder>
+ getDocumentsOrBuilderList();
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document documents = 1;
+ */
+ com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentsOrBuilder(int index);
+}
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Evaluation.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Evaluation.java
index 57194e4e0891..cce5e7273a21 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Evaluation.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Evaluation.java
@@ -55,6 +55,7 @@ private Evaluation() {
name_ = "";
kmsKeyName_ = "";
kmsKeyVersionName_ = "";
+ revisions_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -961,7 +962,7 @@ public interface MetricsOrBuilder
*
*
*
- * The calculated f1 score.
+ * The calculated F1 score.
*
*
* float f1_score = 3;
@@ -1167,7 +1168,7 @@ public float getRecall() {
*
*
*
- * The calculated f1 score.
+ * The calculated F1 score.
*
*
* float f1_score = 3;
@@ -1984,7 +1985,7 @@ public Builder clearRecall() {
*
*
*
- * The calculated f1 score.
+ * The calculated F1 score.
*
*
* float f1_score = 3;
@@ -2000,7 +2001,7 @@ public float getF1Score() {
*
*
*
- * The calculated f1 score.
+ * The calculated F1 score.
*
*
* float f1_score = 3;
@@ -2020,7 +2021,7 @@ public Builder setF1Score(float value) {
*
*
*
- * The calculated f1 score.
+ * The calculated F1 score.
*
*
* float f1_score = 3;
@@ -5984,6 +5985,1952 @@ public com.google.protobuf.Parser
+ * Output only. The revision ID of the evaluation.
+ *
+ *
+ * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The revisionId.
+ */
+ java.lang.String getRevisionId();
+
+ /**
+ *
+ *
+ *
+ * Output only. The revision ID of the evaluation.
+ *
+ *
+ * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for revisionId.
+ */
+ com.google.protobuf.ByteString getRevisionIdBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. Counters for the documents used in the evaluation.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the documentCounters field is set.
+ */
+ boolean hasDocumentCounters();
+
+ /**
+ *
+ *
+ *
+ * Output only. Counters for the documents used in the evaluation.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The documentCounters.
+ */
+ com.google.cloud.documentai.v1beta3.Evaluation.Counters getDocumentCounters();
+
+ /**
+ *
+ *
+ *
+ * Output only. Counters for the documents used in the evaluation.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.documentai.v1beta3.Evaluation.CountersOrBuilder getDocumentCountersOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics for all the entities in aggregate.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the allEntitiesMetrics field is set.
+ */
+ boolean hasAllEntitiesMetrics();
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics for all the entities in aggregate.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The allEntitiesMetrics.
+ */
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics getAllEntitiesMetrics();
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics for all the entities in aggregate.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder
+ getAllEntitiesMetricsOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getEntityMetricsCount();
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ boolean containsEntityMetrics(java.lang.String key);
+
+ /** Use {@link #getEntityMetricsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map<
+ java.lang.String, com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics>
+ getEntityMetrics();
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.Map<
+ java.lang.String, com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics>
+ getEntityMetricsMap();
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ /* nullable */
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics getEntityMetricsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics defaultValue);
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics getEntityMetricsOrThrow(
+ java.lang.String key);
+ }
+
+ /**
+ *
+ *
+ *
+ * A revision of the evaluation.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision}
+ */
+ public static final class EvaluationRevision extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision)
+ EvaluationRevisionOrBuilder {
+ 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= */ "",
+ "EvaluationRevision");
+ }
+
+ // Use EvaluationRevision.newBuilder() to construct.
+ private EvaluationRevision(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private EvaluationRevision() {
+ revisionId_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation
+ .internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 4:
+ return internalGetEntityMetrics();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation
+ .internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.class,
+ com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int REVISION_ID_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object revisionId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The revision ID of the evaluation.
+ *
+ *
+ * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The revisionId.
+ */
+ @java.lang.Override
+ public java.lang.String getRevisionId() {
+ java.lang.Object ref = revisionId_;
+ 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();
+ revisionId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The revision ID of the evaluation.
+ *
+ *
+ * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for revisionId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getRevisionIdBytes() {
+ java.lang.Object ref = revisionId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ revisionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DOCUMENT_COUNTERS_FIELD_NUMBER = 2;
+ private com.google.cloud.documentai.v1beta3.Evaluation.Counters documentCounters_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Counters for the documents used in the evaluation.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the documentCounters field is set.
+ */
+ @java.lang.Override
+ public boolean hasDocumentCounters() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Counters for the documents used in the evaluation.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The documentCounters.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Evaluation.Counters getDocumentCounters() {
+ return documentCounters_ == null
+ ? com.google.cloud.documentai.v1beta3.Evaluation.Counters.getDefaultInstance()
+ : documentCounters_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Counters for the documents used in the evaluation.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Evaluation.CountersOrBuilder
+ getDocumentCountersOrBuilder() {
+ return documentCounters_ == null
+ ? com.google.cloud.documentai.v1beta3.Evaluation.Counters.getDefaultInstance()
+ : documentCounters_;
+ }
+
+ public static final int ALL_ENTITIES_METRICS_FIELD_NUMBER = 3;
+ private com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics
+ allEntitiesMetrics_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics for all the entities in aggregate.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the allEntitiesMetrics field is set.
+ */
+ @java.lang.Override
+ public boolean hasAllEntitiesMetrics() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics for all the entities in aggregate.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The allEntitiesMetrics.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics
+ getAllEntitiesMetrics() {
+ return allEntitiesMetrics_ == null
+ ? com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics
+ .getDefaultInstance()
+ : allEntitiesMetrics_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics for all the entities in aggregate.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder
+ getAllEntitiesMetricsOrBuilder() {
+ return allEntitiesMetrics_ == null
+ ? com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics
+ .getDefaultInstance()
+ : allEntitiesMetrics_;
+ }
+
+ public static final int ENTITY_METRICS_FIELD_NUMBER = 4;
+
+ private static final class EntityMetricsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics>
+ defaultEntry =
+ com.google.protobuf.MapEntry
+ .
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public boolean containsEntityMetrics(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetEntityMetrics().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getEntityMetricsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map<
+ java.lang.String, com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics>
+ getEntityMetrics() {
+ return getEntityMetricsMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map<
+ java.lang.String, com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics>
+ getEntityMetricsMap() {
+ return internalGetEntityMetrics().getMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics
+ getEntityMetricsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics>
+ map = internalGetEntityMetrics().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics
+ getEntityMetricsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics>
+ map = internalGetEntityMetrics().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ 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(revisionId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, revisionId_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getDocumentCounters());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(3, getAllEntitiesMetrics());
+ }
+ com.google.protobuf.GeneratedMessage.serializeStringMapTo(
+ output, internalGetEntityMetrics(), EntityMetricsDefaultEntryHolder.defaultEntry, 4);
+ 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(revisionId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, revisionId_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocumentCounters());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAllEntitiesMetrics());
+ }
+ for (java.util.Map.Entry<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics>
+ entry : internalGetEntityMetrics().getMap().entrySet()) {
+ com.google.protobuf.MapEntry<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics>
+ entityMetrics__ =
+ EntityMetricsDefaultEntryHolder.defaultEntry
+ .newBuilderForType()
+ .setKey(entry.getKey())
+ .setValue(entry.getValue())
+ .build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, entityMetrics__);
+ }
+ 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.documentai.v1beta3.Evaluation.EvaluationRevision)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision other =
+ (com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision) obj;
+
+ if (!getRevisionId().equals(other.getRevisionId())) return false;
+ if (hasDocumentCounters() != other.hasDocumentCounters()) return false;
+ if (hasDocumentCounters()) {
+ if (!getDocumentCounters().equals(other.getDocumentCounters())) return false;
+ }
+ if (hasAllEntitiesMetrics() != other.hasAllEntitiesMetrics()) return false;
+ if (hasAllEntitiesMetrics()) {
+ if (!getAllEntitiesMetrics().equals(other.getAllEntitiesMetrics())) return false;
+ }
+ if (!internalGetEntityMetrics().equals(other.internalGetEntityMetrics())) 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) + REVISION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getRevisionId().hashCode();
+ if (hasDocumentCounters()) {
+ hash = (37 * hash) + DOCUMENT_COUNTERS_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentCounters().hashCode();
+ }
+ if (hasAllEntitiesMetrics()) {
+ hash = (37 * hash) + ALL_ENTITIES_METRICS_FIELD_NUMBER;
+ hash = (53 * hash) + getAllEntitiesMetrics().hashCode();
+ }
+ if (!internalGetEntityMetrics().getMap().isEmpty()) {
+ hash = (37 * hash) + ENTITY_METRICS_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetEntityMetrics().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision 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.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision 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.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision 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.documentai.v1beta3.Evaluation.EvaluationRevision
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision
+ 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.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision 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.documentai.v1beta3.Evaluation.EvaluationRevision 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;
+ }
+
+ /**
+ *
+ *
+ *
+ * A revision of the evaluation.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The revision ID of the evaluation.
+ *
+ *
+ * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The revisionId.
+ */
+ public java.lang.String getRevisionId() {
+ java.lang.Object ref = revisionId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ revisionId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The revision ID of the evaluation.
+ *
+ *
+ * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for revisionId.
+ */
+ public com.google.protobuf.ByteString getRevisionIdBytes() {
+ java.lang.Object ref = revisionId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ revisionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The revision ID of the evaluation.
+ *
+ *
+ * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The revisionId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRevisionId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ revisionId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The revision ID of the evaluation.
+ *
+ *
+ * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRevisionId() {
+ revisionId_ = getDefaultInstance().getRevisionId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The revision ID of the evaluation.
+ *
+ *
+ * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for revisionId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ revisionId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.documentai.v1beta3.Evaluation.Counters documentCounters_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.documentai.v1beta3.Evaluation.Counters,
+ com.google.cloud.documentai.v1beta3.Evaluation.Counters.Builder,
+ com.google.cloud.documentai.v1beta3.Evaluation.CountersOrBuilder>
+ documentCountersBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Counters for the documents used in the evaluation.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the documentCounters field is set.
+ */
+ public boolean hasDocumentCounters() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Counters for the documents used in the evaluation.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The documentCounters.
+ */
+ public com.google.cloud.documentai.v1beta3.Evaluation.Counters getDocumentCounters() {
+ if (documentCountersBuilder_ == null) {
+ return documentCounters_ == null
+ ? com.google.cloud.documentai.v1beta3.Evaluation.Counters.getDefaultInstance()
+ : documentCounters_;
+ } else {
+ return documentCountersBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Counters for the documents used in the evaluation.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setDocumentCounters(
+ com.google.cloud.documentai.v1beta3.Evaluation.Counters value) {
+ if (documentCountersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ documentCounters_ = value;
+ } else {
+ documentCountersBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Counters for the documents used in the evaluation.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setDocumentCounters(
+ com.google.cloud.documentai.v1beta3.Evaluation.Counters.Builder builderForValue) {
+ if (documentCountersBuilder_ == null) {
+ documentCounters_ = builderForValue.build();
+ } else {
+ documentCountersBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Counters for the documents used in the evaluation.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeDocumentCounters(
+ com.google.cloud.documentai.v1beta3.Evaluation.Counters value) {
+ if (documentCountersBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && documentCounters_ != null
+ && documentCounters_
+ != com.google.cloud.documentai.v1beta3.Evaluation.Counters.getDefaultInstance()) {
+ getDocumentCountersBuilder().mergeFrom(value);
+ } else {
+ documentCounters_ = value;
+ }
+ } else {
+ documentCountersBuilder_.mergeFrom(value);
+ }
+ if (documentCounters_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Counters for the documents used in the evaluation.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearDocumentCounters() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ documentCounters_ = null;
+ if (documentCountersBuilder_ != null) {
+ documentCountersBuilder_.dispose();
+ documentCountersBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Counters for the documents used in the evaluation.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.documentai.v1beta3.Evaluation.Counters.Builder
+ getDocumentCountersBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetDocumentCountersFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Counters for the documents used in the evaluation.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.documentai.v1beta3.Evaluation.CountersOrBuilder
+ getDocumentCountersOrBuilder() {
+ if (documentCountersBuilder_ != null) {
+ return documentCountersBuilder_.getMessageOrBuilder();
+ } else {
+ return documentCounters_ == null
+ ? com.google.cloud.documentai.v1beta3.Evaluation.Counters.getDefaultInstance()
+ : documentCounters_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Counters for the documents used in the evaluation.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.documentai.v1beta3.Evaluation.Counters,
+ com.google.cloud.documentai.v1beta3.Evaluation.Counters.Builder,
+ com.google.cloud.documentai.v1beta3.Evaluation.CountersOrBuilder>
+ internalGetDocumentCountersFieldBuilder() {
+ if (documentCountersBuilder_ == null) {
+ documentCountersBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.documentai.v1beta3.Evaluation.Counters,
+ com.google.cloud.documentai.v1beta3.Evaluation.Counters.Builder,
+ com.google.cloud.documentai.v1beta3.Evaluation.CountersOrBuilder>(
+ getDocumentCounters(), getParentForChildren(), isClean());
+ documentCounters_ = null;
+ }
+ return documentCountersBuilder_;
+ }
+
+ private com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics
+ allEntitiesMetrics_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder>
+ allEntitiesMetricsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics for all the entities in aggregate.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the allEntitiesMetrics field is set.
+ */
+ public boolean hasAllEntitiesMetrics() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics for all the entities in aggregate.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The allEntitiesMetrics.
+ */
+ public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics
+ getAllEntitiesMetrics() {
+ if (allEntitiesMetricsBuilder_ == null) {
+ return allEntitiesMetrics_ == null
+ ? com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics
+ .getDefaultInstance()
+ : allEntitiesMetrics_;
+ } else {
+ return allEntitiesMetricsBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics for all the entities in aggregate.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setAllEntitiesMetrics(
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics value) {
+ if (allEntitiesMetricsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ allEntitiesMetrics_ = value;
+ } else {
+ allEntitiesMetricsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics for all the entities in aggregate.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setAllEntitiesMetrics(
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder
+ builderForValue) {
+ if (allEntitiesMetricsBuilder_ == null) {
+ allEntitiesMetrics_ = builderForValue.build();
+ } else {
+ allEntitiesMetricsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics for all the entities in aggregate.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeAllEntitiesMetrics(
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics value) {
+ if (allEntitiesMetricsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && allEntitiesMetrics_ != null
+ && allEntitiesMetrics_
+ != com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics
+ .getDefaultInstance()) {
+ getAllEntitiesMetricsBuilder().mergeFrom(value);
+ } else {
+ allEntitiesMetrics_ = value;
+ }
+ } else {
+ allEntitiesMetricsBuilder_.mergeFrom(value);
+ }
+ if (allEntitiesMetrics_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics for all the entities in aggregate.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearAllEntitiesMetrics() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ allEntitiesMetrics_ = null;
+ if (allEntitiesMetricsBuilder_ != null) {
+ allEntitiesMetricsBuilder_.dispose();
+ allEntitiesMetricsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics for all the entities in aggregate.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder
+ getAllEntitiesMetricsBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return internalGetAllEntitiesMetricsFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics for all the entities in aggregate.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder
+ getAllEntitiesMetricsOrBuilder() {
+ if (allEntitiesMetricsBuilder_ != null) {
+ return allEntitiesMetricsBuilder_.getMessageOrBuilder();
+ } else {
+ return allEntitiesMetrics_ == null
+ ? com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics
+ .getDefaultInstance()
+ : allEntitiesMetrics_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics for all the entities in aggregate.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder>
+ internalGetAllEntitiesMetricsFieldBuilder() {
+ if (allEntitiesMetricsBuilder_ == null) {
+ allEntitiesMetricsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder>(
+ getAllEntitiesMetrics(), getParentForChildren(), isClean());
+ allEntitiesMetrics_ = null;
+ }
+ return allEntitiesMetricsBuilder_;
+ }
+
+ private static final class EntityMetricsConverter
+ implements com.google.protobuf.MapFieldBuilder.Converter<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> {
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics build(
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder val) {
+ if (val
+ instanceof com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics) {
+ return (com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics) val;
+ }
+ return ((com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder)
+ val)
+ .build();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.MapEntry<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics>
+ defaultEntry() {
+ return EntityMetricsDefaultEntryHolder.defaultEntry;
+ }
+ }
+ ;
+
+ private static final EntityMetricsConverter entityMetricsConverter =
+ new EntityMetricsConverter();
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder>
+ entityMetrics_;
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder>
+ internalGetEntityMetrics() {
+ if (entityMetrics_ == null) {
+ return new com.google.protobuf.MapFieldBuilder<>(entityMetricsConverter);
+ }
+ return entityMetrics_;
+ }
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder>
+ internalGetMutableEntityMetrics() {
+ if (entityMetrics_ == null) {
+ entityMetrics_ = new com.google.protobuf.MapFieldBuilder<>(entityMetricsConverter);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return entityMetrics_;
+ }
+
+ public int getEntityMetricsCount() {
+ return internalGetEntityMetrics().ensureBuilderMap().size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public boolean containsEntityMetrics(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetEntityMetrics().ensureBuilderMap().containsKey(key);
+ }
+
+ /** Use {@link #getEntityMetricsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics>
+ getEntityMetrics() {
+ return getEntityMetricsMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics>
+ getEntityMetricsMap() {
+ return internalGetEntityMetrics().getImmutableMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics
+ getEntityMetricsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder>
+ map = internalGetMutableEntityMetrics().ensureBuilderMap();
+ return map.containsKey(key) ? entityMetricsConverter.build(map.get(key)) : defaultValue;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics
+ getEntityMetricsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder>
+ map = internalGetMutableEntityMetrics().ensureBuilderMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return entityMetricsConverter.build(map.get(key));
+ }
+
+ public Builder clearEntityMetrics() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ internalGetMutableEntityMetrics().clear();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeEntityMetrics(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableEntityMetrics().ensureBuilderMap().remove(key);
+ return this;
+ }
+
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics>
+ getMutableEntityMetrics() {
+ bitField0_ |= 0x00000008;
+ return internalGetMutableEntityMetrics().ensureMessageMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder putEntityMetrics(
+ java.lang.String key,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableEntityMetrics().ensureBuilderMap().put(key, value);
+ bitField0_ |= 0x00000008;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder putAllEntityMetrics(
+ java.util.Map<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics>
+ values) {
+ for (java.util.Map.Entry<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics>
+ e : values.entrySet()) {
+ if (e.getKey() == null || e.getValue() == null) {
+ throw new NullPointerException();
+ }
+ }
+ internalGetMutableEntityMetrics().ensureBuilderMap().putAll(values);
+ bitField0_ |= 0x00000008;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Metrics across confidence levels, for different entities.
+ *
+ *
+ *
+ * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder
+ putEntityMetricsBuilderIfAbsent(java.lang.String key) {
+ java.util.Map<
+ java.lang.String,
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder>
+ builderMap = internalGetMutableEntityMetrics().ensureBuilderMap();
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder entry =
+ builderMap.get(key);
+ if (entry == null) {
+ entry =
+ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.newBuilder();
+ builderMap.put(key, entry);
+ }
+ if (entry
+ instanceof com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics) {
+ entry =
+ ((com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics) entry)
+ .toBuilder();
+ builderMap.put(key, entry);
+ }
+ return (com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder)
+ entry;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision)
+ private static final com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision();
+ }
+
+ public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder>
+ getRevisionsOrBuilderList() {
+ return revisions_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ @java.lang.Override
+ public int getRevisionsCount() {
+ return revisions_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision getRevisions(int index) {
+ return revisions_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder
+ getRevisionsOrBuilder(int index) {
+ return revisions_.get(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -6482,6 +8514,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyVersionName_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 7, kmsKeyVersionName_);
}
+ for (int i = 0; i < revisions_.size(); i++) {
+ output.writeMessage(9, revisions_.get(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -6523,6 +8558,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyVersionName_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(7, kmsKeyVersionName_);
}
+ for (int i = 0; i < revisions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, revisions_.get(i));
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -6555,6 +8593,7 @@ public boolean equals(final java.lang.Object obj) {
if (!internalGetEntityMetrics().equals(other.internalGetEntityMetrics())) return false;
if (!getKmsKeyName().equals(other.getKmsKeyName())) return false;
if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false;
+ if (!getRevisionsList().equals(other.getRevisionsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -6588,6 +8627,10 @@ public int hashCode() {
hash = (53 * hash) + getKmsKeyName().hashCode();
hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER;
hash = (53 * hash) + getKmsKeyVersionName().hashCode();
+ if (getRevisionsCount() > 0) {
+ hash = (37 * hash) + REVISIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getRevisionsList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -6754,6 +8797,7 @@ private void maybeForceBuilderInitialization() {
internalGetCreateTimeFieldBuilder();
internalGetDocumentCountersFieldBuilder();
internalGetAllEntitiesMetricsFieldBuilder();
+ internalGetRevisionsFieldBuilder();
}
}
@@ -6780,6 +8824,13 @@ public Builder clear() {
internalGetMutableEntityMetrics().clear();
kmsKeyName_ = "";
kmsKeyVersionName_ = "";
+ if (revisionsBuilder_ == null) {
+ revisions_ = java.util.Collections.emptyList();
+ } else {
+ revisions_ = null;
+ revisionsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
@@ -6807,6 +8858,7 @@ public com.google.cloud.documentai.v1beta3.Evaluation build() {
public com.google.cloud.documentai.v1beta3.Evaluation buildPartial() {
com.google.cloud.documentai.v1beta3.Evaluation result =
new com.google.cloud.documentai.v1beta3.Evaluation(this);
+ buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -6814,6 +8866,18 @@ public com.google.cloud.documentai.v1beta3.Evaluation buildPartial() {
return result;
}
+ private void buildPartialRepeatedFields(com.google.cloud.documentai.v1beta3.Evaluation result) {
+ if (revisionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0)) {
+ revisions_ = java.util.Collections.unmodifiableList(revisions_);
+ bitField0_ = (bitField0_ & ~0x00000080);
+ }
+ result.revisions_ = revisions_;
+ } else {
+ result.revisions_ = revisionsBuilder_.build();
+ }
+ }
+
private void buildPartial0(com.google.cloud.documentai.v1beta3.Evaluation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
@@ -6887,6 +8951,33 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.Evaluation other) {
bitField0_ |= 0x00000040;
onChanged();
}
+ if (revisionsBuilder_ == null) {
+ if (!other.revisions_.isEmpty()) {
+ if (revisions_.isEmpty()) {
+ revisions_ = other.revisions_;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ } else {
+ ensureRevisionsIsMutable();
+ revisions_.addAll(other.revisions_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.revisions_.isEmpty()) {
+ if (revisionsBuilder_.isEmpty()) {
+ revisionsBuilder_.dispose();
+ revisionsBuilder_ = null;
+ revisions_ = other.revisions_;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ revisionsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
+ ? internalGetRevisionsFieldBuilder()
+ : null;
+ } else {
+ revisionsBuilder_.addAllMessages(other.revisions_);
+ }
+ }
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -6967,6 +9058,20 @@ public Builder mergeFrom(
bitField0_ |= 0x00000040;
break;
} // case 58
+ case 74:
+ {
+ com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision m =
+ input.readMessage(
+ com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.parser(),
+ extensionRegistry);
+ if (revisionsBuilder_ == null) {
+ ensureRevisionsIsMutable();
+ revisions_.add(m);
+ } else {
+ revisionsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 74
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -8232,6 +10337,412 @@ public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.util.List
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public java.util.List
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public int getRevisionsCount() {
+ if (revisionsBuilder_ == null) {
+ return revisions_.size();
+ } else {
+ return revisionsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision getRevisions(
+ int index) {
+ if (revisionsBuilder_ == null) {
+ return revisions_.get(index);
+ } else {
+ return revisionsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public Builder setRevisions(
+ int index, com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision value) {
+ if (revisionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRevisionsIsMutable();
+ revisions_.set(index, value);
+ onChanged();
+ } else {
+ revisionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public Builder setRevisions(
+ int index,
+ com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder builderForValue) {
+ if (revisionsBuilder_ == null) {
+ ensureRevisionsIsMutable();
+ revisions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ revisionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public Builder addRevisions(
+ com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision value) {
+ if (revisionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRevisionsIsMutable();
+ revisions_.add(value);
+ onChanged();
+ } else {
+ revisionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public Builder addRevisions(
+ int index, com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision value) {
+ if (revisionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRevisionsIsMutable();
+ revisions_.add(index, value);
+ onChanged();
+ } else {
+ revisionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public Builder addRevisions(
+ com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder builderForValue) {
+ if (revisionsBuilder_ == null) {
+ ensureRevisionsIsMutable();
+ revisions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ revisionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public Builder addRevisions(
+ int index,
+ com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder builderForValue) {
+ if (revisionsBuilder_ == null) {
+ ensureRevisionsIsMutable();
+ revisions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ revisionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public Builder addAllRevisions(
+ java.lang.Iterable<
+ ? extends com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision>
+ values) {
+ if (revisionsBuilder_ == null) {
+ ensureRevisionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, revisions_);
+ onChanged();
+ } else {
+ revisionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public Builder clearRevisions() {
+ if (revisionsBuilder_ == null) {
+ revisions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ } else {
+ revisionsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public Builder removeRevisions(int index) {
+ if (revisionsBuilder_ == null) {
+ ensureRevisionsIsMutable();
+ revisions_.remove(index);
+ onChanged();
+ } else {
+ revisionsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder
+ getRevisionsBuilder(int index) {
+ return internalGetRevisionsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder
+ getRevisionsOrBuilder(int index) {
+ if (revisionsBuilder_ == null) {
+ return revisions_.get(index);
+ } else {
+ return revisionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder>
+ getRevisionsOrBuilderList() {
+ if (revisionsBuilder_ != null) {
+ return revisionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(revisions_);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder
+ addRevisionsBuilder() {
+ return internalGetRevisionsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder
+ addRevisionsBuilder(int index) {
+ return internalGetRevisionsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ public java.util.List
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ java.util.List
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision getRevisions(int index);
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ int getRevisionsCount();
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder>
+ getRevisionsOrBuilderList();
+
+ /**
+ *
+ *
+ *
+ * Contains all revisions of the evaluation, excluding the latest one.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9;
+ *
+ */
+ com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder getRevisionsOrBuilder(
+ int index);
}
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportDocumentsRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportDocumentsRequest.java
index be65f7e92342..ccd38c9c2ae6 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportDocumentsRequest.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportDocumentsRequest.java
@@ -198,6 +198,40 @@ public interface BatchDocumentsImportConfigOrBuilder
com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfigOrBuilder
getBatchInputConfigOrBuilder();
+ /**
+ *
+ *
+ *
+ * Optional. If set, determines the type of the documents to be imported in
+ * this batch. It can be used to auto-label the documents with a single
+ * entity of the provided type. This field can only be used with a
+ * classifier or splitter processor. Providing this field is mutually
+ * exclusive with `entities` and `auto_labeling_config`.
+ *
+ *
+ * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The documentType.
+ */
+ java.lang.String getDocumentType();
+
+ /**
+ *
+ *
+ *
+ * Optional. If set, determines the type of the documents to be imported in
+ * this batch. It can be used to auto-label the documents with a single
+ * entity of the provided type. This field can only be used with a
+ * classifier or splitter processor. Providing this field is mutually
+ * exclusive with `entities` and `auto_labeling_config`.
+ *
+ *
+ * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for documentType.
+ */
+ com.google.protobuf.ByteString getDocumentTypeBytes();
+
com.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig
.SplitTypeConfigCase
getSplitTypeConfigCase();
@@ -235,7 +269,9 @@ private BatchDocumentsImportConfig(com.google.protobuf.GeneratedMessage.Builder<
super(builder);
}
- private BatchDocumentsImportConfig() {}
+ private BatchDocumentsImportConfig() {
+ documentType_ = "";
+ }
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService
@@ -1068,6 +1104,67 @@ public com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig getBatchInp
: batchInputConfig_;
}
+ public static final int DOCUMENT_TYPE_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object documentType_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. If set, determines the type of the documents to be imported in
+ * this batch. It can be used to auto-label the documents with a single
+ * entity of the provided type. This field can only be used with a
+ * classifier or splitter processor. Providing this field is mutually
+ * exclusive with `entities` and `auto_labeling_config`.
+ *
+ *
+ * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The documentType.
+ */
+ @java.lang.Override
+ public java.lang.String getDocumentType() {
+ java.lang.Object ref = documentType_;
+ 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();
+ documentType_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If set, determines the type of the documents to be imported in
+ * this batch. It can be used to auto-label the documents with a single
+ * entity of the provided type. This field can only be used with a
+ * classifier or splitter processor. Providing this field is mutually
+ * exclusive with `entities` and `auto_labeling_config`.
+ *
+ *
+ * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for documentType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDocumentTypeBytes() {
+ java.lang.Object ref = documentType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ documentType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1095,6 +1192,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
.AutoSplitConfig)
splitTypeConfig_);
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentType_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 6, documentType_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1120,6 +1220,9 @@ public int getSerializedSize() {
.BatchDocumentsImportConfig.AutoSplitConfig)
splitTypeConfig_);
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentType_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(6, documentType_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1143,6 +1246,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasBatchInputConfig()) {
if (!getBatchInputConfig().equals(other.getBatchInputConfig())) return false;
}
+ if (!getDocumentType().equals(other.getDocumentType())) return false;
if (!getSplitTypeConfigCase().equals(other.getSplitTypeConfigCase())) return false;
switch (splitTypeConfigCase_) {
case 2:
@@ -1169,6 +1273,8 @@ public int hashCode() {
hash = (37 * hash) + BATCH_INPUT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getBatchInputConfig().hashCode();
}
+ hash = (37 * hash) + DOCUMENT_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentType().hashCode();
switch (splitTypeConfigCase_) {
case 2:
hash = (37 * hash) + DATASET_SPLIT_FIELD_NUMBER;
@@ -1364,6 +1470,7 @@ public Builder clear() {
batchInputConfigBuilder_.dispose();
batchInputConfigBuilder_ = null;
}
+ documentType_ = "";
splitTypeConfigCase_ = 0;
splitTypeConfig_ = null;
return this;
@@ -1420,6 +1527,9 @@ private void buildPartial0(
: batchInputConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.documentType_ = documentType_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -1457,6 +1567,11 @@ public Builder mergeFrom(
if (other.hasBatchInputConfig()) {
mergeBatchInputConfig(other.getBatchInputConfig());
}
+ if (!other.getDocumentType().isEmpty()) {
+ documentType_ = other.documentType_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
switch (other.getSplitTypeConfigCase()) {
case DATASET_SPLIT:
{
@@ -1520,6 +1635,12 @@ public Builder mergeFrom(
splitTypeConfigCase_ = 3;
break;
} // case 26
+ case 50:
+ {
+ documentType_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2167,6 +2288,137 @@ public Builder clearBatchInputConfig() {
return batchInputConfigBuilder_;
}
+ private java.lang.Object documentType_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. If set, determines the type of the documents to be imported in
+ * this batch. It can be used to auto-label the documents with a single
+ * entity of the provided type. This field can only be used with a
+ * classifier or splitter processor. Providing this field is mutually
+ * exclusive with `entities` and `auto_labeling_config`.
+ *
+ *
+ * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The documentType.
+ */
+ public java.lang.String getDocumentType() {
+ java.lang.Object ref = documentType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ documentType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If set, determines the type of the documents to be imported in
+ * this batch. It can be used to auto-label the documents with a single
+ * entity of the provided type. This field can only be used with a
+ * classifier or splitter processor. Providing this field is mutually
+ * exclusive with `entities` and `auto_labeling_config`.
+ *
+ *
+ * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for documentType.
+ */
+ public com.google.protobuf.ByteString getDocumentTypeBytes() {
+ java.lang.Object ref = documentType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ documentType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If set, determines the type of the documents to be imported in
+ * this batch. It can be used to auto-label the documents with a single
+ * entity of the provided type. This field can only be used with a
+ * classifier or splitter processor. Providing this field is mutually
+ * exclusive with `entities` and `auto_labeling_config`.
+ *
+ *
+ * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The documentType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocumentType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ documentType_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If set, determines the type of the documents to be imported in
+ * this batch. It can be used to auto-label the documents with a single
+ * entity of the provided type. This field can only be used with a
+ * classifier or splitter processor. Providing this field is mutually
+ * exclusive with `entities` and `auto_labeling_config`.
+ *
+ *
+ * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDocumentType() {
+ documentType_ = getDefaultInstance().getDocumentType();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If set, determines the type of the documents to be imported in
+ * this batch. It can be used to auto-label the documents with a single
+ * entity of the provided type. This field can only be used with a
+ * classifier or splitter processor. Providing this field is mutually
+ * exclusive with `entities` and `auto_labeling_config`.
+ *
+ *
+ * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for documentType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDocumentTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ documentType_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig)
}
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java
index 9e40e9eb0882..13c9d3332a48 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java
@@ -1851,7 +1851,7 @@ public boolean getEnableSymbol() {
* bool compute_style_info = 8 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See
- * google/cloud/documentai/v1beta3/document_io.proto;l=166
+ * google/cloud/documentai/v1beta3/document_io.proto;l=179
* @return The computeStyleInfo.
*/
@java.lang.Override
@@ -3073,7 +3073,7 @@ public Builder clearEnableSymbol() {
* bool compute_style_info = 8 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See
- * google/cloud/documentai/v1beta3/document_io.proto;l=166
+ * google/cloud/documentai/v1beta3/document_io.proto;l=179
* @return The computeStyleInfo.
*/
@java.lang.Override
@@ -3095,7 +3095,7 @@ public boolean getComputeStyleInfo() {
* bool compute_style_info = 8 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See
- * google/cloud/documentai/v1beta3/document_io.proto;l=166
+ * google/cloud/documentai/v1beta3/document_io.proto;l=179
* @param value The computeStyleInfo to set.
* @return This builder for chaining.
*/
@@ -3121,7 +3121,7 @@ public Builder setComputeStyleInfo(boolean value) {
* bool compute_style_info = 8 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See
- * google/cloud/documentai/v1beta3/document_io.proto;l=166
+ * google/cloud/documentai/v1beta3/document_io.proto;l=179
* @return This builder for chaining.
*/
@java.lang.Deprecated
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java
index 8bfb7b064c5c..b0607ccc6651 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java
@@ -196,7 +196,7 @@ public interface OcrConfigOrBuilder
* bool compute_style_info = 8 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See
- * google/cloud/documentai/v1beta3/document_io.proto;l=166
+ * google/cloud/documentai/v1beta3/document_io.proto;l=179
* @return The computeStyleInfo.
*/
@java.lang.Deprecated
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptions.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptions.java
index 3a1eb8fd6343..bb147c3c0221 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptions.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptions.java
@@ -196,6 +196,19 @@ public interface LayoutConfigOrBuilder
* @return The enableTableAnnotation.
*/
boolean getEnableTableAnnotation();
+
+ /**
+ *
+ *
+ *
+ * Optional. Whether to split table.
+ *
+ *
+ * bool enable_table_split = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableTableSplit.
+ */
+ boolean getEnableTableSplit();
}
/**
@@ -1347,6 +1360,25 @@ public boolean getEnableTableAnnotation() {
return enableTableAnnotation_;
}
+ public static final int ENABLE_TABLE_SPLIT_FIELD_NUMBER = 8;
+ private boolean enableTableSplit_ = false;
+
+ /**
+ *
+ *
+ *
+ * Optional. Whether to split table.
+ *
+ *
+ * bool enable_table_split = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableTableSplit.
+ */
+ @java.lang.Override
+ public boolean getEnableTableSplit() {
+ return enableTableSplit_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1382,6 +1414,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (enableImageExtraction_ != false) {
output.writeBool(7, enableImageExtraction_);
}
+ if (enableTableSplit_ != false) {
+ output.writeBool(8, enableTableSplit_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1412,6 +1447,9 @@ public int getSerializedSize() {
if (enableImageExtraction_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, enableImageExtraction_);
}
+ if (enableTableSplit_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, enableTableSplit_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1438,6 +1476,7 @@ public boolean equals(final java.lang.Object obj) {
if (getEnableImageExtraction() != other.getEnableImageExtraction()) return false;
if (getEnableLlmLayoutParsing() != other.getEnableLlmLayoutParsing()) return false;
if (getEnableTableAnnotation() != other.getEnableTableAnnotation()) return false;
+ if (getEnableTableSplit() != other.getEnableTableSplit()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1465,6 +1504,8 @@ public int hashCode() {
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableLlmLayoutParsing());
hash = (37 * hash) + ENABLE_TABLE_ANNOTATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableTableAnnotation());
+ hash = (37 * hash) + ENABLE_TABLE_SPLIT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableTableSplit());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1628,6 +1669,7 @@ public Builder clear() {
enableImageExtraction_ = false;
enableLlmLayoutParsing_ = false;
enableTableAnnotation_ = false;
+ enableTableSplit_ = false;
return this;
}
@@ -1690,6 +1732,9 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000040) != 0)) {
result.enableTableAnnotation_ = enableTableAnnotation_;
}
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.enableTableSplit_ = enableTableSplit_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -1729,6 +1774,9 @@ public Builder mergeFrom(
if (other.getEnableTableAnnotation() != false) {
setEnableTableAnnotation(other.getEnableTableAnnotation());
}
+ if (other.getEnableTableSplit() != false) {
+ setEnableTableSplit(other.getEnableTableSplit());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1798,6 +1846,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000010;
break;
} // case 56
+ case 64:
+ {
+ enableTableSplit_ = input.readBool();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 64
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2386,6 +2440,62 @@ public Builder clearEnableTableAnnotation() {
return this;
}
+ private boolean enableTableSplit_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Whether to split table.
+ *
+ *
+ * bool enable_table_split = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableTableSplit.
+ */
+ @java.lang.Override
+ public boolean getEnableTableSplit() {
+ return enableTableSplit_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Whether to split table.
+ *
+ *
+ * bool enable_table_split = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The enableTableSplit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableTableSplit(boolean value) {
+
+ enableTableSplit_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Whether to split table.
+ *
+ *
+ * bool enable_table_split = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableTableSplit() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ enableTableSplit_ = false;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfig)
}
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java
index c1bab9e2f348..12740fd692e6 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java
@@ -391,7 +391,7 @@ public com.google.protobuf.ByteString getNameBytes() {
* .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See
- * google/cloud/documentai/v1beta3/document_processor_service.proto;l=473
+ * google/cloud/documentai/v1beta3/document_processor_service.proto;l=477
* @return Whether the document field is set.
*/
@java.lang.Override
@@ -413,7 +413,7 @@ public boolean hasDocument() {
* .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See
- * google/cloud/documentai/v1beta3/document_processor_service.proto;l=473
+ * google/cloud/documentai/v1beta3/document_processor_service.proto;l=477
* @return The document.
*/
@java.lang.Override
@@ -455,11 +455,14 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde
* `false`.
*
*
- * bool skip_human_review = 3;
+ * bool skip_human_review = 3 [deprecated = true];
*
+ * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.skip_human_review is deprecated. See
+ * google/cloud/documentai/v1beta3/document_processor_service.proto;l=481
* @return The skipHumanReview.
*/
@java.lang.Override
+ @java.lang.Deprecated
public boolean getSkipHumanReview() {
return skipHumanReview_;
}
@@ -2224,7 +2227,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
* .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See
- * google/cloud/documentai/v1beta3/document_processor_service.proto;l=473
+ * google/cloud/documentai/v1beta3/document_processor_service.proto;l=477
* @return Whether the document field is set.
*/
@java.lang.Deprecated
@@ -2245,7 +2248,7 @@ public boolean hasDocument() {
* .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See
- * google/cloud/documentai/v1beta3/document_processor_service.proto;l=473
+ * google/cloud/documentai/v1beta3/document_processor_service.proto;l=477
* @return The document.
*/
@java.lang.Deprecated
@@ -2448,11 +2451,14 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde
* `false`.
*
*
- * bool skip_human_review = 3;
+ * bool skip_human_review = 3 [deprecated = true];
*
+ * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.skip_human_review is deprecated.
+ * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=481
* @return The skipHumanReview.
*/
@java.lang.Override
+ @java.lang.Deprecated
public boolean getSkipHumanReview() {
return skipHumanReview_;
}
@@ -2465,11 +2471,14 @@ public boolean getSkipHumanReview() {
* `false`.
*
*
- * bool skip_human_review = 3;
+ * bool skip_human_review = 3 [deprecated = true];
*
+ * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.skip_human_review is deprecated.
+ * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=481
* @param value The skipHumanReview to set.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder setSkipHumanReview(boolean value) {
skipHumanReview_ = value;
@@ -2486,10 +2495,13 @@ public Builder setSkipHumanReview(boolean value) {
* `false`.
*
*
- * bool skip_human_review = 3;
+ * bool skip_human_review = 3 [deprecated = true];
*
+ * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.skip_human_review is deprecated.
+ * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=481
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder clearSkipHumanReview() {
bitField0_ = (bitField0_ & ~0x00000020);
skipHumanReview_ = false;
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java
index 10b352777105..e3a187f62024 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java
@@ -198,7 +198,7 @@ public interface ProcessRequestOrBuilder
* .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See
- * google/cloud/documentai/v1beta3/document_processor_service.proto;l=473
+ * google/cloud/documentai/v1beta3/document_processor_service.proto;l=477
* @return Whether the document field is set.
*/
@java.lang.Deprecated
@@ -217,7 +217,7 @@ public interface ProcessRequestOrBuilder
* .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See
- * google/cloud/documentai/v1beta3/document_processor_service.proto;l=473
+ * google/cloud/documentai/v1beta3/document_processor_service.proto;l=477
* @return The document.
*/
@java.lang.Deprecated
@@ -246,10 +246,13 @@ public interface ProcessRequestOrBuilder
* `false`.
*
*
- * bool skip_human_review = 3;
+ * bool skip_human_review = 3 [deprecated = true];
*
+ * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.skip_human_review is deprecated. See
+ * google/cloud/documentai/v1beta3/document_processor_service.proto;l=481
* @return The skipHumanReview.
*/
+ @java.lang.Deprecated
boolean getSkipHumanReview();
/**
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java
index dd72b0ed57b7..4c69ad6aa64b 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java
@@ -147,7 +147,7 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde
* string human_review_operation = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is
- * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551
+ * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555
* @return The humanReviewOperation.
*/
@java.lang.Override
@@ -177,7 +177,7 @@ public java.lang.String getHumanReviewOperation() {
* string human_review_operation = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is
- * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551
+ * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555
* @return The bytes for humanReviewOperation.
*/
@java.lang.Override
@@ -860,7 +860,7 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde
* string human_review_operation = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is
- * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551
+ * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555
* @return The humanReviewOperation.
*/
@java.lang.Deprecated
@@ -889,7 +889,7 @@ public java.lang.String getHumanReviewOperation() {
* string human_review_operation = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is
- * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551
+ * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555
* @return The bytes for humanReviewOperation.
*/
@java.lang.Deprecated
@@ -918,7 +918,7 @@ public com.google.protobuf.ByteString getHumanReviewOperationBytes() {
* string human_review_operation = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is
- * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551
+ * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555
* @param value The humanReviewOperation to set.
* @return This builder for chaining.
*/
@@ -946,7 +946,7 @@ public Builder setHumanReviewOperation(java.lang.String value) {
* string human_review_operation = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is
- * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551
+ * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -970,7 +970,7 @@ public Builder clearHumanReviewOperation() {
* string human_review_operation = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is
- * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551
+ * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555
* @param value The bytes for humanReviewOperation to set.
* @return This builder for chaining.
*/
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java
index df5051e069b5..70c2cc8777a8 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java
@@ -79,7 +79,7 @@ public interface ProcessResponseOrBuilder
* string human_review_operation = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is
- * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551
+ * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555
* @return The humanReviewOperation.
*/
@java.lang.Deprecated
@@ -98,7 +98,7 @@ public interface ProcessResponseOrBuilder
* string human_review_operation = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is
- * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551
+ * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555
* @return The bytes for humanReviewOperation.
*/
@java.lang.Deprecated
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java
index 8a34bee3471c..30e89fd83c6e 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java
@@ -1676,7 +1676,7 @@ public interface FoundationGenAiModelInfoOrBuilder
*
*
*
- * Whether finetuning is allowed for this base processor version.
+ * Whether fine tuning is allowed for this base processor version.
*
*
* bool finetuning_allowed = 1;
@@ -1690,7 +1690,7 @@ public interface FoundationGenAiModelInfoOrBuilder
*
*
* The minimum number of labeled documents in the training dataset
- * required for finetuning.
+ * required for fine tuning.
*
*
* int32 min_train_labeled_documents = 2;
@@ -1757,7 +1757,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Whether finetuning is allowed for this base processor version.
+ * Whether fine tuning is allowed for this base processor version.
*
*
* bool finetuning_allowed = 1;
@@ -1777,7 +1777,7 @@ public boolean getFinetuningAllowed() {
*
*
* The minimum number of labeled documents in the training dataset
- * required for finetuning.
+ * required for fine tuning.
*
*
* int32 min_train_labeled_documents = 2;
@@ -2187,7 +2187,7 @@ public Builder mergeFrom(
*
*
*
- * Whether finetuning is allowed for this base processor version.
+ * Whether fine tuning is allowed for this base processor version.
*
*
* bool finetuning_allowed = 1;
@@ -2203,7 +2203,7 @@ public boolean getFinetuningAllowed() {
*
*
*
- * Whether finetuning is allowed for this base processor version.
+ * Whether fine tuning is allowed for this base processor version.
*
*
* bool finetuning_allowed = 1;
@@ -2223,7 +2223,7 @@ public Builder setFinetuningAllowed(boolean value) {
*
*
*
- * Whether finetuning is allowed for this base processor version.
+ * Whether fine tuning is allowed for this base processor version.
*
*
* bool finetuning_allowed = 1;
@@ -2244,7 +2244,7 @@ public Builder clearFinetuningAllowed() {
*
*
* The minimum number of labeled documents in the training dataset
- * required for finetuning.
+ * required for fine tuning.
*
*
* int32 min_train_labeled_documents = 2;
@@ -2261,7 +2261,7 @@ public int getMinTrainLabeledDocuments() {
*
*
* The minimum number of labeled documents in the training dataset
- * required for finetuning.
+ * required for fine tuning.
*
*
* int32 min_train_labeled_documents = 2;
@@ -2282,7 +2282,7 @@ public Builder setMinTrainLabeledDocuments(int value) {
*
*
* The minimum number of labeled documents in the training dataset
- * required for finetuning.
+ * required for fine tuning.
*
*
* int32 min_train_labeled_documents = 2;
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocuments.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocuments.java
new file mode 100644
index 000000000000..bd16df824060
--- /dev/null
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocuments.java
@@ -0,0 +1,926 @@
+/*
+ * 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/documentai/v1beta3/document_io.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.documentai.v1beta3;
+
+/**
+ *
+ *
+ *
+ * Specifies a set of raw documents.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.RawDocuments}
+ */
+@com.google.protobuf.Generated
+public final class RawDocuments extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.RawDocuments)
+ RawDocumentsOrBuilder {
+ 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= */ "",
+ "RawDocuments");
+ }
+
+ // Use RawDocuments.newBuilder() to construct.
+ private RawDocuments(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private RawDocuments() {
+ documents_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_RawDocuments_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_RawDocuments_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.RawDocuments.class,
+ com.google.cloud.documentai.v1beta3.RawDocuments.Builder.class);
+ }
+
+ public static final int DOCUMENTS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private java.util.List
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ @java.lang.Override
+ public java.util.List
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder>
+ getDocumentsOrBuilderList() {
+ return documents_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ @java.lang.Override
+ public int getDocumentsCount() {
+ return documents_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.RawDocument getDocuments(int index) {
+ return documents_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder getDocumentsOrBuilder(int index) {
+ return documents_.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 < documents_.size(); i++) {
+ output.writeMessage(1, documents_.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 < documents_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documents_.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.documentai.v1beta3.RawDocuments)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.documentai.v1beta3.RawDocuments other =
+ (com.google.cloud.documentai.v1beta3.RawDocuments) obj;
+
+ if (!getDocumentsList().equals(other.getDocumentsList())) 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 (getDocumentsCount() > 0) {
+ hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.documentai.v1beta3.RawDocuments parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.RawDocuments 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.documentai.v1beta3.RawDocuments parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.RawDocuments 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.documentai.v1beta3.RawDocuments parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.RawDocuments parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.RawDocuments parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.RawDocuments 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.documentai.v1beta3.RawDocuments parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.RawDocuments 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.documentai.v1beta3.RawDocuments parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.RawDocuments 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.documentai.v1beta3.RawDocuments 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;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies a set of raw documents.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.RawDocuments}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public java.util.List
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public int getDocumentsCount() {
+ if (documentsBuilder_ == null) {
+ return documents_.size();
+ } else {
+ return documentsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.RawDocument getDocuments(int index) {
+ if (documentsBuilder_ == null) {
+ return documents_.get(index);
+ } else {
+ return documentsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public Builder setDocuments(int index, com.google.cloud.documentai.v1beta3.RawDocument value) {
+ if (documentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.set(index, value);
+ onChanged();
+ } else {
+ documentsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public Builder setDocuments(
+ int index, com.google.cloud.documentai.v1beta3.RawDocument.Builder builderForValue) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ documentsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public Builder addDocuments(com.google.cloud.documentai.v1beta3.RawDocument value) {
+ if (documentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.add(value);
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public Builder addDocuments(int index, com.google.cloud.documentai.v1beta3.RawDocument value) {
+ if (documentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.add(index, value);
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public Builder addDocuments(
+ com.google.cloud.documentai.v1beta3.RawDocument.Builder builderForValue) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.add(builderForValue.build());
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public Builder addDocuments(
+ int index, com.google.cloud.documentai.v1beta3.RawDocument.Builder builderForValue) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public Builder addAllDocuments(
+ java.lang.Iterable extends com.google.cloud.documentai.v1beta3.RawDocument> values) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_);
+ onChanged();
+ } else {
+ documentsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public Builder clearDocuments() {
+ if (documentsBuilder_ == null) {
+ documents_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ documentsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public Builder removeDocuments(int index) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.remove(index);
+ onChanged();
+ } else {
+ documentsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.RawDocument.Builder getDocumentsBuilder(int index) {
+ return internalGetDocumentsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder getDocumentsOrBuilder(
+ int index) {
+ if (documentsBuilder_ == null) {
+ return documents_.get(index);
+ } else {
+ return documentsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public java.util.List extends com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder>
+ getDocumentsOrBuilderList() {
+ if (documentsBuilder_ != null) {
+ return documentsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(documents_);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.RawDocument.Builder addDocumentsBuilder() {
+ return internalGetDocumentsFieldBuilder()
+ .addBuilder(com.google.cloud.documentai.v1beta3.RawDocument.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.RawDocument.Builder addDocumentsBuilder(int index) {
+ return internalGetDocumentsFieldBuilder()
+ .addBuilder(index, com.google.cloud.documentai.v1beta3.RawDocument.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ public java.util.List
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ java.util.List
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ com.google.cloud.documentai.v1beta3.RawDocument getDocuments(int index);
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ int getDocumentsCount();
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ java.util.List extends com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder>
+ getDocumentsOrBuilderList();
+
+ /**
+ *
+ *
+ *
+ * Specifies raw document content and mime type.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1;
+ */
+ com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder getDocumentsOrBuilder(int index);
+}
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java
index 1a268808c2c5..5393a87874e6 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java
@@ -399,7 +399,7 @@ public com.google.protobuf.ByteString getHumanReviewConfigBytes() {
* .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See
- * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1223
+ * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1227
* @return Whether the document field is set.
*/
@java.lang.Override
@@ -418,7 +418,7 @@ public boolean hasDocument() {
* .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See
- * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1223
+ * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1227
* @return The document.
*/
@java.lang.Override
@@ -1432,7 +1432,7 @@ public Builder setHumanReviewConfigBytes(com.google.protobuf.ByteString value) {
* .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See
- * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1223
+ * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1227
* @return Whether the document field is set.
*/
@java.lang.Deprecated
@@ -1450,7 +1450,7 @@ public boolean hasDocument() {
* .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See
- * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1223
+ * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1227
* @return The document.
*/
@java.lang.Deprecated
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java
index 278195b2883b..a111dc73e033 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java
@@ -107,7 +107,7 @@ public interface ReviewDocumentRequestOrBuilder
* .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See
- * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1223
+ * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1227
* @return Whether the document field is set.
*/
@java.lang.Deprecated
@@ -123,7 +123,7 @@ public interface ReviewDocumentRequestOrBuilder
* .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See
- * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1223
+ * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1227
* @return The document.
*/
@java.lang.Deprecated
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRef.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRef.java
index f21dec5cd963..91b9ec3986a1 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRef.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRef.java
@@ -377,7 +377,7 @@ public com.google.cloud.documentai.v1beta3.RevisionRef.RevisionCase getRevisionC
*
*
*
- * Reads the revision given by the ID.
+ * Reads the revision given by the id.
*
*
* string revision_id = 2;
@@ -392,7 +392,7 @@ public boolean hasRevisionId() {
*
*
*
- * Reads the revision given by the ID.
+ * Reads the revision given by the id.
*
*
* string revision_id = 2;
@@ -420,7 +420,7 @@ public java.lang.String getRevisionId() {
*
*
*
- * Reads the revision given by the ID.
+ * Reads the revision given by the id.
*
*
* string revision_id = 2;
@@ -1051,7 +1051,7 @@ public Builder clearRevisionCase() {
*
*
*
- * Reads the revision given by the ID.
+ * Reads the revision given by the id.
*
*
* string revision_id = 2;
@@ -1067,7 +1067,7 @@ public boolean hasRevisionId() {
*
*
*
- * Reads the revision given by the ID.
+ * Reads the revision given by the id.
*
*
* string revision_id = 2;
@@ -1096,7 +1096,7 @@ public java.lang.String getRevisionId() {
*
*
*
- * Reads the revision given by the ID.
+ * Reads the revision given by the id.
*
*
* string revision_id = 2;
@@ -1125,7 +1125,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() {
*
*
*
- * Reads the revision given by the ID.
+ * Reads the revision given by the id.
*
*
* string revision_id = 2;
@@ -1147,7 +1147,7 @@ public Builder setRevisionId(java.lang.String value) {
*
*
*
- * Reads the revision given by the ID.
+ * Reads the revision given by the id.
*
*
* string revision_id = 2;
@@ -1167,7 +1167,7 @@ public Builder clearRevisionId() {
*
*
*
- * Reads the revision given by the ID.
+ * Reads the revision given by the id.
*
*
* string revision_id = 2;
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRefOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRefOrBuilder.java
index 6fccd5c252e9..c243a7e1eff0 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRefOrBuilder.java
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRefOrBuilder.java
@@ -69,7 +69,7 @@ public interface RevisionRefOrBuilder
*
*
*
- * Reads the revision given by the ID.
+ * Reads the revision given by the id.
*
*
* string revision_id = 2;
@@ -82,7 +82,7 @@ public interface RevisionRefOrBuilder
*
*
*
- * Reads the revision given by the ID.
+ * Reads the revision given by the id.
*
*
* string revision_id = 2;
@@ -95,7 +95,7 @@ public interface RevisionRefOrBuilder
*
*
*
- * Reads the revision given by the ID.
+ * Reads the revision given by the id.
*
*
* string revision_id = 2;
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateProcessorVersionMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateProcessorVersionMetadata.java
new file mode 100644
index 000000000000..e47f0a59ee3f
--- /dev/null
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateProcessorVersionMetadata.java
@@ -0,0 +1,723 @@
+/*
+ * 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/documentai/v1beta3/document_processor_service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.documentai.v1beta3;
+
+/**
+ *
+ *
+ *
+ * The long-running operation metadata for the
+ * [UpdateProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.UpdateProcessorVersion]
+ * method.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata}
+ */
+@com.google.protobuf.Generated
+public final class UpdateProcessorVersionMetadata extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata)
+ UpdateProcessorVersionMetadataOrBuilder {
+ 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= */ "",
+ "UpdateProcessorVersionMetadata");
+ }
+
+ // Use UpdateProcessorVersionMetadata.newBuilder() to construct.
+ private UpdateProcessorVersionMetadata(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private UpdateProcessorVersionMetadata() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService
+ .internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService
+ .internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata.class,
+ com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int COMMON_METADATA_FIELD_NUMBER = 1;
+ private com.google.cloud.documentai.v1beta3.CommonOperationMetadata commonMetadata_;
+
+ /**
+ *
+ *
+ *
+ * The basic metadata for the long-running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
+ *
+ * @return Whether the commonMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasCommonMetadata() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * The basic metadata for the long-running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
+ *
+ * @return The commonMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMetadata() {
+ return commonMetadata_ == null
+ ? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance()
+ : commonMetadata_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The basic metadata for the long-running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder
+ getCommonMetadataOrBuilder() {
+ return commonMetadata_ == null
+ ? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance()
+ : commonMetadata_;
+ }
+
+ 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.writeMessage(1, getCommonMetadata());
+ }
+ 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.computeMessageSize(1, getCommonMetadata());
+ }
+ 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.documentai.v1beta3.UpdateProcessorVersionMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata other =
+ (com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata) obj;
+
+ if (hasCommonMetadata() != other.hasCommonMetadata()) return false;
+ if (hasCommonMetadata()) {
+ if (!getCommonMetadata().equals(other.getCommonMetadata())) 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 (hasCommonMetadata()) {
+ hash = (37 * hash) + COMMON_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getCommonMetadata().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata 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.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata 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.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata 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.documentai.v1beta3.UpdateProcessorVersionMetadata
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata
+ 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.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata 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.documentai.v1beta3.UpdateProcessorVersionMetadata 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 long-running operation metadata for the
+ * [UpdateProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.UpdateProcessorVersion]
+ * method.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The basic metadata for the long-running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
+ *
+ * @return Whether the commonMetadata field is set.
+ */
+ public boolean hasCommonMetadata() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * The basic metadata for the long-running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
+ *
+ * @return The commonMetadata.
+ */
+ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMetadata() {
+ if (commonMetadataBuilder_ == null) {
+ return commonMetadata_ == null
+ ? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance()
+ : commonMetadata_;
+ } else {
+ return commonMetadataBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The basic metadata for the long-running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
+ */
+ public Builder setCommonMetadata(
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata value) {
+ if (commonMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ commonMetadata_ = value;
+ } else {
+ commonMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The basic metadata for the long-running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
+ */
+ public Builder setCommonMetadata(
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder builderForValue) {
+ if (commonMetadataBuilder_ == null) {
+ commonMetadata_ = builderForValue.build();
+ } else {
+ commonMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The basic metadata for the long-running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
+ */
+ public Builder mergeCommonMetadata(
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata value) {
+ if (commonMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && commonMetadata_ != null
+ && commonMetadata_
+ != com.google.cloud.documentai.v1beta3.CommonOperationMetadata
+ .getDefaultInstance()) {
+ getCommonMetadataBuilder().mergeFrom(value);
+ } else {
+ commonMetadata_ = value;
+ }
+ } else {
+ commonMetadataBuilder_.mergeFrom(value);
+ }
+ if (commonMetadata_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The basic metadata for the long-running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
+ */
+ public Builder clearCommonMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ commonMetadata_ = null;
+ if (commonMetadataBuilder_ != null) {
+ commonMetadataBuilder_.dispose();
+ commonMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The basic metadata for the long-running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder
+ getCommonMetadataBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetCommonMetadataFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * The basic metadata for the long-running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder
+ getCommonMetadataOrBuilder() {
+ if (commonMetadataBuilder_ != null) {
+ return commonMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return commonMetadata_ == null
+ ? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance()
+ : commonMetadata_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The basic metadata for the long-running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata,
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder,
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder>
+ internalGetCommonMetadataFieldBuilder() {
+ if (commonMetadataBuilder_ == null) {
+ commonMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata,
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder,
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder>(
+ getCommonMetadata(), getParentForChildren(), isClean());
+ commonMetadata_ = null;
+ }
+ return commonMetadataBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata)
+ private static final com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata();
+ }
+
+ public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * The basic metadata for the long-running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
+ *
+ * @return Whether the commonMetadata field is set.
+ */
+ boolean hasCommonMetadata();
+
+ /**
+ *
+ *
+ *
+ * The basic metadata for the long-running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
+ *
+ * @return The commonMetadata.
+ */
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMetadata();
+
+ /**
+ *
+ *
+ *
+ * The basic metadata for the long-running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1;
+ */
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder getCommonMetadataOrBuilder();
+}
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/barcode.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/barcode.proto
index ec0958f97c71..02a4cd4bfac3 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/barcode.proto
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/barcode.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-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.proto
index 31cb997a761a..08321edd64cd 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.proto
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.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.
@@ -69,9 +69,6 @@ message Dataset {
// Configuration specific to an unmanaged dataset.
message UnmanagedDatasetConfig {}
- // Configuration specific to spanner-based indexing.
- message SpannerIndexingConfig {}
-
// Different states of a dataset.
enum State {
// Default unspecified enum, should not be used.
@@ -106,14 +103,6 @@ message Dataset {
[(google.api.field_behavior) = OPTIONAL];
}
- oneof indexing_source {
- // Optional. A lightweight indexing source with low latency and high
- // reliability, but lacking advanced features like CMEK and content-based
- // search.
- SpannerIndexingConfig spanner_indexing_config = 4
- [(google.api.field_behavior) = OPTIONAL];
- }
-
// Dataset resource name.
// Format:
// `projects/{project}/locations/{location}/processors/{processor}/dataset`
diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto
index 4560ae86dd36..c803d16bbbd1 100644
--- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto
+++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.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.
@@ -17,6 +17,7 @@ syntax = "proto3";
package google.cloud.documentai.v1beta3;
import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
import "google/cloud/documentai/v1beta3/barcode.proto";
import "google/cloud/documentai/v1beta3/geometry.proto";
import "google/protobuf/timestamp.proto";
@@ -340,7 +341,7 @@ message Document {
repeated DetectedLanguage detected_languages = 2;
}
- // Detected non-text visual elements, for example, checkbox, signature, etc.
+ // Detected non-text visual elements, for example, checkbox, signature etc.
// on the page.
message VisualElement {
// [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for
@@ -530,7 +531,7 @@ message Document {
// A list of visually detected tokens on the page.
repeated Token tokens = 8;
- // A list of detected non-text visual elements for example, checkbox,
+ // A list of detected non-text visual elements, for example, checkbox,
// signature etc. on the page.
repeated VisualElement visual_elements = 9;
@@ -628,10 +629,11 @@ message Document {
// [Document.text][google.cloud.documentai.v1beta3.Document.text].
TextAnchor text_anchor = 1 [(google.api.field_behavior) = OPTIONAL];
- // Required. Entity type from a schema for example, `Address`.
+ // Required. Entity type from a schema, for example, `Address`.
string type = 2 [(google.api.field_behavior) = REQUIRED];
- // Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
+ // Optional. Text value of the entity, for example, `1600 Amphitheatre
+ // Pkwy`.
string mention_text = 3 [(google.api.field_behavior) = OPTIONAL];
// Optional. Deprecated. Use `id` field instead.
@@ -644,7 +646,7 @@ message Document {
// the page where it was found.
PageAnchor page_anchor = 6 [(google.api.field_behavior) = OPTIONAL];
- // Optional. Canonical ID. This will be a unique value in the entity list
+ // Optional. Canonical id. This will be a unique value in the entity list
// for this document.
string id = 7 [(google.api.field_behavior) = OPTIONAL];
@@ -673,10 +675,10 @@ message Document {
// Relationship between
// [Entities][google.cloud.documentai.v1beta3.Document.Entity].
message EntityRelation {
- // Subject entity ID.
+ // Subject entity id.
string subject_id = 1;
- // Object entity ID.
+ // Object entity id.
string object_id = 2;
// Relationship description.
@@ -806,7 +808,7 @@ message Document {
// of entities, properties within entities, etc.) in the parent revision.
int32 index = 3;
- // The ID of the parent provenance.
+ // The id of the parent provenance.
int32 id = 2 [deprecated = true];
}
@@ -846,7 +848,7 @@ message Document {
// The index of the revision that produced this element.
int32 revision = 1 [deprecated = true];
- // The ID of this operation. Needs to be unique within the scope of the
+ // The Id of this operation. Needs to be unique within the scope of the
// revision.
int32 id = 2 [deprecated = true];
@@ -871,7 +873,7 @@ message Document {
// Who/what made the change
oneof source {
- // If the change was made by a person specify the name or ID of that
+ // If the change was made by a person specify the name or id of that
// person.
string agent = 4;
@@ -880,7 +882,7 @@ message Document {
string processor = 5;
}
- // ID of the revision, internally generated by doc proto storage.
+ // Id of the revision, internally generated by doc proto storage.
// Unique within the context of the document.
string id = 1;
@@ -889,7 +891,7 @@ message Document {
// index into the `revisions` field.
repeated int32 parent = 2 [deprecated = true];
- // The revisions that this revision is based on. Must include all the IDs
+ // The revisions that this revision is based on. Must include all the ids
// that have anything to do with this revision - eg. there are
// `provenance.parent.revision` fields that index into this field.
repeated string parent_ids = 7;
@@ -1013,18 +1015,18 @@ message Document {
message LayoutImageBlock {
// Source of the image.
oneof image_source {
- // Optional. Asset ID of the inline image. If set, find the image
+ // Optional. Asset id of the inline image. If set, find the image
// content in the blob_assets field.
string blob_asset_id = 4 [(google.api.field_behavior) = OPTIONAL];
- // Optional. Google Cloud Storage URI of the image.
+ // Optional. Google Cloud Storage uri of the image.
string gcs_uri = 5 [(google.api.field_behavior) = OPTIONAL];
- // Optional. Data URI of the image.
+ // Optional. Data uri of the image.
// It is composed of four parts: a prefix (data:), a MIME type
// indicating the type of data, an optional base64 token if
// non-textual, and the data itself:
- // data:[
ListLocations
Lists information about the supported locations for this service.
Lists information about the supported locations for this service.This method can be called in two ways: + *
* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
** **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -1970,7 +1977,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -2004,7 +2017,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java index 94cfd93882fe..78f44d77f4ef 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java @@ -197,7 +197,8 @@ *
ListLocations
Lists information about the supported locations for this service.
Lists information about the supported locations for this service.This method can be called in two ways: + *
* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
** **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -1172,7 +1179,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -1206,7 +1219,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json index 584f27b28f5b..e33156928b23 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json @@ -818,6 +818,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion$ClarificationQuestionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion$SelectionMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext", "queryAllDeclaredConstructors": true, diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessage.java new file mode 100644 index 000000000000..854442dd2fb7 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessage.java @@ -0,0 +1,1005 @@ +/* + * 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/geminidataanalytics/v1beta/data_chat_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
+ * A message of questions to help clarify the user's query. This is returned + * when the system cannot confidently answer the user's question. + *+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationMessage} + */ +@com.google.protobuf.Generated +public final class ClarificationMessage extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ClarificationMessage) + ClarificationMessageOrBuilder { + 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= */ "", + "ClarificationMessage"); + } + + // Use ClarificationMessage.newBuilder() to construct. + private ClarificationMessage(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ClarificationMessage() { + questions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.class, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder.class); + } + + public static final int QUESTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder>
+ getQuestionsOrBuilderList() {
+ return questions_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public int getQuestionsCount() {
+ return questions_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion getQuestions(int index) {
+ return questions_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder
+ getQuestionsOrBuilder(int index) {
+ return questions_.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 < questions_.size(); i++) {
+ output.writeMessage(1, questions_.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 < questions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, questions_.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.geminidataanalytics.v1beta.ClarificationMessage)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage other =
+ (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) obj;
+
+ if (!getQuestionsList().equals(other.getQuestionsList())) 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 (getQuestionsCount() > 0) {
+ hash = (37 * hash) + QUESTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getQuestionsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage 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.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage 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.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage 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.geminidataanalytics.v1beta.ClarificationMessage parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage 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.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage 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.geminidataanalytics.v1beta.ClarificationMessage 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;
+ }
+
+ /**
+ *
+ *
+ * + * A message of questions to help clarify the user's query. This is returned + * when the system cannot confidently answer the user's question. + *+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationMessage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public int getQuestionsCount() {
+ if (questionsBuilder_ == null) {
+ return questions_.size();
+ } else {
+ return questionsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion getQuestions(
+ int index) {
+ if (questionsBuilder_ == null) {
+ return questions_.get(index);
+ } else {
+ return questionsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setQuestions(
+ int index, com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion value) {
+ if (questionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureQuestionsIsMutable();
+ questions_.set(index, value);
+ onChanged();
+ } else {
+ questionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setQuestions(
+ int index,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder builderForValue) {
+ if (questionsBuilder_ == null) {
+ ensureQuestionsIsMutable();
+ questions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ questionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addQuestions(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion value) {
+ if (questionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureQuestionsIsMutable();
+ questions_.add(value);
+ onChanged();
+ } else {
+ questionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addQuestions(
+ int index, com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion value) {
+ if (questionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureQuestionsIsMutable();
+ questions_.add(index, value);
+ onChanged();
+ } else {
+ questionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addQuestions(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder builderForValue) {
+ if (questionsBuilder_ == null) {
+ ensureQuestionsIsMutable();
+ questions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ questionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addQuestions(
+ int index,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder builderForValue) {
+ if (questionsBuilder_ == null) {
+ ensureQuestionsIsMutable();
+ questions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ questionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAllQuestions(
+ java.lang.Iterable<
+ ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion>
+ values) {
+ if (questionsBuilder_ == null) {
+ ensureQuestionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, questions_);
+ onChanged();
+ } else {
+ questionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearQuestions() {
+ if (questionsBuilder_ == null) {
+ questions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ questionsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder removeQuestions(int index) {
+ if (questionsBuilder_ == null) {
+ ensureQuestionsIsMutable();
+ questions_.remove(index);
+ onChanged();
+ } else {
+ questionsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder
+ getQuestionsBuilder(int index) {
+ return internalGetQuestionsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder
+ getQuestionsOrBuilder(int index) {
+ if (questionsBuilder_ == null) {
+ return questions_.get(index);
+ } else {
+ return questionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder>
+ getQuestionsOrBuilderList() {
+ if (questionsBuilder_ != null) {
+ return questionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(questions_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder
+ addQuestionsBuilder() {
+ return internalGetQuestionsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder
+ addQuestionsBuilder(int index) {
+ return internalGetQuestionsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List+ * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion getQuestions(int index);
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ int getQuestionsCount();
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder>
+ getQuestionsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder getQuestionsOrBuilder(
+ int index);
+}
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestion.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestion.java
new file mode 100644
index 000000000000..b30171fb97e5
--- /dev/null
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestion.java
@@ -0,0 +1,1637 @@
+/*
+ * 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/geminidataanalytics/v1beta/data_chat_service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.geminidataanalytics.v1beta;
+
+/**
+ *
+ *
+ * + * Represents a single question to the user to help clarify their query. + *+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationQuestion} + */ +@com.google.protobuf.Generated +public final class ClarificationQuestion extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) + ClarificationQuestionOrBuilder { + 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= */ "", + "ClarificationQuestion"); + } + + // Use ClarificationQuestion.newBuilder() to construct. + private ClarificationQuestion(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ClarificationQuestion() { + question_ = ""; + selectionMode_ = 0; + options_ = com.google.protobuf.LazyStringArrayList.emptyList(); + clarificationQuestionType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.class, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder.class); + } + + /** + * + * + *
+ * The selection mode for the clarification question. + *+ * + * Protobuf enum {@code + * google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode} + */ + public enum SelectionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified selection mode. + *+ * + *
SELECTION_MODE_UNSPECIFIED = 0;
+ */
+ SELECTION_MODE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The user can select only one option. + *+ * + *
SINGLE_SELECT = 1;
+ */
+ SINGLE_SELECT(1),
+ /**
+ *
+ *
+ * + * The user can select multiple options. + *+ * + *
MULTI_SELECT = 2;
+ */
+ MULTI_SELECT(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "SelectionMode");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified selection mode. + *+ * + *
SELECTION_MODE_UNSPECIFIED = 0;
+ */
+ public static final int SELECTION_MODE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * The user can select only one option. + *+ * + *
SINGLE_SELECT = 1;
+ */
+ public static final int SINGLE_SELECT_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * The user can select multiple options. + *+ * + *
MULTI_SELECT = 2;
+ */
+ public static final int MULTI_SELECT_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 SelectionMode 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 SelectionMode forNumber(int value) {
+ switch (value) {
+ case 0:
+ return SELECTION_MODE_UNSPECIFIED;
+ case 1:
+ return SINGLE_SELECT;
+ case 2:
+ return MULTI_SELECT;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The type of clarification question. + * This enum may be extended with new values in the future. + *+ * + * Protobuf enum {@code + * google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType} + */ + public enum ClarificationQuestionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified clarification question type. + *+ * + *
CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0;
+ */
+ CLARIFICATION_QUESTION_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The clarification question is for filter values. + *+ * + *
FILTER_VALUES = 1;
+ */
+ FILTER_VALUES(1),
+ /**
+ *
+ *
+ * + * The clarification question is for data fields. This is a generic term + * encompassing SQL columns, Looker fields (dimensions/measures), or + * nested data structure properties. + *+ * + *
FIELDS = 2;
+ */
+ FIELDS(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "ClarificationQuestionType");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified clarification question type. + *+ * + *
CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int CLARIFICATION_QUESTION_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * The clarification question is for filter values. + *+ * + *
FILTER_VALUES = 1;
+ */
+ public static final int FILTER_VALUES_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * The clarification question is for data fields. This is a generic term + * encompassing SQL columns, Looker fields (dimensions/measures), or + * nested data structure properties. + *+ * + *
FIELDS = 2;
+ */
+ public static final int FIELDS_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 ClarificationQuestionType 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 ClarificationQuestionType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return CLARIFICATION_QUESTION_TYPE_UNSPECIFIED;
+ case 1:
+ return FILTER_VALUES;
+ case 2:
+ return FIELDS;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The question.
+ */
+ @java.lang.Override
+ public java.lang.String getQuestion() {
+ java.lang.Object ref = question_;
+ 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();
+ question_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for question.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getQuestionBytes() {
+ java.lang.Object ref = question_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ question_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SELECTION_MODE_FIELD_NUMBER = 2;
+ private int selectionMode_ = 0;
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for selectionMode.
+ */
+ @java.lang.Override
+ public int getSelectionModeValue() {
+ return selectionMode_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The selectionMode.
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode
+ getSelectionMode() {
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode result =
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode.forNumber(
+ selectionMode_);
+ return result == null
+ ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode
+ .UNRECOGNIZED
+ : result;
+ }
+
+ public static final int OPTIONS_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList options_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the options.
+ */
+ public com.google.protobuf.ProtocolStringList getOptionsList() {
+ return options_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of options.
+ */
+ public int getOptionsCount() {
+ return options_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The options at the given index.
+ */
+ public java.lang.String getOptions(int index) {
+ return options_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the options at the given index.
+ */
+ public com.google.protobuf.ByteString getOptionsBytes(int index) {
+ return options_.getByteString(index);
+ }
+
+ public static final int CLARIFICATION_QUESTION_TYPE_FIELD_NUMBER = 4;
+ private int clarificationQuestionType_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for clarificationQuestionType.
+ */
+ @java.lang.Override
+ public int getClarificationQuestionTypeValue() {
+ return clarificationQuestionType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clarificationQuestionType.
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType
+ getClarificationQuestionType() {
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType
+ result =
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .ClarificationQuestionType.forNumber(clarificationQuestionType_);
+ return result == null
+ ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .ClarificationQuestionType.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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, question_);
+ }
+ if (selectionMode_
+ != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode
+ .SELECTION_MODE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, selectionMode_);
+ }
+ for (int i = 0; i < options_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, options_.getRaw(i));
+ }
+ if (clarificationQuestionType_
+ != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .ClarificationQuestionType.CLARIFICATION_QUESTION_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(4, clarificationQuestionType_);
+ }
+ 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(question_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, question_);
+ }
+ if (selectionMode_
+ != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode
+ .SELECTION_MODE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, selectionMode_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < options_.size(); i++) {
+ dataSize += computeStringSizeNoTag(options_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getOptionsList().size();
+ }
+ if (clarificationQuestionType_
+ != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .ClarificationQuestionType.CLARIFICATION_QUESTION_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, clarificationQuestionType_);
+ }
+ 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.geminidataanalytics.v1beta.ClarificationQuestion)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion other =
+ (com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) obj;
+
+ if (!getQuestion().equals(other.getQuestion())) return false;
+ if (selectionMode_ != other.selectionMode_) return false;
+ if (!getOptionsList().equals(other.getOptionsList())) return false;
+ if (clarificationQuestionType_ != other.clarificationQuestionType_) 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) + QUESTION_FIELD_NUMBER;
+ hash = (53 * hash) + getQuestion().hashCode();
+ hash = (37 * hash) + SELECTION_MODE_FIELD_NUMBER;
+ hash = (53 * hash) + selectionMode_;
+ if (getOptionsCount() > 0) {
+ hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getOptionsList().hashCode();
+ }
+ hash = (37 * hash) + CLARIFICATION_QUESTION_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + clarificationQuestionType_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion 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.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion 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.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion 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.geminidataanalytics.v1beta.ClarificationQuestion
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ 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.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion 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.geminidataanalytics.v1beta.ClarificationQuestion 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;
+ }
+
+ /**
+ *
+ *
+ * + * Represents a single question to the user to help clarify their query. + *+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationQuestion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The question.
+ */
+ public java.lang.String getQuestion() {
+ java.lang.Object ref = question_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ question_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for question.
+ */
+ public com.google.protobuf.ByteString getQuestionBytes() {
+ java.lang.Object ref = question_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ question_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The question to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQuestion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ question_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQuestion() {
+ question_ = getDefaultInstance().getQuestion();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for question to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQuestionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ question_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int selectionMode_ = 0;
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for selectionMode.
+ */
+ @java.lang.Override
+ public int getSelectionModeValue() {
+ return selectionMode_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The enum numeric value on the wire for selectionMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSelectionModeValue(int value) {
+ selectionMode_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The selectionMode.
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode
+ getSelectionMode() {
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode result =
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode.forNumber(
+ selectionMode_);
+ return result == null
+ ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode
+ .UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The selectionMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSelectionMode(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ selectionMode_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSelectionMode() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ selectionMode_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList options_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureOptionsIsMutable() {
+ if (!options_.isModifiable()) {
+ options_ = new com.google.protobuf.LazyStringArrayList(options_);
+ }
+ bitField0_ |= 0x00000004;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the options.
+ */
+ public com.google.protobuf.ProtocolStringList getOptionsList() {
+ options_.makeImmutable();
+ return options_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of options.
+ */
+ public int getOptionsCount() {
+ return options_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The options at the given index.
+ */
+ public java.lang.String getOptions(int index) {
+ return options_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the options at the given index.
+ */
+ public com.google.protobuf.ByteString getOptionsBytes(int index) {
+ return options_.getByteString(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index to set the value at.
+ * @param value The options to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOptions(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOptionsIsMutable();
+ options_.set(index, value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The options to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOptions(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOptionsIsMutable();
+ options_.add(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param values The options to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllOptions(java.lang.Iterable+ * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOptions() {
+ options_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes of the options to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOptionsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureOptionsIsMutable();
+ options_.add(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private int clarificationQuestionType_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for clarificationQuestionType.
+ */
+ @java.lang.Override
+ public int getClarificationQuestionTypeValue() {
+ return clarificationQuestionType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for clarificationQuestionType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClarificationQuestionTypeValue(int value) {
+ clarificationQuestionType_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clarificationQuestionType.
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .ClarificationQuestionType
+ getClarificationQuestionType() {
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType
+ result =
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .ClarificationQuestionType.forNumber(clarificationQuestionType_);
+ return result == null
+ ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .ClarificationQuestionType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The clarificationQuestionType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClarificationQuestionType(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType
+ value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ clarificationQuestionType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearClarificationQuestionType() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ clarificationQuestionType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion)
+ private static final com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion();
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The question.
+ */
+ java.lang.String getQuestion();
+
+ /**
+ *
+ *
+ * + * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for question.
+ */
+ com.google.protobuf.ByteString getQuestionBytes();
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for selectionMode.
+ */
+ int getSelectionModeValue();
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The selectionMode.
+ */
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode
+ getSelectionMode();
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the options.
+ */
+ java.util.List+ * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of options.
+ */
+ int getOptionsCount();
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The options at the given index.
+ */
+ java.lang.String getOptions(int index);
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the options at the given index.
+ */
+ com.google.protobuf.ByteString getOptionsBytes(int index);
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for clarificationQuestionType.
+ */
+ int getClarificationQuestionTypeValue();
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clarificationQuestionType.
+ */
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType
+ getClarificationQuestionType();
+}
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java
index d542da82c0fc..317d05bdbfc7 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java
@@ -172,6 +172,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -298,7 +306,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004kind\"%\n"
+ "\013UserMessage\022\016\n"
+ "\004text\030\001 \001(\tH\000B\006\n"
- + "\004kind\"\310\004\n\r"
+ + "\004kind\"\245\005\n\r"
+ "SystemMessage\022D\n"
+ "\004text\030\001"
+ " \001(\01324.google.cloud.geminidataanalytics.v1beta.TextMessageH\000\022H\n"
@@ -314,14 +322,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "minidataanalytics.v1beta.ErrorMessageH\000\022W\n"
+ "\017example_queries\030\r"
+ " \001(\01327.google.cloud."
- + "geminidataanalytics.v1beta.ExampleQueriesB\003\340A\001H\000\022\025\n"
+ + "geminidataanalytics.v1beta.ExampleQueriesB\003\340A\001H\000\022[\n\r"
+ + "clarification\030\016 \001(\0132=.google"
+ + ".cloud.geminidataanalytics.v1beta.ClarificationMessageB\003\340A\001H\000\022\025\n"
+ "\010group_id\030\014 \001(\005H\001\210\001\001B\006\n"
+ "\004kindB\013\n"
- + "\t_group_id\"\316\001\n"
+ + "\t_group_id\"\356\001\n"
+ "\013TextMessage\022\022\n"
+ "\005parts\030\001 \003(\tB\003\340A\001\022U\n"
- + "\ttext_type\030\002 \001(\0162=.google.clo"
- + "ud.geminidataanalytics.v1beta.TextMessage.TextTypeB\003\340A\001\"T\n"
+ + "\ttext_type\030\002 \001(\016"
+ + "2=.google.cloud.geminidataanalytics.v1beta.TextMessage.TextTypeB\003\340A\001\022\036\n"
+ + "\021thought_signature\030\003 \001(\014B\003\340A\001\"T\n"
+ "\010TextType\022\031\n"
+ "\025TEXT_TYPE_UNSPECIFIED\020\000\022\022\n"
+ "\016FINAL_RESPONSE\020\001\022\013\n"
@@ -336,46 +347,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013SchemaQuery\022\025\n"
+ "\010question\030\001 \001(\tB\003\340A\001\"]\n"
+ "\014SchemaResult\022M\n"
- + "\013datasources\030\001 \003(\01323.google.clou"
- + "d.geminidataanalytics.v1beta.DatasourceB\003\340A\001\"\345\002\n"
+ + "\013datasources\030\001 \003(\01323.google"
+ + ".cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001\"\345\002\n"
+ "\013DataMessage\022C\n"
- + "\005query\030\001 \001(\01322.go"
- + "ogle.cloud.geminidataanalytics.v1beta.DataQueryH\000\022\027\n\r"
+ + "\005query\030\001 \001(\013"
+ + "22.google.cloud.geminidataanalytics.v1beta.DataQueryH\000\022\027\n\r"
+ "generated_sql\030\002 \001(\tH\000\022E\n"
+ "\006result\030\003"
+ " \001(\01323.google.cloud.geminidataanalytics.v1beta.DataResultH\000\022Z\n"
- + "\026generated_looker_query\030\004"
- + " \001(\01324.google.cloud.geminidataanalytics.v1beta.LookerQueryB\002\030\001H\000\022M\n"
- + "\r"
- + "big_query_job\030\005"
- + " \001(\01324.google.cloud.geminidataanalytics.v1beta.BigQueryJobH\000B\006\n"
+ + "\026generated_looker_query\030\004 \001(\01324.google.cloud.ge"
+ + "minidataanalytics.v1beta.LookerQueryB\002\030\001H\000\022M\n\r"
+ + "big_query_job\030\005 \001(\01324.google.cloud"
+ + ".geminidataanalytics.v1beta.BigQueryJobH\000B\006\n"
+ "\004kind\"\337\001\n"
+ "\tDataQuery\022K\n"
- + "\006looker\030\004 \001(\01324.goo"
- + "gle.cloud.geminidataanalytics.v1beta.LookerQueryB\003\340A\001H\000\022\025\n"
+ + "\006looker\030\004 \001(\0132"
+ + "4.google.cloud.geminidataanalytics.v1beta.LookerQueryB\003\340A\001H\000\022\025\n"
+ "\010question\030\001 \001(\tB\003\340A\001\022\021\n"
+ "\004name\030\003 \001(\tB\003\340A\001\022M\n"
- + "\013datasources\030\002 \003(\01323"
- + ".google.cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001B\014\n\n"
- + "query_type\"\221\001\n\n"
+ + "\013datasources\030\002 "
+ + "\003(\01323.google.cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001B\014\n\n"
+ + "query_type\"\307\001\n\n"
+ "DataResult\022\021\n"
+ "\004name\030\003 \001(\tB\003\340A\001\022D\n"
- + "\006schema\030\005 \001(\013"
- + "2/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\022*\n"
- + "\004data\030\002 \003(\0132\027.google.protobuf.StructB\003\340A\001\"\371\001\n"
+ + "\006schema\030\005"
+ + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\022*\n"
+ + "\004data\030\002 \003(\0132\027.google.protobuf.StructB\003\340A\001\0224\n"
+ + "\016formatted_data\030\006"
+ + " \003(\0132\027.google.protobuf.StructB\003\340A\001\"\371\001\n"
+ "\013BigQueryJob\022\027\n\n"
+ "project_id\030\001 \001(\tB\003\340A\002\022\023\n"
+ "\006job_id\030\002 \001(\tB\003\340A\002\022\025\n"
+ "\010location\030\005 \001(\tB\003\340A\001\022_\n"
- + "\021destination_table\030\003 \001(\0132?.google.cloud.geminidataanal"
- + "ytics.v1beta.BigQueryTableReferenceB\003\340A\001\022D\n"
- + "\006schema\030\007"
- + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"\264\001\n"
+ + "\021destination_table\030\003 \001(\0132?.google.c"
+ + "loud.geminidataanalytics.v1beta.BigQueryTableReferenceB\003\340A\001\022D\n"
+ + "\006schema\030\007 \001(\0132/.go"
+ + "ogle.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"\264\001\n"
+ "\017AnalysisMessage\022G\n"
- + "\005query\030\001 \001(\01326.google.cloud"
- + ".geminidataanalytics.v1beta.AnalysisQueryH\000\022P\n"
- + "\016progress_event\030\002 \001(\01326.google.clo"
- + "ud.geminidataanalytics.v1beta.AnalysisEventH\000B\006\n"
+ + "\005query\030\001"
+ + " \001(\01326.google.cloud.geminidataanalytics.v1beta.AnalysisQueryH\000\022P\n"
+ + "\016progress_event\030\002"
+ + " \001(\01326.google.cloud.geminidataanalytics.v1beta.AnalysisEventH\000B\006\n"
+ "\004kind\"F\n\r"
+ "AnalysisQuery\022\025\n"
+ "\010question\030\001 \001(\tB\003\340A\001\022\036\n"
@@ -394,61 +406,79 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005error\030\013 \001(\tH\000B\006\n"
+ "\004kind\"\244\001\n"
+ "\014ChartMessage\022D\n"
- + "\005query\030\001"
- + " \001(\01323.google.cloud.geminidataanalytics.v1beta.ChartQueryH\000\022F\n"
- + "\006result\030\002"
- + " \001(\01324.google.cloud.geminidataanalytics.v1beta.ChartResultH\000B\006\n"
+ + "\005query\030\001 \001(\01323."
+ + "google.cloud.geminidataanalytics.v1beta.ChartQueryH\000\022F\n"
+ + "\006result\030\002 \001(\01324.google.cl"
+ + "oud.geminidataanalytics.v1beta.ChartResultH\000B\006\n"
+ "\004kind\"F\n\n"
+ "ChartQuery\022\031\n"
+ "\014instructions\030\001 \001(\tB\003\340A\001\022\035\n"
+ "\020data_result_name\030\002 \001(\tB\003\340A\001\"\203\001\n"
+ "\013ChartResult\0221\n"
+ "\013vega_config\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\022A\n"
- + "\005image\030\003 \001(\0132-.google.clo"
- + "ud.geminidataanalytics.v1beta.BlobB\003\340A\001\"!\n"
+ + "\005image\030\003"
+ + " \001(\0132-.google.cloud.geminidataanalytics.v1beta.BlobB\003\340A\001\"!\n"
+ "\014ErrorMessage\022\021\n"
- + "\004text\030\001 \001(\tB\003\340A\003\"e\n"
+ + "\004text\030\001 \001(\tB\003\340A\003\"\363\003\n"
+ + "\025ClarificationQuestion\022\025\n"
+ + "\010question\030\001 \001(\tB\003\340A\002\022i\n"
+ + "\016selection_mode\030\002 \001(\0162L.google.cloud.geminidataanalytic"
+ + "s.v1beta.ClarificationQuestion.SelectionModeB\003\340A\002\022\024\n"
+ + "\007options\030\003 \003(\tB\003\340A\002\022\202\001\n"
+ + "\033clarification_question_type\030\004 \001(\0162X.google.c"
+ + "loud.geminidataanalytics.v1beta.Clarific"
+ + "ationQuestion.ClarificationQuestionTypeB\003\340A\001\"T\n\r"
+ + "SelectionMode\022\036\n"
+ + "\032SELECTION_MODE_UNSPECIFIED\020\000\022\021\n\r"
+ + "SINGLE_SELECT\020\001\022\020\n"
+ + "\014MULTI_SELECT\020\002\"g\n"
+ + "\031ClarificationQuestionType\022+\n"
+ + "\'CLARIFICATION_QUESTION_TYPE_UNSPECIFIED\020\000\022\021\n\r"
+ + "FILTER_VALUES\020\001\022\n\n"
+ + "\006FIELDS\020\002\"n\n"
+ + "\024ClarificationMessage\022V\n"
+ + "\tquestions\030\001 \003(\0132>"
+ + ".google.cloud.geminidataanalytics.v1beta.ClarificationQuestionB\003\340A\002\"e\n"
+ "\016ExampleQueries\022S\n"
- + "\017example_queries\030\001 \003(\01325."
- + "google.cloud.geminidataanalytics.v1beta.ExampleQueryB\003\340A\001\"1\n"
+ + "\017example_queries\030\001 \003(\01325.google."
+ + "cloud.geminidataanalytics.v1beta.ExampleQueryB\003\340A\001\"1\n"
+ "\004Blob\022\026\n"
+ "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n"
+ "\004data\030\002 \001(\014B\003\340A\0022\256\014\n"
+ "\017DataChatService\022\251\001\n"
- + "\004Chat\0224.google.cloud.geminidataanalytics.v1beta.ChatRequest\0320.google"
- + ".cloud.geminidataanalytics.v1beta.Messag"
- + "e\"7\202\323\344\223\0021\",/v1beta/{parent=projects/*/locations/*}:chat:\001*0\001\022\202\002\n"
- + "\022CreateConversation\022B.google.cloud.geminidataanalytics.v"
- + "1beta.CreateConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conver"
- + "sation\"q\332A#parent,conversation,conversat"
- + "ion_id\202\323\344\223\002E\"5/v1beta/{parent=projects/*"
- + "/locations/*}/conversations:\014conversation\022\266\001\n"
- + "\022DeleteConversation\022B.google.cloud.geminidataanalytics.v1beta.DeleteConvers"
- + "ationRequest\032\026.google.protobuf.Empty\"D\332A"
- + "\004name\202\323\344\223\0027*5/v1beta/{name=projects/*/locations/*/conversations/*}\022\317\001\n"
- + "\017GetConversation\022?.google.cloud.geminidataanalytic"
- + "s.v1beta.GetConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conver"
- + "sation\"D\332A\004name\202\323\344\223\0027\0225/v1beta/{name=projects/*/locations/*/conversations/*}\022\342\001\n"
- + "\021ListConversations\022A.google.cloud.geminidataanalytics.v1beta.ListConversationsRe"
- + "quest\032B.google.cloud.geminidataanalytics"
- + ".v1beta.ListConversationsResponse\"F\332A\006pa"
- + "rent\202\323\344\223\0027\0225/v1beta/{parent=projects/*/locations/*}/conversations\022\336\001\n"
- + "\014ListMessages\022<.google.cloud.geminidataanalytics.v1"
- + "beta.ListMessagesRequest\032=.google.cloud.geminidataanalytics.v1beta.ListMessagesR"
- + "esponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1beta/{paren"
- + "t=projects/*/locations/*/conversations/*}/messages\022\300\001\n"
- + "\tQueryData\0229.google.cloud.geminidataanalytics.v1beta.QueryDataRequ"
- + "est\032:.google.cloud.geminidataanalytics.v"
- + "1beta.QueryDataResponse\"<\202\323\344\223\0026\"1/v1beta"
- + "/{parent=projects/*/locations/*}:queryDa"
- + "ta:\001*\032V\312A\"geminidataanalytics.googleapis"
- + ".com\322A.https://www.googleapis.com/auth/cloud-platformB\245\002\n"
- + "+com.google.cloud.geminidataanalytics.v1betaB\024DataChatServicePr"
- + "otoP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;g"
- + "eminidataanalyticspb\252\002\'Google.Cloud.Gemi"
- + "niDataAnalytics.V1Beta\312\002\'Google\\Cloud\\Ge"
- + "miniDataAnalytics\\V1beta\352\002*Google::Cloud"
- + "::GeminiDataAnalytics::V1betab\006proto3"
+ + "\004Chat\0224.google.cloud.geminidataanalytics.v1beta.ChatRequest\0320.google.cloud."
+ + "geminidataanalytics.v1beta.Message\"7\202\323\344\223"
+ + "\0021\",/v1beta/{parent=projects/*/locations/*}:chat:\001*0\001\022\202\002\n"
+ + "\022CreateConversation\022B.google.cloud.geminidataanalytics.v1beta.C"
+ + "reateConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conversation\""
+ + "q\332A#parent,conversation,conversation_id\202"
+ + "\323\344\223\002E\"5/v1beta/{parent=projects/*/locations/*}/conversations:\014conversation\022\266\001\n"
+ + "\022DeleteConversation\022B.google.cloud.geminid"
+ + "ataanalytics.v1beta.DeleteConversationRe"
+ + "quest\032\026.google.protobuf.Empty\"D\332A\004name\202\323"
+ + "\344\223\0027*5/v1beta/{name=projects/*/locations/*/conversations/*}\022\317\001\n"
+ + "\017GetConversation\022?.google.cloud.geminidataanalytics.v1bet"
+ + "a.GetConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conversation\""
+ + "D\332A\004name\202\323\344\223\0027\0225/v1beta/{name=projects/*/locations/*/conversations/*}\022\342\001\n"
+ + "\021ListConversations\022A.google.cloud.geminidataana"
+ + "lytics.v1beta.ListConversationsRequest\032B.google.cloud.geminidataanalytics.v1beta"
+ + ".ListConversationsResponse\"F\332A\006parent\202\323\344"
+ + "\223\0027\0225/v1beta/{parent=projects/*/locations/*}/conversations\022\336\001\n"
+ + "\014ListMessages\022<.google.cloud.geminidataanalytics.v1beta.Li"
+ + "stMessagesRequest\032=.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse"
+ + "\"Q\332A\006parent\202\323\344\223\002B\022@/v1beta/{parent=proje"
+ + "cts/*/locations/*/conversations/*}/messages\022\300\001\n"
+ + "\tQueryData\0229.google.cloud.geminidataanalytics.v1beta.QueryDataRequest\032:.g"
+ + "oogle.cloud.geminidataanalytics.v1beta.Q"
+ + "ueryDataResponse\"<\202\323\344\223\0026\"1/v1beta/{paren"
+ + "t=projects/*/locations/*}:queryData:\001*\032V"
+ + "\312A\"geminidataanalytics.googleapis.com\322A."
+ + "https://www.googleapis.com/auth/cloud-platformB\245\002\n"
+ + "+com.google.cloud.geminidataanalytics.v1betaB\024DataChatServiceProtoP\001Z]"
+ + "cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminida"
+ + "taanalyticspb\252\002\'Google.Cloud.GeminiDataA"
+ + "nalytics.V1Beta\312\002\'Google\\Cloud\\GeminiDat"
+ + "aAnalytics\\V1beta\352\002*Google::Cloud::GeminiDataAnalytics::V1betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -632,6 +662,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Chart",
"Error",
"ExampleQueries",
+ "Clarification",
"GroupId",
"Kind",
});
@@ -641,7 +672,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_geminidataanalytics_v1beta_TextMessage_descriptor,
new java.lang.String[] {
- "Parts", "TextType",
+ "Parts", "TextType", "ThoughtSignature",
});
internal_static_google_cloud_geminidataanalytics_v1beta_SchemaMessage_descriptor =
getDescriptor().getMessageType(16);
@@ -689,7 +720,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_geminidataanalytics_v1beta_DataResult_descriptor,
new java.lang.String[] {
- "Name", "Schema", "Data",
+ "Name", "Schema", "Data", "FormattedData",
});
internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryJob_descriptor =
getDescriptor().getMessageType(22);
@@ -765,8 +796,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Text",
});
- internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor =
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor =
getDescriptor().getMessageType(30);
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor,
+ new java.lang.String[] {
+ "Question", "SelectionMode", "Options", "ClarificationQuestionType",
+ });
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor =
+ getDescriptor().getMessageType(31);
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor,
+ new java.lang.String[] {
+ "Questions",
+ });
+ internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor =
+ getDescriptor().getMessageType(32);
internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor,
@@ -774,7 +821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ExampleQueries",
});
internal_static_google_cloud_geminidataanalytics_v1beta_Blob_descriptor =
- getDescriptor().getMessageType(31);
+ getDescriptor().getMessageType(33);
internal_static_google_cloud_geminidataanalytics_v1beta_Blob_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_geminidataanalytics_v1beta_Blob_descriptor,
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java
index 3a08a4867396..57628568f0b6 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java
@@ -324,7 +324,7 @@ public com.google.cloud.geminidataanalytics.v1beta.DataResultOrBuilder getResult
*
*
* @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is
- * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537
+ * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545
* @return Whether the generatedLookerQuery field is set.
*/
@java.lang.Override
@@ -346,7 +346,7 @@ public boolean hasGeneratedLookerQuery() {
*
*
* @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is
- * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537
+ * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545
* @return The generatedLookerQuery.
*/
@java.lang.Override
@@ -1513,7 +1513,7 @@ public com.google.cloud.geminidataanalytics.v1beta.DataResultOrBuilder getResult
*
*
* @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is
- * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537
+ * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545
* @return Whether the generatedLookerQuery field is set.
*/
@java.lang.Override
@@ -1535,7 +1535,7 @@ public boolean hasGeneratedLookerQuery() {
*
*
* @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is
- * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537
+ * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545
* @return The generatedLookerQuery.
*/
@java.lang.Override
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java
index 23db9f821035..4bd27bac020a 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java
@@ -152,7 +152,7 @@ public interface DataMessageOrBuilder
*
*
* @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is
- * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537
+ * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545
* @return Whether the generatedLookerQuery field is set.
*/
@java.lang.Deprecated
@@ -171,7 +171,7 @@ public interface DataMessageOrBuilder
*
*
* @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is
- * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537
+ * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545
* @return The generatedLookerQuery.
*/
@java.lang.Deprecated
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java
index 610859d83b49..bcdfb61d82b8 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java
@@ -54,6 +54,7 @@ private DataResult(com.google.protobuf.GeneratedMessage.Builder> builder) {
private DataResult() {
name_ = "";
data_ = java.util.Collections.emptyList();
+ formattedData_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -284,6 +285,122 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder(int index) {
return data_.get(index);
}
+ public static final int FORMATTED_DATA_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.StructOrBuilder>
+ getFormattedDataOrBuilderList() {
+ return formattedData_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getFormattedDataCount() {
+ return formattedData_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.Struct getFormattedData(int index) {
+ return formattedData_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.StructOrBuilder getFormattedDataOrBuilder(int index) {
+ return formattedData_.get(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -307,6 +424,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getSchema());
}
+ for (int i = 0; i < formattedData_.size(); i++) {
+ output.writeMessage(6, formattedData_.get(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -325,6 +445,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSchema());
}
+ for (int i = 0; i < formattedData_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, formattedData_.get(i));
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -347,6 +470,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getSchema().equals(other.getSchema())) return false;
}
if (!getDataList().equals(other.getDataList())) return false;
+ if (!getFormattedDataList().equals(other.getFormattedDataList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -368,6 +492,10 @@ public int hashCode() {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getDataList().hashCode();
}
+ if (getFormattedDataCount() > 0) {
+ hash = (37 * hash) + FORMATTED_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getFormattedDataList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -512,6 +640,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
internalGetSchemaFieldBuilder();
internalGetDataFieldBuilder();
+ internalGetFormattedDataFieldBuilder();
}
}
@@ -532,6 +661,13 @@ public Builder clear() {
dataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
+ if (formattedDataBuilder_ == null) {
+ formattedData_ = java.util.Collections.emptyList();
+ } else {
+ formattedData_ = null;
+ formattedDataBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@@ -578,6 +714,15 @@ private void buildPartialRepeatedFields(
} else {
result.data_ = dataBuilder_.build();
}
+ if (formattedDataBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
+ formattedData_ = java.util.Collections.unmodifiableList(formattedData_);
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
+ result.formattedData_ = formattedData_;
+ } else {
+ result.formattedData_ = formattedDataBuilder_.build();
+ }
}
private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.DataResult result) {
@@ -641,6 +786,33 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.DataResult
}
}
}
+ if (formattedDataBuilder_ == null) {
+ if (!other.formattedData_.isEmpty()) {
+ if (formattedData_.isEmpty()) {
+ formattedData_ = other.formattedData_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ ensureFormattedDataIsMutable();
+ formattedData_.addAll(other.formattedData_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.formattedData_.isEmpty()) {
+ if (formattedDataBuilder_.isEmpty()) {
+ formattedDataBuilder_.dispose();
+ formattedDataBuilder_ = null;
+ formattedData_ = other.formattedData_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ formattedDataBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
+ ? internalGetFormattedDataFieldBuilder()
+ : null;
+ } else {
+ formattedDataBuilder_.addAllMessages(other.formattedData_);
+ }
+ }
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -691,6 +863,18 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 42
+ case 50:
+ {
+ com.google.protobuf.Struct m =
+ input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
+ if (formattedDataBuilder_ == null) {
+ ensureFormattedDataIsMutable();
+ formattedData_.add(m);
+ } else {
+ formattedDataBuilder_.addMessage(m);
+ }
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1473,6 +1657,516 @@ public java.util.List+ * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getFormattedDataCount() {
+ if (formattedDataBuilder_ == null) {
+ return formattedData_.size();
+ } else {
+ return formattedDataBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Struct getFormattedData(int index) {
+ if (formattedDataBuilder_ == null) {
+ return formattedData_.get(index);
+ } else {
+ return formattedDataBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setFormattedData(int index, com.google.protobuf.Struct value) {
+ if (formattedDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFormattedDataIsMutable();
+ formattedData_.set(index, value);
+ onChanged();
+ } else {
+ formattedDataBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setFormattedData(int index, com.google.protobuf.Struct.Builder builderForValue) {
+ if (formattedDataBuilder_ == null) {
+ ensureFormattedDataIsMutable();
+ formattedData_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ formattedDataBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addFormattedData(com.google.protobuf.Struct value) {
+ if (formattedDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFormattedDataIsMutable();
+ formattedData_.add(value);
+ onChanged();
+ } else {
+ formattedDataBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addFormattedData(int index, com.google.protobuf.Struct value) {
+ if (formattedDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFormattedDataIsMutable();
+ formattedData_.add(index, value);
+ onChanged();
+ } else {
+ formattedDataBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addFormattedData(com.google.protobuf.Struct.Builder builderForValue) {
+ if (formattedDataBuilder_ == null) {
+ ensureFormattedDataIsMutable();
+ formattedData_.add(builderForValue.build());
+ onChanged();
+ } else {
+ formattedDataBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addFormattedData(int index, com.google.protobuf.Struct.Builder builderForValue) {
+ if (formattedDataBuilder_ == null) {
+ ensureFormattedDataIsMutable();
+ formattedData_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ formattedDataBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllFormattedData(
+ java.lang.Iterable extends com.google.protobuf.Struct> values) {
+ if (formattedDataBuilder_ == null) {
+ ensureFormattedDataIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, formattedData_);
+ onChanged();
+ } else {
+ formattedDataBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearFormattedData() {
+ if (formattedDataBuilder_ == null) {
+ formattedData_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ formattedDataBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeFormattedData(int index) {
+ if (formattedDataBuilder_ == null) {
+ ensureFormattedDataIsMutable();
+ formattedData_.remove(index);
+ onChanged();
+ } else {
+ formattedDataBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Struct.Builder getFormattedDataBuilder(int index) {
+ return internalGetFormattedDataFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.StructOrBuilder getFormattedDataOrBuilder(int index) {
+ if (formattedDataBuilder_ == null) {
+ return formattedData_.get(index);
+ } else {
+ return formattedDataBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List extends com.google.protobuf.StructOrBuilder>
+ getFormattedDataOrBuilderList() {
+ if (formattedDataBuilder_ != null) {
+ return formattedDataBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(formattedData_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Struct.Builder addFormattedDataBuilder() {
+ return internalGetFormattedDataFieldBuilder()
+ .addBuilder(com.google.protobuf.Struct.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Struct.Builder addFormattedDataBuilder(int index) {
+ return internalGetFormattedDataFieldBuilder()
+ .addBuilder(index, com.google.protobuf.Struct.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.Struct getFormattedData(int index);
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getFormattedDataCount();
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.protobuf.StructOrBuilder> getFormattedDataOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.StructOrBuilder getFormattedDataOrBuilder(int index);
}
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java
index 41fc3b1adf7b..f1c6cb865964 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java
@@ -87,6 +87,7 @@ public enum KindCase
CHART(5),
ERROR(6),
EXAMPLE_QUERIES(13),
+ CLARIFICATION(14),
KIND_NOT_SET(0);
private final int value;
@@ -120,6 +121,8 @@ public static KindCase forNumber(int value) {
return ERROR;
case 13:
return EXAMPLE_QUERIES;
+ case 14:
+ return CLARIFICATION;
case 0:
return KIND_NOT_SET;
default:
@@ -522,6 +525,67 @@ public com.google.cloud.geminidataanalytics.v1beta.ExampleQueries getExampleQuer
return com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.getDefaultInstance();
}
+ public static final int CLARIFICATION_FIELD_NUMBER = 14;
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the clarification field is set.
+ */
+ @java.lang.Override
+ public boolean hasClarification() {
+ return kindCase_ == 14;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clarification.
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage getClarification() {
+ if (kindCase_ == 14) {
+ return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_;
+ }
+ return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder
+ getClarificationOrBuilder() {
+ if (kindCase_ == 14) {
+ return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_;
+ }
+ return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance();
+ }
+
public static final int GROUP_ID_FIELD_NUMBER = 12;
private int groupId_ = 0;
@@ -599,6 +663,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (kindCase_ == 13) {
output.writeMessage(13, (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_);
}
+ if (kindCase_ == 14) {
+ output.writeMessage(
+ 14, (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_);
+ }
getUnknownFields().writeTo(output);
}
@@ -646,6 +714,11 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
13, (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_);
}
+ if (kindCase_ == 14) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 14, (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -689,6 +762,9 @@ public boolean equals(final java.lang.Object obj) {
case 13:
if (!getExampleQueries().equals(other.getExampleQueries())) return false;
break;
+ case 14:
+ if (!getClarification().equals(other.getClarification())) return false;
+ break;
case 0:
default:
}
@@ -736,6 +812,10 @@ public int hashCode() {
hash = (37 * hash) + EXAMPLE_QUERIES_FIELD_NUMBER;
hash = (53 * hash) + getExampleQueries().hashCode();
break;
+ case 14:
+ hash = (37 * hash) + CLARIFICATION_FIELD_NUMBER;
+ hash = (53 * hash) + getClarification().hashCode();
+ break;
case 0:
default:
}
@@ -903,6 +983,9 @@ public Builder clear() {
if (exampleQueriesBuilder_ != null) {
exampleQueriesBuilder_.clear();
}
+ if (clarificationBuilder_ != null) {
+ clarificationBuilder_.clear();
+ }
groupId_ = 0;
kindCase_ = 0;
kind_ = null;
@@ -944,7 +1027,7 @@ public com.google.cloud.geminidataanalytics.v1beta.SystemMessage buildPartial()
private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.SystemMessage result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000080) != 0)) {
+ if (((from_bitField0_ & 0x00000100) != 0)) {
result.groupId_ = groupId_;
to_bitField0_ |= 0x00000001;
}
@@ -976,6 +1059,9 @@ private void buildPartialOneofs(
if (kindCase_ == 13 && exampleQueriesBuilder_ != null) {
result.kind_ = exampleQueriesBuilder_.build();
}
+ if (kindCase_ == 14 && clarificationBuilder_ != null) {
+ result.kind_ = clarificationBuilder_.build();
+ }
}
@java.lang.Override
@@ -1030,6 +1116,11 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.SystemMessa
mergeExampleQueries(other.getExampleQueries());
break;
}
+ case CLARIFICATION:
+ {
+ mergeClarification(other.getClarification());
+ break;
+ }
case KIND_NOT_SET:
{
break;
@@ -1101,7 +1192,7 @@ public Builder mergeFrom(
case 96:
{
groupId_ = input.readInt32();
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 96
case 106:
@@ -1111,6 +1202,13 @@ public Builder mergeFrom(
kindCase_ = 13;
break;
} // case 106
+ case 114:
+ {
+ input.readMessage(
+ internalGetClarificationFieldBuilder().getBuilder(), extensionRegistry);
+ kindCase_ = 14;
+ break;
+ } // case 114
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2704,6 +2802,252 @@ public Builder clearExampleQueries() {
return exampleQueriesBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder>
+ clarificationBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the clarification field is set.
+ */
+ @java.lang.Override
+ public boolean hasClarification() {
+ return kindCase_ == 14;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clarification.
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage getClarification() {
+ if (clarificationBuilder_ == null) {
+ if (kindCase_ == 14) {
+ return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_;
+ }
+ return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage
+ .getDefaultInstance();
+ } else {
+ if (kindCase_ == 14) {
+ return clarificationBuilder_.getMessage();
+ }
+ return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setClarification(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage value) {
+ if (clarificationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ clarificationBuilder_.setMessage(value);
+ }
+ kindCase_ = 14;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setClarification(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder builderForValue) {
+ if (clarificationBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ clarificationBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 14;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeClarification(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage value) {
+ if (clarificationBuilder_ == null) {
+ if (kindCase_ == 14
+ && kind_
+ != com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage
+ .getDefaultInstance()) {
+ kind_ =
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.newBuilder(
+ (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 14) {
+ clarificationBuilder_.mergeFrom(value);
+ } else {
+ clarificationBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 14;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearClarification() {
+ if (clarificationBuilder_ == null) {
+ if (kindCase_ == 14) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 14) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ clarificationBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder
+ getClarificationBuilder() {
+ return internalGetClarificationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder
+ getClarificationOrBuilder() {
+ if ((kindCase_ == 14) && (clarificationBuilder_ != null)) {
+ return clarificationBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 14) {
+ return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_;
+ }
+ return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder>
+ internalGetClarificationFieldBuilder() {
+ if (clarificationBuilder_ == null) {
+ if (!(kindCase_ == 14)) {
+ kind_ =
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance();
+ }
+ clarificationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder>(
+ (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 14;
+ onChanged();
+ return clarificationBuilder_;
+ }
+
private int groupId_;
/**
@@ -2721,7 +3065,7 @@ public Builder clearExampleQueries() {
*/
@java.lang.Override
public boolean hasGroupId() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
@@ -2759,7 +3103,7 @@ public int getGroupId() {
public Builder setGroupId(int value) {
groupId_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -2778,7 +3122,7 @@ public Builder setGroupId(int value) {
* @return This builder for chaining.
*/
public Builder clearGroupId() {
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
groupId_ = 0;
onChanged();
return this;
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java
index 90de3e0a8c99..83391c3ef257 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java
@@ -291,6 +291,50 @@ public interface SystemMessageOrBuilder
*/
com.google.cloud.geminidataanalytics.v1beta.ExampleQueriesOrBuilder getExampleQueriesOrBuilder();
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the clarification field is set.
+ */
+ boolean hasClarification();
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clarification.
+ */
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage getClarification();
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder
+ getClarificationOrBuilder();
+
/**
*
*
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java
index 0b820ddd9c2b..b2732af06477 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java
@@ -54,6 +54,7 @@ private TextMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
private TextMessage() {
parts_ = com.google.protobuf.LazyStringArrayList.emptyList();
textType_ = 0;
+ thoughtSignature_ = com.google.protobuf.ByteString.EMPTY;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -105,7 +106,7 @@ public enum TextType implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * The text is a thinking plan generated by the thinking tool.
+ * The text is a thought from the model.
*
*
* THOUGHT = 2;
@@ -164,7 +165,7 @@ public enum TextType implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * The text is a thinking plan generated by the thinking tool.
+ * The text is a thought from the model.
*
*
* THOUGHT = 2;
@@ -384,6 +385,26 @@ public com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType getTextT
: result;
}
+ public static final int THOUGHT_SIGNATURE_FIELD_NUMBER = 3;
+ private com.google.protobuf.ByteString thoughtSignature_ = com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ * + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + *+ * + *
bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The thoughtSignature.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getThoughtSignature() {
+ return thoughtSignature_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -406,6 +427,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
.getNumber()) {
output.writeEnum(2, textType_);
}
+ if (!thoughtSignature_.isEmpty()) {
+ output.writeBytes(3, thoughtSignature_);
+ }
getUnknownFields().writeTo(output);
}
@@ -428,6 +452,9 @@ public int getSerializedSize() {
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, textType_);
}
+ if (!thoughtSignature_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, thoughtSignature_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -446,6 +473,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getPartsList().equals(other.getPartsList())) return false;
if (textType_ != other.textType_) return false;
+ if (!getThoughtSignature().equals(other.getThoughtSignature())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -463,6 +491,8 @@ public int hashCode() {
}
hash = (37 * hash) + TEXT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + textType_;
+ hash = (37 * hash) + THOUGHT_SIGNATURE_FIELD_NUMBER;
+ hash = (53 * hash) + getThoughtSignature().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -606,6 +636,7 @@ public Builder clear() {
bitField0_ = 0;
parts_ = com.google.protobuf.LazyStringArrayList.emptyList();
textType_ = 0;
+ thoughtSignature_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@@ -649,6 +680,9 @@ private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.TextMessa
if (((from_bitField0_ & 0x00000002) != 0)) {
result.textType_ = textType_;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.thoughtSignature_ = thoughtSignature_;
+ }
}
@java.lang.Override
@@ -677,6 +711,9 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.TextMessage
if (other.textType_ != 0) {
setTextTypeValue(other.getTextTypeValue());
}
+ if (!other.getThoughtSignature().isEmpty()) {
+ setThoughtSignature(other.getThoughtSignature());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -716,6 +753,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 16
+ case 26:
+ {
+ thoughtSignature_ = input.readBytes();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1026,6 +1069,67 @@ public Builder clearTextType() {
return this;
}
+ private com.google.protobuf.ByteString thoughtSignature_ = com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ * + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + *+ * + *
bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The thoughtSignature.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getThoughtSignature() {
+ return thoughtSignature_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + *+ * + *
bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The thoughtSignature to set.
+ * @return This builder for chaining.
+ */
+ public Builder setThoughtSignature(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ thoughtSignature_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + *+ * + *
bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearThoughtSignature() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ thoughtSignature_ = getDefaultInstance().getThoughtSignature();
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.TextMessage)
}
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java
index 213b06a73a69..93b9e0996ae3 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java
@@ -109,4 +109,18 @@ public interface TextMessageOrBuilder
* @return The textType.
*/
com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType getTextType();
+
+ /**
+ *
+ *
+ * + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + *+ * + *
bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The thoughtSignature.
+ */
+ com.google.protobuf.ByteString getThoughtSignature();
}
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto
index 0502a6ebeabb..a9cc7ca72374 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto
@@ -458,6 +458,10 @@ message SystemMessage {
// Optional. A message containing example queries.
ExampleQueries example_queries = 13
[(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A message containing clarification questions.
+ ClarificationMessage clarification = 14
+ [(google.api.field_behavior) = OPTIONAL];
}
// Identifies the group that the event belongs to. Similar events are deemed
@@ -476,7 +480,7 @@ message TextMessage {
// The text is a final response to the user question.
FINAL_RESPONSE = 1;
- // The text is a thinking plan generated by the thinking tool.
+ // The text is a thought from the model.
THOUGHT = 2;
// The text is an informational message about the agent's progress, such as
@@ -492,6 +496,10 @@ message TextMessage {
// Optional. The type of the text message.
TextType text_type = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. An opaque signature for a thought so it can be reused in
+ // subsequent requests.
+ bytes thought_signature = 3 [(google.api.field_behavior) = OPTIONAL];
}
// A message produced during schema resolution.
@@ -583,6 +591,16 @@ message DataResult {
// are represented as lists or structs.
repeated google.protobuf.Struct data = 2
[(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Formatted representation of the data, when applicable.
+ // Each row is a struct that directly corresponds to the row at the same index
+ // within the `data` field. Its values are string representations of the
+ // original data, formatted according to data source specifications (e.g.,
+ // "$1,234.56" for currency). Columns without formatting will default to
+ // their raw value representation. If no columns have formatting rules, this
+ // field will be empty.
+ repeated google.protobuf.Struct formatted_data = 6
+ [(google.api.field_behavior) = OPTIONAL];
}
// A BigQuery job executed by the system.
@@ -731,6 +749,58 @@ message ErrorMessage {
string text = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
}
+// Represents a single question to the user to help clarify their query.
+message ClarificationQuestion {
+ // The selection mode for the clarification question.
+ enum SelectionMode {
+ // Unspecified selection mode.
+ SELECTION_MODE_UNSPECIFIED = 0;
+
+ // The user can select only one option.
+ SINGLE_SELECT = 1;
+
+ // The user can select multiple options.
+ MULTI_SELECT = 2;
+ }
+
+ // The type of clarification question.
+ // This enum may be extended with new values in the future.
+ enum ClarificationQuestionType {
+ // Unspecified clarification question type.
+ CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0;
+
+ // The clarification question is for filter values.
+ FILTER_VALUES = 1;
+
+ // The clarification question is for data fields. This is a generic term
+ // encompassing SQL columns, Looker fields (dimensions/measures), or
+ // nested data structure properties.
+ FIELDS = 2;
+ }
+
+ // Required. The natural language question to ask the user.
+ string question = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The selection mode for this question.
+ SelectionMode selection_mode = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A list of distinct options for the user to choose from.
+ // The number of options is limited to a maximum of 5.
+ repeated string options = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The type of clarification question.
+ ClarificationQuestionType clarification_question_type = 4
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A message of questions to help clarify the user's query. This is returned
+// when the system cannot confidently answer the user's question.
+message ClarificationMessage {
+ // Required. A batch of clarification questions to ask the user.
+ repeated ClarificationQuestion questions = 1
+ [(google.api.field_behavior) = REQUIRED];
+}
+
// A message containing derived and authored example queries.
message ExampleQueries {
// Optional. A list of derived and authored example queries, providing
diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md
index 5d93df1f9836..2d48fb65e797 100644
--- a/java-gke-backup/README.md
+++ b/java-gke-backup/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
ListBoundMemberships
Lists Memberships bound to a Scope. The response includes relevant Memberships from all regions.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *listBoundMemberships(ListBoundMembershipsRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listBoundMemberships(ScopeName scopeName) + *
listBoundMemberships(String scopeName) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *listBoundMembershipsPagedCallable() + *
listBoundMembershipsCallable() + *
ListFeatures
Lists Features in a given project and location.
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 GkeHubSettings 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
- * GkeHubSettings gkeHubSettings =
- * GkeHubSettings.newBuilder()
- * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- * .build();
- * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
- * }
- *
- * 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
- * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build();
- * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
- * }
- *
- * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * GkeHubSettings gkeHubSettings = GkeHubSettings.newHttpJsonBuilder().build();
- * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
- * }
- *
- * Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class GkeHubClient implements BackgroundResource { - private final GkeHubSettings settings; - private final GkeHubStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of GkeHubClient with default settings. */ - public static final GkeHubClient create() throws IOException { - return create(GkeHubSettings.newBuilder().build()); - } - - /** - * Constructs an instance of GkeHubClient, 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 GkeHubClient create(GkeHubSettings settings) throws IOException { - return new GkeHubClient(settings); - } - - /** - * Constructs an instance of GkeHubClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(GkeHubSettings). - */ - public static final GkeHubClient create(GkeHubStub stub) { - return new GkeHubClient(stub); - } - - /** - * Constructs an instance of GkeHubClient, 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 GkeHubClient(GkeHubSettings settings) throws IOException { - this.settings = settings; - this.stub = ((GkeHubStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected GkeHubClient(GkeHubStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final GkeHubSettings getSettings() { - return settings; - } - - public GkeHubStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Memberships in a given project and location. - * - *
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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param parent Required. The parent (project and location) where the Memberships will be listed.
- * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list
- * memberships in all the regions.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListMembershipsPagedResponse listMemberships(LocationName parent) {
- ListMembershipsRequest request =
- ListMembershipsRequest.newBuilder()
- .setParent(parent == null ? null : parent.toString())
- .build();
- return listMemberships(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Lists Memberships in a given project and location.
- *
- * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
- * for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param parent Required. The parent (project and location) where the Memberships will be listed.
- * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list
- * memberships in all the regions.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListMembershipsPagedResponse listMemberships(String parent) {
- ListMembershipsRequest request = ListMembershipsRequest.newBuilder().setParent(parent).build();
- return listMemberships(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Lists Memberships in a given project and location.
- *
- * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * ListMembershipsRequest request =
- * ListMembershipsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
- * .build();
- * for (Membership element : gkeHubClient.listMemberships(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 ListMembershipsPagedResponse listMemberships(ListMembershipsRequest request) {
- return listMembershipsPagedCallable().call(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Lists Memberships in a given project and location.
- *
- * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * ListMembershipsRequest request =
- * ListMembershipsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
+ *
+ * CreateFleet
+ * Creates a fleet.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createFleetAsync(CreateFleetRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createFleetAsync(LocationName parent, Fleet fleet)
+ *
createFleetAsync(String parent, Fleet fleet)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createFleetOperationCallable()
+ *
createFleetCallable()
+ *
+ *
+ *
+ *
+ * GetFleet
+ * Returns the details of a fleet.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getFleet(GetFleetRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getFleet(FleetName name)
+ *
getFleet(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getFleetCallable()
+ *
+ *
+ *
+ *
+ * UpdateFleet
+ * Updates a fleet.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateFleetAsync(UpdateFleetRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateFleetAsync(Fleet fleet, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateFleetOperationCallable()
+ *
updateFleetCallable()
+ *
+ *
+ *
+ *
+ * DeleteFleet
+ * Removes a Fleet. There must be no memberships remaining in the Fleet.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteFleetAsync(DeleteFleetRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteFleetAsync(FleetName name)
+ *
deleteFleetAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteFleetOperationCallable()
+ *
deleteFleetCallable()
+ *
+ *
+ *
+ *
+ * ListFleets
+ * Returns all fleets within an organization or a project that the caller has access to.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listFleets(ListFleetsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listFleets(LocationName parent)
+ *
listFleets(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listFleetsPagedCallable()
+ *
listFleetsCallable()
+ *
+ *
+ *
+ *
+ * GetScopeNamespace
+ * Returns the details of a fleet namespace.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getScopeNamespace(GetScopeNamespaceRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getScopeNamespace(NamespaceName name)
+ *
getScopeNamespace(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getScopeNamespaceCallable()
+ *
+ *
+ *
+ *
+ * CreateScopeNamespace
+ * Creates a fleet namespace.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createScopeNamespaceAsync(CreateScopeNamespaceRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createScopeNamespaceAsync(ScopeName parent, Namespace scopeNamespace, String scopeNamespaceId)
+ *
createScopeNamespaceAsync(String parent, Namespace scopeNamespace, String scopeNamespaceId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createScopeNamespaceOperationCallable()
+ *
createScopeNamespaceCallable()
+ *
+ *
+ *
+ *
+ * UpdateScopeNamespace
+ * Updates a fleet namespace.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateScopeNamespaceAsync(UpdateScopeNamespaceRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateScopeNamespaceAsync(Namespace scopeNamespace, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateScopeNamespaceOperationCallable()
+ *
updateScopeNamespaceCallable()
+ *
+ *
+ *
+ *
+ * DeleteScopeNamespace
+ * Deletes a fleet namespace.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteScopeNamespaceAsync(DeleteScopeNamespaceRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteScopeNamespaceAsync(NamespaceName name)
+ *
deleteScopeNamespaceAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteScopeNamespaceOperationCallable()
+ *
deleteScopeNamespaceCallable()
+ *
+ *
+ *
+ *
+ * ListScopeNamespaces
+ * Lists fleet namespaces.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listScopeNamespaces(ListScopeNamespacesRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listScopeNamespaces(ScopeName parent)
+ *
listScopeNamespaces(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listScopeNamespacesPagedCallable()
+ *
listScopeNamespacesCallable()
+ *
+ *
+ *
+ *
+ * GetScopeRBACRoleBinding
+ * Returns the details of a Scope RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getScopeRBACRoleBinding(GetScopeRBACRoleBindingRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getScopeRBACRoleBinding(RBACRoleBindingName name)
+ *
getScopeRBACRoleBinding(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getScopeRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * CreateScopeRBACRoleBinding
+ * Creates a Scope RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createScopeRBACRoleBindingAsync(CreateScopeRBACRoleBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createScopeRBACRoleBindingAsync(MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId)
+ *
createScopeRBACRoleBindingAsync(ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId)
+ *
createScopeRBACRoleBindingAsync(String parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createScopeRBACRoleBindingOperationCallable()
+ *
createScopeRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * UpdateScopeRBACRoleBinding
+ * Updates a Scope RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateScopeRBACRoleBindingAsync(UpdateScopeRBACRoleBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateScopeRBACRoleBindingAsync(RBACRoleBinding rbacrolebinding, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateScopeRBACRoleBindingOperationCallable()
+ *
updateScopeRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * DeleteScopeRBACRoleBinding
+ * Deletes a Scope RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteScopeRBACRoleBindingAsync(DeleteScopeRBACRoleBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteScopeRBACRoleBindingAsync(RBACRoleBindingName name)
+ *
deleteScopeRBACRoleBindingAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteScopeRBACRoleBindingOperationCallable()
+ *
deleteScopeRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * ListScopeRBACRoleBindings
+ * Lists all Scope RBACRoleBindings.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listScopeRBACRoleBindings(ListScopeRBACRoleBindingsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listScopeRBACRoleBindings(MembershipName parent)
+ *
listScopeRBACRoleBindings(ScopeName parent)
+ *
listScopeRBACRoleBindings(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listScopeRBACRoleBindingsPagedCallable()
+ *
listScopeRBACRoleBindingsCallable()
+ *
+ *
+ *
+ *
+ * GetScope
+ * Returns the details of a Scope.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getScope(GetScopeRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getScope(ScopeName name)
+ *
getScope(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getScopeCallable()
+ *
+ *
+ *
+ *
+ * CreateScope
+ * Creates a Scope.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createScopeAsync(CreateScopeRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createScopeAsync(LocationName parent, Scope scope, String scopeId)
+ *
createScopeAsync(String parent, Scope scope, String scopeId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createScopeOperationCallable()
+ *
createScopeCallable()
+ *
+ *
+ *
+ *
+ * UpdateScope
+ * Updates a scopes.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateScopeAsync(UpdateScopeRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateScopeAsync(Scope scope, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateScopeOperationCallable()
+ *
updateScopeCallable()
+ *
+ *
+ *
+ *
+ * DeleteScope
+ * Deletes a Scope.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteScopeAsync(DeleteScopeRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteScopeAsync(ScopeName name)
+ *
deleteScopeAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteScopeOperationCallable()
+ *
deleteScopeCallable()
+ *
+ *
+ *
+ *
+ * ListScopes
+ * Lists Scopes.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listScopes(ListScopesRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listScopes(LocationName parent)
+ *
listScopes(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listScopesPagedCallable()
+ *
listScopesCallable()
+ *
+ *
+ *
+ *
+ * ListPermittedScopes
+ * Lists permitted Scopes.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listPermittedScopes(ListPermittedScopesRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listPermittedScopes(LocationName parent)
+ *
listPermittedScopes(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listPermittedScopesPagedCallable()
+ *
listPermittedScopesCallable()
+ *
+ *
+ *
+ *
+ * GetMembershipBinding
+ * Returns the details of a MembershipBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getMembershipBinding(GetMembershipBindingRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getMembershipBinding(MembershipBindingName name)
+ *
getMembershipBinding(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getMembershipBindingCallable()
+ *
+ *
+ *
+ *
+ * CreateMembershipBinding
+ * Creates a MembershipBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createMembershipBindingAsync(CreateMembershipBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createMembershipBindingAsync(MembershipName parent, MembershipBinding membershipBinding, String membershipBindingId)
+ *
createMembershipBindingAsync(String parent, MembershipBinding membershipBinding, String membershipBindingId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createMembershipBindingOperationCallable()
+ *
createMembershipBindingCallable()
+ *
+ *
+ *
+ *
+ * UpdateMembershipBinding
+ * Updates a MembershipBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateMembershipBindingAsync(UpdateMembershipBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateMembershipBindingAsync(MembershipBinding membershipBinding, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateMembershipBindingOperationCallable()
+ *
updateMembershipBindingCallable()
+ *
+ *
+ *
+ *
+ * DeleteMembershipBinding
+ * Deletes a MembershipBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteMembershipBindingAsync(DeleteMembershipBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteMembershipBindingAsync(MembershipBindingName name)
+ *
deleteMembershipBindingAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteMembershipBindingOperationCallable()
+ *
deleteMembershipBindingCallable()
+ *
+ *
+ *
+ *
+ * ListMembershipBindings
+ * Lists MembershipBindings.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listMembershipBindings(ListMembershipBindingsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listMembershipBindings(MembershipName parent)
+ *
listMembershipBindings(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listMembershipBindingsPagedCallable()
+ *
listMembershipBindingsCallable()
+ *
+ *
+ *
+ *
+ * GetMembershipRBACRoleBinding
+ * Returns the details of a Membership RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getMembershipRBACRoleBinding(GetMembershipRBACRoleBindingRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getMembershipRBACRoleBinding(RBACRoleBindingName name)
+ *
getMembershipRBACRoleBinding(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getMembershipRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * CreateMembershipRBACRoleBinding
+ * Creates a Membership RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createMembershipRBACRoleBindingAsync(CreateMembershipRBACRoleBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createMembershipRBACRoleBindingAsync(MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId)
+ *
createMembershipRBACRoleBindingAsync(ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId)
+ *
createMembershipRBACRoleBindingAsync(String parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createMembershipRBACRoleBindingOperationCallable()
+ *
createMembershipRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * UpdateMembershipRBACRoleBinding
+ * Updates a Membership RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateMembershipRBACRoleBindingAsync(UpdateMembershipRBACRoleBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateMembershipRBACRoleBindingAsync(RBACRoleBinding rbacrolebinding, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateMembershipRBACRoleBindingOperationCallable()
+ *
updateMembershipRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * DeleteMembershipRBACRoleBinding
+ * Deletes a Membership RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteMembershipRBACRoleBindingAsync(DeleteMembershipRBACRoleBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteMembershipRBACRoleBindingAsync(RBACRoleBindingName name)
+ *
deleteMembershipRBACRoleBindingAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteMembershipRBACRoleBindingOperationCallable()
+ *
deleteMembershipRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * ListMembershipRBACRoleBindings
+ * Lists all Membership RBACRoleBindings.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listMembershipRBACRoleBindings(ListMembershipRBACRoleBindingsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listMembershipRBACRoleBindings(MembershipName parent)
+ *
listMembershipRBACRoleBindings(ScopeName parent)
+ *
listMembershipRBACRoleBindings(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listMembershipRBACRoleBindingsPagedCallable()
+ *
listMembershipRBACRoleBindingsCallable()
+ *
+ *
+ *
+ *
+ * GenerateMembershipRBACRoleBindingYAML
+ * Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * generateMembershipRBACRoleBindingYAML(GenerateMembershipRBACRoleBindingYAMLRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * generateMembershipRBACRoleBindingYAMLCallable()
+ *
+ *
+ *
+ *
+ *
+ * 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 GkeHubSettings 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
+ * GkeHubSettings gkeHubSettings =
+ * GkeHubSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
+ * }
+ *
+ * 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
+ * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
+ * }
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GkeHubSettings gkeHubSettings = GkeHubSettings.newHttpJsonBuilder().build();
+ * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class GkeHubClient implements BackgroundResource {
+ private final GkeHubSettings settings;
+ private final GkeHubStub stub;
+ private final OperationsClient httpJsonOperationsClient;
+ private final com.google.longrunning.OperationsClient operationsClient;
+
+ /** Constructs an instance of GkeHubClient with default settings. */
+ public static final GkeHubClient create() throws IOException {
+ return create(GkeHubSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of GkeHubClient, 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 GkeHubClient create(GkeHubSettings settings) throws IOException {
+ return new GkeHubClient(settings);
+ }
+
+ /**
+ * Constructs an instance of GkeHubClient, using the given stub for making calls. This is for
+ * advanced usage - prefer using create(GkeHubSettings).
+ */
+ public static final GkeHubClient create(GkeHubStub stub) {
+ return new GkeHubClient(stub);
+ }
+
+ /**
+ * Constructs an instance of GkeHubClient, 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 GkeHubClient(GkeHubSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((GkeHubStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ protected GkeHubClient(GkeHubStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ public final GkeHubSettings getSettings() {
+ return settings;
+ }
+
+ public GkeHubStub getStub() {
+ return stub;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ public final com.google.longrunning.OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ @BetaApi
+ public final OperationsClient getHttpJsonOperationsClient() {
+ return httpJsonOperationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships in a given project and location.
+ *
+ *
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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Memberships will be listed.
+ * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list
+ * memberships in all the regions.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMembershipsPagedResponse listMemberships(LocationName parent) {
+ ListMembershipsRequest request =
+ ListMembershipsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listMemberships(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships in a given project and location.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Memberships will be listed.
+ * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list
+ * memberships in all the regions.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMembershipsPagedResponse listMemberships(String parent) {
+ ListMembershipsRequest request = ListMembershipsRequest.newBuilder().setParent(parent).build();
+ return listMemberships(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships in a given project and location.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListMembershipsRequest request =
+ * ListMembershipsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (Membership element : gkeHubClient.listMemberships(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 ListMembershipsPagedResponse listMemberships(ListMembershipsRequest request) {
+ return listMembershipsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships in a given project and location.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListMembershipsRequest request =
+ * ListMembershipsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.listMembershipsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Membership element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listMembershipsPagedCallable() {
+ return stub.listMembershipsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships in a given project and location.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListMembershipsRequest request =
+ * ListMembershipsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListMembershipsResponse response = gkeHubClient.listMembershipsCallable().call(request);
+ * for (Membership element : response.getResourcesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listMembershipsCallable() {
+ return stub.listMembershipsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships bound to a Scope. The response includes relevant Memberships from all
+ * regions.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ScopeName scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
+ * for (Membership element : gkeHubClient.listBoundMemberships(scopeName).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param scopeName Required. Name of the Scope, in the format
+ * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBoundMembershipsPagedResponse listBoundMemberships(ScopeName scopeName) {
+ ListBoundMembershipsRequest request =
+ ListBoundMembershipsRequest.newBuilder()
+ .setScopeName(scopeName == null ? null : scopeName.toString())
+ .build();
+ return listBoundMemberships(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships bound to a Scope. The response includes relevant Memberships from all
+ * regions.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
+ * for (Membership element : gkeHubClient.listBoundMemberships(scopeName).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param scopeName Required. Name of the Scope, in the format
+ * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBoundMembershipsPagedResponse listBoundMemberships(String scopeName) {
+ ListBoundMembershipsRequest request =
+ ListBoundMembershipsRequest.newBuilder().setScopeName(scopeName).build();
+ return listBoundMemberships(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships bound to a Scope. The response includes relevant Memberships from all
+ * regions.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListBoundMembershipsRequest request =
+ * ListBoundMembershipsRequest.newBuilder()
+ * .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Membership element : gkeHubClient.listBoundMemberships(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 ListBoundMembershipsPagedResponse listBoundMemberships(
+ ListBoundMembershipsRequest request) {
+ return listBoundMembershipsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships bound to a Scope. The response includes relevant Memberships from all
+ * regions.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListBoundMembershipsRequest request =
+ * ListBoundMembershipsRequest.newBuilder()
+ * .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.listBoundMembershipsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Membership element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listBoundMembershipsPagedCallable() {
+ return stub.listBoundMembershipsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships bound to a Scope. The response includes relevant Memberships from all
+ * regions.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListBoundMembershipsRequest request =
+ * ListBoundMembershipsRequest.newBuilder()
+ * .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListBoundMembershipsResponse response =
+ * gkeHubClient.listBoundMembershipsCallable().call(request);
+ * for (Membership element : response.getMembershipsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listBoundMembershipsCallable() {
+ return stub.listBoundMembershipsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given project and location.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Features will be listed.
+ * Specified in the format `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeaturesPagedResponse listFeatures(LocationName parent) {
+ ListFeaturesRequest request =
+ ListFeaturesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFeatures(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given project and location.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Features will be listed.
+ * Specified in the format `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeaturesPagedResponse listFeatures(String parent) {
+ ListFeaturesRequest request = ListFeaturesRequest.newBuilder().setParent(parent).build();
+ return listFeatures(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given project and location.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListFeaturesRequest request =
+ * ListFeaturesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * for (Feature element : gkeHubClient.listFeatures(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 ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) {
+ return listFeaturesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given project and location.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListFeaturesRequest request =
+ * ListFeaturesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * ApiFuture future = gkeHubClient.listFeaturesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Feature element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listFeaturesPagedCallable() {
+ return stub.listFeaturesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given project and location.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListFeaturesRequest request =
+ * ListFeaturesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * while (true) {
+ * ListFeaturesResponse response = gkeHubClient.listFeaturesCallable().call(request);
+ * for (Feature element : response.getResourcesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listFeaturesCallable() {
+ return stub.listFeaturesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the details of a Membership.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
+ * Membership response = gkeHubClient.getMembership(name);
+ * }
+ * }
+ *
+ * @param name Required. The Membership resource name in the format
+ * `projects/*/locations/*/memberships/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Membership getMembership(MembershipName name) {
+ GetMembershipRequest request =
+ GetMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getMembership(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the details of a Membership.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
+ * Membership response = gkeHubClient.getMembership(name);
+ * }
+ * }
+ *
+ * @param name Required. The Membership resource name in the format
+ * `projects/*/locations/*/memberships/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Membership getMembership(String name) {
+ GetMembershipRequest request = GetMembershipRequest.newBuilder().setName(name).build();
+ return getMembership(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the details of a Membership.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetMembershipRequest request =
+ * GetMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .build();
+ * Membership response = gkeHubClient.getMembership(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 Membership getMembership(GetMembershipRequest request) {
+ return getMembershipCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the details of a Membership.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetMembershipRequest request =
+ * GetMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .build();
+ * ApiFuture future = gkeHubClient.getMembershipCallable().futureCall(request);
+ * // Do something.
+ * Membership response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getMembershipCallable() {
+ return stub.getMembershipCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
+ * Feature response = gkeHubClient.getFeature(name);
+ * }
+ * }
+ *
+ * @param name Required. The Feature resource name in the format
+ * `projects/*/locations/*/features/*`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Feature getFeature(FeatureName name) {
+ GetFeatureRequest request =
+ GetFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getFeature(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
+ * Feature response = gkeHubClient.getFeature(name);
+ * }
+ * }
+ *
+ * @param name Required. The Feature resource name in the format
+ * `projects/*/locations/*/features/*`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Feature getFeature(String name) {
+ GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name).build();
+ return getFeature(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetFeatureRequest request =
+ * GetFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * Feature response = gkeHubClient.getFeature(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 Feature getFeature(GetFeatureRequest request) {
+ return getFeatureCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetFeatureRequest request =
+ * GetFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * ApiFuture future = gkeHubClient.getFeatureCallable().futureCall(request);
+ * // Do something.
+ * Feature response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getFeatureCallable() {
+ return stub.getFeatureCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ *
+ *
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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Membership resource = Membership.newBuilder().build();
+ * String membershipId = "membershipId517665681";
+ * Membership response =
+ * gkeHubClient.createMembershipAsync(parent, resource, membershipId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Memberships will be
+ * created. Specified in the format `projects/*/locations/*`.
+ * @param resource Required. The membership to create.
+ * @param membershipId Required. Client chosen ID for the membership. `membership_id` must be a
+ * valid RFC 1123 compliant DNS label:
+ * 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ *
Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createMembershipAsync(
+ LocationName parent, Membership resource, String membershipId) {
+ CreateMembershipRequest request =
+ CreateMembershipRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setResource(resource)
+ .setMembershipId(membershipId)
+ .build();
+ return createMembershipAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ *
+ *
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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * Membership resource = Membership.newBuilder().build();
+ * String membershipId = "membershipId517665681";
+ * Membership response =
+ * gkeHubClient.createMembershipAsync(parent, resource, membershipId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Memberships will be
+ * created. Specified in the format `projects/*/locations/*`.
+ * @param resource Required. The membership to create.
+ * @param membershipId Required. Client chosen ID for the membership. `membership_id` must be a
+ * valid RFC 1123 compliant DNS label:
+ * 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ *
Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createMembershipAsync(
+ String parent, Membership resource, String membershipId) {
+ CreateMembershipRequest request =
+ CreateMembershipRequest.newBuilder()
+ .setParent(parent)
+ .setResource(resource)
+ .setMembershipId(membershipId)
+ .build();
+ return createMembershipAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ *
+ *
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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateMembershipRequest request =
+ * CreateMembershipRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setMembershipId("membershipId517665681")
+ * .setResource(Membership.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Membership response = gkeHubClient.createMembershipAsync(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 createMembershipAsync(
+ CreateMembershipRequest request) {
+ return createMembershipOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ *
+ *
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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateMembershipRequest request =
+ * CreateMembershipRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setMembershipId("membershipId517665681")
+ * .setResource(Membership.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.createMembershipOperationCallable().futureCall(request);
+ * // Do something.
+ * Membership response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createMembershipOperationCallable() {
+ return stub.createMembershipOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ *
+ *
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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateMembershipRequest request =
+ * CreateMembershipRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setMembershipId("membershipId517665681")
+ * .setResource(Membership.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = gkeHubClient.createMembershipCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createMembershipCallable() {
+ return stub.createMembershipCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Adds a new Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Feature resource = Feature.newBuilder().build();
+ * String featureId = "featureId-420503887";
+ * Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Feature will be created.
+ * Specified in the format `projects/*/locations/*`.
+ * @param resource The Feature resource to create.
+ * @param featureId The ID of the feature to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createFeatureAsync(
+ LocationName parent, Feature resource, String featureId) {
+ CreateFeatureRequest request =
+ CreateFeatureRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setResource(resource)
+ .setFeatureId(featureId)
+ .build();
+ return createFeatureAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Adds a new Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * Feature resource = Feature.newBuilder().build();
+ * String featureId = "featureId-420503887";
+ * Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Feature will be created.
+ * Specified in the format `projects/*/locations/*`.
+ * @param resource The Feature resource to create.
+ * @param featureId The ID of the feature to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createFeatureAsync(
+ String parent, Feature resource, String featureId) {
+ CreateFeatureRequest request =
+ CreateFeatureRequest.newBuilder()
+ .setParent(parent)
+ .setResource(resource)
+ .setFeatureId(featureId)
+ .build();
+ return createFeatureAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Adds a new Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateFeatureRequest request =
+ * CreateFeatureRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFeatureId("featureId-420503887")
+ * .setResource(Feature.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Feature response = gkeHubClient.createFeatureAsync(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 createFeatureAsync(
+ CreateFeatureRequest request) {
+ return createFeatureOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Adds a new Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateFeatureRequest request =
+ * CreateFeatureRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFeatureId("featureId-420503887")
+ * .setResource(Feature.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.createFeatureOperationCallable().futureCall(request);
+ * // Do something.
+ * Feature response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createFeatureOperationCallable() {
+ return stub.createFeatureOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Adds a new Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateFeatureRequest request =
+ * CreateFeatureRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFeatureId("featureId-420503887")
+ * .setResource(Feature.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = gkeHubClient.createFeatureCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createFeatureCallable() {
+ return stub.createFeatureCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ *
+ *
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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
+ * gkeHubClient.deleteMembershipAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Membership resource name in the format
+ * `projects/*/locations/*/memberships/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteMembershipAsync(
+ MembershipName name) {
+ DeleteMembershipRequest request =
+ DeleteMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return deleteMembershipAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ *
+ *
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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
+ * gkeHubClient.deleteMembershipAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Membership resource name in the format
+ * `projects/*/locations/*/memberships/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteMembershipAsync(String name) {
+ DeleteMembershipRequest request = DeleteMembershipRequest.newBuilder().setName(name).build();
+ return deleteMembershipAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ *
+ *
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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteMembershipRequest request =
+ * DeleteMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * gkeHubClient.deleteMembershipAsync(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 deleteMembershipAsync(
+ DeleteMembershipRequest request) {
+ return deleteMembershipOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ *
+ *
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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteMembershipRequest request =
+ * DeleteMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.deleteMembershipOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteMembershipOperationCallable() {
+ return stub.deleteMembershipOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ *
+ *
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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteMembershipRequest request =
+ * DeleteMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * ApiFuture future = gkeHubClient.deleteMembershipCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteMembershipCallable() {
+ return stub.deleteMembershipCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
+ * gkeHubClient.deleteFeatureAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Feature resource name in the format
+ * `projects/*/locations/*/features/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteFeatureAsync(FeatureName name) {
+ DeleteFeatureRequest request =
+ DeleteFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return deleteFeatureAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
+ * gkeHubClient.deleteFeatureAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Feature resource name in the format
+ * `projects/*/locations/*/features/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteFeatureAsync(String name) {
+ DeleteFeatureRequest request = DeleteFeatureRequest.newBuilder().setName(name).build();
+ return deleteFeatureAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteFeatureRequest request =
+ * DeleteFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setForce(true)
+ * .setRequestId("requestId693933066")
+ * .build();
+ * gkeHubClient.deleteFeatureAsync(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 deleteFeatureAsync(
+ DeleteFeatureRequest request) {
+ return deleteFeatureOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteFeatureRequest request =
+ * DeleteFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setForce(true)
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.deleteFeatureOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteFeatureOperationCallable() {
+ return stub.deleteFeatureOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteFeatureRequest request =
+ * DeleteFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setForce(true)
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = gkeHubClient.deleteFeatureCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteFeatureCallable() {
+ return stub.deleteFeatureCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Membership.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
+ * Membership resource = Membership.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get();
+ * }
+ * }
+ *
+ * @param name Required. The Membership resource name in the format
+ * `projects/*/locations/*/memberships/*`.
+ * @param resource Required. Only fields specified in update_mask are updated. If you specify a
+ * field in the update_mask but don't specify its value here that field will be deleted. If
+ * you are updating a map field, set the value of a key to null or empty string to delete the
+ * key from the map. It's not possible to update a key's value to the empty string. If you
+ * specify the update_mask to be a special path "*", fully replaces all user-modifiable
+ * fields to match `resource`.
+ * @param updateMask Required. Mask of fields to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateMembershipAsync(
+ MembershipName name, Membership resource, FieldMask updateMask) {
+ UpdateMembershipRequest request =
+ UpdateMembershipRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .setResource(resource)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateMembershipAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Membership.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
+ * Membership resource = Membership.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get();
+ * }
+ * }
+ *
+ * @param name Required. The Membership resource name in the format
+ * `projects/*/locations/*/memberships/*`.
+ * @param resource Required. Only fields specified in update_mask are updated. If you specify a
+ * field in the update_mask but don't specify its value here that field will be deleted. If
+ * you are updating a map field, set the value of a key to null or empty string to delete the
+ * key from the map. It's not possible to update a key's value to the empty string. If you
+ * specify the update_mask to be a special path "*", fully replaces all user-modifiable
+ * fields to match `resource`.
+ * @param updateMask Required. Mask of fields to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateMembershipAsync(
+ String name, Membership resource, FieldMask updateMask) {
+ UpdateMembershipRequest request =
+ UpdateMembershipRequest.newBuilder()
+ .setName(name)
+ .setResource(resource)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateMembershipAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Membership.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateMembershipRequest request =
+ * UpdateMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setResource(Membership.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Membership response = gkeHubClient.updateMembershipAsync(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 updateMembershipAsync(
+ UpdateMembershipRequest request) {
+ return updateMembershipOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Membership.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateMembershipRequest request =
+ * UpdateMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setResource(Membership.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.updateMembershipOperationCallable().futureCall(request);
+ * // Do something.
+ * Membership response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateMembershipOperationCallable() {
+ return stub.updateMembershipOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Membership.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateMembershipRequest request =
+ * UpdateMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setResource(Membership.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = gkeHubClient.updateMembershipCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateMembershipCallable() {
+ return stub.updateMembershipCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
+ * Feature resource = Feature.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
+ * }
+ * }
+ *
+ * @param name Required. The Feature resource name in the format
+ * `projects/*/locations/*/features/*`.
+ * @param resource Only fields specified in update_mask are updated. If you specify a field in the
+ * update_mask but don't specify its value here that field will be deleted. If you are
+ * updating a map field, set the value of a key to null or empty string to delete the key from
+ * the map. It's not possible to update a key's value to the empty string. If you specify the
+ * update_mask to be a special path "*", fully replaces all user-modifiable fields to
+ * match `resource`.
+ * @param updateMask Mask of fields to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateFeatureAsync(
+ FeatureName name, Feature resource, FieldMask updateMask) {
+ UpdateFeatureRequest request =
+ UpdateFeatureRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .setResource(resource)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateFeatureAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
+ * Feature resource = Feature.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
+ * }
+ * }
+ *
+ * @param name Required. The Feature resource name in the format
+ * `projects/*/locations/*/features/*`.
+ * @param resource Only fields specified in update_mask are updated. If you specify a field in the
+ * update_mask but don't specify its value here that field will be deleted. If you are
+ * updating a map field, set the value of a key to null or empty string to delete the key from
+ * the map. It's not possible to update a key's value to the empty string. If you specify the
+ * update_mask to be a special path "*", fully replaces all user-modifiable fields to
+ * match `resource`.
+ * @param updateMask Mask of fields to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateFeatureAsync(
+ String name, Feature resource, FieldMask updateMask) {
+ UpdateFeatureRequest request =
+ UpdateFeatureRequest.newBuilder()
+ .setName(name)
+ .setResource(resource)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateFeatureAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateFeatureRequest request =
+ * UpdateFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setResource(Feature.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Feature response = gkeHubClient.updateFeatureAsync(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 updateFeatureAsync(
+ UpdateFeatureRequest request) {
+ return updateFeatureOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateFeatureRequest request =
+ * UpdateFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setResource(Feature.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.updateFeatureOperationCallable().futureCall(request);
+ * // Do something.
+ * Feature response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateFeatureOperationCallable() {
+ return stub.updateFeatureOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Feature.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateFeatureRequest request =
+ * UpdateFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setResource(Feature.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = gkeHubClient.updateFeatureCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateFeatureCallable() {
+ return stub.updateFeatureCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Generates the manifest for deployment of the GKE connect agent.
+ *
+ * **This method is used internally by Google-provided libraries.** Most
+ * clients should not need to call this method directly.
+ *
+ *
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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GenerateConnectManifestRequest request =
+ * GenerateConnectManifestRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setNamespace("namespace1252218203")
+ * .setProxy(ByteString.EMPTY)
+ * .setVersion("version351608024")
+ * .setIsUpgrade(true)
+ * .setRegistry("registry-690212803")
+ * .setImagePullSecretContent(ByteString.EMPTY)
+ * .build();
+ * GenerateConnectManifestResponse response = gkeHubClient.generateConnectManifest(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 GenerateConnectManifestResponse generateConnectManifest(
+ GenerateConnectManifestRequest request) {
+ return generateConnectManifestCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Generates the manifest for deployment of the GKE connect agent.
+ *
+ * **This method is used internally by Google-provided libraries.** Most
+ * clients should not need to call this method directly.
+ *
+ *
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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GenerateConnectManifestRequest request =
+ * GenerateConnectManifestRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setNamespace("namespace1252218203")
+ * .setProxy(ByteString.EMPTY)
+ * .setVersion("version351608024")
+ * .setIsUpgrade(true)
+ * .setRegistry("registry-690212803")
+ * .setImagePullSecretContent(ByteString.EMPTY)
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.generateConnectManifestCallable().futureCall(request);
+ * // Do something.
+ * GenerateConnectManifestResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ generateConnectManifestCallable() {
+ return stub.generateConnectManifestCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Fleet fleet = Fleet.newBuilder().build();
+ * Fleet response = gkeHubClient.createFleetAsync(parent, fleet).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Fleet will be created.
+ * Specified in the format `projects/*/locations/*`.
+ * @param fleet Required. The fleet to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createFleetAsync(
+ LocationName parent, Fleet fleet) {
+ CreateFleetRequest request =
+ CreateFleetRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setFleet(fleet)
+ .build();
+ return createFleetAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * Fleet fleet = Fleet.newBuilder().build();
+ * Fleet response = gkeHubClient.createFleetAsync(parent, fleet).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Fleet will be created.
+ * Specified in the format `projects/*/locations/*`.
+ * @param fleet Required. The fleet to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createFleetAsync(
+ String parent, Fleet fleet) {
+ CreateFleetRequest request =
+ CreateFleetRequest.newBuilder().setParent(parent).setFleet(fleet).build();
+ return createFleetAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateFleetRequest request =
+ * CreateFleetRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFleet(Fleet.newBuilder().build())
+ * .build();
+ * Fleet response = gkeHubClient.createFleetAsync(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 createFleetAsync(
+ CreateFleetRequest request) {
+ return createFleetOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateFleetRequest request =
+ * CreateFleetRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFleet(Fleet.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.createFleetOperationCallable().futureCall(request);
+ * // Do something.
+ * Fleet response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createFleetOperationCallable() {
+ return stub.createFleetOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateFleetRequest request =
+ * CreateFleetRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFleet(Fleet.newBuilder().build())
+ * .build();
+ * ApiFuture future = gkeHubClient.createFleetCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createFleetCallable() {
+ return stub.createFleetCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]");
+ * Fleet response = gkeHubClient.getFleet(name);
+ * }
+ * }
+ *
+ * @param name Required. The Fleet resource name in the format
+ * `projects/*/locations/*/fleets/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Fleet getFleet(FleetName name) {
+ GetFleetRequest request =
+ GetFleetRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getFleet(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]").toString();
+ * Fleet response = gkeHubClient.getFleet(name);
+ * }
+ * }
+ *
+ * @param name Required. The Fleet resource name in the format
+ * `projects/*/locations/*/fleets/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Fleet getFleet(String name) {
+ GetFleetRequest request = GetFleetRequest.newBuilder().setName(name).build();
+ return getFleet(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetFleetRequest request =
+ * GetFleetRequest.newBuilder()
+ * .setName(
+ * FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
+ * .toString())
+ * .build();
+ * Fleet response = gkeHubClient.getFleet(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 Fleet getFleet(GetFleetRequest request) {
+ return getFleetCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetFleetRequest request =
+ * GetFleetRequest.newBuilder()
+ * .setName(
+ * FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
+ * .toString())
+ * .build();
+ * ApiFuture future = gkeHubClient.getFleetCallable().futureCall(request);
+ * // Do something.
+ * Fleet response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getFleetCallable() {
+ return stub.getFleetCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * Fleet fleet = Fleet.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Fleet response = gkeHubClient.updateFleetAsync(fleet, updateMask).get();
+ * }
+ * }
+ *
+ * @param fleet Required. The Fleet to update.
+ * The `name` field of the Fleet object identifies which fleet will be updated.
+ * @param updateMask Required. The fields to be updated;
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateFleetAsync(
+ Fleet fleet, FieldMask updateMask) {
+ UpdateFleetRequest request =
+ UpdateFleetRequest.newBuilder().setFleet(fleet).setUpdateMask(updateMask).build();
+ return updateFleetAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateFleetRequest request =
+ * UpdateFleetRequest.newBuilder()
+ * .setFleet(Fleet.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Fleet response = gkeHubClient.updateFleetAsync(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 updateFleetAsync(
+ UpdateFleetRequest request) {
+ return updateFleetOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateFleetRequest request =
+ * UpdateFleetRequest.newBuilder()
+ * .setFleet(Fleet.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.updateFleetOperationCallable().futureCall(request);
+ * // Do something.
+ * Fleet response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateFleetOperationCallable() {
+ return stub.updateFleetOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateFleetRequest request =
+ * UpdateFleetRequest.newBuilder()
+ * .setFleet(Fleet.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future = gkeHubClient.updateFleetCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateFleetCallable() {
+ return stub.updateFleetCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Fleet. There must be no memberships remaining in the Fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]");
+ * gkeHubClient.deleteFleetAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Fleet resource name in the format
+ * `projects/*/locations/*/fleets/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteFleetAsync(FleetName name) {
+ DeleteFleetRequest request =
+ DeleteFleetRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return deleteFleetAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Fleet. There must be no memberships remaining in the Fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]").toString();
+ * gkeHubClient.deleteFleetAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Fleet resource name in the format
+ * `projects/*/locations/*/fleets/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteFleetAsync(String name) {
+ DeleteFleetRequest request = DeleteFleetRequest.newBuilder().setName(name).build();
+ return deleteFleetAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Fleet. There must be no memberships remaining in the Fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteFleetRequest request =
+ * DeleteFleetRequest.newBuilder()
+ * .setName(
+ * FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
+ * .toString())
+ * .build();
+ * gkeHubClient.deleteFleetAsync(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 deleteFleetAsync(
+ DeleteFleetRequest request) {
+ return deleteFleetOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Fleet. There must be no memberships remaining in the Fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteFleetRequest request =
+ * DeleteFleetRequest.newBuilder()
+ * .setName(
+ * FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
+ * .toString())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.deleteFleetOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteFleetOperationCallable() {
+ return stub.deleteFleetOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Fleet. There must be no memberships remaining in the Fleet.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteFleetRequest request =
+ * DeleteFleetRequest.newBuilder()
+ * .setName(
+ * FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
+ * .toString())
+ * .build();
+ * ApiFuture future = gkeHubClient.deleteFleetCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteFleetCallable() {
+ return stub.deleteFleetCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns all fleets within an organization or a project that the caller has access to.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Fleet element : gkeHubClient.listFleets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The organization or project to list for Fleets under, in the format
+ * `organizations/*/locations/*` or `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFleetsPagedResponse listFleets(LocationName parent) {
+ ListFleetsRequest request =
+ ListFleetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
+ return listFleets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns all fleets within an organization or a project that the caller has access to.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Fleet element : gkeHubClient.listFleets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The organization or project to list for Fleets under, in the format
+ * `organizations/*/locations/*` or `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFleetsPagedResponse listFleets(String parent) {
+ ListFleetsRequest request = ListFleetsRequest.newBuilder().setParent(parent).build();
+ return listFleets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns all fleets within an organization or a project that the caller has access to.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListFleetsRequest request =
+ * ListFleetsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * for (Fleet element : gkeHubClient.listFleets(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 ListFleetsPagedResponse listFleets(ListFleetsRequest request) {
+ return listFleetsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns all fleets within an organization or a project that the caller has access to.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListFleetsRequest request =
+ * ListFleetsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * ApiFuture future = gkeHubClient.listFleetsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Fleet element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listFleetsPagedCallable() {
+ return stub.listFleetsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns all fleets within an organization or a project that the caller has access to.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListFleetsRequest request =
+ * ListFleetsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * while (true) {
+ * ListFleetsResponse response = gkeHubClient.listFleetsCallable().call(request);
+ * for (Fleet element : response.getFleetsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listFleetsCallable() {
+ return stub.listFleetsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]");
+ * Namespace response = gkeHubClient.getScopeNamespace(name);
+ * }
+ * }
+ *
+ * @param name Required. The Namespace resource name in the format
+ * `projects/*/locations/*/scopes/*/namespaces/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Namespace getScopeNamespace(NamespaceName name) {
+ GetScopeNamespaceRequest request =
+ GetScopeNamespaceRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getScopeNamespace(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString();
+ * Namespace response = gkeHubClient.getScopeNamespace(name);
+ * }
+ * }
+ *
+ * @param name Required. The Namespace resource name in the format
+ * `projects/*/locations/*/scopes/*/namespaces/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Namespace getScopeNamespace(String name) {
+ GetScopeNamespaceRequest request = GetScopeNamespaceRequest.newBuilder().setName(name).build();
+ return getScopeNamespace(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetScopeNamespaceRequest request =
+ * GetScopeNamespaceRequest.newBuilder()
+ * .setName(
+ * NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
+ * .build();
+ * Namespace response = gkeHubClient.getScopeNamespace(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 Namespace getScopeNamespace(GetScopeNamespaceRequest request) {
+ return getScopeNamespaceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetScopeNamespaceRequest request =
+ * GetScopeNamespaceRequest.newBuilder()
+ * .setName(
+ * NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
+ * .build();
+ * ApiFuture future = gkeHubClient.getScopeNamespaceCallable().futureCall(request);
+ * // Do something.
+ * Namespace response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getScopeNamespaceCallable() {
+ return stub.getScopeNamespaceCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
+ * Namespace scopeNamespace = Namespace.newBuilder().build();
+ * String scopeNamespaceId = "scopeNamespaceId-125738782";
+ * Namespace response =
+ * gkeHubClient.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Namespace will be created.
+ * Specified in the format `projects/*/locations/*/scopes/*`.
+ * @param scopeNamespace Required. The fleet namespace to create.
+ * @param scopeNamespaceId Required. Client chosen ID for the Namespace. `namespace_id` must be a
+ * valid RFC 1123 compliant DNS label:
+ * 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ *
Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeNamespaceAsync(
+ ScopeName parent, Namespace scopeNamespace, String scopeNamespaceId) {
+ CreateScopeNamespaceRequest request =
+ CreateScopeNamespaceRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setScopeNamespace(scopeNamespace)
+ .setScopeNamespaceId(scopeNamespaceId)
+ .build();
+ return createScopeNamespaceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
+ * Namespace scopeNamespace = Namespace.newBuilder().build();
+ * String scopeNamespaceId = "scopeNamespaceId-125738782";
+ * Namespace response =
+ * gkeHubClient.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Namespace will be created.
+ * Specified in the format `projects/*/locations/*/scopes/*`.
+ * @param scopeNamespace Required. The fleet namespace to create.
+ * @param scopeNamespaceId Required. Client chosen ID for the Namespace. `namespace_id` must be a
+ * valid RFC 1123 compliant DNS label:
+ * 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ *
Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeNamespaceAsync(
+ String parent, Namespace scopeNamespace, String scopeNamespaceId) {
+ CreateScopeNamespaceRequest request =
+ CreateScopeNamespaceRequest.newBuilder()
+ .setParent(parent)
+ .setScopeNamespace(scopeNamespace)
+ .setScopeNamespaceId(scopeNamespaceId)
+ .build();
+ return createScopeNamespaceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeNamespaceRequest request =
+ * CreateScopeNamespaceRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setScopeNamespaceId("scopeNamespaceId-125738782")
+ * .setScopeNamespace(Namespace.newBuilder().build())
+ * .build();
+ * Namespace response = gkeHubClient.createScopeNamespaceAsync(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 createScopeNamespaceAsync(
+ CreateScopeNamespaceRequest request) {
+ return createScopeNamespaceOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeNamespaceRequest request =
+ * CreateScopeNamespaceRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setScopeNamespaceId("scopeNamespaceId-125738782")
+ * .setScopeNamespace(Namespace.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.createScopeNamespaceOperationCallable().futureCall(request);
+ * // Do something.
+ * Namespace response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createScopeNamespaceOperationCallable() {
+ return stub.createScopeNamespaceOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeNamespaceRequest request =
+ * CreateScopeNamespaceRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setScopeNamespaceId("scopeNamespaceId-125738782")
+ * .setScopeNamespace(Namespace.newBuilder().build())
+ * .build();
+ * ApiFuture future = gkeHubClient.createScopeNamespaceCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createScopeNamespaceCallable() {
+ return stub.createScopeNamespaceCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * Namespace scopeNamespace = Namespace.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Namespace response = gkeHubClient.updateScopeNamespaceAsync(scopeNamespace, updateMask).get();
+ * }
+ * }
+ *
+ * @param scopeNamespace Required. A namespace with fields updated. The 'name' field in this
+ * namespace is used to identify the resource to update. Given 'updated' prefix to follow
+ * go/proto-best-practices-checkers#keyword_conflict
+ * @param updateMask Required. The fields to be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateScopeNamespaceAsync(
+ Namespace scopeNamespace, FieldMask updateMask) {
+ UpdateScopeNamespaceRequest request =
+ UpdateScopeNamespaceRequest.newBuilder()
+ .setScopeNamespace(scopeNamespace)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateScopeNamespaceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeNamespaceRequest request =
+ * UpdateScopeNamespaceRequest.newBuilder()
+ * .setScopeNamespace(Namespace.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Namespace response = gkeHubClient.updateScopeNamespaceAsync(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 updateScopeNamespaceAsync(
+ UpdateScopeNamespaceRequest request) {
+ return updateScopeNamespaceOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeNamespaceRequest request =
+ * UpdateScopeNamespaceRequest.newBuilder()
+ * .setScopeNamespace(Namespace.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.updateScopeNamespaceOperationCallable().futureCall(request);
+ * // Do something.
+ * Namespace response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateScopeNamespaceOperationCallable() {
+ return stub.updateScopeNamespaceOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeNamespaceRequest request =
+ * UpdateScopeNamespaceRequest.newBuilder()
+ * .setScopeNamespace(Namespace.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future = gkeHubClient.updateScopeNamespaceCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateScopeNamespaceCallable() {
+ return stub.updateScopeNamespaceCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]");
+ * gkeHubClient.deleteScopeNamespaceAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Namespace resource name in the format
+ * `projects/*/locations/*/scopes/*/namespaces/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteScopeNamespaceAsync(
+ NamespaceName name) {
+ DeleteScopeNamespaceRequest request =
+ DeleteScopeNamespaceRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return deleteScopeNamespaceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString();
+ * gkeHubClient.deleteScopeNamespaceAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Namespace resource name in the format
+ * `projects/*/locations/*/scopes/*/namespaces/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteScopeNamespaceAsync(String name) {
+ DeleteScopeNamespaceRequest request =
+ DeleteScopeNamespaceRequest.newBuilder().setName(name).build();
+ return deleteScopeNamespaceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeNamespaceRequest request =
+ * DeleteScopeNamespaceRequest.newBuilder()
+ * .setName(
+ * NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
+ * .build();
+ * gkeHubClient.deleteScopeNamespaceAsync(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 deleteScopeNamespaceAsync(
+ DeleteScopeNamespaceRequest request) {
+ return deleteScopeNamespaceOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeNamespaceRequest request =
+ * DeleteScopeNamespaceRequest.newBuilder()
+ * .setName(
+ * NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.deleteScopeNamespaceOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteScopeNamespaceOperationCallable() {
+ return stub.deleteScopeNamespaceOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a fleet namespace.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeNamespaceRequest request =
+ * DeleteScopeNamespaceRequest.newBuilder()
+ * .setName(
+ * NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
+ * .build();
+ * ApiFuture future = gkeHubClient.deleteScopeNamespaceCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deleteScopeNamespaceCallable() {
+ return stub.deleteScopeNamespaceCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists fleet namespaces.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
+ * for (Namespace element : gkeHubClient.listScopeNamespaces(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Features will be listed.
+ * Specified in the format `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopeNamespacesPagedResponse listScopeNamespaces(ScopeName parent) {
+ ListScopeNamespacesRequest request =
+ ListScopeNamespacesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listScopeNamespaces(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists fleet namespaces.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
+ * for (Namespace element : gkeHubClient.listScopeNamespaces(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Features will be listed.
+ * Specified in the format `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopeNamespacesPagedResponse listScopeNamespaces(String parent) {
+ ListScopeNamespacesRequest request =
+ ListScopeNamespacesRequest.newBuilder().setParent(parent).build();
+ return listScopeNamespaces(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists fleet namespaces.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopeNamespacesRequest request =
+ * ListScopeNamespacesRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Namespace element : gkeHubClient.listScopeNamespaces(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 ListScopeNamespacesPagedResponse listScopeNamespaces(
+ ListScopeNamespacesRequest request) {
+ return listScopeNamespacesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists fleet namespaces.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopeNamespacesRequest request =
+ * ListScopeNamespacesRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.listScopeNamespacesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Namespace element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listScopeNamespacesPagedCallable() {
+ return stub.listScopeNamespacesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists fleet namespaces.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopeNamespacesRequest request =
+ * ListScopeNamespacesRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListScopeNamespacesResponse response =
+ * gkeHubClient.listScopeNamespacesCallable().call(request);
+ * for (Namespace element : response.getScopeNamespacesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listScopeNamespacesCallable() {
+ return stub.listScopeNamespacesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * RBACRoleBindingName name =
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
+ * RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(name);
+ * }
+ * }
+ *
+ * @param name Required. The RBACRoleBinding resource name in the format
+ * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RBACRoleBinding getScopeRBACRoleBinding(RBACRoleBindingName name) {
+ GetScopeRBACRoleBindingRequest request =
+ GetScopeRBACRoleBindingRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getScopeRBACRoleBinding(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString();
+ * RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(name);
+ * }
+ * }
+ *
+ * @param name Required. The RBACRoleBinding resource name in the format
+ * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RBACRoleBinding getScopeRBACRoleBinding(String name) {
+ GetScopeRBACRoleBindingRequest request =
+ GetScopeRBACRoleBindingRequest.newBuilder().setName(name).build();
+ return getScopeRBACRoleBinding(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetScopeRBACRoleBindingRequest request =
+ * GetScopeRBACRoleBindingRequest.newBuilder()
+ * .setName(
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString())
+ * .build();
+ * RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(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 RBACRoleBinding getScopeRBACRoleBinding(GetScopeRBACRoleBindingRequest request) {
+ return getScopeRBACRoleBindingCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetScopeRBACRoleBindingRequest request =
+ * GetScopeRBACRoleBindingRequest.newBuilder()
+ * .setName(
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.getScopeRBACRoleBindingCallable().futureCall(request);
+ * // Do something.
+ * RBACRoleBinding response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getScopeRBACRoleBindingCallable() {
+ return stub.getScopeRBACRoleBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
+ * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
+ * String rbacrolebindingId = "rbacrolebindingId827577784";
+ * RBACRoleBinding response =
+ * gkeHubClient
+ * .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the RBACRoleBinding will be
+ * created. Specified in the format `projects/*/locations/*/scopes/*`.
+ * @param rbacrolebinding Required. The rbacrolebindings to create.
+ * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding.
+ * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label:
+ * 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ *
Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeRBACRoleBindingAsync(
+ MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) {
+ CreateScopeRBACRoleBindingRequest request =
+ CreateScopeRBACRoleBindingRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setRbacrolebinding(rbacrolebinding)
+ .setRbacrolebindingId(rbacrolebindingId)
+ .build();
+ return createScopeRBACRoleBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
+ * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
+ * String rbacrolebindingId = "rbacrolebindingId827577784";
+ * RBACRoleBinding response =
+ * gkeHubClient
+ * .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the RBACRoleBinding will be
+ * created. Specified in the format `projects/*/locations/*/scopes/*`.
+ * @param rbacrolebinding Required. The rbacrolebindings to create.
+ * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding.
+ * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label:
+ * 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ *
Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeRBACRoleBindingAsync(
+ ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) {
+ CreateScopeRBACRoleBindingRequest request =
+ CreateScopeRBACRoleBindingRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setRbacrolebinding(rbacrolebinding)
+ .setRbacrolebindingId(rbacrolebindingId)
+ .build();
+ return createScopeRBACRoleBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
+ * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
+ * String rbacrolebindingId = "rbacrolebindingId827577784";
+ * RBACRoleBinding response =
+ * gkeHubClient
+ * .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the RBACRoleBinding will be
+ * created. Specified in the format `projects/*/locations/*/scopes/*`.
+ * @param rbacrolebinding Required. The rbacrolebindings to create.
+ * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding.
+ * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label:
+ * 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ *
Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeRBACRoleBindingAsync(
+ String parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) {
+ CreateScopeRBACRoleBindingRequest request =
+ CreateScopeRBACRoleBindingRequest.newBuilder()
+ .setParent(parent)
+ .setRbacrolebinding(rbacrolebinding)
+ .setRbacrolebindingId(rbacrolebindingId)
+ .build();
+ return createScopeRBACRoleBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeRBACRoleBindingRequest request =
+ * CreateScopeRBACRoleBindingRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setRbacrolebindingId("rbacrolebindingId827577784")
+ * .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
+ * .build();
+ * RBACRoleBinding response = gkeHubClient.createScopeRBACRoleBindingAsync(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 createScopeRBACRoleBindingAsync(
+ CreateScopeRBACRoleBindingRequest request) {
+ return createScopeRBACRoleBindingOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeRBACRoleBindingRequest request =
+ * CreateScopeRBACRoleBindingRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setRbacrolebindingId("rbacrolebindingId827577784")
+ * .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.createScopeRBACRoleBindingOperationCallable().futureCall(request);
+ * // Do something.
+ * RBACRoleBinding response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata>
+ createScopeRBACRoleBindingOperationCallable() {
+ return stub.createScopeRBACRoleBindingOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeRBACRoleBindingRequest request =
+ * CreateScopeRBACRoleBindingRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setRbacrolebindingId("rbacrolebindingId827577784")
+ * .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.createScopeRBACRoleBindingCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createScopeRBACRoleBindingCallable() {
+ return stub.createScopeRBACRoleBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * RBACRoleBinding response =
+ * gkeHubClient.updateScopeRBACRoleBindingAsync(rbacrolebinding, updateMask).get();
+ * }
+ * }
+ *
+ * @param rbacrolebinding Required. A rbacrolebinding with fields updated. The 'name' field in
+ * this rbacrolebinding is used to identify the resource to update.
+ * @param updateMask Required. The fields to be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateScopeRBACRoleBindingAsync(
+ RBACRoleBinding rbacrolebinding, FieldMask updateMask) {
+ UpdateScopeRBACRoleBindingRequest request =
+ UpdateScopeRBACRoleBindingRequest.newBuilder()
+ .setRbacrolebinding(rbacrolebinding)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateScopeRBACRoleBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeRBACRoleBindingRequest request =
+ * UpdateScopeRBACRoleBindingRequest.newBuilder()
+ * .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * RBACRoleBinding response = gkeHubClient.updateScopeRBACRoleBindingAsync(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 updateScopeRBACRoleBindingAsync(
+ UpdateScopeRBACRoleBindingRequest request) {
+ return updateScopeRBACRoleBindingOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeRBACRoleBindingRequest request =
+ * UpdateScopeRBACRoleBindingRequest.newBuilder()
+ * .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.updateScopeRBACRoleBindingOperationCallable().futureCall(request);
+ * // Do something.
+ * RBACRoleBinding response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata>
+ updateScopeRBACRoleBindingOperationCallable() {
+ return stub.updateScopeRBACRoleBindingOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeRBACRoleBindingRequest request =
+ * UpdateScopeRBACRoleBindingRequest.newBuilder()
+ * .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.updateScopeRBACRoleBindingCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateScopeRBACRoleBindingCallable() {
+ return stub.updateScopeRBACRoleBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * RBACRoleBindingName name =
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
+ * gkeHubClient.deleteScopeRBACRoleBindingAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The RBACRoleBinding resource name in the format
+ * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteScopeRBACRoleBindingAsync(
+ RBACRoleBindingName name) {
+ DeleteScopeRBACRoleBindingRequest request =
+ DeleteScopeRBACRoleBindingRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return deleteScopeRBACRoleBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString();
+ * gkeHubClient.deleteScopeRBACRoleBindingAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The RBACRoleBinding resource name in the format
+ * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteScopeRBACRoleBindingAsync(
+ String name) {
+ DeleteScopeRBACRoleBindingRequest request =
+ DeleteScopeRBACRoleBindingRequest.newBuilder().setName(name).build();
+ return deleteScopeRBACRoleBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeRBACRoleBindingRequest request =
+ * DeleteScopeRBACRoleBindingRequest.newBuilder()
+ * .setName(
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString())
+ * .build();
+ * gkeHubClient.deleteScopeRBACRoleBindingAsync(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 deleteScopeRBACRoleBindingAsync(
+ DeleteScopeRBACRoleBindingRequest request) {
+ return deleteScopeRBACRoleBindingOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeRBACRoleBindingRequest request =
+ * DeleteScopeRBACRoleBindingRequest.newBuilder()
+ * .setName(
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.deleteScopeRBACRoleBindingOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteScopeRBACRoleBindingOperationCallable() {
+ return stub.deleteScopeRBACRoleBindingOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope RBACRoleBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeRBACRoleBindingRequest request =
+ * DeleteScopeRBACRoleBindingRequest.newBuilder()
+ * .setName(
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.deleteScopeRBACRoleBindingCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deleteScopeRBACRoleBindingCallable() {
+ return stub.deleteScopeRBACRoleBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Scope RBACRoleBindings.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
+ * for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Features will be listed.
+ * Specified in the format `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings(
+ MembershipName parent) {
+ ListScopeRBACRoleBindingsRequest request =
+ ListScopeRBACRoleBindingsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listScopeRBACRoleBindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Scope RBACRoleBindings.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
+ * for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Features will be listed.
+ * Specified in the format `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings(ScopeName parent) {
+ ListScopeRBACRoleBindingsRequest request =
+ ListScopeRBACRoleBindingsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listScopeRBACRoleBindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Scope RBACRoleBindings.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
+ * for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Features will be listed.
+ * Specified in the format `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings(String parent) {
+ ListScopeRBACRoleBindingsRequest request =
+ ListScopeRBACRoleBindingsRequest.newBuilder().setParent(parent).build();
+ return listScopeRBACRoleBindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Scope RBACRoleBindings.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopeRBACRoleBindingsRequest request =
+ * ListScopeRBACRoleBindingsRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(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 ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings(
+ ListScopeRBACRoleBindingsRequest request) {
+ return listScopeRBACRoleBindingsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Scope RBACRoleBindings.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopeRBACRoleBindingsRequest request =
+ * ListScopeRBACRoleBindingsRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.listScopeRBACRoleBindingsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (RBACRoleBinding element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsPagedResponse>
+ listScopeRBACRoleBindingsPagedCallable() {
+ return stub.listScopeRBACRoleBindingsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Scope RBACRoleBindings.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopeRBACRoleBindingsRequest request =
+ * ListScopeRBACRoleBindingsRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListScopeRBACRoleBindingsResponse response =
+ * gkeHubClient.listScopeRBACRoleBindingsCallable().call(request);
+ * for (RBACRoleBinding element : response.getRbacrolebindingsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listScopeRBACRoleBindingsCallable() {
+ return stub.listScopeRBACRoleBindingsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
+ * Scope response = gkeHubClient.getScope(name);
+ * }
+ * }
+ *
+ * @param name Required. The Scope resource name in the format
+ * `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Scope getScope(ScopeName name) {
+ GetScopeRequest request =
+ GetScopeRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getScope(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
+ * Scope response = gkeHubClient.getScope(name);
+ * }
+ * }
+ *
+ * @param name Required. The Scope resource name in the format
+ * `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Scope getScope(String name) {
+ GetScopeRequest request = GetScopeRequest.newBuilder().setName(name).build();
+ return getScope(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetScopeRequest request =
+ * GetScopeRequest.newBuilder()
+ * .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .build();
+ * Scope response = gkeHubClient.getScope(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 Scope getScope(GetScopeRequest request) {
+ return getScopeCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetScopeRequest request =
+ * GetScopeRequest.newBuilder()
+ * .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .build();
+ * ApiFuture future = gkeHubClient.getScopeCallable().futureCall(request);
+ * // Do something.
+ * Scope response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getScopeCallable() {
+ return stub.getScopeCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Scope scope = Scope.newBuilder().build();
+ * String scopeId = "scopeId1923941007";
+ * Scope response = gkeHubClient.createScopeAsync(parent, scope, scopeId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Scope will be created.
+ * Specified in the format `projects/*/locations/*`.
+ * @param scope Required. The Scope to create.
+ * @param scopeId Required. Client chosen ID for the Scope. `scope_id` must be a ????
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeAsync(
+ LocationName parent, Scope scope, String scopeId) {
+ CreateScopeRequest request =
+ CreateScopeRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setScope(scope)
+ .setScopeId(scopeId)
+ .build();
+ return createScopeAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * Scope scope = Scope.newBuilder().build();
+ * String scopeId = "scopeId1923941007";
+ * Scope response = gkeHubClient.createScopeAsync(parent, scope, scopeId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Scope will be created.
+ * Specified in the format `projects/*/locations/*`.
+ * @param scope Required. The Scope to create.
+ * @param scopeId Required. Client chosen ID for the Scope. `scope_id` must be a ????
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeAsync(
+ String parent, Scope scope, String scopeId) {
+ CreateScopeRequest request =
+ CreateScopeRequest.newBuilder()
+ .setParent(parent)
+ .setScope(scope)
+ .setScopeId(scopeId)
+ .build();
+ return createScopeAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeRequest request =
+ * CreateScopeRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setScopeId("scopeId1923941007")
+ * .setScope(Scope.newBuilder().build())
+ * .build();
+ * Scope response = gkeHubClient.createScopeAsync(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 createScopeAsync(
+ CreateScopeRequest request) {
+ return createScopeOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeRequest request =
+ * CreateScopeRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setScopeId("scopeId1923941007")
+ * .setScope(Scope.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.createScopeOperationCallable().futureCall(request);
+ * // Do something.
+ * Scope response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createScopeOperationCallable() {
+ return stub.createScopeOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeRequest request =
+ * CreateScopeRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setScopeId("scopeId1923941007")
+ * .setScope(Scope.newBuilder().build())
+ * .build();
+ * ApiFuture future = gkeHubClient.createScopeCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createScopeCallable() {
+ return stub.createScopeCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a scopes.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * Scope scope = Scope.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Scope response = gkeHubClient.updateScopeAsync(scope, updateMask).get();
+ * }
+ * }
+ *
+ * @param scope Required. A Scope with fields updated. The 'name' field in this namespace is used
+ * to identify the resource to update.
+ * @param updateMask Required. The fields to be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateScopeAsync(
+ Scope scope, FieldMask updateMask) {
+ UpdateScopeRequest request =
+ UpdateScopeRequest.newBuilder().setScope(scope).setUpdateMask(updateMask).build();
+ return updateScopeAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a scopes.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeRequest request =
+ * UpdateScopeRequest.newBuilder()
+ * .setScope(Scope.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Scope response = gkeHubClient.updateScopeAsync(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 updateScopeAsync(
+ UpdateScopeRequest request) {
+ return updateScopeOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a scopes.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeRequest request =
+ * UpdateScopeRequest.newBuilder()
+ * .setScope(Scope.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.updateScopeOperationCallable().futureCall(request);
+ * // Do something.
+ * Scope response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateScopeOperationCallable() {
+ return stub.updateScopeOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a scopes.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeRequest request =
+ * UpdateScopeRequest.newBuilder()
+ * .setScope(Scope.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future = gkeHubClient.updateScopeCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateScopeCallable() {
+ return stub.updateScopeCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
+ * gkeHubClient.deleteScopeAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Scope resource name in the format
+ * `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteScopeAsync(ScopeName name) {
+ DeleteScopeRequest request =
+ DeleteScopeRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return deleteScopeAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
+ * gkeHubClient.deleteScopeAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Scope resource name in the format
+ * `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteScopeAsync(String name) {
+ DeleteScopeRequest request = DeleteScopeRequest.newBuilder().setName(name).build();
+ return deleteScopeAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeRequest request =
+ * DeleteScopeRequest.newBuilder()
+ * .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .build();
+ * gkeHubClient.deleteScopeAsync(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 deleteScopeAsync(
+ DeleteScopeRequest request) {
+ return deleteScopeOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeRequest request =
+ * DeleteScopeRequest.newBuilder()
+ * .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.deleteScopeOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteScopeOperationCallable() {
+ return stub.deleteScopeOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeRequest request =
+ * DeleteScopeRequest.newBuilder()
+ * .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .build();
+ * ApiFuture future = gkeHubClient.deleteScopeCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteScopeCallable() {
+ return stub.deleteScopeCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Scopes.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Scope element : gkeHubClient.listScopes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Scope will be listed.
+ * Specified in the format `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopesPagedResponse listScopes(LocationName parent) {
+ ListScopesRequest request =
+ ListScopesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
+ return listScopes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Scopes.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Scope element : gkeHubClient.listScopes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Scope will be listed.
+ * Specified in the format `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopesPagedResponse listScopes(String parent) {
+ ListScopesRequest request = ListScopesRequest.newBuilder().setParent(parent).build();
+ return listScopes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Scopes.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopesRequest request =
+ * ListScopesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Scope element : gkeHubClient.listScopes(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 ListScopesPagedResponse listScopes(ListScopesRequest request) {
+ return listScopesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Scopes.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopesRequest request =
+ * ListScopesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future = gkeHubClient.listScopesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Scope element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listScopesPagedCallable() {
+ return stub.listScopesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Scopes.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopesRequest request =
+ * ListScopesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListScopesResponse response = gkeHubClient.listScopesCallable().call(request);
+ * for (Scope element : response.getScopesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listScopesCallable() {
+ return stub.listScopesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists permitted Scopes.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Scope element : gkeHubClient.listPermittedScopes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Scope will be listed.
+ * Specified in the format `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPermittedScopesPagedResponse listPermittedScopes(LocationName parent) {
+ ListPermittedScopesRequest request =
+ ListPermittedScopesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listPermittedScopes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists permitted Scopes.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Scope element : gkeHubClient.listPermittedScopes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Scope will be listed.
+ * Specified in the format `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPermittedScopesPagedResponse listPermittedScopes(String parent) {
+ ListPermittedScopesRequest request =
+ ListPermittedScopesRequest.newBuilder().setParent(parent).build();
+ return listPermittedScopes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists permitted Scopes.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListPermittedScopesRequest request =
+ * ListPermittedScopesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Scope element : gkeHubClient.listPermittedScopes(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 ListPermittedScopesPagedResponse listPermittedScopes(
+ ListPermittedScopesRequest request) {
+ return listPermittedScopesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists permitted Scopes.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListPermittedScopesRequest request =
+ * ListPermittedScopesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future = gkeHubClient.listPermittedScopesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Scope element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listPermittedScopesPagedCallable() {
+ return stub.listPermittedScopesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists permitted Scopes.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListPermittedScopesRequest request =
+ * ListPermittedScopesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListPermittedScopesResponse response =
+ * gkeHubClient.listPermittedScopesCallable().call(request);
+ * for (Scope element : response.getScopesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listPermittedScopesCallable() {
+ return stub.listPermittedScopesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a MembershipBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipBindingName name =
+ * MembershipBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]");
+ * MembershipBinding response = gkeHubClient.getMembershipBinding(name);
+ * }
+ * }
+ *
+ * @param name Required. The MembershipBinding resource name in the format
+ * `projects/*/locations/*/memberships/*/bindings/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MembershipBinding getMembershipBinding(MembershipBindingName name) {
+ GetMembershipBindingRequest request =
+ GetMembershipBindingRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getMembershipBinding(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a MembershipBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
+ * .toString();
+ * MembershipBinding response = gkeHubClient.getMembershipBinding(name);
+ * }
+ * }
+ *
+ * @param name Required. The MembershipBinding resource name in the format
+ * `projects/*/locations/*/memberships/*/bindings/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MembershipBinding getMembershipBinding(String name) {
+ GetMembershipBindingRequest request =
+ GetMembershipBindingRequest.newBuilder().setName(name).build();
+ return getMembershipBinding(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a MembershipBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetMembershipBindingRequest request =
+ * GetMembershipBindingRequest.newBuilder()
+ * .setName(
+ * MembershipBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
+ * .toString())
+ * .build();
+ * MembershipBinding response = gkeHubClient.getMembershipBinding(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 MembershipBinding getMembershipBinding(GetMembershipBindingRequest request) {
+ return getMembershipBindingCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a MembershipBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetMembershipBindingRequest request =
+ * GetMembershipBindingRequest.newBuilder()
+ * .setName(
+ * MembershipBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.getMembershipBindingCallable().futureCall(request);
+ * // Do something.
+ * MembershipBinding response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getMembershipBindingCallable() {
+ return stub.getMembershipBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a MembershipBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
+ * MembershipBinding membershipBinding = MembershipBinding.newBuilder().build();
+ * String membershipBindingId = "membershipBindingId1360802634";
+ * MembershipBinding response =
+ * gkeHubClient
+ * .createMembershipBindingAsync(parent, membershipBinding, membershipBindingId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the MembershipBinding will be
+ * created. Specified in the format `projects/*/locations/*/memberships/*`.
+ * @param membershipBinding Required. The MembershipBinding to create.
+ * @param membershipBindingId Required. The ID to use for the MembershipBinding.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createMembershipBindingAsync(
+ MembershipName parent, MembershipBinding membershipBinding, String membershipBindingId) {
+ CreateMembershipBindingRequest request =
+ CreateMembershipBindingRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setMembershipBinding(membershipBinding)
+ .setMembershipBindingId(membershipBindingId)
+ .build();
+ return createMembershipBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a MembershipBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
+ * MembershipBinding membershipBinding = MembershipBinding.newBuilder().build();
+ * String membershipBindingId = "membershipBindingId1360802634";
+ * MembershipBinding response =
+ * gkeHubClient
+ * .createMembershipBindingAsync(parent, membershipBinding, membershipBindingId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the MembershipBinding will be
+ * created. Specified in the format `projects/*/locations/*/memberships/*`.
+ * @param membershipBinding Required. The MembershipBinding to create.
+ * @param membershipBindingId Required. The ID to use for the MembershipBinding.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createMembershipBindingAsync(
+ String parent, MembershipBinding membershipBinding, String membershipBindingId) {
+ CreateMembershipBindingRequest request =
+ CreateMembershipBindingRequest.newBuilder()
+ .setParent(parent)
+ .setMembershipBinding(membershipBinding)
+ .setMembershipBindingId(membershipBindingId)
+ .build();
+ return createMembershipBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a MembershipBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateMembershipBindingRequest request =
+ * CreateMembershipBindingRequest.newBuilder()
+ * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setMembershipBinding(MembershipBinding.newBuilder().build())
+ * .setMembershipBindingId("membershipBindingId1360802634")
* .build();
- * ApiFuture future =
- * gkeHubClient.listMembershipsPagedCallable().futureCall(request);
+ * MembershipBinding response = gkeHubClient.createMembershipBindingAsync(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 createMembershipBindingAsync(
+ CreateMembershipBindingRequest request) {
+ return createMembershipBindingOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a MembershipBinding.
+ *
+ * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateMembershipBindingRequest request =
+ * CreateMembershipBindingRequest.newBuilder()
+ * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setMembershipBinding(MembershipBinding.newBuilder().build())
+ * .setMembershipBindingId("membershipBindingId1360802634")
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.createMembershipBindingOperationCallable().futureCall(request);
* // Do something.
- * for (Membership element : future.get().iterateAll()) {
- * // doThingsWith(element);
- * }
+ * MembershipBinding response = future.get();
* }
* }
*/
- public final UnaryCallable
- listMembershipsPagedCallable() {
- return stub.listMembershipsPagedCallable();
+ public final OperationCallable<
+ CreateMembershipBindingRequest, MembershipBinding, OperationMetadata>
+ createMembershipBindingOperationCallable() {
+ return stub.createMembershipBindingOperationCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists Memberships in a given project and location.
+ * Creates a MembershipBinding.
*
* Sample code:
*
@@ -570,37 +6341,27 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * ListMembershipsRequest request =
- * ListMembershipsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
+ * CreateMembershipBindingRequest request =
+ * CreateMembershipBindingRequest.newBuilder()
+ * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setMembershipBinding(MembershipBinding.newBuilder().build())
+ * .setMembershipBindingId("membershipBindingId1360802634")
* .build();
- * while (true) {
- * ListMembershipsResponse response = gkeHubClient.listMembershipsCallable().call(request);
- * for (Membership element : response.getResourcesList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
+ * ApiFuture future =
+ * gkeHubClient.createMembershipBindingCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
* }
* }
*/
- public final UnaryCallableSample code:
*
@@ -611,28 +6372,30 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * MembershipBinding membershipBinding = MembershipBinding.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * MembershipBinding response =
+ * gkeHubClient.updateMembershipBindingAsync(membershipBinding, updateMask).get();
* }
* }
*
- * @param parent Required. The parent (project and location) where the Features will be listed.
- * Specified in the format `projects/*/locations/*`.
+ * @param membershipBinding Required. The MembershipBinding object with fields updated.
+ * @param updateMask Required. The fields to be updated.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListFeaturesPagedResponse listFeatures(LocationName parent) {
- ListFeaturesRequest request =
- ListFeaturesRequest.newBuilder()
- .setParent(parent == null ? null : parent.toString())
+ public final OperationFuture Sample code:
*
@@ -643,25 +6406,26 @@ public final ListFeaturesPagedResponse listFeatures(LocationName parent) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
- * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * UpdateMembershipBindingRequest request =
+ * UpdateMembershipBindingRequest.newBuilder()
+ * .setMembershipBinding(MembershipBinding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * MembershipBinding response = gkeHubClient.updateMembershipBindingAsync(request).get();
* }
* }
*
- * @param parent Required. The parent (project and location) where the Features will be listed.
- * Specified in the format `projects/*/locations/*`.
+ * @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 ListFeaturesPagedResponse listFeatures(String parent) {
- ListFeaturesRequest request = ListFeaturesRequest.newBuilder().setParent(parent).build();
- return listFeatures(request);
+ public final OperationFuture Sample code:
*
@@ -672,30 +6436,152 @@ public final ListFeaturesPagedResponse listFeatures(String parent) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * ListFeaturesRequest request =
- * ListFeaturesRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
+ * UpdateMembershipBindingRequest request =
+ * UpdateMembershipBindingRequest.newBuilder()
+ * .setMembershipBinding(MembershipBinding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
* .build();
- * for (Feature element : gkeHubClient.listFeatures(request).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
*
@@ -706,30 +6592,28 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request)
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * ListFeaturesRequest request =
- * ListFeaturesRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
+ * DeleteMembershipBindingRequest request =
+ * DeleteMembershipBindingRequest.newBuilder()
+ * .setName(
+ * MembershipBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
+ * .toString())
* .build();
- * ApiFuture Sample code:
*
@@ -740,36 +6624,60 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request)
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * ListFeaturesRequest request =
- * ListFeaturesRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
+ * DeleteMembershipBindingRequest request =
+ * DeleteMembershipBindingRequest.newBuilder()
+ * .setName(
+ * MembershipBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
+ * .toString())
* .build();
- * while (true) {
- * ListFeaturesResponse response = gkeHubClient.listFeaturesCallable().call(request);
- * for (Feature element : response.getResourcesList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
+ * ApiFuture Sample code:
+ *
+ * Sample code:
*
@@ -780,24 +6688,26 @@ public final UnaryCallable Sample code:
*
@@ -808,23 +6718,30 @@ public final Membership getMembership(MembershipName name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
- * Membership response = gkeHubClient.getMembership(name);
+ * ListMembershipBindingsRequest request =
+ * ListMembershipBindingsRequest.newBuilder()
+ * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (MembershipBinding element : gkeHubClient.listMembershipBindings(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
*
- * @param name Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
+ * @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 Membership getMembership(String name) {
- GetMembershipRequest request = GetMembershipRequest.newBuilder().setName(name).build();
- return getMembership(request);
+ public final ListMembershipBindingsPagedResponse listMembershipBindings(
+ ListMembershipBindingsRequest request) {
+ return listMembershipBindingsPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets the details of a Membership.
+ * Lists MembershipBindings.
*
* Sample code:
*
@@ -835,24 +6752,30 @@ public final Membership getMembership(String name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * GetMembershipRequest request =
- * GetMembershipRequest.newBuilder()
- * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * ListMembershipBindingsRequest request =
+ * ListMembershipBindingsRequest.newBuilder()
+ * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
* .build();
- * Membership response = gkeHubClient.getMembership(request);
+ * ApiFuture Sample code:
*
@@ -863,23 +6786,37 @@ public final Membership getMembership(GetMembershipRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * GetMembershipRequest request =
- * GetMembershipRequest.newBuilder()
- * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * ListMembershipBindingsRequest request =
+ * ListMembershipBindingsRequest.newBuilder()
+ * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
* .build();
- * ApiFuture Sample code:
*
@@ -890,24 +6827,28 @@ public final UnaryCallable Sample code:
*
@@ -918,23 +6859,27 @@ public final Feature getFeature(FeatureName name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
- * Feature response = gkeHubClient.getFeature(name);
+ * String name =
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString();
+ * RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(name);
* }
* }
*
- * @param name Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`
+ * @param name Required. The RBACRoleBinding resource name in the format
+ * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Feature getFeature(String name) {
- GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name).build();
- return getFeature(request);
+ public final RBACRoleBinding getMembershipRBACRoleBinding(String name) {
+ GetMembershipRBACRoleBindingRequest request =
+ GetMembershipRBACRoleBindingRequest.newBuilder().setName(name).build();
+ return getMembershipRBACRoleBinding(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets details of a single Feature.
+ * Returns the details of a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -945,24 +6890,28 @@ public final Feature getFeature(String name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * GetFeatureRequest request =
- * GetFeatureRequest.newBuilder()
- * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * GetMembershipRBACRoleBindingRequest request =
+ * GetMembershipRBACRoleBindingRequest.newBuilder()
+ * .setName(
+ * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]")
+ * .toString())
* .build();
- * Feature response = gkeHubClient.getFeature(request);
+ * RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(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 Feature getFeature(GetFeatureRequest request) {
- return getFeatureCallable().call(request);
+ public final RBACRoleBinding getMembershipRBACRoleBinding(
+ GetMembershipRBACRoleBindingRequest request) {
+ return getMembershipRBACRoleBindingCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets details of a single Feature.
+ * Returns the details of a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -973,27 +6922,28 @@ public final Feature getFeature(GetFeatureRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * GetFeatureRequest request =
- * GetFeatureRequest.newBuilder()
- * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * GetMembershipRBACRoleBindingRequest request =
+ * GetMembershipRBACRoleBindingRequest.newBuilder()
+ * .setName(
+ * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]")
+ * .toString())
* .build();
- * ApiFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * register other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ * Creates a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1004,43 +6954,42 @@ public final UnaryCallable 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
* characters or `-` 3. It must start and end with an alphanumeric character
* Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
* length of 63 characters.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * register other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ * Creates a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1051,43 +7000,42 @@ public final OperationFuture 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
* characters or `-` 3. It must start and end with an alphanumeric character
* Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
* length of 63 characters.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * register other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ * Creates a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1098,32 +7046,42 @@ public final OperationFuture 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * register other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ * Creates a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1134,32 +7092,27 @@ public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * register other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ * Creates a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1170,26 +7123,28 @@ public final OperationFuture Sample code:
*
@@ -1200,33 +7155,27 @@ public final UnaryCallable Sample code:
*
@@ -1237,33 +7186,31 @@ public final OperationFuture Sample code:
*
@@ -1274,28 +7221,26 @@ public final OperationFuture Sample code:
*
@@ -1306,28 +7251,27 @@ public final OperationFuture Sample code:
*
@@ -1338,30 +7282,26 @@ public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * unregister other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ * Deletes a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1372,29 +7312,29 @@ public final UnaryCallable **This is currently only supported for GKE clusters on Google Cloud**. To
- * unregister other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ * Deletes a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1405,27 +7345,28 @@ public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * unregister other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ * Deletes a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1436,31 +7377,28 @@ public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * unregister other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ * Deletes a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1471,31 +7409,28 @@ public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * unregister other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ * Deletes a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1506,25 +7441,28 @@ public final OperationFuture Sample code:
*
@@ -1535,24 +7473,30 @@ public final UnaryCallable Sample code:
*
@@ -1563,23 +7507,30 @@ public final OperationFuture Sample code:
*
@@ -1590,27 +7541,28 @@ public final OperationFuture Sample code:
*
@@ -1621,27 +7573,30 @@ public final OperationFuture Sample code:
*
@@ -1652,67 +7607,30 @@ public final OperationFuture Sample code:
- *
- * Sample code:
*
@@ -1723,38 +7641,38 @@ public final OperationFuture Sample code:
*
@@ -1765,28 +7683,29 @@ public final OperationFuture Sample code:
*
@@ -1797,488 +7716,869 @@ public final OperationFuture Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * **This method is used internally by Google-provided libraries.** Most
- * clients should not need to call this method directly.
- *
- * Sample code:
- *
- * **This method is used internally by Google-provided libraries.** Most
- * clients should not need to call this method directly.
- *
- * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateMembershipBindingRequest request =
+ * UpdateMembershipBindingRequest.newBuilder()
+ * .setMembershipBinding(MembershipBinding.newBuilder().build())
+ * .setUpdateMask(FieldMask.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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipBindingName name =
+ * MembershipBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]");
+ * gkeHubClient.deleteMembershipBindingAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The MembershipBinding resource name in the format
+ * `projects/*/locations/*/memberships/*/bindings/*`.
+ * @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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
+ * .toString();
+ * gkeHubClient.deleteMembershipBindingAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The MembershipBinding resource name in the format
+ * `projects/*/locations/*/memberships/*/bindings/*`.
+ * @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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteMembershipBindingRequest request =
+ * DeleteMembershipBindingRequest.newBuilder()
+ * .setName(
+ * MembershipBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
+ * .toString())
+ * .build();
+ * gkeHubClient.deleteMembershipBindingAsync(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 ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) {
- return listFeaturesPagedCallable().call(request);
+ 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
+ * for (MembershipBinding element : gkeHubClient.listMembershipBindings(parent).iterateAll()) {
+ * // doThingsWith(element);
* }
* }
* }
+ *
+ * @param parent Required. The parent Membership for which the MembershipBindings will be listed.
+ * Specified in the format `projects/*/locations/*/memberships/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
- * Membership resource = Membership.newBuilder().build();
- * FieldMask updateMask = FieldMask.newBuilder().build();
- * Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get();
+ * for (RBACRoleBinding element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
- *
- * @param name Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
- * @param resource Required. Only fields specified in update_mask are updated. If you specify a
- * field in the update_mask but don't specify its value here that field will be deleted. If
- * you are updating a map field, set the value of a key to null or empty string to delete the
- * key from the map. It's not possible to update a key's value to the empty string. If you
- * specify the update_mask to be a special path "*", fully replaces all user-modifiable
- * fields to match `resource`.
- * @param updateMask Required. Mask of fields to update.
- * @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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * UpdateMembershipRequest request =
- * UpdateMembershipRequest.newBuilder()
- * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .setResource(Membership.newBuilder().build())
- * .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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
- * Feature resource = Feature.newBuilder().build();
- * FieldMask updateMask = FieldMask.newBuilder().build();
- * Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
- * }
- * }
- *
- * @param name Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`.
- * @param resource Only fields specified in update_mask are updated. If you specify a field in the
- * update_mask but don't specify its value here that field will be deleted. If you are
- * updating a map field, set the value of a key to null or empty string to delete the key from
- * the map. It's not possible to update a key's value to the empty string. If you specify the
- * update_mask to be a special path "*", fully replaces all user-modifiable fields to
- * match `resource`.
- * @param updateMask Mask of fields to update.
- * @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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
- * Feature resource = Feature.newBuilder().build();
- * FieldMask updateMask = FieldMask.newBuilder().build();
- * Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
- * }
- * }
- *
- * @param name Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`.
- * @param resource Only fields specified in update_mask are updated. If you specify a field in the
- * update_mask but don't specify its value here that field will be deleted. If you are
- * updating a map field, set the value of a key to null or empty string to delete the key from
- * the map. It's not possible to update a key's value to the empty string. If you specify the
- * update_mask to be a special path "*", fully replaces all user-modifiable fields to
- * match `resource`.
- * @param updateMask Mask of fields to update.
- * @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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * UpdateFeatureRequest request =
- * UpdateFeatureRequest.newBuilder()
- * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .setResource(Feature.newBuilder().build())
- * .setRequestId("requestId693933066")
- * .build();
- * Feature response = gkeHubClient.updateFeatureAsync(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * UpdateFeatureRequest request =
- * UpdateFeatureRequest.newBuilder()
- * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .setResource(Feature.newBuilder().build())
- * .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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * UpdateFeatureRequest request =
- * UpdateFeatureRequest.newBuilder()
- * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .setResource(Feature.newBuilder().build())
- * .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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * GenerateConnectManifestRequest request =
- * GenerateConnectManifestRequest.newBuilder()
- * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
- * .setNamespace("namespace1252218203")
- * .setProxy(ByteString.EMPTY)
- * .setVersion("version351608024")
- * .setIsUpgrade(true)
- * .setRegistry("registry-690212803")
- * .setImagePullSecretContent(ByteString.EMPTY)
- * .build();
- * GenerateConnectManifestResponse response = gkeHubClient.generateConnectManifest(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 GenerateConnectManifestResponse generateConnectManifest(
- GenerateConnectManifestRequest request) {
- return generateConnectManifestCallable().call(request);
+ public static class ListScopeRBACRoleBindingsPage
+ extends AbstractPage<
+ ListScopeRBACRoleBindingsRequest,
+ ListScopeRBACRoleBindingsResponse,
+ RBACRoleBinding,
+ ListScopeRBACRoleBindingsPage> {
+
+ private ListScopeRBACRoleBindingsPage(
+ PageContext<
+ ListScopeRBACRoleBindingsRequest,
+ ListScopeRBACRoleBindingsResponse,
+ RBACRoleBinding>
+ context,
+ ListScopeRBACRoleBindingsResponse response) {
+ super(context, response);
+ }
+
+ private static ListScopeRBACRoleBindingsPage createEmptyPage() {
+ return new ListScopeRBACRoleBindingsPage(null, null);
+ }
+
+ @Override
+ protected ListScopeRBACRoleBindingsPage createPage(
+ PageContext<
+ ListScopeRBACRoleBindingsRequest,
+ ListScopeRBACRoleBindingsResponse,
+ RBACRoleBinding>
+ context,
+ ListScopeRBACRoleBindingsResponse response) {
+ return new ListScopeRBACRoleBindingsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * GenerateConnectManifestRequest request =
- * GenerateConnectManifestRequest.newBuilder()
- * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
- * .setNamespace("namespace1252218203")
- * .setProxy(ByteString.EMPTY)
- * .setVersion("version351608024")
- * .setIsUpgrade(true)
- * .setRegistry("registry-690212803")
- * .setImagePullSecretContent(ByteString.EMPTY)
- * .build();
- * ApiFuture
- */
- public final UnaryCallable