getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.firestore.v1.ResultSetStats getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-}
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ResultSetStatsOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ResultSetStatsOrBuilder.java
deleted file mode 100644
index ecba0e971..000000000
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/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/firestore/v1/query_profile.proto
-
-package com.google.firestore.v1;
-
-public interface ResultSetStatsOrBuilder
- extends
- // @@protoc_insertion_point(interface_extends:google.firestore.v1.ResultSetStats)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- *
- *
- * Plan for the query.
- *
- *
- * .google.firestore.v1.QueryPlan query_plan = 1;
- *
- * @return Whether the queryPlan field is set.
- */
- boolean hasQueryPlan();
- /**
- *
- *
- *
- * Plan for the query.
- *
- *
- * .google.firestore.v1.QueryPlan query_plan = 1;
- *
- * @return The queryPlan.
- */
- com.google.firestore.v1.QueryPlan getQueryPlan();
- /**
- *
- *
- *
- * Plan for the query.
- *
- *
- * .google.firestore.v1.QueryPlan query_plan = 1;
- */
- com.google.firestore.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-firestore-v1/src/main/java/com/google/firestore/v1/RollbackRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RollbackRequest.java
index 293b4d91e..d3ff2cd0a 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RollbackRequest.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RollbackRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RollbackRequestOrBuilder.java
index 7d6e2e181..cb597d64c 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RollbackRequestOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface RollbackRequestOrBuilder
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryRequest.java
index 773bb73b2..33f177901 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryRequest.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
@@ -40,7 +41,6 @@ private RunAggregationQueryRequest(com.google.protobuf.GeneratedMessageV3.Builde
private RunAggregationQueryRequest() {
parent_ = "";
- mode_ = 0;
}
@java.lang.Override
@@ -437,44 +437,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return com.google.protobuf.Timestamp.getDefaultInstance();
}
- public static final int MODE_FIELD_NUMBER = 7;
- 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.firestore.v1.QueryMode mode = 7 [(.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.firestore.v1.QueryMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The mode.
- */
- @java.lang.Override
- public com.google.firestore.v1.QueryMode getMode() {
- com.google.firestore.v1.QueryMode result = com.google.firestore.v1.QueryMode.forNumber(mode_);
- return result == null ? com.google.firestore.v1.QueryMode.UNRECOGNIZED : result;
- }
-
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -504,9 +466,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (consistencySelectorCase_ == 6) {
output.writeMessage(6, (com.google.protobuf.Timestamp) consistencySelector_);
}
- if (mode_ != com.google.firestore.v1.QueryMode.NORMAL.getNumber()) {
- output.writeEnum(7, mode_);
- }
getUnknownFields().writeTo(output);
}
@@ -539,9 +498,6 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
6, (com.google.protobuf.Timestamp) consistencySelector_);
}
- if (mode_ != com.google.firestore.v1.QueryMode.NORMAL.getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, mode_);
- }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -559,7 +515,6 @@ public boolean equals(final java.lang.Object obj) {
(com.google.firestore.v1.RunAggregationQueryRequest) obj;
if (!getParent().equals(other.getParent())) return false;
- if (mode_ != other.mode_) return false;
if (!getQueryTypeCase().equals(other.getQueryTypeCase())) return false;
switch (queryTypeCase_) {
case 2:
@@ -596,8 +551,6 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PARENT_FIELD_NUMBER;
hash = (53 * hash) + getParent().hashCode();
- hash = (37 * hash) + MODE_FIELD_NUMBER;
- hash = (53 * hash) + mode_;
switch (queryTypeCase_) {
case 2:
hash = (37 * hash) + STRUCTURED_AGGREGATION_QUERY_FIELD_NUMBER;
@@ -772,7 +725,6 @@ public Builder clear() {
if (readTimeBuilder_ != null) {
readTimeBuilder_.clear();
}
- mode_ = 0;
queryTypeCase_ = 0;
queryType_ = null;
consistencySelectorCase_ = 0;
@@ -817,9 +769,6 @@ private void buildPartial0(com.google.firestore.v1.RunAggregationQueryRequest re
if (((from_bitField0_ & 0x00000001) != 0)) {
result.parent_ = parent_;
}
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.mode_ = mode_;
- }
}
private void buildPartialOneofs(com.google.firestore.v1.RunAggregationQueryRequest result) {
@@ -889,9 +838,6 @@ public Builder mergeFrom(com.google.firestore.v1.RunAggregationQueryRequest othe
bitField0_ |= 0x00000001;
onChanged();
}
- if (other.mode_ != 0) {
- setModeValue(other.getModeValue());
- }
switch (other.getQueryTypeCase()) {
case STRUCTURED_AGGREGATION_QUERY:
{
@@ -981,12 +927,6 @@ public Builder mergeFrom(
consistencySelectorCase_ = 6;
break;
} // case 50
- case 56:
- {
- mode_ = input.readEnum();
- bitField0_ |= 0x00000020;
- break;
- } // case 56
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1949,110 +1889,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return readTimeBuilder_;
}
- 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.firestore.v1.QueryMode mode = 7 [(.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.firestore.v1.QueryMode mode = 7 [(.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_ |= 0x00000020;
- 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.firestore.v1.QueryMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The mode.
- */
- @java.lang.Override
- public com.google.firestore.v1.QueryMode getMode() {
- com.google.firestore.v1.QueryMode result = com.google.firestore.v1.QueryMode.forNumber(mode_);
- return result == null ? com.google.firestore.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.firestore.v1.QueryMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @param value The mode to set.
- * @return This builder for chaining.
- */
- public Builder setMode(com.google.firestore.v1.QueryMode value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000020;
- 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.firestore.v1.QueryMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return This builder for chaining.
- */
- public Builder clearMode() {
- bitField0_ = (bitField0_ & ~0x00000020);
- 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-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryRequestOrBuilder.java
index aaa958d14..a9a00c499 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryRequestOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface RunAggregationQueryRequestOrBuilder
@@ -214,35 +215,6 @@ public interface RunAggregationQueryRequestOrBuilder
*/
com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
- /**
- *
- *
- *
- * 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.firestore.v1.QueryMode mode = 7 [(.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.firestore.v1.QueryMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The mode.
- */
- com.google.firestore.v1.QueryMode getMode();
-
com.google.firestore.v1.RunAggregationQueryRequest.QueryTypeCase getQueryTypeCase();
com.google.firestore.v1.RunAggregationQueryRequest.ConsistencySelectorCase
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryResponse.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryResponse.java
index 575f144fc..72f44e889 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryResponse.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
@@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.firestore.v1.RunAggregationQueryResponse.Builder.class);
}
+ private int bitField0_;
public static final int RESULT_FIELD_NUMBER = 1;
private com.google.firestore.v1.AggregationResult result_;
/**
@@ -80,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasResult() {
- return result_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -162,7 +164,7 @@ public com.google.protobuf.ByteString getTransaction() {
*/
@java.lang.Override
public boolean hasReadTime() {
- return readTime_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -207,64 +209,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
- public static final int STATS_FIELD_NUMBER = 6;
- private com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 6;
- *
- * @return The stats.
- */
- @java.lang.Override
- public com.google.firestore.v1.ResultSetStats getStats() {
- return stats_ == null ? com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 6;
- */
- @java.lang.Override
- public com.google.firestore.v1.ResultSetStatsOrBuilder getStatsOrBuilder() {
- return stats_ == null ? com.google.firestore.v1.ResultSetStats.getDefaultInstance() : stats_;
- }
-
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -279,18 +223,15 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (result_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getResult());
}
if (!transaction_.isEmpty()) {
output.writeBytes(2, transaction_);
}
- if (readTime_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getReadTime());
}
- if (stats_ != null) {
- output.writeMessage(6, getStats());
- }
getUnknownFields().writeTo(output);
}
@@ -300,18 +241,15 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (result_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResult());
}
if (!transaction_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, transaction_);
}
- if (readTime_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReadTime());
}
- if (stats_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStats());
- }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -337,10 +275,6 @@ public boolean equals(final java.lang.Object obj) {
if (hasReadTime()) {
if (!getReadTime().equals(other.getReadTime())) 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;
}
@@ -362,10 +296,6 @@ public int hashCode() {
hash = (37 * hash) + READ_TIME_FIELD_NUMBER;
hash = (53 * hash) + getReadTime().hashCode();
}
- if (hasStats()) {
- hash = (37 * hash) + STATS_FIELD_NUMBER;
- hash = (53 * hash) + getStats().hashCode();
- }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -496,10 +426,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.firestore.v1.RunAggregationQueryResponse.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getResultFieldBuilder();
+ getReadTimeFieldBuilder();
+ }
}
@java.lang.Override
@@ -517,11 +457,6 @@ public Builder clear() {
readTimeBuilder_.dispose();
readTimeBuilder_ = null;
}
- stats_ = null;
- if (statsBuilder_ != null) {
- statsBuilder_.dispose();
- statsBuilder_ = null;
- }
return this;
}
@@ -558,18 +493,19 @@ public com.google.firestore.v1.RunAggregationQueryResponse buildPartial() {
private void buildPartial0(com.google.firestore.v1.RunAggregationQueryResponse result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.transaction_ = transaction_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.readTime_ = readTimeBuilder_ == null ? readTime_ : readTimeBuilder_.build();
+ to_bitField0_ |= 0x00000002;
}
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.stats_ = statsBuilder_ == null ? stats_ : statsBuilder_.build();
- }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -627,9 +563,6 @@ public Builder mergeFrom(com.google.firestore.v1.RunAggregationQueryResponse oth
if (other.hasReadTime()) {
mergeReadTime(other.getReadTime());
}
- if (other.hasStats()) {
- mergeStats(other.getStats());
- }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -674,12 +607,6 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 26
- case 50:
- {
- input.readMessage(getStatsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000008;
- break;
- } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -811,8 +738,10 @@ public Builder mergeResult(com.google.firestore.v1.AggregationResult value) {
} else {
resultBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (result_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
@@ -1099,8 +1028,10 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
} else {
readTimeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000004;
- onChanged();
+ if (readTime_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
return this;
}
/**
@@ -1206,225 +1137,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return readTimeBuilder_;
}
- private com.google.firestore.v1.ResultSetStats stats_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.firestore.v1.ResultSetStats,
- com.google.firestore.v1.ResultSetStats.Builder,
- com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 6;
- *
- * @return The stats.
- */
- public com.google.firestore.v1.ResultSetStats getStats() {
- if (statsBuilder_ == null) {
- return stats_ == null
- ? com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 6;
- */
- public Builder setStats(com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 6;
- */
- public Builder setStats(com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 6;
- */
- public Builder mergeStats(com.google.firestore.v1.ResultSetStats value) {
- if (statsBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0)
- && stats_ != null
- && stats_ != com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 6;
- */
- public com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 6;
- */
- public com.google.firestore.v1.ResultSetStatsOrBuilder getStatsOrBuilder() {
- if (statsBuilder_ != null) {
- return statsBuilder_.getMessageOrBuilder();
- } else {
- return stats_ == null
- ? com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 6;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.firestore.v1.ResultSetStats,
- com.google.firestore.v1.ResultSetStats.Builder,
- com.google.firestore.v1.ResultSetStatsOrBuilder>
- getStatsFieldBuilder() {
- if (statsBuilder_ == null) {
- statsBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.firestore.v1.ResultSetStats,
- com.google.firestore.v1.ResultSetStats.Builder,
- com.google.firestore.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-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryResponseOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryResponseOrBuilder.java
index 087c54f6d..b78c4a7f2 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunAggregationQueryResponseOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface RunAggregationQueryResponseOrBuilder
@@ -135,51 +136,4 @@ public interface RunAggregationQueryResponseOrBuilder
* .google.protobuf.Timestamp read_time = 3;
*/
com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
-
- /**
- *
- *
- *
- * 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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 6;
- *
- * @return The stats.
- */
- com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 6;
- */
- com.google.firestore.v1.ResultSetStatsOrBuilder getStatsOrBuilder();
}
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryRequest.java
index 13e2d3d2d..1fc41e85b 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryRequest.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
@@ -39,7 +40,6 @@ private RunQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builde
private RunQueryRequest() {
parent_ = "";
- mode_ = 0;
}
@java.lang.Override
@@ -435,44 +435,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return com.google.protobuf.Timestamp.getDefaultInstance();
}
- public static final int MODE_FIELD_NUMBER = 9;
- 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.firestore.v1.QueryMode mode = 9 [(.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.firestore.v1.QueryMode mode = 9 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The mode.
- */
- @java.lang.Override
- public com.google.firestore.v1.QueryMode getMode() {
- com.google.firestore.v1.QueryMode result = com.google.firestore.v1.QueryMode.forNumber(mode_);
- return result == null ? com.google.firestore.v1.QueryMode.UNRECOGNIZED : result;
- }
-
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -502,9 +464,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (consistencySelectorCase_ == 7) {
output.writeMessage(7, (com.google.protobuf.Timestamp) consistencySelector_);
}
- if (mode_ != com.google.firestore.v1.QueryMode.NORMAL.getNumber()) {
- output.writeEnum(9, mode_);
- }
getUnknownFields().writeTo(output);
}
@@ -537,9 +496,6 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
7, (com.google.protobuf.Timestamp) consistencySelector_);
}
- if (mode_ != com.google.firestore.v1.QueryMode.NORMAL.getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, mode_);
- }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -556,7 +512,6 @@ public boolean equals(final java.lang.Object obj) {
com.google.firestore.v1.RunQueryRequest other = (com.google.firestore.v1.RunQueryRequest) obj;
if (!getParent().equals(other.getParent())) return false;
- if (mode_ != other.mode_) return false;
if (!getQueryTypeCase().equals(other.getQueryTypeCase())) return false;
switch (queryTypeCase_) {
case 2:
@@ -592,8 +547,6 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PARENT_FIELD_NUMBER;
hash = (53 * hash) + getParent().hashCode();
- hash = (37 * hash) + MODE_FIELD_NUMBER;
- hash = (53 * hash) + mode_;
switch (queryTypeCase_) {
case 2:
hash = (37 * hash) + STRUCTURED_QUERY_FIELD_NUMBER;
@@ -767,7 +720,6 @@ public Builder clear() {
if (readTimeBuilder_ != null) {
readTimeBuilder_.clear();
}
- mode_ = 0;
queryTypeCase_ = 0;
queryType_ = null;
consistencySelectorCase_ = 0;
@@ -812,9 +764,6 @@ private void buildPartial0(com.google.firestore.v1.RunQueryRequest result) {
if (((from_bitField0_ & 0x00000001) != 0)) {
result.parent_ = parent_;
}
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.mode_ = mode_;
- }
}
private void buildPartialOneofs(com.google.firestore.v1.RunQueryRequest result) {
@@ -883,9 +832,6 @@ public Builder mergeFrom(com.google.firestore.v1.RunQueryRequest other) {
bitField0_ |= 0x00000001;
onChanged();
}
- if (other.mode_ != 0) {
- setModeValue(other.getModeValue());
- }
switch (other.getQueryTypeCase()) {
case STRUCTURED_QUERY:
{
@@ -974,12 +920,6 @@ public Builder mergeFrom(
consistencySelectorCase_ = 7;
break;
} // case 58
- case 72:
- {
- mode_ = input.readEnum();
- bitField0_ |= 0x00000020;
- break;
- } // case 72
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1928,110 +1868,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return readTimeBuilder_;
}
- 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.firestore.v1.QueryMode mode = 9 [(.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.firestore.v1.QueryMode mode = 9 [(.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_ |= 0x00000020;
- 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.firestore.v1.QueryMode mode = 9 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The mode.
- */
- @java.lang.Override
- public com.google.firestore.v1.QueryMode getMode() {
- com.google.firestore.v1.QueryMode result = com.google.firestore.v1.QueryMode.forNumber(mode_);
- return result == null ? com.google.firestore.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.firestore.v1.QueryMode mode = 9 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @param value The mode to set.
- * @return This builder for chaining.
- */
- public Builder setMode(com.google.firestore.v1.QueryMode value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000020;
- 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.firestore.v1.QueryMode mode = 9 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return This builder for chaining.
- */
- public Builder clearMode() {
- bitField0_ = (bitField0_ & ~0x00000020);
- 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-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryRequestOrBuilder.java
index 3d32302f6..1402e9c46 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryRequestOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface RunQueryRequestOrBuilder
@@ -213,35 +214,6 @@ public interface RunQueryRequestOrBuilder
*/
com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
- /**
- *
- *
- *
- * 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.firestore.v1.QueryMode mode = 9 [(.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.firestore.v1.QueryMode mode = 9 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The mode.
- */
- com.google.firestore.v1.QueryMode getMode();
-
com.google.firestore.v1.RunQueryRequest.QueryTypeCase getQueryTypeCase();
com.google.firestore.v1.RunQueryRequest.ConsistencySelectorCase getConsistencySelectorCase();
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponse.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponse.java
index 5fa04011a..3a4d4d1a5 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponse.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
@@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.firestore.v1.RunQueryResponse.Builder.class);
}
+ private int bitField0_;
private int continuationSelectorCase_ = 0;
@SuppressWarnings("serial")
@@ -146,7 +148,7 @@ public com.google.protobuf.ByteString getTransaction() {
*/
@java.lang.Override
public boolean hasDocument() {
- return document_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -198,7 +200,7 @@ public com.google.firestore.v1.DocumentOrBuilder getDocumentOrBuilder() {
*/
@java.lang.Override
public boolean hasReadTime() {
- return readTime_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -297,64 +299,6 @@ public boolean getDone() {
return false;
}
- public static final int STATS_FIELD_NUMBER = 7;
- private com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 7;
- *
- * @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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 7;
- *
- * @return The stats.
- */
- @java.lang.Override
- public com.google.firestore.v1.ResultSetStats getStats() {
- return stats_ == null ? com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 7;
- */
- @java.lang.Override
- public com.google.firestore.v1.ResultSetStatsOrBuilder getStatsOrBuilder() {
- return stats_ == null ? com.google.firestore.v1.ResultSetStats.getDefaultInstance() : stats_;
- }
-
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -369,13 +313,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (document_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getDocument());
}
if (!transaction_.isEmpty()) {
output.writeBytes(2, transaction_);
}
- if (readTime_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getReadTime());
}
if (skippedResults_ != 0) {
@@ -384,9 +328,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (continuationSelectorCase_ == 6) {
output.writeBool(6, (boolean) ((java.lang.Boolean) continuationSelector_));
}
- if (stats_ != null) {
- output.writeMessage(7, getStats());
- }
getUnknownFields().writeTo(output);
}
@@ -396,13 +337,13 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (document_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocument());
}
if (!transaction_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, transaction_);
}
- if (readTime_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReadTime());
}
if (skippedResults_ != 0) {
@@ -413,9 +354,6 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeBoolSize(
6, (boolean) ((java.lang.Boolean) continuationSelector_));
}
- if (stats_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getStats());
- }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -441,10 +379,6 @@ public boolean equals(final java.lang.Object obj) {
if (!getReadTime().equals(other.getReadTime())) return false;
}
if (getSkippedResults() != other.getSkippedResults()) return false;
- if (hasStats() != other.hasStats()) return false;
- if (hasStats()) {
- if (!getStats().equals(other.getStats())) return false;
- }
if (!getContinuationSelectorCase().equals(other.getContinuationSelectorCase())) return false;
switch (continuationSelectorCase_) {
case 6:
@@ -476,10 +410,6 @@ public int hashCode() {
}
hash = (37 * hash) + SKIPPED_RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getSkippedResults();
- if (hasStats()) {
- hash = (37 * hash) + STATS_FIELD_NUMBER;
- hash = (53 * hash) + getStats().hashCode();
- }
switch (continuationSelectorCase_) {
case 6:
hash = (37 * hash) + DONE_FIELD_NUMBER;
@@ -618,10 +548,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.firestore.v1.RunQueryResponse.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getDocumentFieldBuilder();
+ getReadTimeFieldBuilder();
+ }
}
@java.lang.Override
@@ -640,11 +580,6 @@ public Builder clear() {
readTimeBuilder_ = null;
}
skippedResults_ = 0;
- stats_ = null;
- if (statsBuilder_ != null) {
- statsBuilder_.dispose();
- statsBuilder_ = null;
- }
continuationSelectorCase_ = 0;
continuationSelector_ = null;
return this;
@@ -687,18 +622,19 @@ private void buildPartial0(com.google.firestore.v1.RunQueryResponse result) {
if (((from_bitField0_ & 0x00000001) != 0)) {
result.transaction_ = transaction_;
}
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.document_ = documentBuilder_ == null ? document_ : documentBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.readTime_ = readTimeBuilder_ == null ? readTime_ : readTimeBuilder_.build();
+ to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.skippedResults_ = skippedResults_;
}
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.stats_ = statsBuilder_ == null ? stats_ : statsBuilder_.build();
- }
+ result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.firestore.v1.RunQueryResponse result) {
@@ -763,9 +699,6 @@ public Builder mergeFrom(com.google.firestore.v1.RunQueryResponse other) {
if (other.getSkippedResults() != 0) {
setSkippedResults(other.getSkippedResults());
}
- if (other.hasStats()) {
- mergeStats(other.getStats());
- }
switch (other.getContinuationSelectorCase()) {
case DONE:
{
@@ -833,12 +766,6 @@ public Builder mergeFrom(
continuationSelectorCase_ = 6;
break;
} // case 48
- case 58:
- {
- input.readMessage(getStatsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000020;
- break;
- } // case 58
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1041,8 +968,10 @@ public Builder mergeDocument(com.google.firestore.v1.Document value) {
} else {
documentBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+ if (document_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
@@ -1252,8 +1181,10 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
} else {
readTimeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000004;
- onChanged();
+ if (readTime_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
return this;
}
/**
@@ -1485,225 +1416,6 @@ public Builder clearDone() {
return this;
}
- private com.google.firestore.v1.ResultSetStats stats_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.firestore.v1.ResultSetStats,
- com.google.firestore.v1.ResultSetStats.Builder,
- com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 7;
- *
- * @return Whether the stats field is set.
- */
- public boolean hasStats() {
- return ((bitField0_ & 0x00000020) != 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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 7;
- *
- * @return The stats.
- */
- public com.google.firestore.v1.ResultSetStats getStats() {
- if (statsBuilder_ == null) {
- return stats_ == null
- ? com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 7;
- */
- public Builder setStats(com.google.firestore.v1.ResultSetStats value) {
- if (statsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- stats_ = value;
- } else {
- statsBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000020;
- 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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 7;
- */
- public Builder setStats(com.google.firestore.v1.ResultSetStats.Builder builderForValue) {
- if (statsBuilder_ == null) {
- stats_ = builderForValue.build();
- } else {
- statsBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000020;
- 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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 7;
- */
- public Builder mergeStats(com.google.firestore.v1.ResultSetStats value) {
- if (statsBuilder_ == null) {
- if (((bitField0_ & 0x00000020) != 0)
- && stats_ != null
- && stats_ != com.google.firestore.v1.ResultSetStats.getDefaultInstance()) {
- getStatsBuilder().mergeFrom(value);
- } else {
- stats_ = value;
- }
- } else {
- statsBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000020;
- 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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 7;
- */
- public Builder clearStats() {
- bitField0_ = (bitField0_ & ~0x00000020);
- 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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 7;
- */
- public com.google.firestore.v1.ResultSetStats.Builder getStatsBuilder() {
- bitField0_ |= 0x00000020;
- 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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 7;
- */
- public com.google.firestore.v1.ResultSetStatsOrBuilder getStatsOrBuilder() {
- if (statsBuilder_ != null) {
- return statsBuilder_.getMessageOrBuilder();
- } else {
- return stats_ == null
- ? com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 7;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.firestore.v1.ResultSetStats,
- com.google.firestore.v1.ResultSetStats.Builder,
- com.google.firestore.v1.ResultSetStatsOrBuilder>
- getStatsFieldBuilder() {
- if (statsBuilder_ == null) {
- statsBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.firestore.v1.ResultSetStats,
- com.google.firestore.v1.ResultSetStats.Builder,
- com.google.firestore.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-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponseOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponseOrBuilder.java
index 8d2a38910..f5c0f202a 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/RunQueryResponseOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface RunQueryResponseOrBuilder
@@ -169,52 +170,5 @@ public interface RunQueryResponseOrBuilder
*/
boolean getDone();
- /**
- *
- *
- *
- * 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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 7;
- *
- * @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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 7;
- *
- * @return The stats.
- */
- com.google.firestore.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`
- * and is sent only once with the last response in the stream.
- *
- *
- * .google.firestore.v1.ResultSetStats stats = 7;
- */
- com.google.firestore.v1.ResultSetStatsOrBuilder getStatsOrBuilder();
-
com.google.firestore.v1.RunQueryResponse.ContinuationSelectorCase getContinuationSelectorCase();
}
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQuery.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQuery.java
index d054b4051..92b929447 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQuery.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQuery.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/query.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
@@ -449,6 +450,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.Builder.class);
}
+ private int bitField0_;
public static final int UP_TO_FIELD_NUMBER = 1;
private com.google.protobuf.Int64Value upTo_;
/**
@@ -481,7 +483,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasUpTo() {
- return upTo_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -560,7 +562,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (upTo_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getUpTo());
}
getUnknownFields().writeTo(output);
@@ -572,7 +574,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (upTo_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpTo());
}
size += getUnknownFields().getSerializedSize();
@@ -750,10 +752,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
// Construct using
// com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getUpToFieldBuilder();
+ }
}
@java.lang.Override
@@ -805,9 +816,12 @@ public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count buil
private void buildPartial0(
com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.upTo_ = upToBuilder_ == null ? upTo_ : upToBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -1101,8 +1115,10 @@ public Builder mergeUpTo(com.google.protobuf.Int64Value value) {
} else {
upToBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (upTo_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
@@ -1418,6 +1434,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.Builder.class);
}
+ private int bitField0_;
public static final int FIELD_FIELD_NUMBER = 1;
private com.google.firestore.v1.StructuredQuery.FieldReference field_;
/**
@@ -1433,7 +1450,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasField() {
- return field_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -1482,7 +1499,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (field_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getField());
}
getUnknownFields().writeTo(output);
@@ -1494,7 +1511,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (field_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getField());
}
size += getUnknownFields().getSerializedSize();
@@ -1687,10 +1704,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
// Construct using
// com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getFieldFieldBuilder();
+ }
}
@java.lang.Override
@@ -1742,9 +1768,12 @@ public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum buildP
private void buildPartial0(
com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.field_ = fieldBuilder_ == null ? field_ : fieldBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -1957,8 +1986,10 @@ public Builder mergeField(com.google.firestore.v1.StructuredQuery.FieldReference
} else {
fieldBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (field_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
@@ -2197,6 +2228,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.Builder.class);
}
+ private int bitField0_;
public static final int FIELD_FIELD_NUMBER = 1;
private com.google.firestore.v1.StructuredQuery.FieldReference field_;
/**
@@ -2212,7 +2244,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasField() {
- return field_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -2261,7 +2293,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (field_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getField());
}
getUnknownFields().writeTo(output);
@@ -2273,7 +2305,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (field_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getField());
}
size += getUnknownFields().getSerializedSize();
@@ -2456,10 +2488,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
// Construct using
// com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getFieldFieldBuilder();
+ }
}
@java.lang.Override
@@ -2511,9 +2552,12 @@ public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg buildP
private void buildPartial0(
com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.field_ = fieldBuilder_ == null ? field_ : fieldBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -2726,8 +2770,10 @@ public Builder mergeField(com.google.firestore.v1.StructuredQuery.FieldReference
} else {
fieldBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (field_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQueryOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQueryOrBuilder.java
index d8b824c29..0a46f2899 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQueryOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredAggregationQueryOrBuilder.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/query.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface StructuredAggregationQueryOrBuilder
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.java
index d2d0b7869..2ebba9c23 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQuery.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/query.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
@@ -4516,6 +4517,7 @@ private Operator(int value) {
// @@protoc_insertion_point(enum_scope:google.firestore.v1.StructuredQuery.FieldFilter.Operator)
}
+ private int bitField0_;
public static final int FIELD_FIELD_NUMBER = 1;
private com.google.firestore.v1.StructuredQuery.FieldReference field_;
/**
@@ -4531,7 +4533,7 @@ private Operator(int value) {
*/
@java.lang.Override
public boolean hasField() {
- return field_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -4618,7 +4620,7 @@ public com.google.firestore.v1.StructuredQuery.FieldFilter.Operator getOp() {
*/
@java.lang.Override
public boolean hasValue() {
- return value_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -4663,7 +4665,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (field_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getField());
}
if (op_
@@ -4671,7 +4673,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
.getNumber()) {
output.writeEnum(2, op_);
}
- if (value_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getValue());
}
getUnknownFields().writeTo(output);
@@ -4683,7 +4685,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (field_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getField());
}
if (op_
@@ -4691,7 +4693,7 @@ public int getSerializedSize() {
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, op_);
}
- if (value_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getValue());
}
size += getUnknownFields().getSerializedSize();
@@ -4872,10 +4874,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.firestore.v1.StructuredQuery.FieldFilter.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getFieldFieldBuilder();
+ getValueFieldBuilder();
+ }
}
@java.lang.Override
@@ -4929,15 +4941,19 @@ public com.google.firestore.v1.StructuredQuery.FieldFilter buildPartial() {
private void buildPartial0(com.google.firestore.v1.StructuredQuery.FieldFilter result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.field_ = fieldBuilder_ == null ? field_ : fieldBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.op_ = op_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build();
+ to_bitField0_ |= 0x00000002;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -5164,8 +5180,10 @@ public Builder mergeField(com.google.firestore.v1.StructuredQuery.FieldReference
} else {
fieldBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (field_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
@@ -5437,8 +5455,10 @@ public Builder mergeValue(com.google.firestore.v1.Value value) {
} else {
valueBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000004;
- onChanged();
+ if (value_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
return this;
}
/**
@@ -6943,6 +6963,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.firestore.v1.StructuredQuery.Order.Builder.class);
}
+ private int bitField0_;
public static final int FIELD_FIELD_NUMBER = 1;
private com.google.firestore.v1.StructuredQuery.FieldReference field_;
/**
@@ -6958,7 +6979,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasField() {
- return field_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -7044,7 +7065,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (field_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getField());
}
if (direction_
@@ -7060,7 +7081,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (field_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getField());
}
if (direction_
@@ -7236,10 +7257,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.firestore.v1.StructuredQuery.Order.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getFieldFieldBuilder();
+ }
}
@java.lang.Override
@@ -7288,12 +7318,15 @@ public com.google.firestore.v1.StructuredQuery.Order buildPartial() {
private void buildPartial0(com.google.firestore.v1.StructuredQuery.Order result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.field_ = fieldBuilder_ == null ? field_ : fieldBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.direction_ = direction_;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -7511,8 +7544,10 @@ public Builder mergeField(com.google.firestore.v1.StructuredQuery.FieldReference
} else {
fieldBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (field_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
@@ -9524,6 +9559,7 @@ public com.google.firestore.v1.StructuredQuery.Projection getDefaultInstanceForT
}
}
+ private int bitField0_;
public static final int SELECT_FIELD_NUMBER = 1;
private com.google.firestore.v1.StructuredQuery.Projection select_;
/**
@@ -9543,7 +9579,7 @@ public com.google.firestore.v1.StructuredQuery.Projection getDefaultInstanceForT
*/
@java.lang.Override
public boolean hasSelect() {
- return select_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -9674,7 +9710,7 @@ public com.google.firestore.v1.StructuredQuery.CollectionSelectorOrBuilder getFr
*/
@java.lang.Override
public boolean hasWhere() {
- return where_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -9920,7 +9956,7 @@ public com.google.firestore.v1.StructuredQuery.OrderOrBuilder getOrderByOrBuilde
*/
@java.lang.Override
public boolean hasStartAt() {
- return startAt_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -10034,7 +10070,7 @@ public com.google.firestore.v1.CursorOrBuilder getStartAtOrBuilder() {
*/
@java.lang.Override
public boolean hasEndAt() {
- return endAt_ != null;
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -10127,7 +10163,7 @@ public int getOffset() {
*/
@java.lang.Override
public boolean hasLimit() {
- return limit_ != null;
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -10184,28 +10220,28 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (select_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getSelect());
}
for (int i = 0; i < from_.size(); i++) {
output.writeMessage(2, from_.get(i));
}
- if (where_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getWhere());
}
for (int i = 0; i < orderBy_.size(); i++) {
output.writeMessage(4, orderBy_.get(i));
}
- if (limit_ != null) {
+ if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getLimit());
}
if (offset_ != 0) {
output.writeInt32(6, offset_);
}
- if (startAt_ != null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(7, getStartAt());
}
- if (endAt_ != null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(8, getEndAt());
}
getUnknownFields().writeTo(output);
@@ -10217,28 +10253,28 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (select_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSelect());
}
for (int i = 0; i < from_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, from_.get(i));
}
- if (where_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWhere());
}
for (int i = 0; i < orderBy_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, orderBy_.get(i));
}
- if (limit_ != null) {
+ if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLimit());
}
if (offset_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, offset_);
}
- if (startAt_ != null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getStartAt());
}
- if (endAt_ != null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndAt());
}
size += getUnknownFields().getSerializedSize();
@@ -10457,10 +10493,25 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.firestore.v1.StructuredQuery.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getSelectFieldBuilder();
+ getFromFieldBuilder();
+ getWhereFieldBuilder();
+ getOrderByFieldBuilder();
+ getStartAtFieldBuilder();
+ getEndAtFieldBuilder();
+ getLimitFieldBuilder();
+ }
}
@java.lang.Override
@@ -10565,24 +10616,31 @@ private void buildPartialRepeatedFields(com.google.firestore.v1.StructuredQuery
private void buildPartial0(com.google.firestore.v1.StructuredQuery result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.select_ = selectBuilder_ == null ? select_ : selectBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.where_ = whereBuilder_ == null ? where_ : whereBuilder_.build();
+ to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.startAt_ = startAtBuilder_ == null ? startAt_ : startAtBuilder_.build();
+ to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.endAt_ = endAtBuilder_ == null ? endAt_ : endAtBuilder_.build();
+ to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.offset_ = offset_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.limit_ = limitBuilder_ == null ? limit_ : limitBuilder_.build();
+ to_bitField0_ |= 0x00000010;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -10933,8 +10991,10 @@ public Builder mergeSelect(com.google.firestore.v1.StructuredQuery.Projection va
} else {
selectBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (select_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
@@ -11498,8 +11558,10 @@ public Builder mergeWhere(com.google.firestore.v1.StructuredQuery.Filter value)
} else {
whereBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000004;
- onChanged();
+ if (where_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
return this;
}
/**
@@ -12521,8 +12583,10 @@ public Builder mergeStartAt(com.google.firestore.v1.Cursor value) {
} else {
startAtBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000010;
- onChanged();
+ if (startAt_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
return this;
}
/**
@@ -12860,8 +12924,10 @@ public Builder mergeEndAt(com.google.firestore.v1.Cursor value) {
} else {
endAtBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000020;
- onChanged();
+ if (endAt_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
return this;
}
/**
@@ -13175,8 +13241,10 @@ public Builder mergeLimit(com.google.protobuf.Int32Value value) {
} else {
limitBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000080;
- onChanged();
+ if (limit_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQueryOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQueryOrBuilder.java
index 9858170af..b22f484b5 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQueryOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/StructuredQueryOrBuilder.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/query.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface StructuredQueryOrBuilder
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Target.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Target.java
index 8afeb65ae..431fd85df 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Target.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Target.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
@@ -1970,6 +1971,7 @@ public com.google.firestore.v1.Target.QueryTarget getDefaultInstanceForType() {
}
}
+ private int bitField0_;
private int targetTypeCase_ = 0;
@SuppressWarnings("serial")
@@ -2340,7 +2342,7 @@ public boolean getOnce() {
*/
@java.lang.Override
public boolean hasExpectedCount() {
- return expectedCount_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -2417,7 +2419,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (resumeTypeCase_ == 11) {
output.writeMessage(11, (com.google.protobuf.Timestamp) resumeType_);
}
- if (expectedCount_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(12, getExpectedCount());
}
getUnknownFields().writeTo(output);
@@ -2455,7 +2457,7 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
11, (com.google.protobuf.Timestamp) resumeType_);
}
- if (expectedCount_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getExpectedCount());
}
size += getUnknownFields().getSerializedSize();
@@ -2671,10 +2673,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.firestore.v1.Target.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getExpectedCountFieldBuilder();
+ }
}
@java.lang.Override
@@ -2743,10 +2754,13 @@ private void buildPartial0(com.google.firestore.v1.Target result) {
if (((from_bitField0_ & 0x00000020) != 0)) {
result.once_ = once_;
}
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.expectedCount_ =
expectedCountBuilder_ == null ? expectedCount_ : expectedCountBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
+ result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.firestore.v1.Target result) {
@@ -3971,8 +3985,10 @@ public Builder mergeExpectedCount(com.google.protobuf.Int32Value value) {
} else {
expectedCountBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000040;
- onChanged();
+ if (expectedCount_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChange.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChange.java
index 24d2d5105..7dc869b8a 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChange.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChange.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
@@ -289,6 +290,7 @@ private TargetChangeType(int value) {
// @@protoc_insertion_point(enum_scope:google.firestore.v1.TargetChange.TargetChangeType)
}
+ private int bitField0_;
public static final int TARGET_CHANGE_TYPE_FIELD_NUMBER = 1;
private int targetChangeType_ = 0;
/**
@@ -329,7 +331,7 @@ public com.google.firestore.v1.TargetChange.TargetChangeType getTargetChangeType
public static final int TARGET_IDS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private com.google.protobuf.Internal.IntList targetIds_;
+ private com.google.protobuf.Internal.IntList targetIds_ = emptyIntList();
/**
*
*
@@ -404,7 +406,7 @@ public int getTargetIds(int index) {
*/
@java.lang.Override
public boolean hasCause() {
- return cause_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -480,7 +482,7 @@ public com.google.protobuf.ByteString getResumeToken() {
*/
@java.lang.Override
public boolean hasReadTime() {
- return readTime_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -555,13 +557,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < targetIds_.size(); i++) {
output.writeInt32NoTag(targetIds_.getInt(i));
}
- if (cause_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getCause());
}
if (!resumeToken_.isEmpty()) {
output.writeBytes(4, resumeToken_);
}
- if (readTime_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getReadTime());
}
getUnknownFields().writeTo(output);
@@ -590,13 +592,13 @@ public int getSerializedSize() {
}
targetIdsMemoizedSerializedSize = dataSize;
}
- if (cause_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCause());
}
if (!resumeToken_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, resumeToken_);
}
- if (readTime_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getReadTime());
}
size += getUnknownFields().getSerializedSize();
@@ -780,10 +782,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.firestore.v1.TargetChange.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getCauseFieldBuilder();
+ getReadTimeFieldBuilder();
+ }
}
@java.lang.Override
@@ -829,7 +841,6 @@ public com.google.firestore.v1.TargetChange build() {
@java.lang.Override
public com.google.firestore.v1.TargetChange buildPartial() {
com.google.firestore.v1.TargetChange result = new com.google.firestore.v1.TargetChange(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -837,28 +848,28 @@ public com.google.firestore.v1.TargetChange buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.firestore.v1.TargetChange result) {
- if (((bitField0_ & 0x00000002) != 0)) {
- targetIds_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.targetIds_ = targetIds_;
- }
-
private void buildPartial0(com.google.firestore.v1.TargetChange result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.targetChangeType_ = targetChangeType_;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ targetIds_.makeImmutable();
+ result.targetIds_ = targetIds_;
+ }
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.cause_ = causeBuilder_ == null ? cause_ : causeBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.resumeToken_ = resumeToken_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.readTime_ = readTimeBuilder_ == null ? readTime_ : readTimeBuilder_.build();
+ to_bitField0_ |= 0x00000002;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -912,7 +923,8 @@ public Builder mergeFrom(com.google.firestore.v1.TargetChange other) {
if (!other.targetIds_.isEmpty()) {
if (targetIds_.isEmpty()) {
targetIds_ = other.targetIds_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ targetIds_.makeImmutable();
+ bitField0_ |= 0x00000002;
} else {
ensureTargetIdsIsMutable();
targetIds_.addAll(other.targetIds_);
@@ -1111,10 +1123,10 @@ public Builder clearTargetChangeType() {
private com.google.protobuf.Internal.IntList targetIds_ = emptyIntList();
private void ensureTargetIdsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
- targetIds_ = mutableCopy(targetIds_);
- bitField0_ |= 0x00000002;
+ if (!targetIds_.isModifiable()) {
+ targetIds_ = makeMutableCopy(targetIds_);
}
+ bitField0_ |= 0x00000002;
}
/**
*
@@ -1132,9 +1144,8 @@ private void ensureTargetIdsIsMutable() {
* @return A list containing the targetIds.
*/
public java.util.List getTargetIdsList() {
- return ((bitField0_ & 0x00000002) != 0)
- ? java.util.Collections.unmodifiableList(targetIds_)
- : targetIds_;
+ targetIds_.makeImmutable();
+ return targetIds_;
}
/**
*
@@ -1194,6 +1205,7 @@ public Builder setTargetIds(int index, int value) {
ensureTargetIdsIsMutable();
targetIds_.setInt(index, value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1217,6 +1229,7 @@ public Builder addTargetIds(int value) {
ensureTargetIdsIsMutable();
targetIds_.addInt(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1239,6 +1252,7 @@ public Builder addTargetIds(int value) {
public Builder addAllTargetIds(java.lang.Iterable extends java.lang.Integer> values) {
ensureTargetIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetIds_);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1362,8 +1376,10 @@ public Builder mergeCause(com.google.rpc.Status value) {
} else {
causeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000004;
- onChanged();
+ if (cause_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
return this;
}
/**
@@ -1647,8 +1663,10 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
} else {
readTimeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000010;
- onChanged();
+ if (readTime_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChangeOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChangeOrBuilder.java
index 20c9e679b..28666c2cc 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChangeOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetChangeOrBuilder.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface TargetChangeOrBuilder
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetOrBuilder.java
index 884e568cd..2dd822e6a 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TargetOrBuilder.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface TargetOrBuilder
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptions.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptions.java
index 91eaabfb5..f0a42fd0e 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptions.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/common.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptionsOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptionsOrBuilder.java
index c8a34322d..83f427aee 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/TransactionOptionsOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/common.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface TransactionOptionsOrBuilder
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequest.java
index d1fd63ad9..f9a02841f 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequest.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequest.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
@@ -61,6 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.firestore.v1.UpdateDocumentRequest.Builder.class);
}
+ private int bitField0_;
public static final int DOCUMENT_FIELD_NUMBER = 1;
private com.google.firestore.v1.Document document_;
/**
@@ -78,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasDocument() {
- return document_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -134,7 +136,7 @@ public com.google.firestore.v1.DocumentOrBuilder getDocumentOrBuilder() {
*/
@java.lang.Override
public boolean hasUpdateMask() {
- return updateMask_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -199,7 +201,7 @@ public com.google.firestore.v1.DocumentMaskOrBuilder getUpdateMaskOrBuilder() {
*/
@java.lang.Override
public boolean hasMask() {
- return mask_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -252,7 +254,7 @@ public com.google.firestore.v1.DocumentMaskOrBuilder getMaskOrBuilder() {
*/
@java.lang.Override
public boolean hasCurrentDocument() {
- return currentDocument_ != null;
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -303,16 +305,16 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (document_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getDocument());
}
- if (updateMask_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getUpdateMask());
}
- if (mask_ != null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getMask());
}
- if (currentDocument_ != null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getCurrentDocument());
}
getUnknownFields().writeTo(output);
@@ -324,16 +326,16 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (document_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocument());
}
- if (updateMask_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
}
- if (mask_ != null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMask());
}
- if (currentDocument_ != null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCurrentDocument());
}
size += getUnknownFields().getSerializedSize();
@@ -525,10 +527,22 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.firestore.v1.UpdateDocumentRequest.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getDocumentFieldBuilder();
+ getUpdateMaskFieldBuilder();
+ getMaskFieldBuilder();
+ getCurrentDocumentFieldBuilder();
+ }
}
@java.lang.Override
@@ -591,19 +605,25 @@ public com.google.firestore.v1.UpdateDocumentRequest buildPartial() {
private void buildPartial0(com.google.firestore.v1.UpdateDocumentRequest result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.document_ = documentBuilder_ == null ? document_ : documentBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.mask_ = maskBuilder_ == null ? mask_ : maskBuilder_.build();
+ to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.currentDocument_ =
currentDocumentBuilder_ == null ? currentDocument_ : currentDocumentBuilder_.build();
+ to_bitField0_ |= 0x00000008;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -844,8 +864,10 @@ public Builder mergeDocument(com.google.firestore.v1.Document value) {
} else {
documentBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (document_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
@@ -1065,8 +1087,10 @@ public Builder mergeUpdateMask(com.google.firestore.v1.DocumentMask value) {
} else {
updateMaskBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
- onChanged();
+ if (updateMask_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
@@ -1285,8 +1309,10 @@ public Builder mergeMask(com.google.firestore.v1.DocumentMask value) {
} else {
maskBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000004;
- onChanged();
+ if (mask_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
return this;
}
/**
@@ -1484,8 +1510,10 @@ public Builder mergeCurrentDocument(com.google.firestore.v1.Precondition value)
} else {
currentDocumentBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000008;
- onChanged();
+ if (currentDocument_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequestOrBuilder.java
index f6e5e2366..bfb09f34e 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequestOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/UpdateDocumentRequestOrBuilder.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface UpdateDocumentRequestOrBuilder
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Value.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Value.java
index 9184464e8..5613257ec 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Value.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/document.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ValueOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ValueOrBuilder.java
index 67e26135f..047f6c988 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/ValueOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/document.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface ValueOrBuilder
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Write.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Write.java
index 2bc362365..03cfa3430 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Write.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/Write.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/write.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
@@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.firestore.v1.Write.class, com.google.firestore.v1.Write.Builder.class);
}
+ private int bitField0_;
private int operationCase_ = 0;
@SuppressWarnings("serial")
@@ -311,7 +313,7 @@ public com.google.firestore.v1.DocumentTransformOrBuilder getTransformOrBuilder(
*/
@java.lang.Override
public boolean hasUpdateMask() {
- return updateMask_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -480,7 +482,7 @@ public com.google.firestore.v1.DocumentTransform.FieldTransform getUpdateTransfo
*/
@java.lang.Override
public boolean hasCurrentDocument() {
- return currentDocument_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
*
@@ -539,10 +541,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (operationCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operation_);
}
- if (updateMask_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getUpdateMask());
}
- if (currentDocument_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getCurrentDocument());
}
if (operationCase_ == 6) {
@@ -568,10 +570,10 @@ public int getSerializedSize() {
if (operationCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operation_);
}
- if (updateMask_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
}
- if (currentDocument_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCurrentDocument());
}
if (operationCase_ == 6) {
@@ -786,10 +788,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.firestore.v1.Write.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getUpdateMaskFieldBuilder();
+ getUpdateTransformsFieldBuilder();
+ getCurrentDocumentFieldBuilder();
+ }
}
@java.lang.Override
@@ -870,13 +883,17 @@ private void buildPartialRepeatedFields(com.google.firestore.v1.Write result) {
private void buildPartial0(com.google.firestore.v1.Write result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.currentDocument_ =
currentDocumentBuilder_ == null ? currentDocument_ : currentDocumentBuilder_.build();
+ to_bitField0_ |= 0x00000002;
}
+ result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.firestore.v1.Write result) {
@@ -1796,8 +1813,10 @@ public Builder mergeUpdateMask(com.google.firestore.v1.DocumentMask value) {
} else {
updateMaskBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000008;
- onChanged();
+ if (updateMask_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
return this;
}
/**
@@ -2485,8 +2504,10 @@ public Builder mergeCurrentDocument(com.google.firestore.v1.Precondition value)
} else {
currentDocumentBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000020;
- onChanged();
+ if (currentDocument_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteOrBuilder.java
index 99f439f40..762eb955a 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteOrBuilder.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/write.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface WriteOrBuilder
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteProto.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteProto.java
index f5067a87f..a6da8104a 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteProto.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteProto.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/write.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public final class WriteProto {
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequest.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequest.java
index 8656dc9b2..5ed2d4645 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequest.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequest.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
@@ -66,7 +67,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@SuppressWarnings({"rawtypes"})
@java.lang.Override
- protected com.google.protobuf.MapField internalGetMapField(int number) {
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
switch (number) {
case 5:
return internalGetLabels();
@@ -654,7 +656,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapField internalGetMapField(int number) {
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
switch (number) {
case 5:
return internalGetLabels();
@@ -664,7 +667,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
+ int number) {
switch (number) {
case 5:
return internalGetMutableLabels();
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequestOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequestOrBuilder.java
index 8db66f530..ad1557e3e 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequestOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteRequestOrBuilder.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface WriteRequestOrBuilder
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponse.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponse.java
index cf7bdc081..f8222a4d0 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponse.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponse.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
@@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.firestore.v1.WriteResponse.Builder.class);
}
+ private int bitField0_;
public static final int STREAM_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -240,7 +242,7 @@ public com.google.firestore.v1.WriteResultOrBuilder getWriteResultsOrBuilder(int
*/
@java.lang.Override
public boolean hasCommitTime() {
- return commitTime_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -296,7 +298,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < writeResults_.size(); i++) {
output.writeMessage(3, writeResults_.get(i));
}
- if (commitTime_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getCommitTime());
}
getUnknownFields().writeTo(output);
@@ -317,7 +319,7 @@ public int getSerializedSize() {
for (int i = 0; i < writeResults_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, writeResults_.get(i));
}
- if (commitTime_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCommitTime());
}
size += getUnknownFields().getSerializedSize();
@@ -493,10 +495,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.firestore.v1.WriteResponse.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getWriteResultsFieldBuilder();
+ getCommitTimeFieldBuilder();
+ }
}
@java.lang.Override
@@ -572,9 +584,12 @@ private void buildPartial0(com.google.firestore.v1.WriteResponse result) {
if (((from_bitField0_ & 0x00000002) != 0)) {
result.streamToken_ = streamToken_;
}
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.commitTime_ = commitTimeBuilder_ == null ? commitTime_ : commitTimeBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -1421,8 +1436,10 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) {
} else {
commitTimeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000008;
- onChanged();
+ if (commitTime_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponseOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponseOrBuilder.java
index 735980c72..fbda4f414 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponseOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResponseOrBuilder.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/firestore.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface WriteResponseOrBuilder
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResult.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResult.java
index c128eb201..f13217c4b 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResult.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResult.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/write.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
/**
@@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.firestore.v1.WriteResult.Builder.class);
}
+ private int bitField0_;
public static final int UPDATE_TIME_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp updateTime_;
/**
@@ -81,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasUpdateTime() {
- return updateTime_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
@@ -215,7 +217,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (updateTime_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getUpdateTime());
}
for (int i = 0; i < transformResults_.size(); i++) {
@@ -230,7 +232,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (updateTime_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateTime());
}
for (int i = 0; i < transformResults_.size(); i++) {
@@ -403,10 +405,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.firestore.v1.WriteResult.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getUpdateTimeFieldBuilder();
+ getTransformResultsFieldBuilder();
+ }
}
@java.lang.Override
@@ -473,9 +485,12 @@ private void buildPartialRepeatedFields(com.google.firestore.v1.WriteResult resu
private void buildPartial0(com.google.firestore.v1.WriteResult result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -738,8 +753,10 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
} else {
updateTimeBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
- onChanged();
+ if (updateTime_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
diff --git a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResultOrBuilder.java b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResultOrBuilder.java
index bc48e57a2..6af290205 100644
--- a/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResultOrBuilder.java
+++ b/proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/WriteResultOrBuilder.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.
@@ -16,6 +16,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/firestore/v1/write.proto
+// Protobuf Java Version: 3.25.2
package com.google.firestore.v1;
public interface WriteResultOrBuilder
diff --git a/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto b/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto
index cc38cfb4a..3b843eed5 100644
--- a/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto
+++ b/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/firestore.proto
@@ -23,7 +23,6 @@ import "google/firestore/v1/aggregation_result.proto";
import "google/firestore/v1/common.proto";
import "google/firestore/v1/document.proto";
import "google/firestore/v1/query.proto";
-import "google/firestore/v1/query_profile.proto";
import "google/firestore/v1/write.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
@@ -577,11 +576,6 @@ message RunQueryRequest {
// minute timestamp within the past 7 days.
google.protobuf.Timestamp read_time = 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 = 9 [(google.api.field_behavior) = OPTIONAL];
}
// The response for
@@ -618,13 +612,6 @@ message RunQueryResponse {
// documents will be returned.
bool done = 6;
}
-
- // 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`
- // and is sent only once with the last response in the stream.
- ResultSetStats stats = 7;
}
// The request for
@@ -664,11 +651,6 @@ message RunAggregationQueryRequest {
// minute timestamp within the past 7 days.
google.protobuf.Timestamp read_time = 6;
}
-
- // 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 = 7 [(google.api.field_behavior) = OPTIONAL];
}
// The response for
@@ -694,13 +676,6 @@ message RunAggregationQueryResponse {
// `result` will be sent, and this represents the time at which the query
// was run.
google.protobuf.Timestamp read_time = 3;
-
- // 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`
- // and is sent only once with the last response in the stream.
- ResultSetStats stats = 6;
}
// The request for
diff --git a/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/query_profile.proto b/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/query_profile.proto
deleted file mode 100644
index 371aa1ef2..000000000
--- a/proto-google-cloud-firestore-v1/src/main/proto/google/firestore/v1/query_profile.proto
+++ /dev/null
@@ -1,76 +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.firestore.v1;
-
-import "google/protobuf/struct.proto";
-
-option csharp_namespace = "Google.Cloud.Firestore.V1";
-option go_package = "cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb";
-option java_multiple_files = true;
-option java_outer_classname = "QueryProfileProto";
-option java_package = "com.google.firestore.v1";
-option objc_class_prefix = "GCFS";
-option php_namespace = "Google\\Cloud\\Firestore\\V1";
-option ruby_package = "Google::Cloud::Firestore::V1";
-
-// Specification of the Firestore 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;
-}
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index b98bd6b25..46da3f09f 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -30,7 +30,7 @@
com.google.cloud
google-cloud-firestore
- 3.16.0
+ 3.16.1
diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index 224b9a932..863931dd3 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -32,7 +32,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
com.google.cloud
libraries-bom
- 26.30.0
+ 26.31.0
pom
import
@@ -102,7 +102,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.graalvm.buildtools
junit-platform-native
- 0.9.28
+ 0.10.0
test