getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.datastore.v1.ResultSetStats getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-}
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ResultSetStatsOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ResultSetStatsOrBuilder.java
deleted file mode 100644
index 16a951419..000000000
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ResultSetStatsOrBuilder.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * Copyright 2023 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!
-// source: google/datastore/v1/query_profile.proto
-
-package com.google.datastore.v1;
-
-public interface ResultSetStatsOrBuilder
- extends
- // @@protoc_insertion_point(interface_extends:google.datastore.v1.ResultSetStats)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- *
- *
- * Plan for the query.
- *
- *
- * .google.datastore.v1.QueryPlan query_plan = 1;
- *
- * @return Whether the queryPlan field is set.
- */
- boolean hasQueryPlan();
- /**
- *
- *
- *
- * Plan for the query.
- *
- *
- * .google.datastore.v1.QueryPlan query_plan = 1;
- *
- * @return The queryPlan.
- */
- com.google.datastore.v1.QueryPlan getQueryPlan();
- /**
- *
- *
- *
- * Plan for the query.
- *
- *
- * .google.datastore.v1.QueryPlan query_plan = 1;
- */
- com.google.datastore.v1.QueryPlanOrBuilder getQueryPlanOrBuilder();
-
- /**
- *
- *
- *
- * Aggregated statistics from the execution of the query.
- *
- * This will only be present when the request specifies `PROFILE` mode.
- * For example, a query will return the statistics including:
- *
- * {
- * "results_returned": "20",
- * "documents_scanned": "20",
- * "indexes_entries_scanned": "10050",
- * "total_execution_time": "100.7 msecs"
- * }
- *
- *
- * .google.protobuf.Struct query_stats = 2;
- *
- * @return Whether the queryStats field is set.
- */
- boolean hasQueryStats();
- /**
- *
- *
- *
- * Aggregated statistics from the execution of the query.
- *
- * This will only be present when the request specifies `PROFILE` mode.
- * For example, a query will return the statistics including:
- *
- * {
- * "results_returned": "20",
- * "documents_scanned": "20",
- * "indexes_entries_scanned": "10050",
- * "total_execution_time": "100.7 msecs"
- * }
- *
- *
- * .google.protobuf.Struct query_stats = 2;
- *
- * @return The queryStats.
- */
- com.google.protobuf.Struct getQueryStats();
- /**
- *
- *
- *
- * Aggregated statistics from the execution of the query.
- *
- * This will only be present when the request specifies `PROFILE` mode.
- * For example, a query will return the statistics including:
- *
- * {
- * "results_returned": "20",
- * "documents_scanned": "20",
- * "indexes_entries_scanned": "10050",
- * "total_execution_time": "100.7 msecs"
- * }
- *
- *
- * .google.protobuf.Struct query_stats = 2;
- */
- com.google.protobuf.StructOrBuilder getQueryStatsOrBuilder();
-}
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.java
index dad648429..2d64f5bb7 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 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/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java
index 874cda7b7..300a749aa 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 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/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.java
index 840b1bde3..16dfa20fc 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 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/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponseOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponseOrBuilder.java
index f9dd7e00d..69531f934 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponseOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RollbackResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 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/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryRequest.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryRequest.java
index 12e9bf63c..912351263 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryRequest.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 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,7 +41,6 @@ private RunAggregationQueryRequest(com.google.protobuf.GeneratedMessageV3.Builde
private RunAggregationQueryRequest() {
projectId_ = "";
databaseId_ = "";
- mode_ = 0;
}
@java.lang.Override
@@ -433,46 +432,6 @@ public com.google.datastore.v1.GqlQueryOrBuilder getGqlQueryOrBuilder() {
return com.google.datastore.v1.GqlQuery.getDefaultInstance();
}
- public static final int MODE_FIELD_NUMBER = 10;
- private int mode_ = 0;
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 10 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The enum numeric value on the wire for mode.
- */
- @java.lang.Override
- public int getModeValue() {
- return mode_;
- }
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 10 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The mode.
- */
- @java.lang.Override
- public com.google.datastore.v1.QueryMode getMode() {
- com.google.datastore.v1.QueryMode result = com.google.datastore.v1.QueryMode.forNumber(mode_);
- return result == null ? com.google.datastore.v1.QueryMode.UNRECOGNIZED : result;
- }
-
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -505,9 +464,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, databaseId_);
}
- if (mode_ != com.google.datastore.v1.QueryMode.NORMAL.getNumber()) {
- output.writeEnum(10, mode_);
- }
getUnknownFields().writeTo(output);
}
@@ -539,9 +495,6 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, databaseId_);
}
- if (mode_ != com.google.datastore.v1.QueryMode.NORMAL.getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, mode_);
- }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -568,7 +521,6 @@ public boolean equals(final java.lang.Object obj) {
if (hasReadOptions()) {
if (!getReadOptions().equals(other.getReadOptions())) return false;
}
- if (mode_ != other.mode_) return false;
if (!getQueryTypeCase().equals(other.getQueryTypeCase())) return false;
switch (queryTypeCase_) {
case 3:
@@ -603,8 +555,6 @@ public int hashCode() {
hash = (37 * hash) + READ_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getReadOptions().hashCode();
}
- hash = (37 * hash) + MODE_FIELD_NUMBER;
- hash = (53 * hash) + mode_;
switch (queryTypeCase_) {
case 3:
hash = (37 * hash) + AGGREGATION_QUERY_FIELD_NUMBER;
@@ -775,7 +725,6 @@ public Builder clear() {
if (gqlQueryBuilder_ != null) {
gqlQueryBuilder_.clear();
}
- mode_ = 0;
queryTypeCase_ = 0;
queryType_ = null;
return this;
@@ -829,9 +778,6 @@ private void buildPartial0(com.google.datastore.v1.RunAggregationQueryRequest re
result.readOptions_ =
readOptionsBuilder_ == null ? readOptions_ : readOptionsBuilder_.build();
}
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.mode_ = mode_;
- }
}
private void buildPartialOneofs(com.google.datastore.v1.RunAggregationQueryRequest result) {
@@ -907,9 +853,6 @@ public Builder mergeFrom(com.google.datastore.v1.RunAggregationQueryRequest othe
if (other.hasReadOptions()) {
mergeReadOptions(other.getReadOptions());
}
- if (other.mode_ != 0) {
- setModeValue(other.getModeValue());
- }
switch (other.getQueryTypeCase()) {
case AGGREGATION_QUERY:
{
@@ -989,12 +932,6 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 74
- case 80:
- {
- mode_ = input.readEnum();
- bitField0_ |= 0x00000040;
- break;
- } // case 80
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2063,110 +2000,6 @@ public com.google.datastore.v1.GqlQueryOrBuilder getGqlQueryOrBuilder() {
return gqlQueryBuilder_;
}
- private int mode_ = 0;
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 10 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The enum numeric value on the wire for mode.
- */
- @java.lang.Override
- public int getModeValue() {
- return mode_;
- }
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 10 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @param value The enum numeric value on the wire for mode to set.
- * @return This builder for chaining.
- */
- public Builder setModeValue(int value) {
- mode_ = value;
- bitField0_ |= 0x00000040;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 10 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The mode.
- */
- @java.lang.Override
- public com.google.datastore.v1.QueryMode getMode() {
- com.google.datastore.v1.QueryMode result = com.google.datastore.v1.QueryMode.forNumber(mode_);
- return result == null ? com.google.datastore.v1.QueryMode.UNRECOGNIZED : result;
- }
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 10 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @param value The mode to set.
- * @return This builder for chaining.
- */
- public Builder setMode(com.google.datastore.v1.QueryMode value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000040;
- mode_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 10 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return This builder for chaining.
- */
- public Builder clearMode() {
- bitField0_ = (bitField0_ & ~0x00000040);
- mode_ = 0;
- onChanged();
- return this;
- }
-
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryRequestOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryRequestOrBuilder.java
index 6d86f2903..da02f3250 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryRequestOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -228,36 +228,5 @@ public interface RunAggregationQueryRequestOrBuilder
*/
com.google.datastore.v1.GqlQueryOrBuilder getGqlQueryOrBuilder();
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 10 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The enum numeric value on the wire for mode.
- */
- int getModeValue();
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 10 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The mode.
- */
- com.google.datastore.v1.QueryMode getMode();
-
com.google.datastore.v1.RunAggregationQueryRequest.QueryTypeCase getQueryTypeCase();
}
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryResponse.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryResponse.java
index 328afcfdf..a8a9b7507 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryResponse.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -183,61 +183,6 @@ public com.google.protobuf.ByteString getTransaction() {
return transaction_;
}
- public static final int STATS_FIELD_NUMBER = 6;
- private com.google.datastore.v1.ResultSetStats stats_;
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- *
- * @return Whether the stats field is set.
- */
- @java.lang.Override
- public boolean hasStats() {
- return stats_ != null;
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- *
- * @return The stats.
- */
- @java.lang.Override
- public com.google.datastore.v1.ResultSetStats getStats() {
- return stats_ == null ? com.google.datastore.v1.ResultSetStats.getDefaultInstance() : stats_;
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- @java.lang.Override
- public com.google.datastore.v1.ResultSetStatsOrBuilder getStatsOrBuilder() {
- return stats_ == null ? com.google.datastore.v1.ResultSetStats.getDefaultInstance() : stats_;
- }
-
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -261,9 +206,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!transaction_.isEmpty()) {
output.writeBytes(5, transaction_);
}
- if (stats_ != null) {
- output.writeMessage(6, getStats());
- }
getUnknownFields().writeTo(output);
}
@@ -282,9 +224,6 @@ public int getSerializedSize() {
if (!transaction_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, transaction_);
}
- if (stats_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStats());
- }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -310,10 +249,6 @@ public boolean equals(final java.lang.Object obj) {
if (!getQuery().equals(other.getQuery())) return false;
}
if (!getTransaction().equals(other.getTransaction())) return false;
- if (hasStats() != other.hasStats()) return false;
- if (hasStats()) {
- if (!getStats().equals(other.getStats())) return false;
- }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -335,10 +270,6 @@ public int hashCode() {
}
hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getTransaction().hashCode();
- if (hasStats()) {
- hash = (37 * hash) + STATS_FIELD_NUMBER;
- hash = (53 * hash) + getStats().hashCode();
- }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -490,11 +421,6 @@ public Builder clear() {
queryBuilder_ = null;
}
transaction_ = com.google.protobuf.ByteString.EMPTY;
- stats_ = null;
- if (statsBuilder_ != null) {
- statsBuilder_.dispose();
- statsBuilder_ = null;
- }
return this;
}
@@ -540,9 +466,6 @@ private void buildPartial0(com.google.datastore.v1.RunAggregationQueryResponse r
if (((from_bitField0_ & 0x00000004) != 0)) {
result.transaction_ = transaction_;
}
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.stats_ = statsBuilder_ == null ? stats_ : statsBuilder_.build();
- }
}
@java.lang.Override
@@ -600,9 +523,6 @@ public Builder mergeFrom(com.google.datastore.v1.RunAggregationQueryResponse oth
if (other.getTransaction() != com.google.protobuf.ByteString.EMPTY) {
setTransaction(other.getTransaction());
}
- if (other.hasStats()) {
- mergeStats(other.getStats());
- }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -647,12 +567,6 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 42
- case 50:
- {
- input.readMessage(getStatsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000008;
- break;
- } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1112,216 +1026,6 @@ public Builder clearTransaction() {
return this;
}
- private com.google.datastore.v1.ResultSetStats stats_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.datastore.v1.ResultSetStats,
- com.google.datastore.v1.ResultSetStats.Builder,
- com.google.datastore.v1.ResultSetStatsOrBuilder>
- statsBuilder_;
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- *
- * @return Whether the stats field is set.
- */
- public boolean hasStats() {
- return ((bitField0_ & 0x00000008) != 0);
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- *
- * @return The stats.
- */
- public com.google.datastore.v1.ResultSetStats getStats() {
- if (statsBuilder_ == null) {
- return stats_ == null
- ? com.google.datastore.v1.ResultSetStats.getDefaultInstance()
- : stats_;
- } else {
- return statsBuilder_.getMessage();
- }
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- public Builder setStats(com.google.datastore.v1.ResultSetStats value) {
- if (statsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- stats_ = value;
- } else {
- statsBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- public Builder setStats(com.google.datastore.v1.ResultSetStats.Builder builderForValue) {
- if (statsBuilder_ == null) {
- stats_ = builderForValue.build();
- } else {
- statsBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- public Builder mergeStats(com.google.datastore.v1.ResultSetStats value) {
- if (statsBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0)
- && stats_ != null
- && stats_ != com.google.datastore.v1.ResultSetStats.getDefaultInstance()) {
- getStatsBuilder().mergeFrom(value);
- } else {
- stats_ = value;
- }
- } else {
- statsBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- public Builder clearStats() {
- bitField0_ = (bitField0_ & ~0x00000008);
- stats_ = null;
- if (statsBuilder_ != null) {
- statsBuilder_.dispose();
- statsBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- public com.google.datastore.v1.ResultSetStats.Builder getStatsBuilder() {
- bitField0_ |= 0x00000008;
- onChanged();
- return getStatsFieldBuilder().getBuilder();
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- public com.google.datastore.v1.ResultSetStatsOrBuilder getStatsOrBuilder() {
- if (statsBuilder_ != null) {
- return statsBuilder_.getMessageOrBuilder();
- } else {
- return stats_ == null
- ? com.google.datastore.v1.ResultSetStats.getDefaultInstance()
- : stats_;
- }
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.datastore.v1.ResultSetStats,
- com.google.datastore.v1.ResultSetStats.Builder,
- com.google.datastore.v1.ResultSetStatsOrBuilder>
- getStatsFieldBuilder() {
- if (statsBuilder_ == null) {
- statsBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.datastore.v1.ResultSetStats,
- com.google.datastore.v1.ResultSetStats.Builder,
- com.google.datastore.v1.ResultSetStatsOrBuilder>(
- getStats(), getParentForChildren(), isClean());
- stats_ = null;
- }
- return statsBuilder_;
- }
-
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryResponseOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryResponseOrBuilder.java
index 6caa14766..f780c9afc 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryResponseOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunAggregationQueryResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -111,48 +111,4 @@ public interface RunAggregationQueryResponseOrBuilder
* @return The transaction.
*/
com.google.protobuf.ByteString getTransaction();
-
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- *
- * @return Whether the stats field is set.
- */
- boolean hasStats();
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- *
- * @return The stats.
- */
- com.google.datastore.v1.ResultSetStats getStats();
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- com.google.datastore.v1.ResultSetStatsOrBuilder getStatsOrBuilder();
}
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java
index 62666648c..11b5e47b4 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 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,7 +40,6 @@ private RunQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builde
private RunQueryRequest() {
projectId_ = "";
databaseId_ = "";
- mode_ = 0;
}
@java.lang.Override
@@ -432,46 +431,6 @@ public com.google.datastore.v1.GqlQueryOrBuilder getGqlQueryOrBuilder() {
return com.google.datastore.v1.GqlQuery.getDefaultInstance();
}
- public static final int MODE_FIELD_NUMBER = 11;
- private int mode_ = 0;
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 11 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The enum numeric value on the wire for mode.
- */
- @java.lang.Override
- public int getModeValue() {
- return mode_;
- }
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 11 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The mode.
- */
- @java.lang.Override
- public com.google.datastore.v1.QueryMode getMode() {
- com.google.datastore.v1.QueryMode result = com.google.datastore.v1.QueryMode.forNumber(mode_);
- return result == null ? com.google.datastore.v1.QueryMode.UNRECOGNIZED : result;
- }
-
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -504,9 +463,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, databaseId_);
}
- if (mode_ != com.google.datastore.v1.QueryMode.NORMAL.getNumber()) {
- output.writeEnum(11, mode_);
- }
getUnknownFields().writeTo(output);
}
@@ -538,9 +494,6 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, databaseId_);
}
- if (mode_ != com.google.datastore.v1.QueryMode.NORMAL.getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, mode_);
- }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -566,7 +519,6 @@ public boolean equals(final java.lang.Object obj) {
if (hasReadOptions()) {
if (!getReadOptions().equals(other.getReadOptions())) return false;
}
- if (mode_ != other.mode_) return false;
if (!getQueryTypeCase().equals(other.getQueryTypeCase())) return false;
switch (queryTypeCase_) {
case 3:
@@ -601,8 +553,6 @@ public int hashCode() {
hash = (37 * hash) + READ_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getReadOptions().hashCode();
}
- hash = (37 * hash) + MODE_FIELD_NUMBER;
- hash = (53 * hash) + mode_;
switch (queryTypeCase_) {
case 3:
hash = (37 * hash) + QUERY_FIELD_NUMBER;
@@ -772,7 +722,6 @@ public Builder clear() {
if (gqlQueryBuilder_ != null) {
gqlQueryBuilder_.clear();
}
- mode_ = 0;
queryTypeCase_ = 0;
queryType_ = null;
return this;
@@ -826,9 +775,6 @@ private void buildPartial0(com.google.datastore.v1.RunQueryRequest result) {
result.readOptions_ =
readOptionsBuilder_ == null ? readOptions_ : readOptionsBuilder_.build();
}
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.mode_ = mode_;
- }
}
private void buildPartialOneofs(com.google.datastore.v1.RunQueryRequest result) {
@@ -903,9 +849,6 @@ public Builder mergeFrom(com.google.datastore.v1.RunQueryRequest other) {
if (other.hasReadOptions()) {
mergeReadOptions(other.getReadOptions());
}
- if (other.mode_ != 0) {
- setModeValue(other.getModeValue());
- }
switch (other.getQueryTypeCase()) {
case QUERY:
{
@@ -984,12 +927,6 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 74
- case 88:
- {
- mode_ = input.readEnum();
- bitField0_ |= 0x00000040;
- break;
- } // case 88
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2054,110 +1991,6 @@ public com.google.datastore.v1.GqlQueryOrBuilder getGqlQueryOrBuilder() {
return gqlQueryBuilder_;
}
- private int mode_ = 0;
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 11 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The enum numeric value on the wire for mode.
- */
- @java.lang.Override
- public int getModeValue() {
- return mode_;
- }
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 11 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @param value The enum numeric value on the wire for mode to set.
- * @return This builder for chaining.
- */
- public Builder setModeValue(int value) {
- mode_ = value;
- bitField0_ |= 0x00000040;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 11 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The mode.
- */
- @java.lang.Override
- public com.google.datastore.v1.QueryMode getMode() {
- com.google.datastore.v1.QueryMode result = com.google.datastore.v1.QueryMode.forNumber(mode_);
- return result == null ? com.google.datastore.v1.QueryMode.UNRECOGNIZED : result;
- }
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 11 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @param value The mode to set.
- * @return This builder for chaining.
- */
- public Builder setMode(com.google.datastore.v1.QueryMode value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000040;
- mode_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 11 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return This builder for chaining.
- */
- public Builder clearMode() {
- bitField0_ = (bitField0_ & ~0x00000040);
- mode_ = 0;
- onChanged();
- return this;
- }
-
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java
index 0f2184076..c944ad86a 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -228,36 +228,5 @@ public interface RunQueryRequestOrBuilder
*/
com.google.datastore.v1.GqlQueryOrBuilder getGqlQueryOrBuilder();
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 11 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The enum numeric value on the wire for mode.
- */
- int getModeValue();
- /**
- *
- *
- *
- * Optional. The mode in which the query request is processed. This field is
- * optional, and when not provided, it defaults to `NORMAL` mode where no
- * additional statistics will be returned with the query results.
- *
- *
- * .google.datastore.v1.QueryMode mode = 11 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The mode.
- */
- com.google.datastore.v1.QueryMode getMode();
-
com.google.datastore.v1.RunQueryRequest.QueryTypeCase getQueryTypeCase();
}
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java
index a9f585048..a89491052 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -179,61 +179,6 @@ public com.google.protobuf.ByteString getTransaction() {
return transaction_;
}
- public static final int STATS_FIELD_NUMBER = 6;
- private com.google.datastore.v1.ResultSetStats stats_;
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- *
- * @return Whether the stats field is set.
- */
- @java.lang.Override
- public boolean hasStats() {
- return stats_ != null;
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- *
- * @return The stats.
- */
- @java.lang.Override
- public com.google.datastore.v1.ResultSetStats getStats() {
- return stats_ == null ? com.google.datastore.v1.ResultSetStats.getDefaultInstance() : stats_;
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- @java.lang.Override
- public com.google.datastore.v1.ResultSetStatsOrBuilder getStatsOrBuilder() {
- return stats_ == null ? com.google.datastore.v1.ResultSetStats.getDefaultInstance() : stats_;
- }
-
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -257,9 +202,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!transaction_.isEmpty()) {
output.writeBytes(5, transaction_);
}
- if (stats_ != null) {
- output.writeMessage(6, getStats());
- }
getUnknownFields().writeTo(output);
}
@@ -278,9 +220,6 @@ public int getSerializedSize() {
if (!transaction_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, transaction_);
}
- if (stats_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStats());
- }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -305,10 +244,6 @@ public boolean equals(final java.lang.Object obj) {
if (!getQuery().equals(other.getQuery())) return false;
}
if (!getTransaction().equals(other.getTransaction())) return false;
- if (hasStats() != other.hasStats()) return false;
- if (hasStats()) {
- if (!getStats().equals(other.getStats())) return false;
- }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -330,10 +265,6 @@ public int hashCode() {
}
hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getTransaction().hashCode();
- if (hasStats()) {
- hash = (37 * hash) + STATS_FIELD_NUMBER;
- hash = (53 * hash) + getStats().hashCode();
- }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -485,11 +416,6 @@ public Builder clear() {
queryBuilder_ = null;
}
transaction_ = com.google.protobuf.ByteString.EMPTY;
- stats_ = null;
- if (statsBuilder_ != null) {
- statsBuilder_.dispose();
- statsBuilder_ = null;
- }
return this;
}
@@ -535,9 +461,6 @@ private void buildPartial0(com.google.datastore.v1.RunQueryResponse result) {
if (((from_bitField0_ & 0x00000004) != 0)) {
result.transaction_ = transaction_;
}
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.stats_ = statsBuilder_ == null ? stats_ : statsBuilder_.build();
- }
}
@java.lang.Override
@@ -594,9 +517,6 @@ public Builder mergeFrom(com.google.datastore.v1.RunQueryResponse other) {
if (other.getTransaction() != com.google.protobuf.ByteString.EMPTY) {
setTransaction(other.getTransaction());
}
- if (other.hasStats()) {
- mergeStats(other.getStats());
- }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -641,12 +561,6 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 42
- case 50:
- {
- input.readMessage(getStatsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000008;
- break;
- } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1101,216 +1015,6 @@ public Builder clearTransaction() {
return this;
}
- private com.google.datastore.v1.ResultSetStats stats_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.datastore.v1.ResultSetStats,
- com.google.datastore.v1.ResultSetStats.Builder,
- com.google.datastore.v1.ResultSetStatsOrBuilder>
- statsBuilder_;
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- *
- * @return Whether the stats field is set.
- */
- public boolean hasStats() {
- return ((bitField0_ & 0x00000008) != 0);
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- *
- * @return The stats.
- */
- public com.google.datastore.v1.ResultSetStats getStats() {
- if (statsBuilder_ == null) {
- return stats_ == null
- ? com.google.datastore.v1.ResultSetStats.getDefaultInstance()
- : stats_;
- } else {
- return statsBuilder_.getMessage();
- }
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- public Builder setStats(com.google.datastore.v1.ResultSetStats value) {
- if (statsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- stats_ = value;
- } else {
- statsBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- public Builder setStats(com.google.datastore.v1.ResultSetStats.Builder builderForValue) {
- if (statsBuilder_ == null) {
- stats_ = builderForValue.build();
- } else {
- statsBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- public Builder mergeStats(com.google.datastore.v1.ResultSetStats value) {
- if (statsBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0)
- && stats_ != null
- && stats_ != com.google.datastore.v1.ResultSetStats.getDefaultInstance()) {
- getStatsBuilder().mergeFrom(value);
- } else {
- stats_ = value;
- }
- } else {
- statsBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- public Builder clearStats() {
- bitField0_ = (bitField0_ & ~0x00000008);
- stats_ = null;
- if (statsBuilder_ != null) {
- statsBuilder_.dispose();
- statsBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- public com.google.datastore.v1.ResultSetStats.Builder getStatsBuilder() {
- bitField0_ |= 0x00000008;
- onChanged();
- return getStatsFieldBuilder().getBuilder();
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- public com.google.datastore.v1.ResultSetStatsOrBuilder getStatsOrBuilder() {
- if (statsBuilder_ != null) {
- return statsBuilder_.getMessageOrBuilder();
- } else {
- return stats_ == null
- ? com.google.datastore.v1.ResultSetStats.getDefaultInstance()
- : stats_;
- }
- }
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.datastore.v1.ResultSetStats,
- com.google.datastore.v1.ResultSetStats.Builder,
- com.google.datastore.v1.ResultSetStatsOrBuilder>
- getStatsFieldBuilder() {
- if (statsBuilder_ == null) {
- statsBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.datastore.v1.ResultSetStats,
- com.google.datastore.v1.ResultSetStats.Builder,
- com.google.datastore.v1.ResultSetStatsOrBuilder>(
- getStats(), getParentForChildren(), isClean());
- stats_ = null;
- }
- return statsBuilder_;
- }
-
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java
index bbd48b7b5..7e7f442b2 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/RunQueryResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -111,48 +111,4 @@ public interface RunQueryResponseOrBuilder
* @return The transaction.
*/
com.google.protobuf.ByteString getTransaction();
-
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- *
- * @return Whether the stats field is set.
- */
- boolean hasStats();
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- *
- * @return The stats.
- */
- com.google.datastore.v1.ResultSetStats getStats();
- /**
- *
- *
- *
- * Query plan and execution statistics. Note that the returned stats are
- * subject to change as Firestore evolves.
- *
- * This is only present when the request specifies a mode other than `NORMAL`.
- *
- *
- * .google.datastore.v1.ResultSetStats stats = 6;
- */
- com.google.datastore.v1.ResultSetStatsOrBuilder getStatsOrBuilder();
}
diff --git a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.java
index 3f8f3209f..3038f7a09 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptions.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 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/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java
index 5ebbe3a91..c5d7768d1 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/TransactionOptionsOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 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/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java
index 4b7e04978..247d23e25 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/Value.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 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/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java
index d9102d3d3..b15a641f7 100644
--- a/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java
+++ b/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ValueOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Google LLC
+ * Copyright 2024 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/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto b/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto
index 476d48f02..533988d77 100644
--- a/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto
+++ b/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/datastore.proto
@@ -23,7 +23,6 @@ import "google/api/routing.proto";
import "google/datastore/v1/aggregation_result.proto";
import "google/datastore/v1/entity.proto";
import "google/datastore/v1/query.proto";
-import "google/datastore/v1/query_profile.proto";
import "google/protobuf/timestamp.proto";
option csharp_namespace = "Google.Cloud.Datastore.V1";
@@ -233,11 +232,6 @@ message RunQueryRequest {
// The GQL query to run. This query must be a non-aggregation query.
GqlQuery gql_query = 7;
}
-
- // Optional. The mode in which the query request is processed. This field is
- // optional, and when not provided, it defaults to `NORMAL` mode where no
- // additional statistics will be returned with the query results.
- QueryMode mode = 11 [(google.api.field_behavior) = OPTIONAL];
}
// The response for
@@ -257,12 +251,6 @@ message RunQueryResponse {
// was set in
// [RunQueryRequest.read_options][google.datastore.v1.RunQueryRequest.read_options].
bytes transaction = 5;
-
- // Query plan and execution statistics. Note that the returned stats are
- // subject to change as Firestore evolves.
- //
- // This is only present when the request specifies a mode other than `NORMAL`.
- ResultSetStats stats = 6;
}
// The request for
@@ -294,11 +282,6 @@ message RunAggregationQueryRequest {
// The GQL query to run. This query must be an aggregation query.
GqlQuery gql_query = 7;
}
-
- // Optional. The mode in which the query request is processed. This field is
- // optional, and when not provided, it defaults to `NORMAL` mode where no
- // additional statistics will be returned with the query results.
- QueryMode mode = 10 [(google.api.field_behavior) = OPTIONAL];
}
// The response for
@@ -318,12 +301,6 @@ message RunAggregationQueryResponse {
// was set in
// [RunAggregationQueryRequest.read_options][google.datastore.v1.RunAggregationQueryRequest.read_options].
bytes transaction = 5;
-
- // Query plan and execution statistics. Note that the returned stats are
- // subject to change as Firestore evolves.
- //
- // This is only present when the request specifies a mode other than `NORMAL`.
- ResultSetStats stats = 6;
}
// The request for
diff --git a/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/query_profile.proto b/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/query_profile.proto
deleted file mode 100644
index 05c1cf95e..000000000
--- a/proto-google-cloud-datastore-v1/src/main/proto/google/datastore/v1/query_profile.proto
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright 2023 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-syntax = "proto3";
-
-package google.datastore.v1;
-
-import "google/protobuf/struct.proto";
-
-option csharp_namespace = "Google.Cloud.Datastore.V1";
-option go_package = "google.golang.org/genproto/googleapis/datastore/v1;datastore";
-option java_multiple_files = true;
-option java_outer_classname = "QueryProfileProto";
-option java_package = "com.google.datastore.v1";
-option php_namespace = "Google\\Cloud\\Datastore\\V1";
-option ruby_package = "Google::Cloud::Datastore::V1";
-
-// Specification of the Datastore Query Profile fields.
-
-// The mode in which the query request must be processed.
-enum QueryMode {
- // The default mode. Only the query results are returned.
- NORMAL = 0;
-
- // This mode returns only the query plan, without any results or execution
- // statistics information.
- PLAN = 1;
-
- // This mode returns both the query plan and the execution statistics along
- // with the results.
- PROFILE = 2;
-}
-
-// Plan for the query.
-message QueryPlan {
- // Planning phase information for the query. It will include:
- //
- // {
- // "indexes_used": [
- // {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"},
- // {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"}
- // ]
- // }
- google.protobuf.Struct plan_info = 1;
-}
-
-// Planning and execution statistics for the query.
-message ResultSetStats {
- // Plan for the query.
- QueryPlan query_plan = 1;
-
- // Aggregated statistics from the execution of the query.
- //
- // This will only be present when the request specifies `PROFILE` mode.
- // For example, a query will return the statistics including:
- //
- // {
- // "results_returned": "20",
- // "documents_scanned": "20",
- // "indexes_entries_scanned": "10050",
- // "total_execution_time": "100.7 msecs"
- // }
- google.protobuf.Struct query_stats = 2;
-}