diff --git a/google-cloud-testing/google-cloud-conformance-tests/conformance-tests b/google-cloud-testing/google-cloud-conformance-tests/conformance-tests
new file mode 160000
index 000000000000..5a984706af59
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/conformance-tests
@@ -0,0 +1 @@
+Subproject commit 5a984706af594b8ec2ef549040139c9704554bf4
diff --git a/google-cloud-testing/google-cloud-conformance-tests/copyright-header.txt b/google-cloud-testing/google-cloud-conformance-tests/copyright-header.txt
new file mode 100644
index 000000000000..1761adb96e2d
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/copyright-header.txt
@@ -0,0 +1,15 @@
+/*
+ * Copyright 2019 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.
+ */
diff --git a/google-cloud-testing/google-cloud-conformance-tests/generate-conformance-tests.sh b/google-cloud-testing/google-cloud-conformance-tests/generate-conformance-tests.sh
new file mode 100755
index 000000000000..cbb4e3408e23
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/generate-conformance-tests.sh
@@ -0,0 +1,73 @@
+#!/bin/bash
+# Copyright 2019 Google Inc.
+#
+# 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.
+
+set -o errexit -o nounset -o pipefail
+
+function generateFirestore() {
+
+ rm generate.log 2> /dev/null || true
+
+ local javaPackage="com/google/cloud/conformance/firestore/v1"
+
+ msg "Cleaning existing generated protos"
+ rm -rf src/main/java/${javaPackage}/*
+ msg "Cleaning existing test definitions"
+ rm -rf src/main/resources/${javaPackage}/*
+ msg "Cleaning existing proto files"
+ rm -rf src/main/proto/google/cloud/conformance/firestore/v1/*
+
+ msg "Copying new proto files"
+ cp -R -t src/main/proto/ conformance-tests/firestore/v1/proto/*
+ msg "Copying new test definitions"
+ cp -R -t "src/main/resources/${javaPackage}/" conformance-tests/firestore/v1/testcase/*
+
+ msg "Generating protos"
+ mvn -Pgen-conformance-protos clean verify > generate.log 2>&1
+
+ msg "Adding copyright header to generated sources"
+ ## java classes generated from protoc do not include the copyright header
+ ## prepend it to the generated files
+ local moduleDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+ pushd target/generated-sources/protobuf/java/${javaPackage}
+ for f in $(find ./ -type f -name '*.java'); do
+ echo "Processing $f"
+ mv ${f} ${f}.tmp
+ cat ${moduleDir}/copyright-header.txt > ${f}
+ cat ${f}.tmp >> ${f}
+ rm ${f}.tmp
+ done
+ popd
+
+ ## move generated proto class(es) into the main src root
+ cp -R -t src/main/java/${javaPackage} target/generated-sources/protobuf/java/${javaPackage}/*
+
+ ## cleanup any generated files that may have not been moved over
+ mvn clean > /dev/null 2>&1
+
+ msg "Building module"
+ ## ensure building of the module still works
+ mvn clean package
+
+}
+
+function main() {
+ generateFirestore
+}
+
+function now { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n' ;}
+function msg { println "$*" >&2 ;}
+function println { printf '%s\n' "$(now) $*" ;}
+
+main
diff --git a/google-cloud-testing/google-cloud-conformance-tests/pom.xml b/google-cloud-testing/google-cloud-conformance-tests/pom.xml
new file mode 100644
index 000000000000..87975cd5701e
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/pom.xml
@@ -0,0 +1,130 @@
+
+
+ 4.0.0
+ google-cloud-conformance-tests
+
+ 0.1.0-SNAPSHOT
+ jar
+
+
+ com.google.cloud
+ google-cloud-testing
+ 0.94.1-alpha-SNAPSHOT
+
+
+
+ 3.7.1
+
+
+
+
+ junit
+ junit
+ test
+
+
+ com.google.truth
+ truth
+
+
+ com.google.api.grpc
+ proto-google-cloud-firestore-v1
+
+
+
+
+
+
+ kr.motd.maven
+ os-maven-plugin
+ 1.6.2
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+ 3.0.0
+
+
+ add-main-resource
+ generate-resources
+
+ add-resource
+
+
+
+
+ src/main/proto
+
+
+
+
+
+
+
+
+
+
+
+ gen-conformance-protos
+
+
+
+ org.xolstice.maven.plugins
+ protobuf-maven-plugin
+ 0.6.1
+
+
+ generate-main
+
+ compile
+
+ generate-sources
+
+
+ generate-test
+
+ test-compile
+
+ generate-test-sources
+
+
+
+ com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
+
+
+
+ com.coveo
+ fmt-maven-plugin
+ 2.9
+
+
+ format-main
+
+ format
+
+ process-sources
+
+
+ format-test
+
+ format
+
+ process-test-sources
+
+
+
+
+ target/generated-sources/protobuf/java
+
+
+
+
+
+
+
+
+
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/ConformanceTestLocator.java b/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/ConformanceTestLocator.java
new file mode 100644
index 000000000000..4722751b49a3
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/ConformanceTestLocator.java
@@ -0,0 +1,196 @@
+/*
+ * Copyright 2019 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.
+ */
+
+package com.google.cloud.conformance;
+
+import java.io.IOException;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.nio.file.DirectoryStream;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.ArrayList;
+import java.util.Enumeration;
+import java.util.List;
+import java.util.jar.JarEntry;
+import java.util.jar.JarFile;
+
+public final class ConformanceTestLocator {
+
+ private ConformanceTestLocator() {}
+
+ /**
+ * Given the provided {@link MatchPattern matchPattern} list resources on the classpath starting
+ * from {@link MatchPattern#getBaseResourcePath() MatchPattern.getBaseResourcePath} and for each
+ * resources resource test that it is a file and that matches according to {@link
+ * MatchPattern#matches(String) MatchPattern.matches(String)}.
+ *
+ * Resolution of resources paths will be against the current threads context class loader
+ * ({@link Thread#currentThread()}.{@link Thread#getContextClassLoader() getContextClassLoader()}
+ *
+ * @param matchPattern The {@link MatchPattern} to match against
+ * @return The list of all resources on the classpath that match the specified {@code
+ * matchPattern}
+ * @throws IOException If there is an error attempting to read a classpath resource (listing the
+ * contents of a directory or jar).
+ * @throws URISyntaxException If there is an error translating a classpath URL into a filesystem
+ * URI.
+ */
+ public static List findAllResourcePaths(final MatchPattern matchPattern)
+ throws IOException, URISyntaxException {
+ return findAllResourcePaths(matchPattern, Thread.currentThread().getContextClassLoader());
+ }
+
+ /**
+ * Given the provided {@link MatchPattern matchPattern} list resources on the classpath starting
+ * from {@link MatchPattern#getBaseResourcePath() MatchPattern.getBaseResourcePath} and for each
+ * resources resource test that it is a file and that matches according to {@link
+ * MatchPattern#matches(String) MatchPattern.matches(String)}.
+ *
+ * Resolution of resources paths will be against the parameter {@code classLoader}
+ *
+ * @param matchPattern The {@link MatchPattern} to match against
+ * @param classLoader The classLoader to scan for resources
+ * @return The list of all resources on the classpath that match the specified {@code
+ * matchPattern}
+ * @throws IOException If there is an error attempting to read a classpath resource (listing the
+ * contents of a directory or jar).
+ * @throws URISyntaxException If there is an error translating a classpath URL into a filesystem
+ * URI.
+ */
+ public static List findAllResourcePaths(
+ final MatchPattern matchPattern, ClassLoader classLoader)
+ throws IOException, URISyntaxException {
+ final List resourcePaths = new ArrayList<>();
+ final Enumeration pkgDir = classLoader.getResources(matchPattern.getBaseResourcePath());
+ while (pkgDir.hasMoreElements()) {
+ URL url = pkgDir.nextElement();
+ if (url != null) {
+ final String scheme = url.getProtocol();
+ switch (scheme) {
+ case "file":
+ final List cf = handleFileScheme(url, matchPattern);
+ resourcePaths.addAll(cf);
+ break;
+ case "jar":
+ final List cj = handleJarScheme(url, matchPattern);
+ resourcePaths.addAll(cj);
+ break;
+ default:
+ throw new IllegalStateException("Unable to scan scheme '" + scheme + "'");
+ }
+ }
+ }
+
+ return resourcePaths;
+ }
+
+ private static List handleFileScheme(final URL url, MatchPattern mp)
+ throws IOException, URISyntaxException {
+ final Path path = Paths.get(url.toURI());
+ return handleFileScheme(mp, path);
+ }
+
+ private static List handleFileScheme(final MatchPattern mp, final Path path)
+ throws IOException {
+ final List resourcePaths = new ArrayList<>();
+ try (final DirectoryStream paths = Files.newDirectoryStream(path)) {
+ for (Path p : paths) {
+ if (Files.isDirectory(p)) {
+ resourcePaths.addAll(handleFileScheme(mp, p));
+ } else {
+ final String filePath = p.normalize().toString();
+ final String resourcePath =
+ filePath.substring(filePath.indexOf(mp.getBaseResourcePath()));
+ if (mp.matches(resourcePath)) {
+ resourcePaths.add(resourcePath);
+ }
+ }
+ }
+ }
+ return resourcePaths;
+ }
+
+ private static List handleJarScheme(final URL url, MatchPattern mp) throws IOException {
+ final String urlPath = url.getPath();
+ final String jarPath = urlPath.substring(5, urlPath.indexOf("!"));
+
+ final List resourcePaths = new ArrayList<>();
+ final JarFile jarFile = new JarFile(jarPath);
+ final Enumeration jarEntries = jarFile.entries();
+ while (jarEntries.hasMoreElements()) {
+ JarEntry je = jarEntries.nextElement();
+ if (!je.isDirectory() && mp.matches(je.getName())) {
+ resourcePaths.add(je.getName());
+ }
+ }
+ return resourcePaths;
+ }
+
+ /**
+ * Factory method to create a relatively simple {@link MatchPattern}.
+ *
+ * @param baseResourcePath The non-null base path to start scanning for resources on the classpath
+ * @param suffix The non-null suffix to match found elements against for inclusion
+ * @return A new {@link MatchPattern} where classpath scanning will start from {@code
+ * baseResourcePath} walking the classpath and matching to elements that end in {@code
+ * suffix}. Suffix matching is a simple match (non-regex).
+ */
+ public static MatchPattern newMatchPattern(final String baseResourcePath, final String suffix) {
+ if (baseResourcePath == null) {
+ throw new IllegalArgumentException("baseResourcePath must be non-null");
+ }
+ if (suffix == null || suffix.isEmpty()) {
+ throw new IllegalArgumentException("suffix must be non-null and non-empty");
+ }
+ // when listing the resources from the classpath, a leading slash will result in resources
+ // not being found. If the baseResourcePath passed in here has a leading slash, detect and
+ // remove it.
+ int begin = 0;
+ if (baseResourcePath.startsWith("/")) {
+ begin = 1;
+ }
+ return new SimpleMatchPattern(baseResourcePath.substring(begin), suffix);
+ }
+
+ public interface MatchPattern {
+ String getBaseResourcePath();
+
+ boolean matches(String resourcePath);
+ }
+
+ private static final class SimpleMatchPattern implements MatchPattern {
+ private final String baseResourcePath;
+ private final String suffix;
+
+ SimpleMatchPattern(final String baseResourcePath, final String suffix) {
+ // parameter construction validation is performed in the factory method #newMatchPattern
+ this.baseResourcePath = baseResourcePath;
+ this.suffix = suffix;
+ }
+
+ @Override
+ public String getBaseResourcePath() {
+ return baseResourcePath;
+ }
+
+ @Override
+ public boolean matches(final String resourcePath) {
+ return resourcePath.startsWith(baseResourcePath) && resourcePath.endsWith(suffix);
+ }
+ }
+}
diff --git a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/conformance/TestDefinition.java b/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/firestore/v1/TestDefinition.java
similarity index 67%
rename from google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/conformance/TestDefinition.java
rename to google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/firestore/v1/TestDefinition.java
index c477050f468f..7bce0be4eb24 100644
--- a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/conformance/TestDefinition.java
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/firestore/v1/TestDefinition.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 Google LLC
+ * Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -13,11 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: test_definition.proto
+// source: google/cloud/conformance/firestore/v1/tests.proto
-package com.google.cloud.firestore.conformance;
+package com.google.cloud.conformance.firestore.v1;
public final class TestDefinition {
private TestDefinition() {}
@@ -30,20 +29,20 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
public interface TestSuiteOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.TestSuite)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.TestSuite)
com.google.protobuf.MessageOrBuilder {
- /** repeated .tests.Test tests = 1; */
- java.util.List getTestsList();
- /** repeated .tests.Test tests = 1; */
- com.google.cloud.firestore.conformance.TestDefinition.Test getTests(int index);
- /** repeated .tests.Test tests = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
+ java.util.List getTestsList();
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test getTests(int index);
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
int getTestsCount();
- /** repeated .tests.Test tests = 1; */
- java.util.List extends com.google.cloud.firestore.conformance.TestDefinition.TestOrBuilder>
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
+ java.util.List extends com.google.cloud.conformance.firestore.v1.TestDefinition.TestOrBuilder>
getTestsOrBuilderList();
- /** repeated .tests.Test tests = 1; */
- com.google.cloud.firestore.conformance.TestDefinition.TestOrBuilder getTestsOrBuilder(
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestOrBuilder getTestsOrBuilder(
int index);
}
/**
@@ -53,11 +52,11 @@ com.google.cloud.firestore.conformance.TestDefinition.TestOrBuilder getTestsOrBu
* A collection of tests.
*
*
- * Protobuf type {@code tests.TestSuite}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.TestSuite}
*/
public static final class TestSuite extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.TestSuite)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.TestSuite)
TestSuiteOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestSuite.newBuilder() to construct.
@@ -93,27 +92,27 @@ private TestSuite(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
tests_ =
new java.util.ArrayList<
- com.google.cloud.firestore.conformance.TestDefinition.Test>();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test>();
mutable_bitField0_ |= 0x00000001;
}
tests_.add(
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.Test.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test.parser(),
extensionRegistry));
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -121,7 +120,7 @@ private TestSuite(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
tests_ = java.util.Collections.unmodifiableList(tests_);
}
this.unknownFields = unknownFields.build();
@@ -130,48 +129,50 @@ private TestSuite(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_TestSuite_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_TestSuite_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_TestSuite_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_TestSuite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.TestSuite.class,
- com.google.cloud.firestore.conformance.TestDefinition.TestSuite.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite.Builder.class);
}
public static final int TESTS_FIELD_NUMBER = 1;
- private java.util.List tests_;
- /** repeated .tests.Test tests = 1; */
- public java.util.List
+ private java.util.List tests_;
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
+ public java.util.List
getTestsList() {
return tests_;
}
- /** repeated .tests.Test tests = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
public java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.TestOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.TestOrBuilder>
getTestsOrBuilderList() {
return tests_;
}
- /** repeated .tests.Test tests = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
public int getTestsCount() {
return tests_.size();
}
- /** repeated .tests.Test tests = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.Test getTests(int index) {
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Test getTests(int index) {
return tests_.get(index);
}
- /** repeated .tests.Test tests = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.TestOrBuilder getTestsOrBuilder(
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.TestOrBuilder getTestsOrBuilder(
int index) {
return tests_.get(index);
}
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -181,6 +182,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < tests_.size(); i++) {
output.writeMessage(1, tests_.get(i));
@@ -188,6 +190,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -206,16 +209,15 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.TestSuite)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.TestSuite other =
- (com.google.cloud.firestore.conformance.TestDefinition.TestSuite) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite) obj;
- boolean result = true;
- result = result && getTestsList().equals(other.getTestsList());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (!getTestsList().equals(other.getTestsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -234,59 +236,59 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.TestSuite parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.TestSuite parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.TestSuite parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.TestSuite parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.TestSuite parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.TestSuite parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.TestSuite parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.TestSuite parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.TestSuite
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.TestSuite
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -294,12 +296,12 @@ public static com.google.cloud.firestore.conformance.TestDefinition.TestSuite pa
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.TestSuite parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.TestSuite parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -307,6 +309,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.TestSuite pa
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -316,10 +319,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.TestSuite prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -337,29 +341,30 @@ protected Builder newBuilderForType(
* A collection of tests.
*
*
- * Protobuf type {@code tests.TestSuite}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.TestSuite}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.TestSuite)
- com.google.cloud.firestore.conformance.TestDefinition.TestSuiteOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.TestSuite)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuiteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_TestSuite_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_TestSuite_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_TestSuite_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_TestSuite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.TestSuite.class,
- com.google.cloud.firestore.conformance.TestDefinition.TestSuite.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite.Builder.class);
}
// Construct using
- // com.google.cloud.firestore.conformance.TestDefinition.TestSuite.newBuilder()
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -375,6 +380,7 @@ private void maybeForceBuilderInitialization() {
}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
if (testsBuilder_ == null) {
@@ -386,30 +392,35 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_TestSuite_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_TestSuite_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.TestSuite
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.TestSuite.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite
+ .getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.TestSuite build() {
- com.google.cloud.firestore.conformance.TestDefinition.TestSuite result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.TestSuite buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.TestSuite result =
- new com.google.cloud.firestore.conformance.TestDefinition.TestSuite(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite(this);
int from_bitField0_ = bitField0_;
if (testsBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
tests_ = java.util.Collections.unmodifiableList(tests_);
bitField0_ = (bitField0_ & ~0x00000001);
}
@@ -421,38 +432,46 @@ public com.google.cloud.firestore.conformance.TestDefinition.TestSuite buildPart
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.TestSuite) {
- return mergeFrom((com.google.cloud.firestore.conformance.TestDefinition.TestSuite) other);
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite) {
+ return mergeFrom(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite) other);
} else {
super.mergeFrom(other);
return this;
@@ -460,10 +479,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.firestore.conformance.TestDefinition.TestSuite other) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.TestSuite.getDefaultInstance())
- return this;
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite
+ .getDefaultInstance()) return this;
if (testsBuilder_ == null) {
if (!other.tests_.isEmpty()) {
if (tests_.isEmpty()) {
@@ -496,20 +515,22 @@ public Builder mergeFrom(
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.TestSuite parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.TestSuite)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -522,26 +543,26 @@ public Builder mergeFrom(
private int bitField0_;
- private java.util.List tests_ =
+ private java.util.List tests_ =
java.util.Collections.emptyList();
private void ensureTestsIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
tests_ =
- new java.util.ArrayList(
- tests_);
+ new java.util.ArrayList<
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test>(tests_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Test,
- com.google.cloud.firestore.conformance.TestDefinition.Test.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.TestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestOrBuilder>
testsBuilder_;
- /** repeated .tests.Test tests = 1; */
- public java.util.List
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
+ public java.util.List
getTestsList() {
if (testsBuilder_ == null) {
return java.util.Collections.unmodifiableList(tests_);
@@ -549,7 +570,7 @@ private void ensureTestsIsMutable() {
return testsBuilder_.getMessageList();
}
}
- /** repeated .tests.Test tests = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
public int getTestsCount() {
if (testsBuilder_ == null) {
return tests_.size();
@@ -557,17 +578,17 @@ public int getTestsCount() {
return testsBuilder_.getCount();
}
}
- /** repeated .tests.Test tests = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.Test getTests(int index) {
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Test getTests(int index) {
if (testsBuilder_ == null) {
return tests_.get(index);
} else {
return testsBuilder_.getMessage(index);
}
}
- /** repeated .tests.Test tests = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
public Builder setTests(
- int index, com.google.cloud.firestore.conformance.TestDefinition.Test value) {
+ int index, com.google.cloud.conformance.firestore.v1.TestDefinition.Test value) {
if (testsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -580,10 +601,10 @@ public Builder setTests(
}
return this;
}
- /** repeated .tests.Test tests = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
public Builder setTests(
int index,
- com.google.cloud.firestore.conformance.TestDefinition.Test.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test.Builder builderForValue) {
if (testsBuilder_ == null) {
ensureTestsIsMutable();
tests_.set(index, builderForValue.build());
@@ -593,8 +614,8 @@ public Builder setTests(
}
return this;
}
- /** repeated .tests.Test tests = 1; */
- public Builder addTests(com.google.cloud.firestore.conformance.TestDefinition.Test value) {
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
+ public Builder addTests(com.google.cloud.conformance.firestore.v1.TestDefinition.Test value) {
if (testsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -607,9 +628,9 @@ public Builder addTests(com.google.cloud.firestore.conformance.TestDefinition.Te
}
return this;
}
- /** repeated .tests.Test tests = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
public Builder addTests(
- int index, com.google.cloud.firestore.conformance.TestDefinition.Test value) {
+ int index, com.google.cloud.conformance.firestore.v1.TestDefinition.Test value) {
if (testsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -622,9 +643,9 @@ public Builder addTests(
}
return this;
}
- /** repeated .tests.Test tests = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
public Builder addTests(
- com.google.cloud.firestore.conformance.TestDefinition.Test.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test.Builder builderForValue) {
if (testsBuilder_ == null) {
ensureTestsIsMutable();
tests_.add(builderForValue.build());
@@ -634,10 +655,10 @@ public Builder addTests(
}
return this;
}
- /** repeated .tests.Test tests = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
public Builder addTests(
int index,
- com.google.cloud.firestore.conformance.TestDefinition.Test.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test.Builder builderForValue) {
if (testsBuilder_ == null) {
ensureTestsIsMutable();
tests_.add(index, builderForValue.build());
@@ -647,9 +668,10 @@ public Builder addTests(
}
return this;
}
- /** repeated .tests.Test tests = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
public Builder addAllTests(
- java.lang.Iterable extends com.google.cloud.firestore.conformance.TestDefinition.Test>
+ java.lang.Iterable<
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.Test>
values) {
if (testsBuilder_ == null) {
ensureTestsIsMutable();
@@ -660,7 +682,7 @@ public Builder addAllTests(
}
return this;
}
- /** repeated .tests.Test tests = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
public Builder clearTests() {
if (testsBuilder_ == null) {
tests_ = java.util.Collections.emptyList();
@@ -671,7 +693,7 @@ public Builder clearTests() {
}
return this;
}
- /** repeated .tests.Test tests = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
public Builder removeTests(int index) {
if (testsBuilder_ == null) {
ensureTestsIsMutable();
@@ -682,23 +704,23 @@ public Builder removeTests(int index) {
}
return this;
}
- /** repeated .tests.Test tests = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.Test.Builder getTestsBuilder(
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Test.Builder getTestsBuilder(
int index) {
return getTestsFieldBuilder().getBuilder(index);
}
- /** repeated .tests.Test tests = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.TestOrBuilder getTestsOrBuilder(
- int index) {
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.TestOrBuilder
+ getTestsOrBuilder(int index) {
if (testsBuilder_ == null) {
return tests_.get(index);
} else {
return testsBuilder_.getMessageOrBuilder(index);
}
}
- /** repeated .tests.Test tests = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
public java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.TestOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.TestOrBuilder>
getTestsOrBuilderList() {
if (testsBuilder_ != null) {
return testsBuilder_.getMessageOrBuilderList();
@@ -706,74 +728,75 @@ public com.google.cloud.firestore.conformance.TestDefinition.TestOrBuilder getTe
return java.util.Collections.unmodifiableList(tests_);
}
}
- /** repeated .tests.Test tests = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.Test.Builder addTestsBuilder() {
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Test.Builder
+ addTestsBuilder() {
return getTestsFieldBuilder()
.addBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.Test.getDefaultInstance());
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test.getDefaultInstance());
}
- /** repeated .tests.Test tests = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.Test.Builder addTestsBuilder(
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Test.Builder addTestsBuilder(
int index) {
return getTestsFieldBuilder()
.addBuilder(
index,
- com.google.cloud.firestore.conformance.TestDefinition.Test.getDefaultInstance());
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test.getDefaultInstance());
}
- /** repeated .tests.Test tests = 1; */
- public java.util.List
+ /** repeated .google.cloud.conformance.firestore.v1.Test tests = 1; */
+ public java.util.List
getTestsBuilderList() {
return getTestsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Test,
- com.google.cloud.firestore.conformance.TestDefinition.Test.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.TestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestOrBuilder>
getTestsFieldBuilder() {
if (testsBuilder_ == null) {
testsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Test,
- com.google.cloud.firestore.conformance.TestDefinition.Test.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.TestOrBuilder>(
- tests_,
- ((bitField0_ & 0x00000001) == 0x00000001),
- getParentForChildren(),
- isClean());
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestOrBuilder>(
+ tests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
tests_ = null;
}
return testsBuilder_;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.TestSuite)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.TestSuite)
}
- // @@protoc_insertion_point(class_scope:tests.TestSuite)
- private static final com.google.cloud.firestore.conformance.TestDefinition.TestSuite
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.TestSuite)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.TestSuite();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.TestSuite
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public TestSuite parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -791,7 +814,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.TestSuite
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.TestSuite
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -799,7 +823,7 @@ public com.google.protobuf.Parser getParserForType() {
public interface TestOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.Test)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.Test)
com.google.protobuf.MessageOrBuilder {
/**
@@ -823,64 +847,89 @@ public interface TestOrBuilder
*/
com.google.protobuf.ByteString getDescriptionBytes();
- /** .tests.GetTest get = 2; */
+ /**
+ *
+ *
+ *
+ * a comment describing the behavior being tested
+ *
+ *
+ * string comment = 10;
+ */
+ java.lang.String getComment();
+ /**
+ *
+ *
+ *
+ * a comment describing the behavior being tested
+ *
+ *
+ * string comment = 10;
+ */
+ com.google.protobuf.ByteString getCommentBytes();
+
+ /** .google.cloud.conformance.firestore.v1.GetTest get = 2; */
boolean hasGet();
- /** .tests.GetTest get = 2; */
- com.google.cloud.firestore.conformance.TestDefinition.GetTest getGet();
- /** .tests.GetTest get = 2; */
- com.google.cloud.firestore.conformance.TestDefinition.GetTestOrBuilder getGetOrBuilder();
+ /** .google.cloud.conformance.firestore.v1.GetTest get = 2; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest getGet();
+ /** .google.cloud.conformance.firestore.v1.GetTest get = 2; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTestOrBuilder getGetOrBuilder();
- /** .tests.CreateTest create = 3; */
+ /** .google.cloud.conformance.firestore.v1.CreateTest create = 3; */
boolean hasCreate();
- /** .tests.CreateTest create = 3; */
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest getCreate();
- /** .tests.CreateTest create = 3; */
- com.google.cloud.firestore.conformance.TestDefinition.CreateTestOrBuilder getCreateOrBuilder();
+ /** .google.cloud.conformance.firestore.v1.CreateTest create = 3; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest getCreate();
+ /** .google.cloud.conformance.firestore.v1.CreateTest create = 3; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTestOrBuilder
+ getCreateOrBuilder();
- /** .tests.SetTest set = 4; */
+ /** .google.cloud.conformance.firestore.v1.SetTest set = 4; */
boolean hasSet();
- /** .tests.SetTest set = 4; */
- com.google.cloud.firestore.conformance.TestDefinition.SetTest getSet();
- /** .tests.SetTest set = 4; */
- com.google.cloud.firestore.conformance.TestDefinition.SetTestOrBuilder getSetOrBuilder();
+ /** .google.cloud.conformance.firestore.v1.SetTest set = 4; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest getSet();
+ /** .google.cloud.conformance.firestore.v1.SetTest set = 4; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTestOrBuilder getSetOrBuilder();
- /** .tests.UpdateTest update = 5; */
+ /** .google.cloud.conformance.firestore.v1.UpdateTest update = 5; */
boolean hasUpdate();
- /** .tests.UpdateTest update = 5; */
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest getUpdate();
- /** .tests.UpdateTest update = 5; */
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTestOrBuilder getUpdateOrBuilder();
+ /** .google.cloud.conformance.firestore.v1.UpdateTest update = 5; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest getUpdate();
+ /** .google.cloud.conformance.firestore.v1.UpdateTest update = 5; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTestOrBuilder
+ getUpdateOrBuilder();
- /** .tests.UpdatePathsTest update_paths = 6; */
+ /** .google.cloud.conformance.firestore.v1.UpdatePathsTest update_paths = 6; */
boolean hasUpdatePaths();
- /** .tests.UpdatePathsTest update_paths = 6; */
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest getUpdatePaths();
- /** .tests.UpdatePathsTest update_paths = 6; */
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.UpdatePathsTest update_paths = 6; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest getUpdatePaths();
+ /** .google.cloud.conformance.firestore.v1.UpdatePathsTest update_paths = 6; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTestOrBuilder
getUpdatePathsOrBuilder();
- /** .tests.DeleteTest delete = 7; */
+ /** .google.cloud.conformance.firestore.v1.DeleteTest delete = 7; */
boolean hasDelete();
- /** .tests.DeleteTest delete = 7; */
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest getDelete();
- /** .tests.DeleteTest delete = 7; */
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTestOrBuilder getDeleteOrBuilder();
+ /** .google.cloud.conformance.firestore.v1.DeleteTest delete = 7; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest getDelete();
+ /** .google.cloud.conformance.firestore.v1.DeleteTest delete = 7; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTestOrBuilder
+ getDeleteOrBuilder();
- /** .tests.QueryTest query = 8; */
+ /** .google.cloud.conformance.firestore.v1.QueryTest query = 8; */
boolean hasQuery();
- /** .tests.QueryTest query = 8; */
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest getQuery();
- /** .tests.QueryTest query = 8; */
- com.google.cloud.firestore.conformance.TestDefinition.QueryTestOrBuilder getQueryOrBuilder();
+ /** .google.cloud.conformance.firestore.v1.QueryTest query = 8; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest getQuery();
+ /** .google.cloud.conformance.firestore.v1.QueryTest query = 8; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTestOrBuilder getQueryOrBuilder();
- /** .tests.ListenTest listen = 9; */
+ /** .google.cloud.conformance.firestore.v1.ListenTest listen = 9; */
boolean hasListen();
- /** .tests.ListenTest listen = 9; */
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest getListen();
- /** .tests.ListenTest listen = 9; */
- com.google.cloud.firestore.conformance.TestDefinition.ListenTestOrBuilder getListenOrBuilder();
+ /** .google.cloud.conformance.firestore.v1.ListenTest listen = 9; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest getListen();
+ /** .google.cloud.conformance.firestore.v1.ListenTest listen = 9; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTestOrBuilder
+ getListenOrBuilder();
- public com.google.cloud.firestore.conformance.TestDefinition.Test.TestCase getTestCase();
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Test.TestCase getTestCase();
}
/**
*
@@ -889,11 +938,11 @@ public interface TestOrBuilder
* A Test describes a single client method call and its expected result.
*
*
- * Protobuf type {@code tests.Test}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.Test}
*/
public static final class Test extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.Test)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.Test)
TestOrBuilder {
private static final long serialVersionUID = 0L;
// Use Test.newBuilder() to construct.
@@ -903,6 +952,7 @@ private Test(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private Test() {
description_ = "";
+ comment_ = "";
}
@java.lang.Override
@@ -929,13 +979,6 @@ private Test(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
@@ -945,20 +988,20 @@ private Test(
}
case 18:
{
- com.google.cloud.firestore.conformance.TestDefinition.GetTest.Builder subBuilder =
- null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest.Builder
+ subBuilder = null;
if (testCase_ == 2) {
subBuilder =
- ((com.google.cloud.firestore.conformance.TestDefinition.GetTest) test_)
+ ((com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest) test_)
.toBuilder();
}
test_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.GetTest.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.GetTest) test_);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest) test_);
test_ = subBuilder.buildPartial();
}
testCase_ = 2;
@@ -966,20 +1009,21 @@ private Test(
}
case 26:
{
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest.Builder
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest.Builder
subBuilder = null;
if (testCase_ == 3) {
subBuilder =
- ((com.google.cloud.firestore.conformance.TestDefinition.CreateTest) test_)
+ ((com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest) test_)
.toBuilder();
}
test_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
+ .parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.CreateTest) test_);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest) test_);
test_ = subBuilder.buildPartial();
}
testCase_ = 3;
@@ -987,20 +1031,20 @@ private Test(
}
case 34:
{
- com.google.cloud.firestore.conformance.TestDefinition.SetTest.Builder subBuilder =
- null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest.Builder
+ subBuilder = null;
if (testCase_ == 4) {
subBuilder =
- ((com.google.cloud.firestore.conformance.TestDefinition.SetTest) test_)
+ ((com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest) test_)
.toBuilder();
}
test_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.SetTest.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.SetTest) test_);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest) test_);
test_ = subBuilder.buildPartial();
}
testCase_ = 4;
@@ -1008,20 +1052,21 @@ private Test(
}
case 42:
{
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest.Builder
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest.Builder
subBuilder = null;
if (testCase_ == 5) {
subBuilder =
- ((com.google.cloud.firestore.conformance.TestDefinition.UpdateTest) test_)
+ ((com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest) test_)
.toBuilder();
}
test_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
+ .parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.UpdateTest) test_);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest) test_);
test_ = subBuilder.buildPartial();
}
testCase_ = 5;
@@ -1029,22 +1074,22 @@ private Test(
}
case 50:
{
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest.Builder
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest.Builder
subBuilder = null;
if (testCase_ == 6) {
subBuilder =
- ((com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest)
+ ((com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest)
test_)
.toBuilder();
}
test_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest)
test_);
test_ = subBuilder.buildPartial();
}
@@ -1053,20 +1098,21 @@ private Test(
}
case 58:
{
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest.Builder
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest.Builder
subBuilder = null;
if (testCase_ == 7) {
subBuilder =
- ((com.google.cloud.firestore.conformance.TestDefinition.DeleteTest) test_)
+ ((com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest) test_)
.toBuilder();
}
test_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
+ .parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.DeleteTest) test_);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest) test_);
test_ = subBuilder.buildPartial();
}
testCase_ = 7;
@@ -1074,20 +1120,20 @@ private Test(
}
case 66:
{
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest.Builder subBuilder =
- null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest.Builder
+ subBuilder = null;
if (testCase_ == 8) {
subBuilder =
- ((com.google.cloud.firestore.conformance.TestDefinition.QueryTest) test_)
+ ((com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest) test_)
.toBuilder();
}
test_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.QueryTest) test_);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest) test_);
test_ = subBuilder.buildPartial();
}
testCase_ = 8;
@@ -1095,25 +1141,40 @@ private Test(
}
case 74:
{
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest.Builder
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest.Builder
subBuilder = null;
if (testCase_ == 9) {
subBuilder =
- ((com.google.cloud.firestore.conformance.TestDefinition.ListenTest) test_)
+ ((com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest) test_)
.toBuilder();
}
test_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
+ .parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.ListenTest) test_);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest) test_);
test_ = subBuilder.buildPartial();
}
testCase_ = 9;
break;
}
+ case 82:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ comment_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1127,17 +1188,18 @@ private Test(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Test_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Test_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Test_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Test_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.Test.class,
- com.google.cloud.firestore.conformance.TestDefinition.Test.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test.Builder.class);
}
private int testCase_ = 0;
@@ -1241,178 +1303,233 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
}
}
+ public static final int COMMENT_FIELD_NUMBER = 10;
+ private volatile java.lang.Object comment_;
+ /**
+ *
+ *
+ *
+ * a comment describing the behavior being tested
+ *
+ *
+ * string comment = 10;
+ */
+ public java.lang.String getComment() {
+ java.lang.Object ref = comment_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ comment_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * a comment describing the behavior being tested
+ *
+ *
+ * string comment = 10;
+ */
+ public com.google.protobuf.ByteString getCommentBytes() {
+ java.lang.Object ref = comment_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ comment_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int GET_FIELD_NUMBER = 2;
- /** .tests.GetTest get = 2; */
+ /** .google.cloud.conformance.firestore.v1.GetTest get = 2; */
public boolean hasGet() {
return testCase_ == 2;
}
- /** .tests.GetTest get = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.GetTest getGet() {
+ /** .google.cloud.conformance.firestore.v1.GetTest get = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest getGet() {
if (testCase_ == 2) {
- return (com.google.cloud.firestore.conformance.TestDefinition.GetTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.GetTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest.getDefaultInstance();
}
- /** .tests.GetTest get = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.GetTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.GetTest get = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.GetTestOrBuilder
getGetOrBuilder() {
if (testCase_ == 2) {
- return (com.google.cloud.firestore.conformance.TestDefinition.GetTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.GetTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest.getDefaultInstance();
}
public static final int CREATE_FIELD_NUMBER = 3;
- /** .tests.CreateTest create = 3; */
+ /** .google.cloud.conformance.firestore.v1.CreateTest create = 3; */
public boolean hasCreate() {
return testCase_ == 3;
}
- /** .tests.CreateTest create = 3; */
- public com.google.cloud.firestore.conformance.TestDefinition.CreateTest getCreate() {
+ /** .google.cloud.conformance.firestore.v1.CreateTest create = 3; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest getCreate() {
if (testCase_ == 3) {
- return (com.google.cloud.firestore.conformance.TestDefinition.CreateTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.CreateTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
+ .getDefaultInstance();
}
- /** .tests.CreateTest create = 3; */
- public com.google.cloud.firestore.conformance.TestDefinition.CreateTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.CreateTest create = 3; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTestOrBuilder
getCreateOrBuilder() {
if (testCase_ == 3) {
- return (com.google.cloud.firestore.conformance.TestDefinition.CreateTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.CreateTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
+ .getDefaultInstance();
}
public static final int SET_FIELD_NUMBER = 4;
- /** .tests.SetTest set = 4; */
+ /** .google.cloud.conformance.firestore.v1.SetTest set = 4; */
public boolean hasSet() {
return testCase_ == 4;
}
- /** .tests.SetTest set = 4; */
- public com.google.cloud.firestore.conformance.TestDefinition.SetTest getSet() {
+ /** .google.cloud.conformance.firestore.v1.SetTest set = 4; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest getSet() {
if (testCase_ == 4) {
- return (com.google.cloud.firestore.conformance.TestDefinition.SetTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.SetTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest.getDefaultInstance();
}
- /** .tests.SetTest set = 4; */
- public com.google.cloud.firestore.conformance.TestDefinition.SetTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.SetTest set = 4; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetTestOrBuilder
getSetOrBuilder() {
if (testCase_ == 4) {
- return (com.google.cloud.firestore.conformance.TestDefinition.SetTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.SetTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest.getDefaultInstance();
}
public static final int UPDATE_FIELD_NUMBER = 5;
- /** .tests.UpdateTest update = 5; */
+ /** .google.cloud.conformance.firestore.v1.UpdateTest update = 5; */
public boolean hasUpdate() {
return testCase_ == 5;
}
- /** .tests.UpdateTest update = 5; */
- public com.google.cloud.firestore.conformance.TestDefinition.UpdateTest getUpdate() {
+ /** .google.cloud.conformance.firestore.v1.UpdateTest update = 5; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest getUpdate() {
if (testCase_ == 5) {
- return (com.google.cloud.firestore.conformance.TestDefinition.UpdateTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.UpdateTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
+ .getDefaultInstance();
}
- /** .tests.UpdateTest update = 5; */
- public com.google.cloud.firestore.conformance.TestDefinition.UpdateTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.UpdateTest update = 5; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTestOrBuilder
getUpdateOrBuilder() {
if (testCase_ == 5) {
- return (com.google.cloud.firestore.conformance.TestDefinition.UpdateTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.UpdateTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
+ .getDefaultInstance();
}
public static final int UPDATE_PATHS_FIELD_NUMBER = 6;
- /** .tests.UpdatePathsTest update_paths = 6; */
+ /** .google.cloud.conformance.firestore.v1.UpdatePathsTest update_paths = 6; */
public boolean hasUpdatePaths() {
return testCase_ == 6;
}
- /** .tests.UpdatePathsTest update_paths = 6; */
- public com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest getUpdatePaths() {
+ /** .google.cloud.conformance.firestore.v1.UpdatePathsTest update_paths = 6; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
+ getUpdatePaths() {
if (testCase_ == 6) {
- return (com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
.getDefaultInstance();
}
- /** .tests.UpdatePathsTest update_paths = 6; */
- public com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.UpdatePathsTest update_paths = 6; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTestOrBuilder
getUpdatePathsOrBuilder() {
if (testCase_ == 6) {
- return (com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
.getDefaultInstance();
}
public static final int DELETE_FIELD_NUMBER = 7;
- /** .tests.DeleteTest delete = 7; */
+ /** .google.cloud.conformance.firestore.v1.DeleteTest delete = 7; */
public boolean hasDelete() {
return testCase_ == 7;
}
- /** .tests.DeleteTest delete = 7; */
- public com.google.cloud.firestore.conformance.TestDefinition.DeleteTest getDelete() {
+ /** .google.cloud.conformance.firestore.v1.DeleteTest delete = 7; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest getDelete() {
if (testCase_ == 7) {
- return (com.google.cloud.firestore.conformance.TestDefinition.DeleteTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.DeleteTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
+ .getDefaultInstance();
}
- /** .tests.DeleteTest delete = 7; */
- public com.google.cloud.firestore.conformance.TestDefinition.DeleteTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.DeleteTest delete = 7; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTestOrBuilder
getDeleteOrBuilder() {
if (testCase_ == 7) {
- return (com.google.cloud.firestore.conformance.TestDefinition.DeleteTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.DeleteTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
+ .getDefaultInstance();
}
public static final int QUERY_FIELD_NUMBER = 8;
- /** .tests.QueryTest query = 8; */
+ /** .google.cloud.conformance.firestore.v1.QueryTest query = 8; */
public boolean hasQuery() {
return testCase_ == 8;
}
- /** .tests.QueryTest query = 8; */
- public com.google.cloud.firestore.conformance.TestDefinition.QueryTest getQuery() {
+ /** .google.cloud.conformance.firestore.v1.QueryTest query = 8; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest getQuery() {
if (testCase_ == 8) {
- return (com.google.cloud.firestore.conformance.TestDefinition.QueryTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.QueryTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest
+ .getDefaultInstance();
}
- /** .tests.QueryTest query = 8; */
- public com.google.cloud.firestore.conformance.TestDefinition.QueryTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.QueryTest query = 8; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTestOrBuilder
getQueryOrBuilder() {
if (testCase_ == 8) {
- return (com.google.cloud.firestore.conformance.TestDefinition.QueryTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.QueryTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest
+ .getDefaultInstance();
}
public static final int LISTEN_FIELD_NUMBER = 9;
- /** .tests.ListenTest listen = 9; */
+ /** .google.cloud.conformance.firestore.v1.ListenTest listen = 9; */
public boolean hasListen() {
return testCase_ == 9;
}
- /** .tests.ListenTest listen = 9; */
- public com.google.cloud.firestore.conformance.TestDefinition.ListenTest getListen() {
+ /** .google.cloud.conformance.firestore.v1.ListenTest listen = 9; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest getListen() {
if (testCase_ == 9) {
- return (com.google.cloud.firestore.conformance.TestDefinition.ListenTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.ListenTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
+ .getDefaultInstance();
}
- /** .tests.ListenTest listen = 9; */
- public com.google.cloud.firestore.conformance.TestDefinition.ListenTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.ListenTest listen = 9; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTestOrBuilder
getListenOrBuilder() {
if (testCase_ == 9) {
- return (com.google.cloud.firestore.conformance.TestDefinition.ListenTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.ListenTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
+ .getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -1422,45 +1539,50 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_);
}
if (testCase_ == 2) {
output.writeMessage(
- 2, (com.google.cloud.firestore.conformance.TestDefinition.GetTest) test_);
+ 2, (com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest) test_);
}
if (testCase_ == 3) {
output.writeMessage(
- 3, (com.google.cloud.firestore.conformance.TestDefinition.CreateTest) test_);
+ 3, (com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest) test_);
}
if (testCase_ == 4) {
output.writeMessage(
- 4, (com.google.cloud.firestore.conformance.TestDefinition.SetTest) test_);
+ 4, (com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest) test_);
}
if (testCase_ == 5) {
output.writeMessage(
- 5, (com.google.cloud.firestore.conformance.TestDefinition.UpdateTest) test_);
+ 5, (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest) test_);
}
if (testCase_ == 6) {
output.writeMessage(
- 6, (com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest) test_);
+ 6, (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest) test_);
}
if (testCase_ == 7) {
output.writeMessage(
- 7, (com.google.cloud.firestore.conformance.TestDefinition.DeleteTest) test_);
+ 7, (com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest) test_);
}
if (testCase_ == 8) {
output.writeMessage(
- 8, (com.google.cloud.firestore.conformance.TestDefinition.QueryTest) test_);
+ 8, (com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest) test_);
}
if (testCase_ == 9) {
output.writeMessage(
- 9, (com.google.cloud.firestore.conformance.TestDefinition.ListenTest) test_);
+ 9, (com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest) test_);
+ }
+ if (!getCommentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, comment_);
}
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -1472,42 +1594,46 @@ public int getSerializedSize() {
if (testCase_ == 2) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
- 2, (com.google.cloud.firestore.conformance.TestDefinition.GetTest) test_);
+ 2, (com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest) test_);
}
if (testCase_ == 3) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
- 3, (com.google.cloud.firestore.conformance.TestDefinition.CreateTest) test_);
+ 3, (com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest) test_);
}
if (testCase_ == 4) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
- 4, (com.google.cloud.firestore.conformance.TestDefinition.SetTest) test_);
+ 4, (com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest) test_);
}
if (testCase_ == 5) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
- 5, (com.google.cloud.firestore.conformance.TestDefinition.UpdateTest) test_);
+ 5, (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest) test_);
}
if (testCase_ == 6) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
- 6, (com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest) test_);
+ 6,
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest) test_);
}
if (testCase_ == 7) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
- 7, (com.google.cloud.firestore.conformance.TestDefinition.DeleteTest) test_);
+ 7, (com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest) test_);
}
if (testCase_ == 8) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
- 8, (com.google.cloud.firestore.conformance.TestDefinition.QueryTest) test_);
+ 8, (com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest) test_);
}
if (testCase_ == 9) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
- 9, (com.google.cloud.firestore.conformance.TestDefinition.ListenTest) test_);
+ 9, (com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest) test_);
+ }
+ if (!getCommentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, comment_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -1519,46 +1645,45 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.Test)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.Test)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.Test other =
- (com.google.cloud.firestore.conformance.TestDefinition.Test) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Test) obj;
- boolean result = true;
- result = result && getDescription().equals(other.getDescription());
- result = result && getTestCase().equals(other.getTestCase());
- if (!result) return false;
+ if (!getDescription().equals(other.getDescription())) return false;
+ if (!getComment().equals(other.getComment())) return false;
+ if (!getTestCase().equals(other.getTestCase())) return false;
switch (testCase_) {
case 2:
- result = result && getGet().equals(other.getGet());
+ if (!getGet().equals(other.getGet())) return false;
break;
case 3:
- result = result && getCreate().equals(other.getCreate());
+ if (!getCreate().equals(other.getCreate())) return false;
break;
case 4:
- result = result && getSet().equals(other.getSet());
+ if (!getSet().equals(other.getSet())) return false;
break;
case 5:
- result = result && getUpdate().equals(other.getUpdate());
+ if (!getUpdate().equals(other.getUpdate())) return false;
break;
case 6:
- result = result && getUpdatePaths().equals(other.getUpdatePaths());
+ if (!getUpdatePaths().equals(other.getUpdatePaths())) return false;
break;
case 7:
- result = result && getDelete().equals(other.getDelete());
+ if (!getDelete().equals(other.getDelete())) return false;
break;
case 8:
- result = result && getQuery().equals(other.getQuery());
+ if (!getQuery().equals(other.getQuery())) return false;
break;
case 9:
- result = result && getListen().equals(other.getListen());
+ if (!getListen().equals(other.getListen())) return false;
break;
case 0:
default:
}
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -1570,6 +1695,8 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
+ hash = (37 * hash) + COMMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getComment().hashCode();
switch (testCase_) {
case 2:
hash = (37 * hash) + GET_FIELD_NUMBER;
@@ -1611,71 +1738,71 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Test parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Test parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Test parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Test parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Test parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Test parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Test parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Test parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Test parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Test parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Test parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Test parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Test parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Test parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Test parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Test parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Test parseDelimitedFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Test parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Test parseDelimitedFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Test parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Test parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Test parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Test parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Test parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -1683,6 +1810,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.Test parseFr
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -1692,10 +1820,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.Test prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -1713,28 +1842,29 @@ protected Builder newBuilderForType(
* A Test describes a single client method call and its expected result.
*
*
- * Protobuf type {@code tests.Test}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.Test}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.Test)
- com.google.cloud.firestore.conformance.TestDefinition.TestOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.Test)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.TestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Test_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Test_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Test_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Test_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.Test.class,
- com.google.cloud.firestore.conformance.TestDefinition.Test.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test.Builder.class);
}
- // Construct using com.google.cloud.firestore.conformance.TestDefinition.Test.newBuilder()
+ // Construct using com.google.cloud.conformance.firestore.v1.TestDefinition.Test.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -1748,37 +1878,45 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
description_ = "";
+ comment_ = "";
+
testCase_ = 0;
test_ = null;
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Test_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Test_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Test
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Test
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.Test.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Test.getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.Test build() {
- com.google.cloud.firestore.conformance.TestDefinition.Test result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Test build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Test buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.Test result =
- new com.google.cloud.firestore.conformance.TestDefinition.Test(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Test buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.Test(this);
result.description_ = description_;
+ result.comment_ = comment_;
if (testCase_ == 2) {
if (getBuilder_ == null) {
result.test_ = test_;
@@ -1840,52 +1978,64 @@ public com.google.cloud.firestore.conformance.TestDefinition.Test buildPartial()
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.Test) {
- return mergeFrom((com.google.cloud.firestore.conformance.TestDefinition.Test) other);
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.Test) {
+ return mergeFrom((com.google.cloud.conformance.firestore.v1.TestDefinition.Test) other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(com.google.cloud.firestore.conformance.TestDefinition.Test other) {
+ public Builder mergeFrom(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.Test.getDefaultInstance())
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.Test.getDefaultInstance())
return this;
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
+ if (!other.getComment().isEmpty()) {
+ comment_ = other.comment_;
+ onChanged();
+ }
switch (other.getTestCase()) {
case GET:
{
@@ -1937,20 +2087,23 @@ public Builder mergeFrom(com.google.cloud.firestore.conformance.TestDefinition.T
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.Test parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Test parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.Test) e.getUnfinishedMessage();
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Test)
+ e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@@ -2068,31 +2221,128 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object comment_ = "";
+ /**
+ *
+ *
+ *
+ * a comment describing the behavior being tested
+ *
+ *
+ * string comment = 10;
+ */
+ public java.lang.String getComment() {
+ java.lang.Object ref = comment_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ comment_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * a comment describing the behavior being tested
+ *
+ *
+ * string comment = 10;
+ */
+ public com.google.protobuf.ByteString getCommentBytes() {
+ java.lang.Object ref = comment_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ comment_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * a comment describing the behavior being tested
+ *
+ *
+ * string comment = 10;
+ */
+ public Builder setComment(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ comment_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * a comment describing the behavior being tested
+ *
+ *
+ * string comment = 10;
+ */
+ public Builder clearComment() {
+
+ comment_ = getDefaultInstance().getComment();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * a comment describing the behavior being tested
+ *
+ *
+ * string comment = 10;
+ */
+ public Builder setCommentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ comment_ = value;
+ onChanged();
+ return this;
+ }
+
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.GetTest,
- com.google.cloud.firestore.conformance.TestDefinition.GetTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.GetTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTestOrBuilder>
getBuilder_;
- /** .tests.GetTest get = 2; */
+ /** .google.cloud.conformance.firestore.v1.GetTest get = 2; */
public boolean hasGet() {
return testCase_ == 2;
}
- /** .tests.GetTest get = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.GetTest getGet() {
+ /** .google.cloud.conformance.firestore.v1.GetTest get = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest getGet() {
if (getBuilder_ == null) {
if (testCase_ == 2) {
- return (com.google.cloud.firestore.conformance.TestDefinition.GetTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.GetTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest
+ .getDefaultInstance();
} else {
if (testCase_ == 2) {
return getBuilder_.getMessage();
}
- return com.google.cloud.firestore.conformance.TestDefinition.GetTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest
+ .getDefaultInstance();
}
}
- /** .tests.GetTest get = 2; */
- public Builder setGet(com.google.cloud.firestore.conformance.TestDefinition.GetTest value) {
+ /** .google.cloud.conformance.firestore.v1.GetTest get = 2; */
+ public Builder setGet(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest value) {
if (getBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2105,9 +2355,10 @@ public Builder setGet(com.google.cloud.firestore.conformance.TestDefinition.GetT
testCase_ = 2;
return this;
}
- /** .tests.GetTest get = 2; */
+ /** .google.cloud.conformance.firestore.v1.GetTest get = 2; */
public Builder setGet(
- com.google.cloud.firestore.conformance.TestDefinition.GetTest.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest.Builder
+ builderForValue) {
if (getBuilder_ == null) {
test_ = builderForValue.build();
onChanged();
@@ -2117,16 +2368,17 @@ public Builder setGet(
testCase_ = 2;
return this;
}
- /** .tests.GetTest get = 2; */
- public Builder mergeGet(com.google.cloud.firestore.conformance.TestDefinition.GetTest value) {
+ /** .google.cloud.conformance.firestore.v1.GetTest get = 2; */
+ public Builder mergeGet(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest value) {
if (getBuilder_ == null) {
if (testCase_ == 2
&& test_
- != com.google.cloud.firestore.conformance.TestDefinition.GetTest
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest
.getDefaultInstance()) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.GetTest.newBuilder(
- (com.google.cloud.firestore.conformance.TestDefinition.GetTest) test_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest.newBuilder(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest) test_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -2142,7 +2394,7 @@ public Builder mergeGet(com.google.cloud.firestore.conformance.TestDefinition.Ge
testCase_ = 2;
return this;
}
- /** .tests.GetTest get = 2; */
+ /** .google.cloud.conformance.firestore.v1.GetTest get = 2; */
public Builder clearGet() {
if (getBuilder_ == null) {
if (testCase_ == 2) {
@@ -2159,39 +2411,42 @@ public Builder clearGet() {
}
return this;
}
- /** .tests.GetTest get = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.GetTest.Builder getGetBuilder() {
+ /** .google.cloud.conformance.firestore.v1.GetTest get = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest.Builder
+ getGetBuilder() {
return getGetFieldBuilder().getBuilder();
}
- /** .tests.GetTest get = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.GetTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.GetTest get = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.GetTestOrBuilder
getGetOrBuilder() {
if ((testCase_ == 2) && (getBuilder_ != null)) {
return getBuilder_.getMessageOrBuilder();
} else {
if (testCase_ == 2) {
- return (com.google.cloud.firestore.conformance.TestDefinition.GetTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.GetTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest
+ .getDefaultInstance();
}
}
- /** .tests.GetTest get = 2; */
+ /** .google.cloud.conformance.firestore.v1.GetTest get = 2; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.GetTest,
- com.google.cloud.firestore.conformance.TestDefinition.GetTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.GetTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTestOrBuilder>
getGetFieldBuilder() {
if (getBuilder_ == null) {
if (!(testCase_ == 2)) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.GetTest.getDefaultInstance();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest
+ .getDefaultInstance();
}
getBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.GetTest,
- com.google.cloud.firestore.conformance.TestDefinition.GetTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.GetTestOrBuilder>(
- (com.google.cloud.firestore.conformance.TestDefinition.GetTest) test_,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTestOrBuilder>(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest) test_,
getParentForChildren(),
isClean());
test_ = null;
@@ -2203,33 +2458,33 @@ public com.google.cloud.firestore.conformance.TestDefinition.GetTest.Builder get
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest,
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.CreateTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTestOrBuilder>
createBuilder_;
- /** .tests.CreateTest create = 3; */
+ /** .google.cloud.conformance.firestore.v1.CreateTest create = 3; */
public boolean hasCreate() {
return testCase_ == 3;
}
- /** .tests.CreateTest create = 3; */
- public com.google.cloud.firestore.conformance.TestDefinition.CreateTest getCreate() {
+ /** .google.cloud.conformance.firestore.v1.CreateTest create = 3; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest getCreate() {
if (createBuilder_ == null) {
if (testCase_ == 3) {
- return (com.google.cloud.firestore.conformance.TestDefinition.CreateTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.CreateTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
.getDefaultInstance();
} else {
if (testCase_ == 3) {
return createBuilder_.getMessage();
}
- return com.google.cloud.firestore.conformance.TestDefinition.CreateTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
.getDefaultInstance();
}
}
- /** .tests.CreateTest create = 3; */
+ /** .google.cloud.conformance.firestore.v1.CreateTest create = 3; */
public Builder setCreate(
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest value) {
if (createBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2242,9 +2497,9 @@ public Builder setCreate(
testCase_ = 3;
return this;
}
- /** .tests.CreateTest create = 3; */
+ /** .google.cloud.conformance.firestore.v1.CreateTest create = 3; */
public Builder setCreate(
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest.Builder
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest.Builder
builderForValue) {
if (createBuilder_ == null) {
test_ = builderForValue.build();
@@ -2255,17 +2510,17 @@ public Builder setCreate(
testCase_ = 3;
return this;
}
- /** .tests.CreateTest create = 3; */
+ /** .google.cloud.conformance.firestore.v1.CreateTest create = 3; */
public Builder mergeCreate(
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest value) {
if (createBuilder_ == null) {
if (testCase_ == 3
&& test_
- != com.google.cloud.firestore.conformance.TestDefinition.CreateTest
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
.getDefaultInstance()) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest.newBuilder(
- (com.google.cloud.firestore.conformance.TestDefinition.CreateTest) test_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest.newBuilder(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest) test_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -2281,7 +2536,7 @@ public Builder mergeCreate(
testCase_ = 3;
return this;
}
- /** .tests.CreateTest create = 3; */
+ /** .google.cloud.conformance.firestore.v1.CreateTest create = 3; */
public Builder clearCreate() {
if (createBuilder_ == null) {
if (testCase_ == 3) {
@@ -2298,42 +2553,42 @@ public Builder clearCreate() {
}
return this;
}
- /** .tests.CreateTest create = 3; */
- public com.google.cloud.firestore.conformance.TestDefinition.CreateTest.Builder
+ /** .google.cloud.conformance.firestore.v1.CreateTest create = 3; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest.Builder
getCreateBuilder() {
return getCreateFieldBuilder().getBuilder();
}
- /** .tests.CreateTest create = 3; */
- public com.google.cloud.firestore.conformance.TestDefinition.CreateTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.CreateTest create = 3; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTestOrBuilder
getCreateOrBuilder() {
if ((testCase_ == 3) && (createBuilder_ != null)) {
return createBuilder_.getMessageOrBuilder();
} else {
if (testCase_ == 3) {
- return (com.google.cloud.firestore.conformance.TestDefinition.CreateTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.CreateTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
.getDefaultInstance();
}
}
- /** .tests.CreateTest create = 3; */
+ /** .google.cloud.conformance.firestore.v1.CreateTest create = 3; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest,
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.CreateTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTestOrBuilder>
getCreateFieldBuilder() {
if (createBuilder_ == null) {
if (!(testCase_ == 3)) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
.getDefaultInstance();
}
createBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest,
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.CreateTestOrBuilder>(
- (com.google.cloud.firestore.conformance.TestDefinition.CreateTest) test_,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTestOrBuilder>(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest) test_,
getParentForChildren(),
isClean());
test_ = null;
@@ -2345,30 +2600,33 @@ public Builder clearCreate() {
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.SetTest,
- com.google.cloud.firestore.conformance.TestDefinition.SetTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.SetTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTestOrBuilder>
setBuilder_;
- /** .tests.SetTest set = 4; */
+ /** .google.cloud.conformance.firestore.v1.SetTest set = 4; */
public boolean hasSet() {
return testCase_ == 4;
}
- /** .tests.SetTest set = 4; */
- public com.google.cloud.firestore.conformance.TestDefinition.SetTest getSet() {
+ /** .google.cloud.conformance.firestore.v1.SetTest set = 4; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest getSet() {
if (setBuilder_ == null) {
if (testCase_ == 4) {
- return (com.google.cloud.firestore.conformance.TestDefinition.SetTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.SetTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest
+ .getDefaultInstance();
} else {
if (testCase_ == 4) {
return setBuilder_.getMessage();
}
- return com.google.cloud.firestore.conformance.TestDefinition.SetTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest
+ .getDefaultInstance();
}
}
- /** .tests.SetTest set = 4; */
- public Builder setSet(com.google.cloud.firestore.conformance.TestDefinition.SetTest value) {
+ /** .google.cloud.conformance.firestore.v1.SetTest set = 4; */
+ public Builder setSet(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest value) {
if (setBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2381,9 +2639,10 @@ public Builder setSet(com.google.cloud.firestore.conformance.TestDefinition.SetT
testCase_ = 4;
return this;
}
- /** .tests.SetTest set = 4; */
+ /** .google.cloud.conformance.firestore.v1.SetTest set = 4; */
public Builder setSet(
- com.google.cloud.firestore.conformance.TestDefinition.SetTest.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest.Builder
+ builderForValue) {
if (setBuilder_ == null) {
test_ = builderForValue.build();
onChanged();
@@ -2393,16 +2652,17 @@ public Builder setSet(
testCase_ = 4;
return this;
}
- /** .tests.SetTest set = 4; */
- public Builder mergeSet(com.google.cloud.firestore.conformance.TestDefinition.SetTest value) {
+ /** .google.cloud.conformance.firestore.v1.SetTest set = 4; */
+ public Builder mergeSet(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest value) {
if (setBuilder_ == null) {
if (testCase_ == 4
&& test_
- != com.google.cloud.firestore.conformance.TestDefinition.SetTest
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest
.getDefaultInstance()) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.SetTest.newBuilder(
- (com.google.cloud.firestore.conformance.TestDefinition.SetTest) test_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest.newBuilder(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest) test_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -2418,7 +2678,7 @@ public Builder mergeSet(com.google.cloud.firestore.conformance.TestDefinition.Se
testCase_ = 4;
return this;
}
- /** .tests.SetTest set = 4; */
+ /** .google.cloud.conformance.firestore.v1.SetTest set = 4; */
public Builder clearSet() {
if (setBuilder_ == null) {
if (testCase_ == 4) {
@@ -2435,39 +2695,42 @@ public Builder clearSet() {
}
return this;
}
- /** .tests.SetTest set = 4; */
- public com.google.cloud.firestore.conformance.TestDefinition.SetTest.Builder getSetBuilder() {
+ /** .google.cloud.conformance.firestore.v1.SetTest set = 4; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest.Builder
+ getSetBuilder() {
return getSetFieldBuilder().getBuilder();
}
- /** .tests.SetTest set = 4; */
- public com.google.cloud.firestore.conformance.TestDefinition.SetTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.SetTest set = 4; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetTestOrBuilder
getSetOrBuilder() {
if ((testCase_ == 4) && (setBuilder_ != null)) {
return setBuilder_.getMessageOrBuilder();
} else {
if (testCase_ == 4) {
- return (com.google.cloud.firestore.conformance.TestDefinition.SetTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.SetTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest
+ .getDefaultInstance();
}
}
- /** .tests.SetTest set = 4; */
+ /** .google.cloud.conformance.firestore.v1.SetTest set = 4; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.SetTest,
- com.google.cloud.firestore.conformance.TestDefinition.SetTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.SetTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTestOrBuilder>
getSetFieldBuilder() {
if (setBuilder_ == null) {
if (!(testCase_ == 4)) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.SetTest.getDefaultInstance();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest
+ .getDefaultInstance();
}
setBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.SetTest,
- com.google.cloud.firestore.conformance.TestDefinition.SetTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.SetTestOrBuilder>(
- (com.google.cloud.firestore.conformance.TestDefinition.SetTest) test_,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTestOrBuilder>(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest) test_,
getParentForChildren(),
isClean());
test_ = null;
@@ -2479,33 +2742,33 @@ public com.google.cloud.firestore.conformance.TestDefinition.SetTest.Builder get
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest,
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTestOrBuilder>
updateBuilder_;
- /** .tests.UpdateTest update = 5; */
+ /** .google.cloud.conformance.firestore.v1.UpdateTest update = 5; */
public boolean hasUpdate() {
return testCase_ == 5;
}
- /** .tests.UpdateTest update = 5; */
- public com.google.cloud.firestore.conformance.TestDefinition.UpdateTest getUpdate() {
+ /** .google.cloud.conformance.firestore.v1.UpdateTest update = 5; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest getUpdate() {
if (updateBuilder_ == null) {
if (testCase_ == 5) {
- return (com.google.cloud.firestore.conformance.TestDefinition.UpdateTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.UpdateTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
.getDefaultInstance();
} else {
if (testCase_ == 5) {
return updateBuilder_.getMessage();
}
- return com.google.cloud.firestore.conformance.TestDefinition.UpdateTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
.getDefaultInstance();
}
}
- /** .tests.UpdateTest update = 5; */
+ /** .google.cloud.conformance.firestore.v1.UpdateTest update = 5; */
public Builder setUpdate(
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest value) {
if (updateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2518,9 +2781,9 @@ public Builder setUpdate(
testCase_ = 5;
return this;
}
- /** .tests.UpdateTest update = 5; */
+ /** .google.cloud.conformance.firestore.v1.UpdateTest update = 5; */
public Builder setUpdate(
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest.Builder
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest.Builder
builderForValue) {
if (updateBuilder_ == null) {
test_ = builderForValue.build();
@@ -2531,17 +2794,17 @@ public Builder setUpdate(
testCase_ = 5;
return this;
}
- /** .tests.UpdateTest update = 5; */
+ /** .google.cloud.conformance.firestore.v1.UpdateTest update = 5; */
public Builder mergeUpdate(
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest value) {
if (updateBuilder_ == null) {
if (testCase_ == 5
&& test_
- != com.google.cloud.firestore.conformance.TestDefinition.UpdateTest
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
.getDefaultInstance()) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest.newBuilder(
- (com.google.cloud.firestore.conformance.TestDefinition.UpdateTest) test_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest.newBuilder(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest) test_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -2557,7 +2820,7 @@ public Builder mergeUpdate(
testCase_ = 5;
return this;
}
- /** .tests.UpdateTest update = 5; */
+ /** .google.cloud.conformance.firestore.v1.UpdateTest update = 5; */
public Builder clearUpdate() {
if (updateBuilder_ == null) {
if (testCase_ == 5) {
@@ -2574,42 +2837,42 @@ public Builder clearUpdate() {
}
return this;
}
- /** .tests.UpdateTest update = 5; */
- public com.google.cloud.firestore.conformance.TestDefinition.UpdateTest.Builder
+ /** .google.cloud.conformance.firestore.v1.UpdateTest update = 5; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest.Builder
getUpdateBuilder() {
return getUpdateFieldBuilder().getBuilder();
}
- /** .tests.UpdateTest update = 5; */
- public com.google.cloud.firestore.conformance.TestDefinition.UpdateTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.UpdateTest update = 5; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTestOrBuilder
getUpdateOrBuilder() {
if ((testCase_ == 5) && (updateBuilder_ != null)) {
return updateBuilder_.getMessageOrBuilder();
} else {
if (testCase_ == 5) {
- return (com.google.cloud.firestore.conformance.TestDefinition.UpdateTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.UpdateTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
.getDefaultInstance();
}
}
- /** .tests.UpdateTest update = 5; */
+ /** .google.cloud.conformance.firestore.v1.UpdateTest update = 5; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest,
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTestOrBuilder>
getUpdateFieldBuilder() {
if (updateBuilder_ == null) {
if (!(testCase_ == 5)) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
.getDefaultInstance();
}
updateBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest,
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTestOrBuilder>(
- (com.google.cloud.firestore.conformance.TestDefinition.UpdateTest) test_,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTestOrBuilder>(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest) test_,
getParentForChildren(),
isClean());
test_ = null;
@@ -2621,34 +2884,34 @@ public Builder clearUpdate() {
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest,
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTestOrBuilder>
updatePathsBuilder_;
- /** .tests.UpdatePathsTest update_paths = 6; */
+ /** .google.cloud.conformance.firestore.v1.UpdatePathsTest update_paths = 6; */
public boolean hasUpdatePaths() {
return testCase_ == 6;
}
- /** .tests.UpdatePathsTest update_paths = 6; */
- public com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ /** .google.cloud.conformance.firestore.v1.UpdatePathsTest update_paths = 6; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
getUpdatePaths() {
if (updatePathsBuilder_ == null) {
if (testCase_ == 6) {
- return (com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
.getDefaultInstance();
} else {
if (testCase_ == 6) {
return updatePathsBuilder_.getMessage();
}
- return com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
.getDefaultInstance();
}
}
- /** .tests.UpdatePathsTest update_paths = 6; */
+ /** .google.cloud.conformance.firestore.v1.UpdatePathsTest update_paths = 6; */
public Builder setUpdatePaths(
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest value) {
if (updatePathsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2661,9 +2924,9 @@ public Builder setUpdatePaths(
testCase_ = 6;
return this;
}
- /** .tests.UpdatePathsTest update_paths = 6; */
+ /** .google.cloud.conformance.firestore.v1.UpdatePathsTest update_paths = 6; */
public Builder setUpdatePaths(
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest.Builder
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest.Builder
builderForValue) {
if (updatePathsBuilder_ == null) {
test_ = builderForValue.build();
@@ -2674,17 +2937,17 @@ public Builder setUpdatePaths(
testCase_ = 6;
return this;
}
- /** .tests.UpdatePathsTest update_paths = 6; */
+ /** .google.cloud.conformance.firestore.v1.UpdatePathsTest update_paths = 6; */
public Builder mergeUpdatePaths(
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest value) {
if (updatePathsBuilder_ == null) {
if (testCase_ == 6
&& test_
- != com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
.getDefaultInstance()) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest.newBuilder(
- (com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest.newBuilder(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest)
test_)
.mergeFrom(value)
.buildPartial();
@@ -2701,7 +2964,7 @@ public Builder mergeUpdatePaths(
testCase_ = 6;
return this;
}
- /** .tests.UpdatePathsTest update_paths = 6; */
+ /** .google.cloud.conformance.firestore.v1.UpdatePathsTest update_paths = 6; */
public Builder clearUpdatePaths() {
if (updatePathsBuilder_ == null) {
if (testCase_ == 6) {
@@ -2718,42 +2981,43 @@ public Builder clearUpdatePaths() {
}
return this;
}
- /** .tests.UpdatePathsTest update_paths = 6; */
- public com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest.Builder
+ /** .google.cloud.conformance.firestore.v1.UpdatePathsTest update_paths = 6; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest.Builder
getUpdatePathsBuilder() {
return getUpdatePathsFieldBuilder().getBuilder();
}
- /** .tests.UpdatePathsTest update_paths = 6; */
- public com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.UpdatePathsTest update_paths = 6; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTestOrBuilder
getUpdatePathsOrBuilder() {
if ((testCase_ == 6) && (updatePathsBuilder_ != null)) {
return updatePathsBuilder_.getMessageOrBuilder();
} else {
if (testCase_ == 6) {
- return (com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
.getDefaultInstance();
}
}
- /** .tests.UpdatePathsTest update_paths = 6; */
+ /** .google.cloud.conformance.firestore.v1.UpdatePathsTest update_paths = 6; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest,
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTestOrBuilder>
getUpdatePathsFieldBuilder() {
if (updatePathsBuilder_ == null) {
if (!(testCase_ == 6)) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
.getDefaultInstance();
}
updatePathsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest,
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTestOrBuilder>(
- (com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest) test_,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition
+ .UpdatePathsTestOrBuilder>(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest) test_,
getParentForChildren(),
isClean());
test_ = null;
@@ -2765,33 +3029,33 @@ public Builder clearUpdatePaths() {
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest,
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTestOrBuilder>
deleteBuilder_;
- /** .tests.DeleteTest delete = 7; */
+ /** .google.cloud.conformance.firestore.v1.DeleteTest delete = 7; */
public boolean hasDelete() {
return testCase_ == 7;
}
- /** .tests.DeleteTest delete = 7; */
- public com.google.cloud.firestore.conformance.TestDefinition.DeleteTest getDelete() {
+ /** .google.cloud.conformance.firestore.v1.DeleteTest delete = 7; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest getDelete() {
if (deleteBuilder_ == null) {
if (testCase_ == 7) {
- return (com.google.cloud.firestore.conformance.TestDefinition.DeleteTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.DeleteTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
.getDefaultInstance();
} else {
if (testCase_ == 7) {
return deleteBuilder_.getMessage();
}
- return com.google.cloud.firestore.conformance.TestDefinition.DeleteTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
.getDefaultInstance();
}
}
- /** .tests.DeleteTest delete = 7; */
+ /** .google.cloud.conformance.firestore.v1.DeleteTest delete = 7; */
public Builder setDelete(
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest value) {
if (deleteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2804,9 +3068,9 @@ public Builder setDelete(
testCase_ = 7;
return this;
}
- /** .tests.DeleteTest delete = 7; */
+ /** .google.cloud.conformance.firestore.v1.DeleteTest delete = 7; */
public Builder setDelete(
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest.Builder
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest.Builder
builderForValue) {
if (deleteBuilder_ == null) {
test_ = builderForValue.build();
@@ -2817,17 +3081,17 @@ public Builder setDelete(
testCase_ = 7;
return this;
}
- /** .tests.DeleteTest delete = 7; */
+ /** .google.cloud.conformance.firestore.v1.DeleteTest delete = 7; */
public Builder mergeDelete(
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest value) {
if (deleteBuilder_ == null) {
if (testCase_ == 7
&& test_
- != com.google.cloud.firestore.conformance.TestDefinition.DeleteTest
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
.getDefaultInstance()) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest.newBuilder(
- (com.google.cloud.firestore.conformance.TestDefinition.DeleteTest) test_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest.newBuilder(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest) test_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -2843,7 +3107,7 @@ public Builder mergeDelete(
testCase_ = 7;
return this;
}
- /** .tests.DeleteTest delete = 7; */
+ /** .google.cloud.conformance.firestore.v1.DeleteTest delete = 7; */
public Builder clearDelete() {
if (deleteBuilder_ == null) {
if (testCase_ == 7) {
@@ -2860,42 +3124,42 @@ public Builder clearDelete() {
}
return this;
}
- /** .tests.DeleteTest delete = 7; */
- public com.google.cloud.firestore.conformance.TestDefinition.DeleteTest.Builder
+ /** .google.cloud.conformance.firestore.v1.DeleteTest delete = 7; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest.Builder
getDeleteBuilder() {
return getDeleteFieldBuilder().getBuilder();
}
- /** .tests.DeleteTest delete = 7; */
- public com.google.cloud.firestore.conformance.TestDefinition.DeleteTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.DeleteTest delete = 7; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTestOrBuilder
getDeleteOrBuilder() {
if ((testCase_ == 7) && (deleteBuilder_ != null)) {
return deleteBuilder_.getMessageOrBuilder();
} else {
if (testCase_ == 7) {
- return (com.google.cloud.firestore.conformance.TestDefinition.DeleteTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.DeleteTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
.getDefaultInstance();
}
}
- /** .tests.DeleteTest delete = 7; */
+ /** .google.cloud.conformance.firestore.v1.DeleteTest delete = 7; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest,
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTestOrBuilder>
getDeleteFieldBuilder() {
if (deleteBuilder_ == null) {
if (!(testCase_ == 7)) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
.getDefaultInstance();
}
deleteBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest,
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTestOrBuilder>(
- (com.google.cloud.firestore.conformance.TestDefinition.DeleteTest) test_,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTestOrBuilder>(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest) test_,
getParentForChildren(),
isClean());
test_ = null;
@@ -2907,33 +3171,33 @@ public Builder clearDelete() {
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest,
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.QueryTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTestOrBuilder>
queryBuilder_;
- /** .tests.QueryTest query = 8; */
+ /** .google.cloud.conformance.firestore.v1.QueryTest query = 8; */
public boolean hasQuery() {
return testCase_ == 8;
}
- /** .tests.QueryTest query = 8; */
- public com.google.cloud.firestore.conformance.TestDefinition.QueryTest getQuery() {
+ /** .google.cloud.conformance.firestore.v1.QueryTest query = 8; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest getQuery() {
if (queryBuilder_ == null) {
if (testCase_ == 8) {
- return (com.google.cloud.firestore.conformance.TestDefinition.QueryTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.QueryTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest
.getDefaultInstance();
} else {
if (testCase_ == 8) {
return queryBuilder_.getMessage();
}
- return com.google.cloud.firestore.conformance.TestDefinition.QueryTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest
.getDefaultInstance();
}
}
- /** .tests.QueryTest query = 8; */
+ /** .google.cloud.conformance.firestore.v1.QueryTest query = 8; */
public Builder setQuery(
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2946,9 +3210,10 @@ public Builder setQuery(
testCase_ = 8;
return this;
}
- /** .tests.QueryTest query = 8; */
+ /** .google.cloud.conformance.firestore.v1.QueryTest query = 8; */
public Builder setQuery(
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest.Builder
+ builderForValue) {
if (queryBuilder_ == null) {
test_ = builderForValue.build();
onChanged();
@@ -2958,17 +3223,17 @@ public Builder setQuery(
testCase_ = 8;
return this;
}
- /** .tests.QueryTest query = 8; */
+ /** .google.cloud.conformance.firestore.v1.QueryTest query = 8; */
public Builder mergeQuery(
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest value) {
if (queryBuilder_ == null) {
if (testCase_ == 8
&& test_
- != com.google.cloud.firestore.conformance.TestDefinition.QueryTest
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest
.getDefaultInstance()) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest.newBuilder(
- (com.google.cloud.firestore.conformance.TestDefinition.QueryTest) test_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest.newBuilder(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest) test_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -2984,7 +3249,7 @@ public Builder mergeQuery(
testCase_ = 8;
return this;
}
- /** .tests.QueryTest query = 8; */
+ /** .google.cloud.conformance.firestore.v1.QueryTest query = 8; */
public Builder clearQuery() {
if (queryBuilder_ == null) {
if (testCase_ == 8) {
@@ -3001,42 +3266,42 @@ public Builder clearQuery() {
}
return this;
}
- /** .tests.QueryTest query = 8; */
- public com.google.cloud.firestore.conformance.TestDefinition.QueryTest.Builder
+ /** .google.cloud.conformance.firestore.v1.QueryTest query = 8; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest.Builder
getQueryBuilder() {
return getQueryFieldBuilder().getBuilder();
}
- /** .tests.QueryTest query = 8; */
- public com.google.cloud.firestore.conformance.TestDefinition.QueryTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.QueryTest query = 8; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTestOrBuilder
getQueryOrBuilder() {
if ((testCase_ == 8) && (queryBuilder_ != null)) {
return queryBuilder_.getMessageOrBuilder();
} else {
if (testCase_ == 8) {
- return (com.google.cloud.firestore.conformance.TestDefinition.QueryTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.QueryTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest
.getDefaultInstance();
}
}
- /** .tests.QueryTest query = 8; */
+ /** .google.cloud.conformance.firestore.v1.QueryTest query = 8; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest,
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.QueryTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTestOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
if (!(testCase_ == 8)) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest
.getDefaultInstance();
}
queryBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest,
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.QueryTestOrBuilder>(
- (com.google.cloud.firestore.conformance.TestDefinition.QueryTest) test_,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTestOrBuilder>(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest) test_,
getParentForChildren(),
isClean());
test_ = null;
@@ -3048,33 +3313,33 @@ public Builder clearQuery() {
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest,
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.ListenTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTestOrBuilder>
listenBuilder_;
- /** .tests.ListenTest listen = 9; */
+ /** .google.cloud.conformance.firestore.v1.ListenTest listen = 9; */
public boolean hasListen() {
return testCase_ == 9;
}
- /** .tests.ListenTest listen = 9; */
- public com.google.cloud.firestore.conformance.TestDefinition.ListenTest getListen() {
+ /** .google.cloud.conformance.firestore.v1.ListenTest listen = 9; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest getListen() {
if (listenBuilder_ == null) {
if (testCase_ == 9) {
- return (com.google.cloud.firestore.conformance.TestDefinition.ListenTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.ListenTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
.getDefaultInstance();
} else {
if (testCase_ == 9) {
return listenBuilder_.getMessage();
}
- return com.google.cloud.firestore.conformance.TestDefinition.ListenTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
.getDefaultInstance();
}
}
- /** .tests.ListenTest listen = 9; */
+ /** .google.cloud.conformance.firestore.v1.ListenTest listen = 9; */
public Builder setListen(
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest value) {
if (listenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -3087,9 +3352,9 @@ public Builder setListen(
testCase_ = 9;
return this;
}
- /** .tests.ListenTest listen = 9; */
+ /** .google.cloud.conformance.firestore.v1.ListenTest listen = 9; */
public Builder setListen(
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest.Builder
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest.Builder
builderForValue) {
if (listenBuilder_ == null) {
test_ = builderForValue.build();
@@ -3100,17 +3365,17 @@ public Builder setListen(
testCase_ = 9;
return this;
}
- /** .tests.ListenTest listen = 9; */
+ /** .google.cloud.conformance.firestore.v1.ListenTest listen = 9; */
public Builder mergeListen(
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest value) {
if (listenBuilder_ == null) {
if (testCase_ == 9
&& test_
- != com.google.cloud.firestore.conformance.TestDefinition.ListenTest
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
.getDefaultInstance()) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest.newBuilder(
- (com.google.cloud.firestore.conformance.TestDefinition.ListenTest) test_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest.newBuilder(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest) test_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -3126,7 +3391,7 @@ public Builder mergeListen(
testCase_ = 9;
return this;
}
- /** .tests.ListenTest listen = 9; */
+ /** .google.cloud.conformance.firestore.v1.ListenTest listen = 9; */
public Builder clearListen() {
if (listenBuilder_ == null) {
if (testCase_ == 9) {
@@ -3143,42 +3408,42 @@ public Builder clearListen() {
}
return this;
}
- /** .tests.ListenTest listen = 9; */
- public com.google.cloud.firestore.conformance.TestDefinition.ListenTest.Builder
+ /** .google.cloud.conformance.firestore.v1.ListenTest listen = 9; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest.Builder
getListenBuilder() {
return getListenFieldBuilder().getBuilder();
}
- /** .tests.ListenTest listen = 9; */
- public com.google.cloud.firestore.conformance.TestDefinition.ListenTestOrBuilder
+ /** .google.cloud.conformance.firestore.v1.ListenTest listen = 9; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTestOrBuilder
getListenOrBuilder() {
if ((testCase_ == 9) && (listenBuilder_ != null)) {
return listenBuilder_.getMessageOrBuilder();
} else {
if (testCase_ == 9) {
- return (com.google.cloud.firestore.conformance.TestDefinition.ListenTest) test_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest) test_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.ListenTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
.getDefaultInstance();
}
}
- /** .tests.ListenTest listen = 9; */
+ /** .google.cloud.conformance.firestore.v1.ListenTest listen = 9; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest,
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.ListenTestOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTestOrBuilder>
getListenFieldBuilder() {
if (listenBuilder_ == null) {
if (!(testCase_ == 9)) {
test_ =
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
.getDefaultInstance();
}
listenBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest,
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.ListenTestOrBuilder>(
- (com.google.cloud.firestore.conformance.TestDefinition.ListenTest) test_,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTestOrBuilder>(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest) test_,
getParentForChildren(),
isClean());
test_ = null;
@@ -3189,33 +3454,37 @@ public Builder clearListen() {
return listenBuilder_;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.Test)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.Test)
}
- // @@protoc_insertion_point(class_scope:tests.Test)
- private static final com.google.cloud.firestore.conformance.TestDefinition.Test
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.Test)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.Test
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.Test();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.Test();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Test getDefaultInstance() {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Test
+ getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public Test parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -3233,14 +3502,16 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Test getDefaultInstanceForType() {
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Test
+ getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetTestOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.GetTest)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.GetTest)
com.google.protobuf.MessageOrBuilder {
/**
@@ -3302,11 +3573,11 @@ public interface GetTestOrBuilder
* Call to the DocumentRef.Get method.
*
*
- * Protobuf type {@code tests.GetTest}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.GetTest}
*/
public static final class GetTest extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.GetTest)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.GetTest)
GetTestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetTest.newBuilder() to construct.
@@ -3342,13 +3613,6 @@ private GetTest(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
@@ -3370,6 +3634,13 @@ private GetTest(
request_ = subBuilder.buildPartial();
}
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -3385,17 +3656,18 @@ private GetTest(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_GetTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_GetTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_GetTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_GetTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.GetTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.GetTest.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest.Builder.class);
}
public static final int DOC_REF_PATH_FIELD_NUMBER = 1;
@@ -3484,6 +3756,7 @@ public com.google.firestore.v1.GetDocumentRequestOrBuilder getRequestOrBuilder()
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -3493,6 +3766,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getDocRefPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, docRefPath_);
@@ -3503,6 +3777,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -3524,20 +3799,19 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.GetTest)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.GetTest other =
- (com.google.cloud.firestore.conformance.TestDefinition.GetTest) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest) obj;
- boolean result = true;
- result = result && getDocRefPath().equals(other.getDocRefPath());
- result = result && (hasRequest() == other.hasRequest());
+ if (!getDocRefPath().equals(other.getDocRefPath())) return false;
+ if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
- result = result && getRequest().equals(other.getRequest());
+ if (!getRequest().equals(other.getRequest())) return false;
}
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -3558,71 +3832,72 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.GetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.GetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.GetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.GetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.GetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.GetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.GetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.GetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.GetTest parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.GetTest parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.GetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.GetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -3630,6 +3905,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.GetTest pars
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -3639,10 +3915,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.GetTest prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -3660,28 +3937,30 @@ protected Builder newBuilderForType(
* Call to the DocumentRef.Get method.
*
*
- * Protobuf type {@code tests.GetTest}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.GetTest}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.GetTest)
- com.google.cloud.firestore.conformance.TestDefinition.GetTestOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.GetTest)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_GetTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_GetTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_GetTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_GetTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.GetTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.GetTest.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest.Builder.class);
}
- // Construct using com.google.cloud.firestore.conformance.TestDefinition.GetTest.newBuilder()
+ // Construct using
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -3695,6 +3974,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
docRefPath_ = "";
@@ -3708,27 +3988,32 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_GetTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_GetTest_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.GetTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.GetTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest
+ .getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.GetTest build() {
- com.google.cloud.firestore.conformance.TestDefinition.GetTest result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.GetTest buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.GetTest result =
- new com.google.cloud.firestore.conformance.TestDefinition.GetTest(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest(this);
result.docRefPath_ = docRefPath_;
if (requestBuilder_ == null) {
result.request_ = request_;
@@ -3739,38 +4024,46 @@ public com.google.cloud.firestore.conformance.TestDefinition.GetTest buildPartia
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.GetTest) {
- return mergeFrom((com.google.cloud.firestore.conformance.TestDefinition.GetTest) other);
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest) {
+ return mergeFrom(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest) other);
} else {
super.mergeFrom(other);
return this;
@@ -3778,10 +4071,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.firestore.conformance.TestDefinition.GetTest other) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.GetTest.getDefaultInstance())
- return this;
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest
+ .getDefaultInstance()) return this;
if (!other.getDocRefPath().isEmpty()) {
docRefPath_ = other.docRefPath_;
onChanged();
@@ -3794,20 +4087,22 @@ public Builder mergeFrom(
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.GetTest parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.GetTest)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -3912,7 +4207,7 @@ public Builder setDocRefPathBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.firestore.v1.GetDocumentRequest request_ = null;
+ private com.google.firestore.v1.GetDocumentRequest request_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.firestore.v1.GetDocumentRequest,
com.google.firestore.v1.GetDocumentRequest.Builder,
@@ -4094,34 +4389,37 @@ public com.google.firestore.v1.GetDocumentRequestOrBuilder getRequestOrBuilder()
return requestBuilder_;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.GetTest)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.GetTest)
}
- // @@protoc_insertion_point(class_scope:tests.GetTest)
- private static final com.google.cloud.firestore.conformance.TestDefinition.GetTest
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.GetTest)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.GetTest();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.GetTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public GetTest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -4139,7 +4437,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.GetTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.GetTest
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -4147,7 +4446,7 @@ public com.google.protobuf.Parser getParserForType() {
public interface CreateTestOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.CreateTest)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.CreateTest)
com.google.protobuf.MessageOrBuilder {
/**
@@ -4246,11 +4545,11 @@ public interface CreateTestOrBuilder
* Call to DocumentRef.Create.
*
*
- * Protobuf type {@code tests.CreateTest}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.CreateTest}
*/
public static final class CreateTest extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.CreateTest)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.CreateTest)
CreateTestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateTest.newBuilder() to construct.
@@ -4261,7 +4560,6 @@ private CreateTest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private CreateTest() {
docRefPath_ = "";
jsonData_ = "";
- isError_ = false;
}
@java.lang.Override
@@ -4288,13 +4586,6 @@ private CreateTest(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
@@ -4330,6 +4621,13 @@ private CreateTest(
isError_ = input.readBool();
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -4343,17 +4641,18 @@ private CreateTest(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_CreateTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_CreateTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_CreateTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_CreateTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest.Builder.class);
}
public static final int DOC_REF_PATH_FIELD_NUMBER = 1;
@@ -4505,6 +4804,7 @@ public boolean getIsError() {
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -4514,6 +4814,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getDocRefPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, docRefPath_);
@@ -4530,6 +4831,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -4557,22 +4859,21 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.CreateTest)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest other =
- (com.google.cloud.firestore.conformance.TestDefinition.CreateTest) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest) obj;
- boolean result = true;
- result = result && getDocRefPath().equals(other.getDocRefPath());
- result = result && getJsonData().equals(other.getJsonData());
- result = result && (hasRequest() == other.hasRequest());
+ if (!getDocRefPath().equals(other.getDocRefPath())) return false;
+ if (!getJsonData().equals(other.getJsonData())) return false;
+ if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
- result = result && getRequest().equals(other.getRequest());
+ if (!getRequest().equals(other.getRequest())) return false;
}
- result = result && (getIsError() == other.getIsError());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (getIsError() != other.getIsError()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -4597,59 +4898,59 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.CreateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.CreateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.CreateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.CreateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.CreateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.CreateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.CreateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.CreateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.CreateTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.CreateTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -4657,12 +4958,12 @@ public static com.google.cloud.firestore.conformance.TestDefinition.CreateTest p
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.CreateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.CreateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -4670,6 +4971,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.CreateTest p
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -4679,10 +4981,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -4700,29 +5003,30 @@ protected Builder newBuilderForType(
* Call to DocumentRef.Create.
*
*
- * Protobuf type {@code tests.CreateTest}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.CreateTest}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.CreateTest)
- com.google.cloud.firestore.conformance.TestDefinition.CreateTestOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.CreateTest)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_CreateTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_CreateTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_CreateTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_CreateTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest.Builder.class);
}
// Construct using
- // com.google.cloud.firestore.conformance.TestDefinition.CreateTest.newBuilder()
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -4736,6 +5040,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
docRefPath_ = "";
@@ -4753,28 +5058,32 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_CreateTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_CreateTest_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.CreateTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.CreateTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
.getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.CreateTest build() {
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.CreateTest buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest result =
- new com.google.cloud.firestore.conformance.TestDefinition.CreateTest(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest(this);
result.docRefPath_ = docRefPath_;
result.jsonData_ = jsonData_;
if (requestBuilder_ == null) {
@@ -4787,39 +5096,46 @@ public com.google.cloud.firestore.conformance.TestDefinition.CreateTest buildPar
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.CreateTest) {
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest) {
return mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.CreateTest) other);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest) other);
} else {
super.mergeFrom(other);
return this;
@@ -4827,9 +5143,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest other) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.CreateTest
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
.getDefaultInstance()) return this;
if (!other.getDocRefPath().isEmpty()) {
docRefPath_ = other.docRefPath_;
@@ -4850,20 +5166,22 @@ public Builder mergeFrom(
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.CreateTest parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.CreateTest)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -5072,7 +5390,7 @@ public Builder setJsonDataBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.firestore.v1.CommitRequest request_ = null;
+ private com.google.firestore.v1.CommitRequest request_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.firestore.v1.CommitRequest,
com.google.firestore.v1.CommitRequest.Builder,
@@ -5300,34 +5618,37 @@ public Builder clearIsError() {
return this;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.CreateTest)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.CreateTest)
}
- // @@protoc_insertion_point(class_scope:tests.CreateTest)
- private static final com.google.cloud.firestore.conformance.TestDefinition.CreateTest
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.CreateTest)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.CreateTest();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.CreateTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public CreateTest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -5345,7 +5666,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.CreateTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CreateTest
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -5353,7 +5675,7 @@ public com.google.protobuf.Parser getParserForType() {
public interface SetTestOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.SetTest)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.SetTest)
com.google.protobuf.MessageOrBuilder {
/**
@@ -5384,7 +5706,7 @@ public interface SetTestOrBuilder
* option to the Set call, if any
*
*
- * .tests.SetOption option = 2;
+ * .google.cloud.conformance.firestore.v1.SetOption option = 2;
*/
boolean hasOption();
/**
@@ -5394,9 +5716,9 @@ public interface SetTestOrBuilder
* option to the Set call, if any
*
*
- * .tests.SetOption option = 2;
+ * .google.cloud.conformance.firestore.v1.SetOption option = 2;
*/
- com.google.cloud.firestore.conformance.TestDefinition.SetOption getOption();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption getOption();
/**
*
*
@@ -5404,9 +5726,10 @@ public interface SetTestOrBuilder
* option to the Set call, if any
*
*
- * .tests.SetOption option = 2;
+ * .google.cloud.conformance.firestore.v1.SetOption option = 2;
*/
- com.google.cloud.firestore.conformance.TestDefinition.SetOptionOrBuilder getOptionOrBuilder();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOptionOrBuilder
+ getOptionOrBuilder();
/**
*
@@ -5478,11 +5801,11 @@ public interface SetTestOrBuilder
* A call to DocumentRef.Set.
*
*
- * Protobuf type {@code tests.SetTest}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.SetTest}
*/
public static final class SetTest extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.SetTest)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.SetTest)
SetTestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SetTest.newBuilder() to construct.
@@ -5493,7 +5816,6 @@ private SetTest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private SetTest() {
docRefPath_ = "";
jsonData_ = "";
- isError_ = false;
}
@java.lang.Override
@@ -5520,13 +5842,6 @@ private SetTest(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
@@ -5536,14 +5851,14 @@ private SetTest(
}
case 18:
{
- com.google.cloud.firestore.conformance.TestDefinition.SetOption.Builder subBuilder =
- null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption.Builder
+ subBuilder = null;
if (option_ != null) {
subBuilder = option_.toBuilder();
}
option_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.SetOption.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(option_);
@@ -5580,6 +5895,13 @@ private SetTest(
isError_ = input.readBool();
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -5593,17 +5915,18 @@ private SetTest(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_SetTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_SetTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_SetTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_SetTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.SetTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.SetTest.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest.Builder.class);
}
public static final int DOC_REF_PATH_FIELD_NUMBER = 1;
@@ -5650,7 +5973,7 @@ public com.google.protobuf.ByteString getDocRefPathBytes() {
}
public static final int OPTION_FIELD_NUMBER = 2;
- private com.google.cloud.firestore.conformance.TestDefinition.SetOption option_;
+ private com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption option_;
/**
*
*
@@ -5658,7 +5981,7 @@ public com.google.protobuf.ByteString getDocRefPathBytes() {
* option to the Set call, if any
*
*
- * .tests.SetOption option = 2;
+ * .google.cloud.conformance.firestore.v1.SetOption option = 2;
*/
public boolean hasOption() {
return option_ != null;
@@ -5670,11 +5993,11 @@ public boolean hasOption() {
* option to the Set call, if any
*
*
- * .tests.SetOption option = 2;
+ * .google.cloud.conformance.firestore.v1.SetOption option = 2;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.SetOption getOption() {
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption getOption() {
return option_ == null
- ? com.google.cloud.firestore.conformance.TestDefinition.SetOption.getDefaultInstance()
+ ? com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption.getDefaultInstance()
: option_;
}
/**
@@ -5684,9 +6007,9 @@ public com.google.cloud.firestore.conformance.TestDefinition.SetOption getOption
* option to the Set call, if any
*
*
- * .tests.SetOption option = 2;
+ * .google.cloud.conformance.firestore.v1.SetOption option = 2;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.SetOptionOrBuilder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetOptionOrBuilder
getOptionOrBuilder() {
return getOption();
}
@@ -5792,6 +6115,7 @@ public boolean getIsError() {
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -5801,6 +6125,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getDocRefPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, docRefPath_);
@@ -5820,6 +6145,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -5850,26 +6176,25 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.SetTest)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.SetTest other =
- (com.google.cloud.firestore.conformance.TestDefinition.SetTest) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest) obj;
- boolean result = true;
- result = result && getDocRefPath().equals(other.getDocRefPath());
- result = result && (hasOption() == other.hasOption());
+ if (!getDocRefPath().equals(other.getDocRefPath())) return false;
+ if (hasOption() != other.hasOption()) return false;
if (hasOption()) {
- result = result && getOption().equals(other.getOption());
+ if (!getOption().equals(other.getOption())) return false;
}
- result = result && getJsonData().equals(other.getJsonData());
- result = result && (hasRequest() == other.hasRequest());
+ if (!getJsonData().equals(other.getJsonData())) return false;
+ if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
- result = result && getRequest().equals(other.getRequest());
+ if (!getRequest().equals(other.getRequest())) return false;
}
- result = result && (getIsError() == other.getIsError());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (getIsError() != other.getIsError()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -5898,71 +6223,72 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetTest parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetTest parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -5970,6 +6296,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.SetTest pars
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -5979,10 +6306,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.SetTest prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -6000,28 +6328,30 @@ protected Builder newBuilderForType(
* A call to DocumentRef.Set.
*
*
- * Protobuf type {@code tests.SetTest}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.SetTest}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.SetTest)
- com.google.cloud.firestore.conformance.TestDefinition.SetTestOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.SetTest)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_SetTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_SetTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_SetTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_SetTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.SetTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.SetTest.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest.Builder.class);
}
- // Construct using com.google.cloud.firestore.conformance.TestDefinition.SetTest.newBuilder()
+ // Construct using
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -6035,6 +6365,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
docRefPath_ = "";
@@ -6058,27 +6389,32 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_SetTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_SetTest_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.SetTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.SetTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest
+ .getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.SetTest build() {
- com.google.cloud.firestore.conformance.TestDefinition.SetTest result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.SetTest buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.SetTest result =
- new com.google.cloud.firestore.conformance.TestDefinition.SetTest(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest(this);
result.docRefPath_ = docRefPath_;
if (optionBuilder_ == null) {
result.option_ = option_;
@@ -6096,38 +6432,46 @@ public com.google.cloud.firestore.conformance.TestDefinition.SetTest buildPartia
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.SetTest) {
- return mergeFrom((com.google.cloud.firestore.conformance.TestDefinition.SetTest) other);
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest) {
+ return mergeFrom(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest) other);
} else {
super.mergeFrom(other);
return this;
@@ -6135,10 +6479,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.firestore.conformance.TestDefinition.SetTest other) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.SetTest.getDefaultInstance())
- return this;
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest
+ .getDefaultInstance()) return this;
if (!other.getDocRefPath().isEmpty()) {
docRefPath_ = other.docRefPath_;
onChanged();
@@ -6161,20 +6505,22 @@ public Builder mergeFrom(
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.SetTest parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.SetTest)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -6279,11 +6625,11 @@ public Builder setDocRefPathBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.cloud.firestore.conformance.TestDefinition.SetOption option_ = null;
+ private com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption option_;
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.SetOption,
- com.google.cloud.firestore.conformance.TestDefinition.SetOption.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.SetOptionOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOptionOrBuilder>
optionBuilder_;
/**
*
@@ -6292,7 +6638,7 @@ public Builder setDocRefPathBytes(com.google.protobuf.ByteString value) {
* option to the Set call, if any
*
*
- * .tests.SetOption option = 2;
+ * .google.cloud.conformance.firestore.v1.SetOption option = 2;
*/
public boolean hasOption() {
return optionBuilder_ != null || option_ != null;
@@ -6304,12 +6650,13 @@ public boolean hasOption() {
* option to the Set call, if any
*
*
- * .tests.SetOption option = 2;
+ * .google.cloud.conformance.firestore.v1.SetOption option = 2;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.SetOption getOption() {
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption getOption() {
if (optionBuilder_ == null) {
return option_ == null
- ? com.google.cloud.firestore.conformance.TestDefinition.SetOption.getDefaultInstance()
+ ? com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption
+ .getDefaultInstance()
: option_;
} else {
return optionBuilder_.getMessage();
@@ -6322,10 +6669,10 @@ public com.google.cloud.firestore.conformance.TestDefinition.SetOption getOption
* option to the Set call, if any
*
*
- * .tests.SetOption option = 2;
+ * .google.cloud.conformance.firestore.v1.SetOption option = 2;
*/
public Builder setOption(
- com.google.cloud.firestore.conformance.TestDefinition.SetOption value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption value) {
if (optionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -6345,10 +6692,11 @@ public Builder setOption(
* option to the Set call, if any
*
*
- * .tests.SetOption option = 2;
+ * .google.cloud.conformance.firestore.v1.SetOption option = 2;
*/
public Builder setOption(
- com.google.cloud.firestore.conformance.TestDefinition.SetOption.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption.Builder
+ builderForValue) {
if (optionBuilder_ == null) {
option_ = builderForValue.build();
onChanged();
@@ -6365,14 +6713,15 @@ public Builder setOption(
* option to the Set call, if any
*
*
- * .tests.SetOption option = 2;
+ * .google.cloud.conformance.firestore.v1.SetOption option = 2;
*/
public Builder mergeOption(
- com.google.cloud.firestore.conformance.TestDefinition.SetOption value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption value) {
if (optionBuilder_ == null) {
if (option_ != null) {
option_ =
- com.google.cloud.firestore.conformance.TestDefinition.SetOption.newBuilder(option_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption.newBuilder(
+ option_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -6392,7 +6741,7 @@ public Builder mergeOption(
* option to the Set call, if any
*
*
- * .tests.SetOption option = 2;
+ * .google.cloud.conformance.firestore.v1.SetOption option = 2;
*/
public Builder clearOption() {
if (optionBuilder_ == null) {
@@ -6412,9 +6761,9 @@ public Builder clearOption() {
* option to the Set call, if any
*
*
- * .tests.SetOption option = 2;
+ * .google.cloud.conformance.firestore.v1.SetOption option = 2;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.SetOption.Builder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption.Builder
getOptionBuilder() {
onChanged();
@@ -6427,15 +6776,16 @@ public Builder clearOption() {
* option to the Set call, if any
*
*
- * .tests.SetOption option = 2;
+ * .google.cloud.conformance.firestore.v1.SetOption option = 2;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.SetOptionOrBuilder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetOptionOrBuilder
getOptionOrBuilder() {
if (optionBuilder_ != null) {
return optionBuilder_.getMessageOrBuilder();
} else {
return option_ == null
- ? com.google.cloud.firestore.conformance.TestDefinition.SetOption.getDefaultInstance()
+ ? com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption
+ .getDefaultInstance()
: option_;
}
}
@@ -6446,19 +6796,19 @@ public Builder clearOption() {
* option to the Set call, if any
*
*
- * .tests.SetOption option = 2;
+ * .google.cloud.conformance.firestore.v1.SetOption option = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.SetOption,
- com.google.cloud.firestore.conformance.TestDefinition.SetOption.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.SetOptionOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOptionOrBuilder>
getOptionFieldBuilder() {
if (optionBuilder_ == null) {
optionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.SetOption,
- com.google.cloud.firestore.conformance.TestDefinition.SetOption.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.SetOptionOrBuilder>(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOptionOrBuilder>(
getOption(), getParentForChildren(), isClean());
option_ = null;
}
@@ -6559,7 +6909,7 @@ public Builder setJsonDataBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.firestore.v1.CommitRequest request_ = null;
+ private com.google.firestore.v1.CommitRequest request_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.firestore.v1.CommitRequest,
com.google.firestore.v1.CommitRequest.Builder,
@@ -6784,34 +7134,37 @@ public Builder clearIsError() {
return this;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.SetTest)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.SetTest)
}
- // @@protoc_insertion_point(class_scope:tests.SetTest)
- private static final com.google.cloud.firestore.conformance.TestDefinition.SetTest
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.SetTest)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.SetTest();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public SetTest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -6829,7 +7182,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.SetTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetTest
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -6837,7 +7191,7 @@ public com.google.protobuf.Parser getParserForType() {
public interface UpdateTestOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.UpdateTest)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.UpdateTest)
com.google.protobuf.MessageOrBuilder {
/**
@@ -6963,11 +7317,11 @@ public interface UpdateTestOrBuilder
* or dictionary.
*
*
- * Protobuf type {@code tests.UpdateTest}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.UpdateTest}
*/
public static final class UpdateTest extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.UpdateTest)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.UpdateTest)
UpdateTestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateTest.newBuilder() to construct.
@@ -6978,7 +7332,6 @@ private UpdateTest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private UpdateTest() {
docRefPath_ = "";
jsonData_ = "";
- isError_ = false;
}
@java.lang.Override
@@ -7005,13 +7358,6 @@ private UpdateTest(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
@@ -7063,6 +7409,13 @@ private UpdateTest(
isError_ = input.readBool();
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -7076,17 +7429,18 @@ private UpdateTest(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_UpdateTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_UpdateTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_UpdateTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_UpdateTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest.Builder.class);
}
public static final int DOC_REF_PATH_FIELD_NUMBER = 1;
@@ -7274,6 +7628,7 @@ public boolean getIsError() {
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -7283,6 +7638,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getDocRefPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, docRefPath_);
@@ -7302,6 +7658,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -7332,26 +7689,25 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.UpdateTest)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest other =
- (com.google.cloud.firestore.conformance.TestDefinition.UpdateTest) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest) obj;
- boolean result = true;
- result = result && getDocRefPath().equals(other.getDocRefPath());
- result = result && (hasPrecondition() == other.hasPrecondition());
+ if (!getDocRefPath().equals(other.getDocRefPath())) return false;
+ if (hasPrecondition() != other.hasPrecondition()) return false;
if (hasPrecondition()) {
- result = result && getPrecondition().equals(other.getPrecondition());
+ if (!getPrecondition().equals(other.getPrecondition())) return false;
}
- result = result && getJsonData().equals(other.getJsonData());
- result = result && (hasRequest() == other.hasRequest());
+ if (!getJsonData().equals(other.getJsonData())) return false;
+ if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
- result = result && getRequest().equals(other.getRequest());
+ if (!getRequest().equals(other.getRequest())) return false;
}
- result = result && (getIsError() == other.getIsError());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (getIsError() != other.getIsError()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -7380,59 +7736,59 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdateTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdateTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -7440,12 +7796,12 @@ public static com.google.cloud.firestore.conformance.TestDefinition.UpdateTest p
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdateTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -7453,6 +7809,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.UpdateTest p
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -7462,10 +7819,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -7484,29 +7842,30 @@ protected Builder newBuilderForType(
* or dictionary.
*
*
- * Protobuf type {@code tests.UpdateTest}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.UpdateTest}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.UpdateTest)
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTestOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.UpdateTest)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_UpdateTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_UpdateTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_UpdateTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_UpdateTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest.Builder.class);
}
// Construct using
- // com.google.cloud.firestore.conformance.TestDefinition.UpdateTest.newBuilder()
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -7520,6 +7879,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
docRefPath_ = "";
@@ -7543,28 +7903,32 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_UpdateTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_UpdateTest_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.UpdateTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.UpdateTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
.getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.UpdateTest build() {
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.UpdateTest buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest result =
- new com.google.cloud.firestore.conformance.TestDefinition.UpdateTest(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest(this);
result.docRefPath_ = docRefPath_;
if (preconditionBuilder_ == null) {
result.precondition_ = precondition_;
@@ -7582,39 +7946,46 @@ public com.google.cloud.firestore.conformance.TestDefinition.UpdateTest buildPar
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.UpdateTest) {
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest) {
return mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.UpdateTest) other);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest) other);
} else {
super.mergeFrom(other);
return this;
@@ -7622,9 +7993,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest other) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.UpdateTest
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
.getDefaultInstance()) return this;
if (!other.getDocRefPath().isEmpty()) {
docRefPath_ = other.docRefPath_;
@@ -7648,20 +8019,22 @@ public Builder mergeFrom(
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.UpdateTest parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.UpdateTest)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -7766,7 +8139,7 @@ public Builder setDocRefPathBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.firestore.v1.Precondition precondition_ = null;
+ private com.google.firestore.v1.Precondition precondition_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.firestore.v1.Precondition,
com.google.firestore.v1.Precondition.Builder,
@@ -8041,7 +8414,7 @@ public Builder setJsonDataBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.firestore.v1.CommitRequest request_ = null;
+ private com.google.firestore.v1.CommitRequest request_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.firestore.v1.CommitRequest,
com.google.firestore.v1.CommitRequest.Builder,
@@ -8266,34 +8639,37 @@ public Builder clearIsError() {
return this;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.UpdateTest)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.UpdateTest)
}
- // @@protoc_insertion_point(class_scope:tests.UpdateTest)
- private static final com.google.cloud.firestore.conformance.TestDefinition.UpdateTest
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.UpdateTest)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.UpdateTest();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdateTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public UpdateTest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -8311,7 +8687,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.UpdateTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdateTest
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -8319,7 +8696,7 @@ public com.google.protobuf.Parser getParserForType() {
public interface UpdatePathsTestOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.UpdatePathsTest)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.UpdatePathsTest)
com.google.protobuf.MessageOrBuilder {
/**
@@ -8381,9 +8758,9 @@ public interface UpdatePathsTestOrBuilder
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
- java.util.List
+ java.util.List
getFieldPathsList();
/**
*
@@ -8392,9 +8769,9 @@ public interface UpdatePathsTestOrBuilder
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath getFieldPaths(int index);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath getFieldPaths(int index);
/**
*
*
@@ -8402,7 +8779,7 @@ public interface UpdatePathsTestOrBuilder
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
int getFieldPathsCount();
/**
@@ -8412,10 +8789,10 @@ public interface UpdatePathsTestOrBuilder
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
getFieldPathsOrBuilderList();
/**
*
@@ -8424,10 +8801,10 @@ public interface UpdatePathsTestOrBuilder
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder getFieldPathsOrBuilder(
- int index);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder
+ getFieldPathsOrBuilder(int index);
/**
*
@@ -8520,11 +8897,11 @@ com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder getFiel
* of field paths and their values.
*
*
- * Protobuf type {@code tests.UpdatePathsTest}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.UpdatePathsTest}
*/
public static final class UpdatePathsTest extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.UpdatePathsTest)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.UpdatePathsTest)
UpdatePathsTestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdatePathsTest.newBuilder() to construct.
@@ -8536,7 +8913,6 @@ private UpdatePathsTest() {
docRefPath_ = "";
fieldPaths_ = java.util.Collections.emptyList();
jsonValues_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- isError_ = false;
}
@java.lang.Override
@@ -8563,13 +8939,6 @@ private UpdatePathsTest(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
@@ -8595,22 +8964,22 @@ private UpdatePathsTest(
}
case 26:
{
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
fieldPaths_ =
new java.util.ArrayList<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath>();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath>();
mutable_bitField0_ |= 0x00000004;
}
fieldPaths_.add(
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.parser(),
extensionRegistry));
break;
}
case 34:
{
java.lang.String s = input.readStringRequireUtf8();
- if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
+ if (!((mutable_bitField0_ & 0x00000008) != 0)) {
jsonValues_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
@@ -8638,6 +9007,13 @@ private UpdatePathsTest(
isError_ = input.readBool();
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -8645,10 +9021,10 @@ private UpdatePathsTest(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((mutable_bitField0_ & 0x00000004) != 0)) {
fieldPaths_ = java.util.Collections.unmodifiableList(fieldPaths_);
}
- if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((mutable_bitField0_ & 0x00000008) != 0)) {
jsonValues_ = jsonValues_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
@@ -8657,17 +9033,19 @@ private UpdatePathsTest(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_UpdatePathsTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_UpdatePathsTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_UpdatePathsTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_UpdatePathsTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest.Builder
+ .class);
}
private int bitField0_;
@@ -8756,7 +9134,7 @@ public com.google.firestore.v1.PreconditionOrBuilder getPreconditionOrBuilder()
}
public static final int FIELD_PATHS_FIELD_NUMBER = 3;
- private java.util.List
+ private java.util.List
fieldPaths_;
/**
*
@@ -8765,9 +9143,9 @@ public com.google.firestore.v1.PreconditionOrBuilder getPreconditionOrBuilder()
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
- public java.util.List
+ public java.util.List
getFieldPathsList() {
return fieldPaths_;
}
@@ -8778,10 +9156,10 @@ public com.google.firestore.v1.PreconditionOrBuilder getPreconditionOrBuilder()
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
public java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
getFieldPathsOrBuilderList() {
return fieldPaths_;
}
@@ -8792,7 +9170,7 @@ public com.google.firestore.v1.PreconditionOrBuilder getPreconditionOrBuilder()
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
public int getFieldPathsCount() {
return fieldPaths_.size();
@@ -8804,9 +9182,9 @@ public int getFieldPathsCount() {
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath getFieldPaths(
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath getFieldPaths(
int index) {
return fieldPaths_.get(index);
}
@@ -8817,9 +9195,9 @@ public com.google.cloud.firestore.conformance.TestDefinition.FieldPath getFieldP
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder
getFieldPathsOrBuilder(int index) {
return fieldPaths_.get(index);
}
@@ -8933,6 +9311,7 @@ public boolean getIsError() {
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -8942,6 +9321,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getDocRefPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, docRefPath_);
@@ -8964,6 +9344,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -9002,27 +9383,27 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest)) {
+ if (!(obj
+ instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest other =
- (com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest) obj;
- boolean result = true;
- result = result && getDocRefPath().equals(other.getDocRefPath());
- result = result && (hasPrecondition() == other.hasPrecondition());
+ if (!getDocRefPath().equals(other.getDocRefPath())) return false;
+ if (hasPrecondition() != other.hasPrecondition()) return false;
if (hasPrecondition()) {
- result = result && getPrecondition().equals(other.getPrecondition());
+ if (!getPrecondition().equals(other.getPrecondition())) return false;
}
- result = result && getFieldPathsList().equals(other.getFieldPathsList());
- result = result && getJsonValuesList().equals(other.getJsonValuesList());
- result = result && (hasRequest() == other.hasRequest());
+ if (!getFieldPathsList().equals(other.getFieldPathsList())) return false;
+ if (!getJsonValuesList().equals(other.getJsonValuesList())) return false;
+ if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
- result = result && getRequest().equals(other.getRequest());
+ if (!getRequest().equals(other.getRequest())) return false;
}
- result = result && (getIsError() == other.getIsError());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (getIsError() != other.getIsError()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -9057,59 +9438,63 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest parseFrom(
- java.io.InputStream input) throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -9117,19 +9502,21 @@ public static com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsT
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -9139,10 +9526,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -9161,30 +9549,31 @@ protected Builder newBuilderForType(
* of field paths and their values.
*
*
- * Protobuf type {@code tests.UpdatePathsTest}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.UpdatePathsTest}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.UpdatePathsTest)
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTestOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.UpdatePathsTest)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_UpdatePathsTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_UpdatePathsTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_UpdatePathsTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_UpdatePathsTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest.Builder
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest.Builder
.class);
}
// Construct using
- // com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest.newBuilder()
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -9200,6 +9589,7 @@ private void maybeForceBuilderInitialization() {
}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
docRefPath_ = "";
@@ -9229,19 +9619,22 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_UpdatePathsTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_UpdatePathsTest_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
.getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest build() {
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest result =
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
@@ -9249,9 +9642,11 @@ public com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest bui
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest result =
- new com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
+ buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.docRefPath_ = docRefPath_;
@@ -9261,7 +9656,7 @@ public com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest bui
result.precondition_ = preconditionBuilder_.build();
}
if (fieldPathsBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
fieldPaths_ = java.util.Collections.unmodifiableList(fieldPaths_);
bitField0_ = (bitField0_ & ~0x00000004);
}
@@ -9269,7 +9664,7 @@ public com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest bui
} else {
result.fieldPaths_ = fieldPathsBuilder_.build();
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
jsonValues_ = jsonValues_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
@@ -9285,40 +9680,47 @@ public com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest bui
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other
- instanceof com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest) {
+ instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest) {
return mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest) other);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest) other);
} else {
super.mergeFrom(other);
return this;
@@ -9326,9 +9728,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest other) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
.getDefaultInstance()) return this;
if (!other.getDocRefPath().isEmpty()) {
docRefPath_ = other.docRefPath_;
@@ -9385,20 +9787,23 @@ public Builder mergeFrom(
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest parsedMessage =
+ null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -9505,7 +9910,7 @@ public Builder setDocRefPathBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.firestore.v1.Precondition precondition_ = null;
+ private com.google.firestore.v1.Precondition precondition_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.firestore.v1.Precondition,
com.google.firestore.v1.Precondition.Builder,
@@ -9686,22 +10091,22 @@ public com.google.firestore.v1.PreconditionOrBuilder getPreconditionOrBuilder()
return preconditionBuilder_;
}
- private java.util.List
+ private java.util.List
fieldPaths_ = java.util.Collections.emptyList();
private void ensureFieldPathsIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (!((bitField0_ & 0x00000004) != 0)) {
fieldPaths_ =
new java.util.ArrayList<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath>(fieldPaths_);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath>(fieldPaths_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
fieldPathsBuilder_;
/**
@@ -9711,9 +10116,9 @@ private void ensureFieldPathsIsMutable() {
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
- public java.util.List
+ public java.util.List
getFieldPathsList() {
if (fieldPathsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fieldPaths_);
@@ -9728,7 +10133,7 @@ private void ensureFieldPathsIsMutable() {
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
public int getFieldPathsCount() {
if (fieldPathsBuilder_ == null) {
@@ -9744,9 +10149,9 @@ public int getFieldPathsCount() {
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath getFieldPaths(
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath getFieldPaths(
int index) {
if (fieldPathsBuilder_ == null) {
return fieldPaths_.get(index);
@@ -9761,10 +10166,10 @@ public com.google.cloud.firestore.conformance.TestDefinition.FieldPath getFieldP
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
public Builder setFieldPaths(
- int index, com.google.cloud.firestore.conformance.TestDefinition.FieldPath value) {
+ int index, com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath value) {
if (fieldPathsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -9784,11 +10189,12 @@ public Builder setFieldPaths(
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
public Builder setFieldPaths(
int index,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
+ builderForValue) {
if (fieldPathsBuilder_ == null) {
ensureFieldPathsIsMutable();
fieldPaths_.set(index, builderForValue.build());
@@ -9805,10 +10211,10 @@ public Builder setFieldPaths(
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
public Builder addFieldPaths(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath value) {
if (fieldPathsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -9828,10 +10234,10 @@ public Builder addFieldPaths(
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
public Builder addFieldPaths(
- int index, com.google.cloud.firestore.conformance.TestDefinition.FieldPath value) {
+ int index, com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath value) {
if (fieldPathsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -9851,10 +10257,11 @@ public Builder addFieldPaths(
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
public Builder addFieldPaths(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
+ builderForValue) {
if (fieldPathsBuilder_ == null) {
ensureFieldPathsIsMutable();
fieldPaths_.add(builderForValue.build());
@@ -9871,11 +10278,12 @@ public Builder addFieldPaths(
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
public Builder addFieldPaths(
int index,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
+ builderForValue) {
if (fieldPathsBuilder_ == null) {
ensureFieldPathsIsMutable();
fieldPaths_.add(index, builderForValue.build());
@@ -9892,11 +10300,11 @@ public Builder addFieldPaths(
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
public Builder addAllFieldPaths(
java.lang.Iterable<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.FieldPath>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath>
values) {
if (fieldPathsBuilder_ == null) {
ensureFieldPathsIsMutable();
@@ -9914,7 +10322,7 @@ public Builder addAllFieldPaths(
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
public Builder clearFieldPaths() {
if (fieldPathsBuilder_ == null) {
@@ -9933,7 +10341,7 @@ public Builder clearFieldPaths() {
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
public Builder removeFieldPaths(int index) {
if (fieldPathsBuilder_ == null) {
@@ -9952,9 +10360,9 @@ public Builder removeFieldPaths(int index) {
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
getFieldPathsBuilder(int index) {
return getFieldPathsFieldBuilder().getBuilder(index);
}
@@ -9965,9 +10373,9 @@ public Builder removeFieldPaths(int index) {
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder
getFieldPathsOrBuilder(int index) {
if (fieldPathsBuilder_ == null) {
return fieldPaths_.get(index);
@@ -9982,10 +10390,10 @@ public Builder removeFieldPaths(int index) {
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
public java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
getFieldPathsOrBuilderList() {
if (fieldPathsBuilder_ != null) {
return fieldPathsBuilder_.getMessageOrBuilderList();
@@ -10000,13 +10408,13 @@ public Builder removeFieldPaths(int index) {
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
addFieldPathsBuilder() {
return getFieldPathsFieldBuilder()
.addBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
.getDefaultInstance());
}
/**
@@ -10016,14 +10424,14 @@ public Builder removeFieldPaths(int index) {
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
addFieldPathsBuilder(int index) {
return getFieldPathsFieldBuilder()
.addBuilder(
index,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
.getDefaultInstance());
}
/**
@@ -10033,28 +10441,26 @@ public Builder removeFieldPaths(int index) {
* parallel sequences: field_paths[i] corresponds to json_values[i]
*
*
- * repeated .tests.FieldPath field_paths = 3;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath field_paths = 3;
*/
- public java.util.List
+ public java.util.List<
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder>
getFieldPathsBuilderList() {
return getFieldPathsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
getFieldPathsFieldBuilder() {
if (fieldPathsBuilder_ == null) {
fieldPathsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>(
- fieldPaths_,
- ((bitField0_ & 0x00000004) == 0x00000004),
- getParentForChildren(),
- isClean());
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>(
+ fieldPaths_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
fieldPaths_ = null;
}
return fieldPathsBuilder_;
@@ -10064,7 +10470,7 @@ public Builder removeFieldPaths(int index) {
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureJsonValuesIsMutable() {
- if (!((bitField0_ & 0x00000008) == 0x00000008)) {
+ if (!((bitField0_ & 0x00000008) != 0)) {
jsonValues_ = new com.google.protobuf.LazyStringArrayList(jsonValues_);
bitField0_ |= 0x00000008;
}
@@ -10203,7 +10609,7 @@ public Builder addJsonValuesBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.firestore.v1.CommitRequest request_ = null;
+ private com.google.firestore.v1.CommitRequest request_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.firestore.v1.CommitRequest,
com.google.firestore.v1.CommitRequest.Builder,
@@ -10428,35 +10834,38 @@ public Builder clearIsError() {
return this;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.UpdatePathsTest)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.UpdatePathsTest)
}
- // @@protoc_insertion_point(class_scope:tests.UpdatePathsTest)
- private static final com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.UpdatePathsTest)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
- new com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest();
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public UpdatePathsTest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -10474,7 +10883,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.UpdatePathsTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.UpdatePathsTest
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -10482,7 +10892,7 @@ public com.google.protobuf.Parser getParserForType() {
public interface DeleteTestOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.DeleteTest)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.DeleteTest)
com.google.protobuf.MessageOrBuilder {
/**
@@ -10562,11 +10972,11 @@ public interface DeleteTestOrBuilder
* A call to DocmentRef.Delete
*
*
- * Protobuf type {@code tests.DeleteTest}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.DeleteTest}
*/
public static final class DeleteTest extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.DeleteTest)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.DeleteTest)
DeleteTestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteTest.newBuilder() to construct.
@@ -10576,7 +10986,6 @@ private DeleteTest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private DeleteTest() {
docRefPath_ = "";
- isError_ = false;
}
@java.lang.Override
@@ -10603,13 +11012,6 @@ private DeleteTest(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
@@ -10654,6 +11056,13 @@ private DeleteTest(
isError_ = input.readBool();
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -10667,17 +11076,18 @@ private DeleteTest(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_DeleteTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_DeleteTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_DeleteTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_DeleteTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest.Builder.class);
}
public static final int DOC_REF_PATH_FIELD_NUMBER = 1;
@@ -10798,6 +11208,7 @@ public boolean getIsError() {
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -10807,6 +11218,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getDocRefPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, docRefPath_);
@@ -10823,6 +11235,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -10850,25 +11263,24 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.DeleteTest)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest other =
- (com.google.cloud.firestore.conformance.TestDefinition.DeleteTest) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest) obj;
- boolean result = true;
- result = result && getDocRefPath().equals(other.getDocRefPath());
- result = result && (hasPrecondition() == other.hasPrecondition());
+ if (!getDocRefPath().equals(other.getDocRefPath())) return false;
+ if (hasPrecondition() != other.hasPrecondition()) return false;
if (hasPrecondition()) {
- result = result && getPrecondition().equals(other.getPrecondition());
+ if (!getPrecondition().equals(other.getPrecondition())) return false;
}
- result = result && (hasRequest() == other.hasRequest());
+ if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
- result = result && getRequest().equals(other.getRequest());
+ if (!getRequest().equals(other.getRequest())) return false;
}
- result = result && (getIsError() == other.getIsError());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (getIsError() != other.getIsError()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -10895,59 +11307,59 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DeleteTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DeleteTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DeleteTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DeleteTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DeleteTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DeleteTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DeleteTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DeleteTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DeleteTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DeleteTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -10955,12 +11367,12 @@ public static com.google.cloud.firestore.conformance.TestDefinition.DeleteTest p
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DeleteTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DeleteTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -10968,6 +11380,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.DeleteTest p
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -10977,10 +11390,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -10998,29 +11412,30 @@ protected Builder newBuilderForType(
* A call to DocmentRef.Delete
*
*
- * Protobuf type {@code tests.DeleteTest}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.DeleteTest}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.DeleteTest)
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTestOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.DeleteTest)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_DeleteTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_DeleteTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_DeleteTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_DeleteTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest.Builder.class);
}
// Construct using
- // com.google.cloud.firestore.conformance.TestDefinition.DeleteTest.newBuilder()
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -11034,6 +11449,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
docRefPath_ = "";
@@ -11055,28 +11471,32 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_DeleteTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_DeleteTest_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.DeleteTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.DeleteTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
.getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.DeleteTest build() {
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.DeleteTest buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest result =
- new com.google.cloud.firestore.conformance.TestDefinition.DeleteTest(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest(this);
result.docRefPath_ = docRefPath_;
if (preconditionBuilder_ == null) {
result.precondition_ = precondition_;
@@ -11093,39 +11513,46 @@ public com.google.cloud.firestore.conformance.TestDefinition.DeleteTest buildPar
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.DeleteTest) {
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest) {
return mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.DeleteTest) other);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest) other);
} else {
super.mergeFrom(other);
return this;
@@ -11133,9 +11560,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest other) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.DeleteTest
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
.getDefaultInstance()) return this;
if (!other.getDocRefPath().isEmpty()) {
docRefPath_ = other.docRefPath_;
@@ -11155,20 +11582,22 @@ public Builder mergeFrom(
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.DeleteTest parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.DeleteTest)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -11273,7 +11702,7 @@ public Builder setDocRefPathBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.firestore.v1.Precondition precondition_ = null;
+ private com.google.firestore.v1.Precondition precondition_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.firestore.v1.Precondition,
com.google.firestore.v1.Precondition.Builder,
@@ -11382,7 +11811,7 @@ public com.google.firestore.v1.PreconditionOrBuilder getPreconditionOrBuilder()
return preconditionBuilder_;
}
- private com.google.firestore.v1.CommitRequest request_ = null;
+ private com.google.firestore.v1.CommitRequest request_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.firestore.v1.CommitRequest,
com.google.firestore.v1.CommitRequest.Builder,
@@ -11607,34 +12036,37 @@ public Builder clearIsError() {
return this;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.DeleteTest)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.DeleteTest)
}
- // @@protoc_insertion_point(class_scope:tests.DeleteTest)
- private static final com.google.cloud.firestore.conformance.TestDefinition.DeleteTest
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.DeleteTest)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.DeleteTest();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DeleteTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public DeleteTest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -11652,7 +12084,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.DeleteTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DeleteTest
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -11660,7 +12093,7 @@ public com.google.protobuf.Parser getParserForType() {
public interface SetOptionOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.SetOption)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.SetOption)
com.google.protobuf.MessageOrBuilder {
/**
@@ -11681,9 +12114,10 @@ public interface SetOptionOrBuilder
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
- java.util.List getFieldsList();
+ java.util.List
+ getFieldsList();
/**
*
*
@@ -11691,9 +12125,9 @@ public interface SetOptionOrBuilder
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath getFields(int index);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath getFields(int index);
/**
*
*
@@ -11701,7 +12135,7 @@ public interface SetOptionOrBuilder
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
int getFieldsCount();
/**
@@ -11711,10 +12145,10 @@ public interface SetOptionOrBuilder
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
getFieldsOrBuilderList();
/**
*
@@ -11723,9 +12157,9 @@ public interface SetOptionOrBuilder
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder getFieldsOrBuilder(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder getFieldsOrBuilder(
int index);
}
/**
@@ -11735,11 +12169,11 @@ com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder getFiel
* An option to the DocumentRef.Set call.
*
*
- * Protobuf type {@code tests.SetOption}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.SetOption}
*/
public static final class SetOption extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.SetOption)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.SetOption)
SetOptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use SetOption.newBuilder() to construct.
@@ -11748,7 +12182,6 @@ private SetOption(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
}
private SetOption() {
- all_ = false;
fields_ = java.util.Collections.emptyList();
}
@@ -11776,13 +12209,6 @@ private SetOption(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8:
{
all_ = input.readBool();
@@ -11790,18 +12216,25 @@ private SetOption(
}
case 18:
{
- if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
fields_ =
new java.util.ArrayList<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath>();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath>();
mutable_bitField0_ |= 0x00000002;
}
fields_.add(
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.parser(),
extensionRegistry));
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -11809,7 +12242,7 @@ private SetOption(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
}
this.unknownFields = unknownFields.build();
@@ -11818,17 +12251,18 @@ private SetOption(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_SetOption_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_SetOption_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_SetOption_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_SetOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.SetOption.class,
- com.google.cloud.firestore.conformance.TestDefinition.SetOption.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption.Builder.class);
}
private int bitField0_;
@@ -11848,7 +12282,8 @@ public boolean getAll() {
}
public static final int FIELDS_FIELD_NUMBER = 2;
- private java.util.List fields_;
+ private java.util.List
+ fields_;
/**
*
*
@@ -11856,9 +12291,9 @@ public boolean getAll() {
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
- public java.util.List
+ public java.util.List
getFieldsList() {
return fields_;
}
@@ -11869,10 +12304,10 @@ public boolean getAll() {
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
public java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
@@ -11883,7 +12318,7 @@ public boolean getAll() {
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
public int getFieldsCount() {
return fields_.size();
@@ -11895,9 +12330,9 @@ public int getFieldsCount() {
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath getFields(int index) {
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath getFields(int index) {
return fields_.get(index);
}
/**
@@ -11907,15 +12342,16 @@ public com.google.cloud.firestore.conformance.TestDefinition.FieldPath getFields
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder
getFieldsOrBuilder(int index) {
return fields_.get(index);
}
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -11925,6 +12361,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (all_ != false) {
output.writeBool(1, all_);
@@ -11935,6 +12372,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -11956,17 +12394,16 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.SetOption)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.SetOption other =
- (com.google.cloud.firestore.conformance.TestDefinition.SetOption) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption) obj;
- boolean result = true;
- result = result && (getAll() == other.getAll());
- result = result && getFieldsList().equals(other.getFieldsList());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (getAll() != other.getAll()) return false;
+ if (!getFieldsList().equals(other.getFieldsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -11987,59 +12424,59 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetOption parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetOption parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetOption parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetOption parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetOption parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetOption parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetOption parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetOption parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetOption
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetOption
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -12047,12 +12484,12 @@ public static com.google.cloud.firestore.conformance.TestDefinition.SetOption pa
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetOption parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetOption parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -12060,6 +12497,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.SetOption pa
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -12069,10 +12507,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.SetOption prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -12090,29 +12529,30 @@ protected Builder newBuilderForType(
* An option to the DocumentRef.Set call.
*
*
- * Protobuf type {@code tests.SetOption}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.SetOption}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.SetOption)
- com.google.cloud.firestore.conformance.TestDefinition.SetOptionOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.SetOption)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_SetOption_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_SetOption_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_SetOption_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_SetOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.SetOption.class,
- com.google.cloud.firestore.conformance.TestDefinition.SetOption.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption.Builder.class);
}
// Construct using
- // com.google.cloud.firestore.conformance.TestDefinition.SetOption.newBuilder()
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -12128,6 +12568,7 @@ private void maybeForceBuilderInitialization() {
}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
all_ = false;
@@ -12141,32 +12582,37 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_SetOption_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_SetOption_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.SetOption
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.SetOption.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption
+ .getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.SetOption build() {
- com.google.cloud.firestore.conformance.TestDefinition.SetOption result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.SetOption buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.SetOption result =
- new com.google.cloud.firestore.conformance.TestDefinition.SetOption(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.all_ = all_;
if (fieldsBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000002);
}
@@ -12179,38 +12625,46 @@ public com.google.cloud.firestore.conformance.TestDefinition.SetOption buildPart
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.SetOption) {
- return mergeFrom((com.google.cloud.firestore.conformance.TestDefinition.SetOption) other);
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption) {
+ return mergeFrom(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption) other);
} else {
super.mergeFrom(other);
return this;
@@ -12218,10 +12672,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.firestore.conformance.TestDefinition.SetOption other) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.SetOption.getDefaultInstance())
- return this;
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption
+ .getDefaultInstance()) return this;
if (other.getAll() != false) {
setAll(other.getAll());
}
@@ -12257,20 +12711,22 @@ public Builder mergeFrom(
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.SetOption parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.SetOption)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -12327,22 +12783,22 @@ public Builder clearAll() {
return this;
}
- private java.util.List
+ private java.util.List
fields_ = java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (!((bitField0_ & 0x00000002) != 0)) {
fields_ =
new java.util.ArrayList<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath>(fields_);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath>(fields_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
fieldsBuilder_;
/**
@@ -12352,9 +12808,9 @@ private void ensureFieldsIsMutable() {
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
- public java.util.List
+ public java.util.List
getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
@@ -12369,7 +12825,7 @@ private void ensureFieldsIsMutable() {
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
@@ -12385,9 +12841,10 @@ public int getFieldsCount() {
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath getFields(int index) {
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath getFields(
+ int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
@@ -12401,10 +12858,10 @@ public com.google.cloud.firestore.conformance.TestDefinition.FieldPath getFields
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
public Builder setFields(
- int index, com.google.cloud.firestore.conformance.TestDefinition.FieldPath value) {
+ int index, com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -12424,11 +12881,12 @@ public Builder setFields(
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
public Builder setFields(
int index,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
+ builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
@@ -12445,10 +12903,10 @@ public Builder setFields(
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
public Builder addFields(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -12468,10 +12926,10 @@ public Builder addFields(
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
public Builder addFields(
- int index, com.google.cloud.firestore.conformance.TestDefinition.FieldPath value) {
+ int index, com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -12491,10 +12949,11 @@ public Builder addFields(
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
public Builder addFields(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
+ builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
@@ -12511,11 +12970,12 @@ public Builder addFields(
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
public Builder addFields(
int index,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
+ builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
@@ -12532,11 +12992,11 @@ public Builder addFields(
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
public Builder addAllFields(
java.lang.Iterable<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.FieldPath>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath>
values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
@@ -12554,7 +13014,7 @@ public Builder addAllFields(
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
@@ -12573,7 +13033,7 @@ public Builder clearFields() {
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
@@ -12592,9 +13052,9 @@ public Builder removeFields(int index) {
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
getFieldsBuilder(int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
@@ -12605,9 +13065,9 @@ public Builder removeFields(int index) {
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder
getFieldsOrBuilder(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
@@ -12622,10 +13082,10 @@ public Builder removeFields(int index) {
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
public java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
@@ -12640,13 +13100,13 @@ public Builder removeFields(int index) {
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
addFieldsBuilder() {
return getFieldsFieldBuilder()
.addBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
.getDefaultInstance());
}
/**
@@ -12656,14 +13116,14 @@ public Builder removeFields(int index) {
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
addFieldsBuilder(int index) {
return getFieldsFieldBuilder()
.addBuilder(
index,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
.getDefaultInstance());
}
/**
@@ -12673,61 +13133,62 @@ public Builder removeFields(int index) {
* field paths for a Merge option
*
*
- * repeated .tests.FieldPath fields = 2;
+ * repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 2;
*/
- public java.util.List
+ public java.util.List<
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder>
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>(
- fields_,
- ((bitField0_ & 0x00000002) == 0x00000002),
- getParentForChildren(),
- isClean());
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>(
+ fields_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
fields_ = null;
}
return fieldsBuilder_;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.SetOption)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.SetOption)
}
- // @@protoc_insertion_point(class_scope:tests.SetOption)
- private static final com.google.cloud.firestore.conformance.TestDefinition.SetOption
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.SetOption)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.SetOption();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.SetOption
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public SetOption parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -12745,7 +13206,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.SetOption
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SetOption
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -12753,7 +13215,7 @@ public com.google.protobuf.Parser getParserForType() {
public interface QueryTestOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.QueryTest)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.QueryTest)
com.google.protobuf.MessageOrBuilder {
/**
@@ -12777,17 +13239,19 @@ public interface QueryTestOrBuilder
*/
com.google.protobuf.ByteString getCollPathBytes();
- /** repeated .tests.Clause clauses = 2; */
- java.util.List getClausesList();
- /** repeated .tests.Clause clauses = 2; */
- com.google.cloud.firestore.conformance.TestDefinition.Clause getClauses(int index);
- /** repeated .tests.Clause clauses = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
+ java.util.List
+ getClausesList();
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause getClauses(int index);
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
int getClausesCount();
- /** repeated .tests.Clause clauses = 2; */
- java.util.List extends com.google.cloud.firestore.conformance.TestDefinition.ClauseOrBuilder>
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
+ java.util.List<
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.ClauseOrBuilder>
getClausesOrBuilderList();
- /** repeated .tests.Clause clauses = 2; */
- com.google.cloud.firestore.conformance.TestDefinition.ClauseOrBuilder getClausesOrBuilder(
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ClauseOrBuilder getClausesOrBuilder(
int index);
/** .google.firestore.v1.StructuredQuery query = 3; */
@@ -12800,10 +13264,10 @@ com.google.cloud.firestore.conformance.TestDefinition.ClauseOrBuilder getClauses
/** bool is_error = 4; */
boolean getIsError();
}
- /** Protobuf type {@code tests.QueryTest} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.QueryTest} */
public static final class QueryTest extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.QueryTest)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.QueryTest)
QueryTestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryTest.newBuilder() to construct.
@@ -12814,7 +13278,6 @@ private QueryTest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private QueryTest() {
collPath_ = "";
clauses_ = java.util.Collections.emptyList();
- isError_ = false;
}
@java.lang.Override
@@ -12841,13 +13304,6 @@ private QueryTest(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
@@ -12857,15 +13313,15 @@ private QueryTest(
}
case 18:
{
- if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
clauses_ =
new java.util.ArrayList<
- com.google.cloud.firestore.conformance.TestDefinition.Clause>();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause>();
mutable_bitField0_ |= 0x00000002;
}
clauses_.add(
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.Clause.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.parser(),
extensionRegistry));
break;
}
@@ -12890,6 +13346,13 @@ private QueryTest(
isError_ = input.readBool();
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -12897,7 +13360,7 @@ private QueryTest(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
clauses_ = java.util.Collections.unmodifiableList(clauses_);
}
this.unknownFields = unknownFields.build();
@@ -12906,17 +13369,18 @@ private QueryTest(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_QueryTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_QueryTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_QueryTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_QueryTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest.Builder.class);
}
private int bitField0_;
@@ -12964,28 +13428,29 @@ public com.google.protobuf.ByteString getCollPathBytes() {
}
public static final int CLAUSES_FIELD_NUMBER = 2;
- private java.util.List clauses_;
- /** repeated .tests.Clause clauses = 2; */
- public java.util.List
+ private java.util.List
+ clauses_;
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
+ public java.util.List
getClausesList() {
return clauses_;
}
- /** repeated .tests.Clause clauses = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
public java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.ClauseOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.ClauseOrBuilder>
getClausesOrBuilderList() {
return clauses_;
}
- /** repeated .tests.Clause clauses = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
public int getClausesCount() {
return clauses_.size();
}
- /** repeated .tests.Clause clauses = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.Clause getClauses(int index) {
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Clause getClauses(int index) {
return clauses_.get(index);
}
- /** repeated .tests.Clause clauses = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.ClauseOrBuilder
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.ClauseOrBuilder
getClausesOrBuilder(int index) {
return clauses_.get(index);
}
@@ -13014,6 +13479,7 @@ public boolean getIsError() {
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -13023,6 +13489,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getCollPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, collPath_);
@@ -13039,6 +13506,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -13066,22 +13534,21 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.QueryTest)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest other =
- (com.google.cloud.firestore.conformance.TestDefinition.QueryTest) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest) obj;
- boolean result = true;
- result = result && getCollPath().equals(other.getCollPath());
- result = result && getClausesList().equals(other.getClausesList());
- result = result && (hasQuery() == other.hasQuery());
+ if (!getCollPath().equals(other.getCollPath())) return false;
+ if (!getClausesList().equals(other.getClausesList())) return false;
+ if (hasQuery() != other.hasQuery()) return false;
if (hasQuery()) {
- result = result && getQuery().equals(other.getQuery());
+ if (!getQuery().equals(other.getQuery())) return false;
}
- result = result && (getIsError() == other.getIsError());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (getIsError() != other.getIsError()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -13108,59 +13575,59 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.QueryTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.QueryTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.QueryTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.QueryTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.QueryTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.QueryTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.QueryTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.QueryTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.QueryTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.QueryTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -13168,12 +13635,12 @@ public static com.google.cloud.firestore.conformance.TestDefinition.QueryTest pa
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.QueryTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.QueryTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -13181,6 +13648,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.QueryTest pa
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -13190,10 +13658,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -13204,28 +13673,29 @@ protected Builder newBuilderForType(
Builder builder = new Builder(parent);
return builder;
}
- /** Protobuf type {@code tests.QueryTest} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.QueryTest} */
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.QueryTest)
- com.google.cloud.firestore.conformance.TestDefinition.QueryTestOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.QueryTest)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_QueryTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_QueryTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_QueryTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_QueryTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest.Builder.class);
}
// Construct using
- // com.google.cloud.firestore.conformance.TestDefinition.QueryTest.newBuilder()
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -13241,6 +13711,7 @@ private void maybeForceBuilderInitialization() {
}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
collPath_ = "";
@@ -13262,32 +13733,37 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_QueryTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_QueryTest_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.QueryTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.QueryTest.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest
+ .getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.QueryTest build() {
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.QueryTest buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest result =
- new com.google.cloud.firestore.conformance.TestDefinition.QueryTest(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.collPath_ = collPath_;
if (clausesBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
clauses_ = java.util.Collections.unmodifiableList(clauses_);
bitField0_ = (bitField0_ & ~0x00000002);
}
@@ -13306,38 +13782,46 @@ public com.google.cloud.firestore.conformance.TestDefinition.QueryTest buildPart
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.QueryTest) {
- return mergeFrom((com.google.cloud.firestore.conformance.TestDefinition.QueryTest) other);
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest) {
+ return mergeFrom(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest) other);
} else {
super.mergeFrom(other);
return this;
@@ -13345,10 +13829,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest other) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.QueryTest.getDefaultInstance())
- return this;
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest
+ .getDefaultInstance()) return this;
if (!other.getCollPath().isEmpty()) {
collPath_ = other.collPath_;
onChanged();
@@ -13391,20 +13875,22 @@ public Builder mergeFrom(
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.QueryTest parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.QueryTest)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -13511,26 +13997,26 @@ public Builder setCollPathBytes(com.google.protobuf.ByteString value) {
return this;
}
- private java.util.List
+ private java.util.List
clauses_ = java.util.Collections.emptyList();
private void ensureClausesIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (!((bitField0_ & 0x00000002) != 0)) {
clauses_ =
- new java.util.ArrayList(
- clauses_);
+ new java.util.ArrayList<
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause>(clauses_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Clause,
- com.google.cloud.firestore.conformance.TestDefinition.Clause.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.ClauseOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ClauseOrBuilder>
clausesBuilder_;
- /** repeated .tests.Clause clauses = 2; */
- public java.util.List
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
+ public java.util.List
getClausesList() {
if (clausesBuilder_ == null) {
return java.util.Collections.unmodifiableList(clauses_);
@@ -13538,7 +14024,7 @@ private void ensureClausesIsMutable() {
return clausesBuilder_.getMessageList();
}
}
- /** repeated .tests.Clause clauses = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
public int getClausesCount() {
if (clausesBuilder_ == null) {
return clauses_.size();
@@ -13546,17 +14032,17 @@ public int getClausesCount() {
return clausesBuilder_.getCount();
}
}
- /** repeated .tests.Clause clauses = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.Clause getClauses(int index) {
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Clause getClauses(int index) {
if (clausesBuilder_ == null) {
return clauses_.get(index);
} else {
return clausesBuilder_.getMessage(index);
}
}
- /** repeated .tests.Clause clauses = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
public Builder setClauses(
- int index, com.google.cloud.firestore.conformance.TestDefinition.Clause value) {
+ int index, com.google.cloud.conformance.firestore.v1.TestDefinition.Clause value) {
if (clausesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -13569,10 +14055,10 @@ public Builder setClauses(
}
return this;
}
- /** repeated .tests.Clause clauses = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
public Builder setClauses(
int index,
- com.google.cloud.firestore.conformance.TestDefinition.Clause.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.Builder builderForValue) {
if (clausesBuilder_ == null) {
ensureClausesIsMutable();
clauses_.set(index, builderForValue.build());
@@ -13582,9 +14068,9 @@ public Builder setClauses(
}
return this;
}
- /** repeated .tests.Clause clauses = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
public Builder addClauses(
- com.google.cloud.firestore.conformance.TestDefinition.Clause value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause value) {
if (clausesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -13597,9 +14083,9 @@ public Builder addClauses(
}
return this;
}
- /** repeated .tests.Clause clauses = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
public Builder addClauses(
- int index, com.google.cloud.firestore.conformance.TestDefinition.Clause value) {
+ int index, com.google.cloud.conformance.firestore.v1.TestDefinition.Clause value) {
if (clausesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -13612,9 +14098,9 @@ public Builder addClauses(
}
return this;
}
- /** repeated .tests.Clause clauses = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
public Builder addClauses(
- com.google.cloud.firestore.conformance.TestDefinition.Clause.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.Builder builderForValue) {
if (clausesBuilder_ == null) {
ensureClausesIsMutable();
clauses_.add(builderForValue.build());
@@ -13624,10 +14110,10 @@ public Builder addClauses(
}
return this;
}
- /** repeated .tests.Clause clauses = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
public Builder addClauses(
int index,
- com.google.cloud.firestore.conformance.TestDefinition.Clause.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.Builder builderForValue) {
if (clausesBuilder_ == null) {
ensureClausesIsMutable();
clauses_.add(index, builderForValue.build());
@@ -13637,9 +14123,10 @@ public Builder addClauses(
}
return this;
}
- /** repeated .tests.Clause clauses = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
public Builder addAllClauses(
- java.lang.Iterable extends com.google.cloud.firestore.conformance.TestDefinition.Clause>
+ java.lang.Iterable<
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.Clause>
values) {
if (clausesBuilder_ == null) {
ensureClausesIsMutable();
@@ -13650,7 +14137,7 @@ public Builder addAllClauses(
}
return this;
}
- /** repeated .tests.Clause clauses = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
public Builder clearClauses() {
if (clausesBuilder_ == null) {
clauses_ = java.util.Collections.emptyList();
@@ -13661,7 +14148,7 @@ public Builder clearClauses() {
}
return this;
}
- /** repeated .tests.Clause clauses = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
public Builder removeClauses(int index) {
if (clausesBuilder_ == null) {
ensureClausesIsMutable();
@@ -13672,13 +14159,13 @@ public Builder removeClauses(int index) {
}
return this;
}
- /** repeated .tests.Clause clauses = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.Clause.Builder getClausesBuilder(
- int index) {
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.Builder
+ getClausesBuilder(int index) {
return getClausesFieldBuilder().getBuilder(index);
}
- /** repeated .tests.Clause clauses = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.ClauseOrBuilder
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.ClauseOrBuilder
getClausesOrBuilder(int index) {
if (clausesBuilder_ == null) {
return clauses_.get(index);
@@ -13686,9 +14173,9 @@ public com.google.cloud.firestore.conformance.TestDefinition.Clause.Builder getC
return clausesBuilder_.getMessageOrBuilder(index);
}
}
- /** repeated .tests.Clause clauses = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
public java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.ClauseOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.ClauseOrBuilder>
getClausesOrBuilderList() {
if (clausesBuilder_ != null) {
return clausesBuilder_.getMessageOrBuilderList();
@@ -13696,48 +14183,47 @@ public com.google.cloud.firestore.conformance.TestDefinition.Clause.Builder getC
return java.util.Collections.unmodifiableList(clauses_);
}
}
- /** repeated .tests.Clause clauses = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.Clause.Builder
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.Builder
addClausesBuilder() {
return getClausesFieldBuilder()
.addBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.Clause.getDefaultInstance());
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause
+ .getDefaultInstance());
}
- /** repeated .tests.Clause clauses = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.Clause.Builder addClausesBuilder(
- int index) {
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.Builder
+ addClausesBuilder(int index) {
return getClausesFieldBuilder()
.addBuilder(
index,
- com.google.cloud.firestore.conformance.TestDefinition.Clause.getDefaultInstance());
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause
+ .getDefaultInstance());
}
- /** repeated .tests.Clause clauses = 2; */
- public java.util.List
+ /** repeated .google.cloud.conformance.firestore.v1.Clause clauses = 2; */
+ public java.util.List
getClausesBuilderList() {
return getClausesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Clause,
- com.google.cloud.firestore.conformance.TestDefinition.Clause.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.ClauseOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ClauseOrBuilder>
getClausesFieldBuilder() {
if (clausesBuilder_ == null) {
clausesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Clause,
- com.google.cloud.firestore.conformance.TestDefinition.Clause.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.ClauseOrBuilder>(
- clauses_,
- ((bitField0_ & 0x00000002) == 0x00000002),
- getParentForChildren(),
- isClean());
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ClauseOrBuilder>(
+ clauses_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
clauses_ = null;
}
return clausesBuilder_;
}
- private com.google.firestore.v1.StructuredQuery query_ = null;
+ private com.google.firestore.v1.StructuredQuery query_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.firestore.v1.StructuredQuery,
com.google.firestore.v1.StructuredQuery.Builder,
@@ -13866,34 +14352,37 @@ public Builder clearIsError() {
return this;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.QueryTest)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.QueryTest)
}
- // @@protoc_insertion_point(class_scope:tests.QueryTest)
- private static final com.google.cloud.firestore.conformance.TestDefinition.QueryTest
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.QueryTest)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.QueryTest();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.QueryTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public QueryTest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -13911,7 +14400,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.QueryTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.QueryTest
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -13919,29 +14409,29 @@ public com.google.protobuf.Parser getParserForType() {
public interface ClauseOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.Clause)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.Clause)
com.google.protobuf.MessageOrBuilder {
- /** .tests.Select select = 1; */
+ /** .google.cloud.conformance.firestore.v1.Select select = 1; */
boolean hasSelect();
- /** .tests.Select select = 1; */
- com.google.cloud.firestore.conformance.TestDefinition.Select getSelect();
- /** .tests.Select select = 1; */
- com.google.cloud.firestore.conformance.TestDefinition.SelectOrBuilder getSelectOrBuilder();
+ /** .google.cloud.conformance.firestore.v1.Select select = 1; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select getSelect();
+ /** .google.cloud.conformance.firestore.v1.Select select = 1; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SelectOrBuilder getSelectOrBuilder();
- /** .tests.Where where = 2; */
+ /** .google.cloud.conformance.firestore.v1.Where where = 2; */
boolean hasWhere();
- /** .tests.Where where = 2; */
- com.google.cloud.firestore.conformance.TestDefinition.Where getWhere();
- /** .tests.Where where = 2; */
- com.google.cloud.firestore.conformance.TestDefinition.WhereOrBuilder getWhereOrBuilder();
+ /** .google.cloud.conformance.firestore.v1.Where where = 2; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where getWhere();
+ /** .google.cloud.conformance.firestore.v1.Where where = 2; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.WhereOrBuilder getWhereOrBuilder();
- /** .tests.OrderBy order_by = 3; */
+ /** .google.cloud.conformance.firestore.v1.OrderBy order_by = 3; */
boolean hasOrderBy();
- /** .tests.OrderBy order_by = 3; */
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy getOrderBy();
- /** .tests.OrderBy order_by = 3; */
- com.google.cloud.firestore.conformance.TestDefinition.OrderByOrBuilder getOrderByOrBuilder();
+ /** .google.cloud.conformance.firestore.v1.OrderBy order_by = 3; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy getOrderBy();
+ /** .google.cloud.conformance.firestore.v1.OrderBy order_by = 3; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderByOrBuilder getOrderByOrBuilder();
/** int32 offset = 4; */
int getOffset();
@@ -13949,40 +14439,43 @@ public interface ClauseOrBuilder
/** int32 limit = 5; */
int getLimit();
- /** .tests.Cursor start_at = 6; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_at = 6; */
boolean hasStartAt();
- /** .tests.Cursor start_at = 6; */
- com.google.cloud.firestore.conformance.TestDefinition.Cursor getStartAt();
- /** .tests.Cursor start_at = 6; */
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder getStartAtOrBuilder();
+ /** .google.cloud.conformance.firestore.v1.Cursor start_at = 6; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor getStartAt();
+ /** .google.cloud.conformance.firestore.v1.Cursor start_at = 6; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder getStartAtOrBuilder();
- /** .tests.Cursor start_after = 7; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_after = 7; */
boolean hasStartAfter();
- /** .tests.Cursor start_after = 7; */
- com.google.cloud.firestore.conformance.TestDefinition.Cursor getStartAfter();
- /** .tests.Cursor start_after = 7; */
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder getStartAfterOrBuilder();
+ /** .google.cloud.conformance.firestore.v1.Cursor start_after = 7; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor getStartAfter();
+ /** .google.cloud.conformance.firestore.v1.Cursor start_after = 7; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder
+ getStartAfterOrBuilder();
- /** .tests.Cursor end_at = 8; */
+ /** .google.cloud.conformance.firestore.v1.Cursor end_at = 8; */
boolean hasEndAt();
- /** .tests.Cursor end_at = 8; */
- com.google.cloud.firestore.conformance.TestDefinition.Cursor getEndAt();
- /** .tests.Cursor end_at = 8; */
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder getEndAtOrBuilder();
+ /** .google.cloud.conformance.firestore.v1.Cursor end_at = 8; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor getEndAt();
+ /** .google.cloud.conformance.firestore.v1.Cursor end_at = 8; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder getEndAtOrBuilder();
- /** .tests.Cursor end_before = 9; */
+ /** .google.cloud.conformance.firestore.v1.Cursor end_before = 9; */
boolean hasEndBefore();
- /** .tests.Cursor end_before = 9; */
- com.google.cloud.firestore.conformance.TestDefinition.Cursor getEndBefore();
- /** .tests.Cursor end_before = 9; */
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder getEndBeforeOrBuilder();
-
- public com.google.cloud.firestore.conformance.TestDefinition.Clause.ClauseCase getClauseCase();
+ /** .google.cloud.conformance.firestore.v1.Cursor end_before = 9; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor getEndBefore();
+ /** .google.cloud.conformance.firestore.v1.Cursor end_before = 9; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder
+ getEndBeforeOrBuilder();
+
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.ClauseCase
+ getClauseCase();
}
- /** Protobuf type {@code tests.Clause} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.Clause} */
public static final class Clause extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.Clause)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.Clause)
ClauseOrBuilder {
private static final long serialVersionUID = 0L;
// Use Clause.newBuilder() to construct.
@@ -14016,29 +14509,22 @@ private Clause(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
- com.google.cloud.firestore.conformance.TestDefinition.Select.Builder subBuilder =
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select.Builder subBuilder =
null;
if (clauseCase_ == 1) {
subBuilder =
- ((com.google.cloud.firestore.conformance.TestDefinition.Select) clause_)
+ ((com.google.cloud.conformance.firestore.v1.TestDefinition.Select) clause_)
.toBuilder();
}
clause_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.Select.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.Select) clause_);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Select) clause_);
clause_ = subBuilder.buildPartial();
}
clauseCase_ = 1;
@@ -14046,20 +14532,20 @@ private Clause(
}
case 18:
{
- com.google.cloud.firestore.conformance.TestDefinition.Where.Builder subBuilder =
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where.Builder subBuilder =
null;
if (clauseCase_ == 2) {
subBuilder =
- ((com.google.cloud.firestore.conformance.TestDefinition.Where) clause_)
+ ((com.google.cloud.conformance.firestore.v1.TestDefinition.Where) clause_)
.toBuilder();
}
clause_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.Where.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.Where) clause_);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Where) clause_);
clause_ = subBuilder.buildPartial();
}
clauseCase_ = 2;
@@ -14067,20 +14553,20 @@ private Clause(
}
case 26:
{
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy.Builder subBuilder =
- null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy.Builder
+ subBuilder = null;
if (clauseCase_ == 3) {
subBuilder =
- ((com.google.cloud.firestore.conformance.TestDefinition.OrderBy) clause_)
+ ((com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy) clause_)
.toBuilder();
}
clause_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.OrderBy) clause_);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy) clause_);
clause_ = subBuilder.buildPartial();
}
clauseCase_ = 3;
@@ -14100,20 +14586,20 @@ private Clause(
}
case 50:
{
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder subBuilder =
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder subBuilder =
null;
if (clauseCase_ == 6) {
subBuilder =
- ((com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_)
+ ((com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_)
.toBuilder();
}
clause_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_);
clause_ = subBuilder.buildPartial();
}
clauseCase_ = 6;
@@ -14121,20 +14607,20 @@ private Clause(
}
case 58:
{
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder subBuilder =
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder subBuilder =
null;
if (clauseCase_ == 7) {
subBuilder =
- ((com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_)
+ ((com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_)
.toBuilder();
}
clause_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_);
clause_ = subBuilder.buildPartial();
}
clauseCase_ = 7;
@@ -14142,20 +14628,20 @@ private Clause(
}
case 66:
{
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder subBuilder =
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder subBuilder =
null;
if (clauseCase_ == 8) {
subBuilder =
- ((com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_)
+ ((com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_)
.toBuilder();
}
clause_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_);
clause_ = subBuilder.buildPartial();
}
clauseCase_ = 8;
@@ -14163,25 +14649,32 @@ private Clause(
}
case 74:
{
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder subBuilder =
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder subBuilder =
null;
if (clauseCase_ == 9) {
subBuilder =
- ((com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_)
+ ((com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_)
.toBuilder();
}
clause_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_);
clause_ = subBuilder.buildPartial();
}
clauseCase_ = 9;
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -14195,17 +14688,18 @@ private Clause(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Clause_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Clause_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Clause_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Clause_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.Clause.class,
- com.google.cloud.firestore.conformance.TestDefinition.Clause.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.Builder.class);
}
private int clauseCase_ = 0;
@@ -14270,66 +14764,66 @@ public ClauseCase getClauseCase() {
}
public static final int SELECT_FIELD_NUMBER = 1;
- /** .tests.Select select = 1; */
+ /** .google.cloud.conformance.firestore.v1.Select select = 1; */
public boolean hasSelect() {
return clauseCase_ == 1;
}
- /** .tests.Select select = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.Select getSelect() {
+ /** .google.cloud.conformance.firestore.v1.Select select = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Select getSelect() {
if (clauseCase_ == 1) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Select) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Select) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Select.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Select.getDefaultInstance();
}
- /** .tests.Select select = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.SelectOrBuilder
+ /** .google.cloud.conformance.firestore.v1.Select select = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SelectOrBuilder
getSelectOrBuilder() {
if (clauseCase_ == 1) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Select) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Select) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Select.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Select.getDefaultInstance();
}
public static final int WHERE_FIELD_NUMBER = 2;
- /** .tests.Where where = 2; */
+ /** .google.cloud.conformance.firestore.v1.Where where = 2; */
public boolean hasWhere() {
return clauseCase_ == 2;
}
- /** .tests.Where where = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.Where getWhere() {
+ /** .google.cloud.conformance.firestore.v1.Where where = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Where getWhere() {
if (clauseCase_ == 2) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Where) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Where) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Where.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Where.getDefaultInstance();
}
- /** .tests.Where where = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.WhereOrBuilder
+ /** .google.cloud.conformance.firestore.v1.Where where = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.WhereOrBuilder
getWhereOrBuilder() {
if (clauseCase_ == 2) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Where) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Where) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Where.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Where.getDefaultInstance();
}
public static final int ORDER_BY_FIELD_NUMBER = 3;
- /** .tests.OrderBy order_by = 3; */
+ /** .google.cloud.conformance.firestore.v1.OrderBy order_by = 3; */
public boolean hasOrderBy() {
return clauseCase_ == 3;
}
- /** .tests.OrderBy order_by = 3; */
- public com.google.cloud.firestore.conformance.TestDefinition.OrderBy getOrderBy() {
+ /** .google.cloud.conformance.firestore.v1.OrderBy order_by = 3; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy getOrderBy() {
if (clauseCase_ == 3) {
- return (com.google.cloud.firestore.conformance.TestDefinition.OrderBy) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.OrderBy.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy.getDefaultInstance();
}
- /** .tests.OrderBy order_by = 3; */
- public com.google.cloud.firestore.conformance.TestDefinition.OrderByOrBuilder
+ /** .google.cloud.conformance.firestore.v1.OrderBy order_by = 3; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.OrderByOrBuilder
getOrderByOrBuilder() {
if (clauseCase_ == 3) {
- return (com.google.cloud.firestore.conformance.TestDefinition.OrderBy) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.OrderBy.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy.getDefaultInstance();
}
public static final int OFFSET_FIELD_NUMBER = 4;
@@ -14351,91 +14845,92 @@ public int getLimit() {
}
public static final int START_AT_FIELD_NUMBER = 6;
- /** .tests.Cursor start_at = 6; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_at = 6; */
public boolean hasStartAt() {
return clauseCase_ == 6;
}
- /** .tests.Cursor start_at = 6; */
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor getStartAt() {
+ /** .google.cloud.conformance.firestore.v1.Cursor start_at = 6; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor getStartAt() {
if (clauseCase_ == 6) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.getDefaultInstance();
}
- /** .tests.Cursor start_at = 6; */
- public com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder
+ /** .google.cloud.conformance.firestore.v1.Cursor start_at = 6; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder
getStartAtOrBuilder() {
if (clauseCase_ == 6) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.getDefaultInstance();
}
public static final int START_AFTER_FIELD_NUMBER = 7;
- /** .tests.Cursor start_after = 7; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_after = 7; */
public boolean hasStartAfter() {
return clauseCase_ == 7;
}
- /** .tests.Cursor start_after = 7; */
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor getStartAfter() {
+ /** .google.cloud.conformance.firestore.v1.Cursor start_after = 7; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor getStartAfter() {
if (clauseCase_ == 7) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.getDefaultInstance();
}
- /** .tests.Cursor start_after = 7; */
- public com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder
+ /** .google.cloud.conformance.firestore.v1.Cursor start_after = 7; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder
getStartAfterOrBuilder() {
if (clauseCase_ == 7) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.getDefaultInstance();
}
public static final int END_AT_FIELD_NUMBER = 8;
- /** .tests.Cursor end_at = 8; */
+ /** .google.cloud.conformance.firestore.v1.Cursor end_at = 8; */
public boolean hasEndAt() {
return clauseCase_ == 8;
}
- /** .tests.Cursor end_at = 8; */
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor getEndAt() {
+ /** .google.cloud.conformance.firestore.v1.Cursor end_at = 8; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor getEndAt() {
if (clauseCase_ == 8) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.getDefaultInstance();
}
- /** .tests.Cursor end_at = 8; */
- public com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder
+ /** .google.cloud.conformance.firestore.v1.Cursor end_at = 8; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder
getEndAtOrBuilder() {
if (clauseCase_ == 8) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.getDefaultInstance();
}
public static final int END_BEFORE_FIELD_NUMBER = 9;
- /** .tests.Cursor end_before = 9; */
+ /** .google.cloud.conformance.firestore.v1.Cursor end_before = 9; */
public boolean hasEndBefore() {
return clauseCase_ == 9;
}
- /** .tests.Cursor end_before = 9; */
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor getEndBefore() {
+ /** .google.cloud.conformance.firestore.v1.Cursor end_before = 9; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor getEndBefore() {
if (clauseCase_ == 9) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.getDefaultInstance();
}
- /** .tests.Cursor end_before = 9; */
- public com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder
+ /** .google.cloud.conformance.firestore.v1.Cursor end_before = 9; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder
getEndBeforeOrBuilder() {
if (clauseCase_ == 9) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -14445,18 +14940,19 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (clauseCase_ == 1) {
output.writeMessage(
- 1, (com.google.cloud.firestore.conformance.TestDefinition.Select) clause_);
+ 1, (com.google.cloud.conformance.firestore.v1.TestDefinition.Select) clause_);
}
if (clauseCase_ == 2) {
output.writeMessage(
- 2, (com.google.cloud.firestore.conformance.TestDefinition.Where) clause_);
+ 2, (com.google.cloud.conformance.firestore.v1.TestDefinition.Where) clause_);
}
if (clauseCase_ == 3) {
output.writeMessage(
- 3, (com.google.cloud.firestore.conformance.TestDefinition.OrderBy) clause_);
+ 3, (com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy) clause_);
}
if (clauseCase_ == 4) {
output.writeInt32(4, (int) ((java.lang.Integer) clause_));
@@ -14466,23 +14962,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
}
if (clauseCase_ == 6) {
output.writeMessage(
- 6, (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_);
+ 6, (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_);
}
if (clauseCase_ == 7) {
output.writeMessage(
- 7, (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_);
+ 7, (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_);
}
if (clauseCase_ == 8) {
output.writeMessage(
- 8, (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_);
+ 8, (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_);
}
if (clauseCase_ == 9) {
output.writeMessage(
- 9, (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_);
+ 9, (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_);
}
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -14491,17 +14988,17 @@ public int getSerializedSize() {
if (clauseCase_ == 1) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
- 1, (com.google.cloud.firestore.conformance.TestDefinition.Select) clause_);
+ 1, (com.google.cloud.conformance.firestore.v1.TestDefinition.Select) clause_);
}
if (clauseCase_ == 2) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
- 2, (com.google.cloud.firestore.conformance.TestDefinition.Where) clause_);
+ 2, (com.google.cloud.conformance.firestore.v1.TestDefinition.Where) clause_);
}
if (clauseCase_ == 3) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
- 3, (com.google.cloud.firestore.conformance.TestDefinition.OrderBy) clause_);
+ 3, (com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy) clause_);
}
if (clauseCase_ == 4) {
size +=
@@ -14516,22 +15013,22 @@ public int getSerializedSize() {
if (clauseCase_ == 6) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
- 6, (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_);
+ 6, (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_);
}
if (clauseCase_ == 7) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
- 7, (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_);
+ 7, (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_);
}
if (clauseCase_ == 8) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
- 8, (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_);
+ 8, (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_);
}
if (clauseCase_ == 9) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
- 9, (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_);
+ 9, (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -14543,48 +15040,46 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.Clause)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.Clause)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.Clause other =
- (com.google.cloud.firestore.conformance.TestDefinition.Clause) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Clause) obj;
- boolean result = true;
- result = result && getClauseCase().equals(other.getClauseCase());
- if (!result) return false;
+ if (!getClauseCase().equals(other.getClauseCase())) return false;
switch (clauseCase_) {
case 1:
- result = result && getSelect().equals(other.getSelect());
+ if (!getSelect().equals(other.getSelect())) return false;
break;
case 2:
- result = result && getWhere().equals(other.getWhere());
+ if (!getWhere().equals(other.getWhere())) return false;
break;
case 3:
- result = result && getOrderBy().equals(other.getOrderBy());
+ if (!getOrderBy().equals(other.getOrderBy())) return false;
break;
case 4:
- result = result && (getOffset() == other.getOffset());
+ if (getOffset() != other.getOffset()) return false;
break;
case 5:
- result = result && (getLimit() == other.getLimit());
+ if (getLimit() != other.getLimit()) return false;
break;
case 6:
- result = result && getStartAt().equals(other.getStartAt());
+ if (!getStartAt().equals(other.getStartAt())) return false;
break;
case 7:
- result = result && getStartAfter().equals(other.getStartAfter());
+ if (!getStartAfter().equals(other.getStartAfter())) return false;
break;
case 8:
- result = result && getEndAt().equals(other.getEndAt());
+ if (!getEndAt().equals(other.getEndAt())) return false;
break;
case 9:
- result = result && getEndBefore().equals(other.getEndBefore());
+ if (!getEndBefore().equals(other.getEndBefore())) return false;
break;
case 0:
default:
}
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -14639,71 +15134,72 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Clause parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Clause parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Clause parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Clause parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Clause parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Clause parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Clause parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Clause parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Clause parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Clause parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Clause parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Clause parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Clause parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Clause parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Clause parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Clause parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Clause parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Clause
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Clause parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Clause
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Clause parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Clause parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Clause parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Clause parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -14711,6 +15207,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.Clause parse
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -14720,10 +15217,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.Clause prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -14734,27 +15232,29 @@ protected Builder newBuilderForType(
Builder builder = new Builder(parent);
return builder;
}
- /** Protobuf type {@code tests.Clause} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.Clause} */
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.Clause)
- com.google.cloud.firestore.conformance.TestDefinition.ClauseOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.Clause)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ClauseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Clause_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Clause_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Clause_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Clause_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.Clause.class,
- com.google.cloud.firestore.conformance.TestDefinition.Clause.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.Builder.class);
}
- // Construct using com.google.cloud.firestore.conformance.TestDefinition.Clause.newBuilder()
+ // Construct using
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -14768,6 +15268,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
clauseCase_ = 0;
@@ -14775,27 +15276,31 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Clause_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Clause_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Clause
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Clause
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.Clause.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.Clause build() {
- com.google.cloud.firestore.conformance.TestDefinition.Clause result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Clause build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Clause buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.Clause result =
- new com.google.cloud.firestore.conformance.TestDefinition.Clause(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Clause buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.Clause(this);
if (clauseCase_ == 1) {
if (selectBuilder_ == null) {
result.clause_ = clause_;
@@ -14856,47 +15361,55 @@ public com.google.cloud.firestore.conformance.TestDefinition.Clause buildPartial
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.Clause) {
- return mergeFrom((com.google.cloud.firestore.conformance.TestDefinition.Clause) other);
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.Clause) {
+ return mergeFrom((com.google.cloud.conformance.firestore.v1.TestDefinition.Clause) other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(com.google.cloud.firestore.conformance.TestDefinition.Clause other) {
+ public Builder mergeFrom(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.Clause.getDefaultInstance())
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.Clause.getDefaultInstance())
return this;
switch (other.getClauseCase()) {
case SELECT:
@@ -14954,20 +15467,22 @@ public Builder mergeFrom(com.google.cloud.firestore.conformance.TestDefinition.C
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.Clause parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Clause parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.Clause)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Clause)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -14993,30 +15508,33 @@ public Builder clearClause() {
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Select,
- com.google.cloud.firestore.conformance.TestDefinition.Select.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.SelectOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SelectOrBuilder>
selectBuilder_;
- /** .tests.Select select = 1; */
+ /** .google.cloud.conformance.firestore.v1.Select select = 1; */
public boolean hasSelect() {
return clauseCase_ == 1;
}
- /** .tests.Select select = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.Select getSelect() {
+ /** .google.cloud.conformance.firestore.v1.Select select = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Select getSelect() {
if (selectBuilder_ == null) {
if (clauseCase_ == 1) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Select) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Select) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Select.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Select
+ .getDefaultInstance();
} else {
if (clauseCase_ == 1) {
return selectBuilder_.getMessage();
}
- return com.google.cloud.firestore.conformance.TestDefinition.Select.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Select
+ .getDefaultInstance();
}
}
- /** .tests.Select select = 1; */
- public Builder setSelect(com.google.cloud.firestore.conformance.TestDefinition.Select value) {
+ /** .google.cloud.conformance.firestore.v1.Select select = 1; */
+ public Builder setSelect(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select value) {
if (selectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -15029,9 +15547,9 @@ public Builder setSelect(com.google.cloud.firestore.conformance.TestDefinition.S
clauseCase_ = 1;
return this;
}
- /** .tests.Select select = 1; */
+ /** .google.cloud.conformance.firestore.v1.Select select = 1; */
public Builder setSelect(
- com.google.cloud.firestore.conformance.TestDefinition.Select.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select.Builder builderForValue) {
if (selectBuilder_ == null) {
clause_ = builderForValue.build();
onChanged();
@@ -15041,17 +15559,17 @@ public Builder setSelect(
clauseCase_ = 1;
return this;
}
- /** .tests.Select select = 1; */
+ /** .google.cloud.conformance.firestore.v1.Select select = 1; */
public Builder mergeSelect(
- com.google.cloud.firestore.conformance.TestDefinition.Select value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select value) {
if (selectBuilder_ == null) {
if (clauseCase_ == 1
&& clause_
- != com.google.cloud.firestore.conformance.TestDefinition.Select
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.Select
.getDefaultInstance()) {
clause_ =
- com.google.cloud.firestore.conformance.TestDefinition.Select.newBuilder(
- (com.google.cloud.firestore.conformance.TestDefinition.Select) clause_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select.newBuilder(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Select) clause_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -15067,7 +15585,7 @@ public Builder mergeSelect(
clauseCase_ = 1;
return this;
}
- /** .tests.Select select = 1; */
+ /** .google.cloud.conformance.firestore.v1.Select select = 1; */
public Builder clearSelect() {
if (selectBuilder_ == null) {
if (clauseCase_ == 1) {
@@ -15084,40 +15602,42 @@ public Builder clearSelect() {
}
return this;
}
- /** .tests.Select select = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.Select.Builder
+ /** .google.cloud.conformance.firestore.v1.Select select = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Select.Builder
getSelectBuilder() {
return getSelectFieldBuilder().getBuilder();
}
- /** .tests.Select select = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.SelectOrBuilder
+ /** .google.cloud.conformance.firestore.v1.Select select = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SelectOrBuilder
getSelectOrBuilder() {
if ((clauseCase_ == 1) && (selectBuilder_ != null)) {
return selectBuilder_.getMessageOrBuilder();
} else {
if (clauseCase_ == 1) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Select) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Select) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Select.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Select
+ .getDefaultInstance();
}
}
- /** .tests.Select select = 1; */
+ /** .google.cloud.conformance.firestore.v1.Select select = 1; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Select,
- com.google.cloud.firestore.conformance.TestDefinition.Select.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.SelectOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SelectOrBuilder>
getSelectFieldBuilder() {
if (selectBuilder_ == null) {
if (!(clauseCase_ == 1)) {
clause_ =
- com.google.cloud.firestore.conformance.TestDefinition.Select.getDefaultInstance();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select
+ .getDefaultInstance();
}
selectBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Select,
- com.google.cloud.firestore.conformance.TestDefinition.Select.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.SelectOrBuilder>(
- (com.google.cloud.firestore.conformance.TestDefinition.Select) clause_,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SelectOrBuilder>(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Select) clause_,
getParentForChildren(),
isClean());
clause_ = null;
@@ -15129,30 +15649,33 @@ public Builder clearSelect() {
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Where,
- com.google.cloud.firestore.conformance.TestDefinition.Where.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.WhereOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.WhereOrBuilder>
whereBuilder_;
- /** .tests.Where where = 2; */
+ /** .google.cloud.conformance.firestore.v1.Where where = 2; */
public boolean hasWhere() {
return clauseCase_ == 2;
}
- /** .tests.Where where = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.Where getWhere() {
+ /** .google.cloud.conformance.firestore.v1.Where where = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Where getWhere() {
if (whereBuilder_ == null) {
if (clauseCase_ == 2) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Where) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Where) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Where.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Where
+ .getDefaultInstance();
} else {
if (clauseCase_ == 2) {
return whereBuilder_.getMessage();
}
- return com.google.cloud.firestore.conformance.TestDefinition.Where.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Where
+ .getDefaultInstance();
}
}
- /** .tests.Where where = 2; */
- public Builder setWhere(com.google.cloud.firestore.conformance.TestDefinition.Where value) {
+ /** .google.cloud.conformance.firestore.v1.Where where = 2; */
+ public Builder setWhere(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where value) {
if (whereBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -15165,9 +15688,9 @@ public Builder setWhere(com.google.cloud.firestore.conformance.TestDefinition.Wh
clauseCase_ = 2;
return this;
}
- /** .tests.Where where = 2; */
+ /** .google.cloud.conformance.firestore.v1.Where where = 2; */
public Builder setWhere(
- com.google.cloud.firestore.conformance.TestDefinition.Where.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where.Builder builderForValue) {
if (whereBuilder_ == null) {
clause_ = builderForValue.build();
onChanged();
@@ -15177,16 +15700,17 @@ public Builder setWhere(
clauseCase_ = 2;
return this;
}
- /** .tests.Where where = 2; */
- public Builder mergeWhere(com.google.cloud.firestore.conformance.TestDefinition.Where value) {
+ /** .google.cloud.conformance.firestore.v1.Where where = 2; */
+ public Builder mergeWhere(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where value) {
if (whereBuilder_ == null) {
if (clauseCase_ == 2
&& clause_
- != com.google.cloud.firestore.conformance.TestDefinition.Where
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.Where
.getDefaultInstance()) {
clause_ =
- com.google.cloud.firestore.conformance.TestDefinition.Where.newBuilder(
- (com.google.cloud.firestore.conformance.TestDefinition.Where) clause_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where.newBuilder(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Where) clause_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -15202,7 +15726,7 @@ public Builder mergeWhere(com.google.cloud.firestore.conformance.TestDefinition.
clauseCase_ = 2;
return this;
}
- /** .tests.Where where = 2; */
+ /** .google.cloud.conformance.firestore.v1.Where where = 2; */
public Builder clearWhere() {
if (whereBuilder_ == null) {
if (clauseCase_ == 2) {
@@ -15219,39 +15743,41 @@ public Builder clearWhere() {
}
return this;
}
- /** .tests.Where where = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.Where.Builder getWhereBuilder() {
+ /** .google.cloud.conformance.firestore.v1.Where where = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Where.Builder
+ getWhereBuilder() {
return getWhereFieldBuilder().getBuilder();
}
- /** .tests.Where where = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.WhereOrBuilder
+ /** .google.cloud.conformance.firestore.v1.Where where = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.WhereOrBuilder
getWhereOrBuilder() {
if ((clauseCase_ == 2) && (whereBuilder_ != null)) {
return whereBuilder_.getMessageOrBuilder();
} else {
if (clauseCase_ == 2) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Where) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Where) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Where.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Where
+ .getDefaultInstance();
}
}
- /** .tests.Where where = 2; */
+ /** .google.cloud.conformance.firestore.v1.Where where = 2; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Where,
- com.google.cloud.firestore.conformance.TestDefinition.Where.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.WhereOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.WhereOrBuilder>
getWhereFieldBuilder() {
if (whereBuilder_ == null) {
if (!(clauseCase_ == 2)) {
clause_ =
- com.google.cloud.firestore.conformance.TestDefinition.Where.getDefaultInstance();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where.getDefaultInstance();
}
whereBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Where,
- com.google.cloud.firestore.conformance.TestDefinition.Where.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.WhereOrBuilder>(
- (com.google.cloud.firestore.conformance.TestDefinition.Where) clause_,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.WhereOrBuilder>(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Where) clause_,
getParentForChildren(),
isClean());
clause_ = null;
@@ -15263,31 +15789,33 @@ public com.google.cloud.firestore.conformance.TestDefinition.Where.Builder getWh
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy,
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.OrderByOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderByOrBuilder>
orderByBuilder_;
- /** .tests.OrderBy order_by = 3; */
+ /** .google.cloud.conformance.firestore.v1.OrderBy order_by = 3; */
public boolean hasOrderBy() {
return clauseCase_ == 3;
}
- /** .tests.OrderBy order_by = 3; */
- public com.google.cloud.firestore.conformance.TestDefinition.OrderBy getOrderBy() {
+ /** .google.cloud.conformance.firestore.v1.OrderBy order_by = 3; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy getOrderBy() {
if (orderByBuilder_ == null) {
if (clauseCase_ == 3) {
- return (com.google.cloud.firestore.conformance.TestDefinition.OrderBy) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.OrderBy.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy
+ .getDefaultInstance();
} else {
if (clauseCase_ == 3) {
return orderByBuilder_.getMessage();
}
- return com.google.cloud.firestore.conformance.TestDefinition.OrderBy.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy
+ .getDefaultInstance();
}
}
- /** .tests.OrderBy order_by = 3; */
+ /** .google.cloud.conformance.firestore.v1.OrderBy order_by = 3; */
public Builder setOrderBy(
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy value) {
if (orderByBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -15300,9 +15828,10 @@ public Builder setOrderBy(
clauseCase_ = 3;
return this;
}
- /** .tests.OrderBy order_by = 3; */
+ /** .google.cloud.conformance.firestore.v1.OrderBy order_by = 3; */
public Builder setOrderBy(
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy.Builder
+ builderForValue) {
if (orderByBuilder_ == null) {
clause_ = builderForValue.build();
onChanged();
@@ -15312,17 +15841,17 @@ public Builder setOrderBy(
clauseCase_ = 3;
return this;
}
- /** .tests.OrderBy order_by = 3; */
+ /** .google.cloud.conformance.firestore.v1.OrderBy order_by = 3; */
public Builder mergeOrderBy(
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy value) {
if (orderByBuilder_ == null) {
if (clauseCase_ == 3
&& clause_
- != com.google.cloud.firestore.conformance.TestDefinition.OrderBy
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy
.getDefaultInstance()) {
clause_ =
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy.newBuilder(
- (com.google.cloud.firestore.conformance.TestDefinition.OrderBy) clause_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy.newBuilder(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy) clause_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -15338,7 +15867,7 @@ public Builder mergeOrderBy(
clauseCase_ = 3;
return this;
}
- /** .tests.OrderBy order_by = 3; */
+ /** .google.cloud.conformance.firestore.v1.OrderBy order_by = 3; */
public Builder clearOrderBy() {
if (orderByBuilder_ == null) {
if (clauseCase_ == 3) {
@@ -15355,40 +15884,42 @@ public Builder clearOrderBy() {
}
return this;
}
- /** .tests.OrderBy order_by = 3; */
- public com.google.cloud.firestore.conformance.TestDefinition.OrderBy.Builder
+ /** .google.cloud.conformance.firestore.v1.OrderBy order_by = 3; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy.Builder
getOrderByBuilder() {
return getOrderByFieldBuilder().getBuilder();
}
- /** .tests.OrderBy order_by = 3; */
- public com.google.cloud.firestore.conformance.TestDefinition.OrderByOrBuilder
+ /** .google.cloud.conformance.firestore.v1.OrderBy order_by = 3; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.OrderByOrBuilder
getOrderByOrBuilder() {
if ((clauseCase_ == 3) && (orderByBuilder_ != null)) {
return orderByBuilder_.getMessageOrBuilder();
} else {
if (clauseCase_ == 3) {
- return (com.google.cloud.firestore.conformance.TestDefinition.OrderBy) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.OrderBy.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy
+ .getDefaultInstance();
}
}
- /** .tests.OrderBy order_by = 3; */
+ /** .google.cloud.conformance.firestore.v1.OrderBy order_by = 3; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy,
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.OrderByOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderByOrBuilder>
getOrderByFieldBuilder() {
if (orderByBuilder_ == null) {
if (!(clauseCase_ == 3)) {
clause_ =
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy.getDefaultInstance();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy
+ .getDefaultInstance();
}
orderByBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy,
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.OrderByOrBuilder>(
- (com.google.cloud.firestore.conformance.TestDefinition.OrderBy) clause_,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderByOrBuilder>(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy) clause_,
getParentForChildren(),
isClean());
clause_ = null;
@@ -15448,31 +15979,33 @@ public Builder clearLimit() {
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Cursor,
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder>
startAtBuilder_;
- /** .tests.Cursor start_at = 6; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_at = 6; */
public boolean hasStartAt() {
return clauseCase_ == 6;
}
- /** .tests.Cursor start_at = 6; */
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor getStartAt() {
+ /** .google.cloud.conformance.firestore.v1.Cursor start_at = 6; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor getStartAt() {
if (startAtBuilder_ == null) {
if (clauseCase_ == 6) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
} else {
if (clauseCase_ == 6) {
return startAtBuilder_.getMessage();
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
}
}
- /** .tests.Cursor start_at = 6; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_at = 6; */
public Builder setStartAt(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor value) {
if (startAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -15485,9 +16018,9 @@ public Builder setStartAt(
clauseCase_ = 6;
return this;
}
- /** .tests.Cursor start_at = 6; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_at = 6; */
public Builder setStartAt(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder builderForValue) {
if (startAtBuilder_ == null) {
clause_ = builderForValue.build();
onChanged();
@@ -15497,17 +16030,17 @@ public Builder setStartAt(
clauseCase_ = 6;
return this;
}
- /** .tests.Cursor start_at = 6; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_at = 6; */
public Builder mergeStartAt(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor value) {
if (startAtBuilder_ == null) {
if (clauseCase_ == 6
&& clause_
- != com.google.cloud.firestore.conformance.TestDefinition.Cursor
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
.getDefaultInstance()) {
clause_ =
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.newBuilder(
- (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.newBuilder(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -15523,7 +16056,7 @@ public Builder mergeStartAt(
clauseCase_ = 6;
return this;
}
- /** .tests.Cursor start_at = 6; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_at = 6; */
public Builder clearStartAt() {
if (startAtBuilder_ == null) {
if (clauseCase_ == 6) {
@@ -15540,40 +16073,42 @@ public Builder clearStartAt() {
}
return this;
}
- /** .tests.Cursor start_at = 6; */
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder
+ /** .google.cloud.conformance.firestore.v1.Cursor start_at = 6; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder
getStartAtBuilder() {
return getStartAtFieldBuilder().getBuilder();
}
- /** .tests.Cursor start_at = 6; */
- public com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder
+ /** .google.cloud.conformance.firestore.v1.Cursor start_at = 6; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder
getStartAtOrBuilder() {
if ((clauseCase_ == 6) && (startAtBuilder_ != null)) {
return startAtBuilder_.getMessageOrBuilder();
} else {
if (clauseCase_ == 6) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
}
}
- /** .tests.Cursor start_at = 6; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_at = 6; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Cursor,
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder>
getStartAtFieldBuilder() {
if (startAtBuilder_ == null) {
if (!(clauseCase_ == 6)) {
clause_ =
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
}
startAtBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Cursor,
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder>(
- (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder>(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_,
getParentForChildren(),
isClean());
clause_ = null;
@@ -15585,31 +16120,33 @@ public Builder clearStartAt() {
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Cursor,
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder>
startAfterBuilder_;
- /** .tests.Cursor start_after = 7; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_after = 7; */
public boolean hasStartAfter() {
return clauseCase_ == 7;
}
- /** .tests.Cursor start_after = 7; */
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor getStartAfter() {
+ /** .google.cloud.conformance.firestore.v1.Cursor start_after = 7; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor getStartAfter() {
if (startAfterBuilder_ == null) {
if (clauseCase_ == 7) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
} else {
if (clauseCase_ == 7) {
return startAfterBuilder_.getMessage();
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
}
}
- /** .tests.Cursor start_after = 7; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_after = 7; */
public Builder setStartAfter(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor value) {
if (startAfterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -15622,9 +16159,9 @@ public Builder setStartAfter(
clauseCase_ = 7;
return this;
}
- /** .tests.Cursor start_after = 7; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_after = 7; */
public Builder setStartAfter(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder builderForValue) {
if (startAfterBuilder_ == null) {
clause_ = builderForValue.build();
onChanged();
@@ -15634,17 +16171,17 @@ public Builder setStartAfter(
clauseCase_ = 7;
return this;
}
- /** .tests.Cursor start_after = 7; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_after = 7; */
public Builder mergeStartAfter(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor value) {
if (startAfterBuilder_ == null) {
if (clauseCase_ == 7
&& clause_
- != com.google.cloud.firestore.conformance.TestDefinition.Cursor
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
.getDefaultInstance()) {
clause_ =
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.newBuilder(
- (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.newBuilder(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -15660,7 +16197,7 @@ public Builder mergeStartAfter(
clauseCase_ = 7;
return this;
}
- /** .tests.Cursor start_after = 7; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_after = 7; */
public Builder clearStartAfter() {
if (startAfterBuilder_ == null) {
if (clauseCase_ == 7) {
@@ -15677,40 +16214,42 @@ public Builder clearStartAfter() {
}
return this;
}
- /** .tests.Cursor start_after = 7; */
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder
+ /** .google.cloud.conformance.firestore.v1.Cursor start_after = 7; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder
getStartAfterBuilder() {
return getStartAfterFieldBuilder().getBuilder();
}
- /** .tests.Cursor start_after = 7; */
- public com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder
+ /** .google.cloud.conformance.firestore.v1.Cursor start_after = 7; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder
getStartAfterOrBuilder() {
if ((clauseCase_ == 7) && (startAfterBuilder_ != null)) {
return startAfterBuilder_.getMessageOrBuilder();
} else {
if (clauseCase_ == 7) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
}
}
- /** .tests.Cursor start_after = 7; */
+ /** .google.cloud.conformance.firestore.v1.Cursor start_after = 7; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Cursor,
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder>
getStartAfterFieldBuilder() {
if (startAfterBuilder_ == null) {
if (!(clauseCase_ == 7)) {
clause_ =
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
}
startAfterBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Cursor,
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder>(
- (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder>(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_,
getParentForChildren(),
isClean());
clause_ = null;
@@ -15722,30 +16261,33 @@ public Builder clearStartAfter() {
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Cursor,
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder>
endAtBuilder_;
- /** .tests.Cursor end_at = 8; */
+ /** .google.cloud.conformance.firestore.v1.Cursor end_at = 8; */
public boolean hasEndAt() {
return clauseCase_ == 8;
}
- /** .tests.Cursor end_at = 8; */
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor getEndAt() {
+ /** .google.cloud.conformance.firestore.v1.Cursor end_at = 8; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor getEndAt() {
if (endAtBuilder_ == null) {
if (clauseCase_ == 8) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
} else {
if (clauseCase_ == 8) {
return endAtBuilder_.getMessage();
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
}
}
- /** .tests.Cursor end_at = 8; */
- public Builder setEndAt(com.google.cloud.firestore.conformance.TestDefinition.Cursor value) {
+ /** .google.cloud.conformance.firestore.v1.Cursor end_at = 8; */
+ public Builder setEndAt(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor value) {
if (endAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -15758,9 +16300,9 @@ public Builder setEndAt(com.google.cloud.firestore.conformance.TestDefinition.Cu
clauseCase_ = 8;
return this;
}
- /** .tests.Cursor end_at = 8; */
+ /** .google.cloud.conformance.firestore.v1.Cursor end_at = 8; */
public Builder setEndAt(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder builderForValue) {
if (endAtBuilder_ == null) {
clause_ = builderForValue.build();
onChanged();
@@ -15770,17 +16312,17 @@ public Builder setEndAt(
clauseCase_ = 8;
return this;
}
- /** .tests.Cursor end_at = 8; */
+ /** .google.cloud.conformance.firestore.v1.Cursor end_at = 8; */
public Builder mergeEndAt(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor value) {
if (endAtBuilder_ == null) {
if (clauseCase_ == 8
&& clause_
- != com.google.cloud.firestore.conformance.TestDefinition.Cursor
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
.getDefaultInstance()) {
clause_ =
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.newBuilder(
- (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.newBuilder(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -15796,7 +16338,7 @@ public Builder mergeEndAt(
clauseCase_ = 8;
return this;
}
- /** .tests.Cursor end_at = 8; */
+ /** .google.cloud.conformance.firestore.v1.Cursor end_at = 8; */
public Builder clearEndAt() {
if (endAtBuilder_ == null) {
if (clauseCase_ == 8) {
@@ -15813,40 +16355,42 @@ public Builder clearEndAt() {
}
return this;
}
- /** .tests.Cursor end_at = 8; */
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder
+ /** .google.cloud.conformance.firestore.v1.Cursor end_at = 8; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder
getEndAtBuilder() {
return getEndAtFieldBuilder().getBuilder();
}
- /** .tests.Cursor end_at = 8; */
- public com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder
+ /** .google.cloud.conformance.firestore.v1.Cursor end_at = 8; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder
getEndAtOrBuilder() {
if ((clauseCase_ == 8) && (endAtBuilder_ != null)) {
return endAtBuilder_.getMessageOrBuilder();
} else {
if (clauseCase_ == 8) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
}
}
- /** .tests.Cursor end_at = 8; */
+ /** .google.cloud.conformance.firestore.v1.Cursor end_at = 8; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Cursor,
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder>
getEndAtFieldBuilder() {
if (endAtBuilder_ == null) {
if (!(clauseCase_ == 8)) {
clause_ =
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
}
endAtBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Cursor,
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder>(
- (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder>(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_,
getParentForChildren(),
isClean());
clause_ = null;
@@ -15858,31 +16402,33 @@ public Builder clearEndAt() {
}
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Cursor,
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder>
endBeforeBuilder_;
- /** .tests.Cursor end_before = 9; */
+ /** .google.cloud.conformance.firestore.v1.Cursor end_before = 9; */
public boolean hasEndBefore() {
return clauseCase_ == 9;
}
- /** .tests.Cursor end_before = 9; */
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor getEndBefore() {
+ /** .google.cloud.conformance.firestore.v1.Cursor end_before = 9; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor getEndBefore() {
if (endBeforeBuilder_ == null) {
if (clauseCase_ == 9) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
} else {
if (clauseCase_ == 9) {
return endBeforeBuilder_.getMessage();
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
}
}
- /** .tests.Cursor end_before = 9; */
+ /** .google.cloud.conformance.firestore.v1.Cursor end_before = 9; */
public Builder setEndBefore(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor value) {
if (endBeforeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -15895,9 +16441,9 @@ public Builder setEndBefore(
clauseCase_ = 9;
return this;
}
- /** .tests.Cursor end_before = 9; */
+ /** .google.cloud.conformance.firestore.v1.Cursor end_before = 9; */
public Builder setEndBefore(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder builderForValue) {
if (endBeforeBuilder_ == null) {
clause_ = builderForValue.build();
onChanged();
@@ -15907,17 +16453,17 @@ public Builder setEndBefore(
clauseCase_ = 9;
return this;
}
- /** .tests.Cursor end_before = 9; */
+ /** .google.cloud.conformance.firestore.v1.Cursor end_before = 9; */
public Builder mergeEndBefore(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor value) {
if (endBeforeBuilder_ == null) {
if (clauseCase_ == 9
&& clause_
- != com.google.cloud.firestore.conformance.TestDefinition.Cursor
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
.getDefaultInstance()) {
clause_ =
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.newBuilder(
- (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.newBuilder(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -15933,7 +16479,7 @@ public Builder mergeEndBefore(
clauseCase_ = 9;
return this;
}
- /** .tests.Cursor end_before = 9; */
+ /** .google.cloud.conformance.firestore.v1.Cursor end_before = 9; */
public Builder clearEndBefore() {
if (endBeforeBuilder_ == null) {
if (clauseCase_ == 9) {
@@ -15950,40 +16496,42 @@ public Builder clearEndBefore() {
}
return this;
}
- /** .tests.Cursor end_before = 9; */
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder
+ /** .google.cloud.conformance.firestore.v1.Cursor end_before = 9; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder
getEndBeforeBuilder() {
return getEndBeforeFieldBuilder().getBuilder();
}
- /** .tests.Cursor end_before = 9; */
- public com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder
+ /** .google.cloud.conformance.firestore.v1.Cursor end_before = 9; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder
getEndBeforeOrBuilder() {
if ((clauseCase_ == 9) && (endBeforeBuilder_ != null)) {
return endBeforeBuilder_.getMessageOrBuilder();
} else {
if (clauseCase_ == 9) {
- return (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_;
+ return (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_;
}
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
}
}
- /** .tests.Cursor end_before = 9; */
+ /** .google.cloud.conformance.firestore.v1.Cursor end_before = 9; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Cursor,
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder>
getEndBeforeFieldBuilder() {
if (endBeforeBuilder_ == null) {
if (!(clauseCase_ == 9)) {
clause_ =
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ .getDefaultInstance();
}
endBeforeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Cursor,
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder>(
- (com.google.cloud.firestore.conformance.TestDefinition.Cursor) clause_,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder>(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) clause_,
getParentForChildren(),
isClean());
clause_ = null;
@@ -15994,34 +16542,37 @@ public Builder clearEndBefore() {
return endBeforeBuilder_;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.Clause)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.Clause)
}
- // @@protoc_insertion_point(class_scope:tests.Clause)
- private static final com.google.cloud.firestore.conformance.TestDefinition.Clause
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.Clause)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.Clause
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.Clause();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.Clause();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Clause
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Clause
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public Clause parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -16039,7 +16590,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Clause
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Clause
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -16047,27 +16599,28 @@ public com.google.protobuf.Parser getParserForType() {
public interface SelectOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.Select)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.Select)
com.google.protobuf.MessageOrBuilder {
- /** repeated .tests.FieldPath fields = 1; */
- java.util.List getFieldsList();
- /** repeated .tests.FieldPath fields = 1; */
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath getFields(int index);
- /** repeated .tests.FieldPath fields = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
+ java.util.List
+ getFieldsList();
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath getFields(int index);
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
int getFieldsCount();
- /** repeated .tests.FieldPath fields = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
getFieldsOrBuilderList();
- /** repeated .tests.FieldPath fields = 1; */
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder getFieldsOrBuilder(
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder getFieldsOrBuilder(
int index);
}
- /** Protobuf type {@code tests.Select} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.Select} */
public static final class Select extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.Select)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.Select)
SelectOrBuilder {
private static final long serialVersionUID = 0L;
// Use Select.newBuilder() to construct.
@@ -16103,27 +16656,27 @@ private Select(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
fields_ =
new java.util.ArrayList<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath>();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath>();
mutable_bitField0_ |= 0x00000001;
}
fields_.add(
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.parser(),
extensionRegistry));
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -16131,7 +16684,7 @@ private Select(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
}
this.unknownFields = unknownFields.build();
@@ -16140,48 +16693,51 @@ private Select(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Select_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Select_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Select_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Select_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.Select.class,
- com.google.cloud.firestore.conformance.TestDefinition.Select.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select.Builder.class);
}
public static final int FIELDS_FIELD_NUMBER = 1;
- private java.util.List fields_;
- /** repeated .tests.FieldPath fields = 1; */
- public java.util.List
+ private java.util.List
+ fields_;
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
+ public java.util.List
getFieldsList() {
return fields_;
}
- /** repeated .tests.FieldPath fields = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
public java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
- /** repeated .tests.FieldPath fields = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
public int getFieldsCount() {
return fields_.size();
}
- /** repeated .tests.FieldPath fields = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath getFields(int index) {
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath getFields(int index) {
return fields_.get(index);
}
- /** repeated .tests.FieldPath fields = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder
getFieldsOrBuilder(int index) {
return fields_.get(index);
}
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -16191,6 +16747,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(1, fields_.get(i));
@@ -16198,6 +16755,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -16216,16 +16774,15 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.Select)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.Select)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.Select other =
- (com.google.cloud.firestore.conformance.TestDefinition.Select) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Select) obj;
- boolean result = true;
- result = result && getFieldsList().equals(other.getFieldsList());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (!getFieldsList().equals(other.getFieldsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -16244,71 +16801,72 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Select parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Select parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Select parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Select parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Select parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Select parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Select parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Select parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Select parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Select parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Select parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Select parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Select parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Select parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Select parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Select parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Select parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Select
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Select parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Select
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Select parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Select parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Select parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Select parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -16316,6 +16874,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.Select parse
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -16325,10 +16884,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.Select prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -16339,27 +16899,29 @@ protected Builder newBuilderForType(
Builder builder = new Builder(parent);
return builder;
}
- /** Protobuf type {@code tests.Select} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.Select} */
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.Select)
- com.google.cloud.firestore.conformance.TestDefinition.SelectOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.Select)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SelectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Select_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Select_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Select_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Select_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.Select.class,
- com.google.cloud.firestore.conformance.TestDefinition.Select.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select.Builder.class);
}
- // Construct using com.google.cloud.firestore.conformance.TestDefinition.Select.newBuilder()
+ // Construct using
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.Select.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -16375,6 +16937,7 @@ private void maybeForceBuilderInitialization() {
}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
if (fieldsBuilder_ == null) {
@@ -16386,30 +16949,34 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Select_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Select_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Select
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Select
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.Select.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Select.getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.Select build() {
- com.google.cloud.firestore.conformance.TestDefinition.Select result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Select build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Select buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.Select result =
- new com.google.cloud.firestore.conformance.TestDefinition.Select(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Select buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.Select(this);
int from_bitField0_ = bitField0_;
if (fieldsBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000001);
}
@@ -16421,47 +16988,55 @@ public com.google.cloud.firestore.conformance.TestDefinition.Select buildPartial
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.Select) {
- return mergeFrom((com.google.cloud.firestore.conformance.TestDefinition.Select) other);
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.Select) {
+ return mergeFrom((com.google.cloud.conformance.firestore.v1.TestDefinition.Select) other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(com.google.cloud.firestore.conformance.TestDefinition.Select other) {
+ public Builder mergeFrom(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.Select.getDefaultInstance())
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.Select.getDefaultInstance())
return this;
if (fieldsBuilder_ == null) {
if (!other.fields_.isEmpty()) {
@@ -16495,20 +17070,22 @@ public Builder mergeFrom(com.google.cloud.firestore.conformance.TestDefinition.S
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.Select parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Select parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.Select)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Select)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -16521,26 +17098,26 @@ public Builder mergeFrom(
private int bitField0_;
- private java.util.List
+ private java.util.List
fields_ = java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
fields_ =
new java.util.ArrayList<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath>(fields_);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath>(fields_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
fieldsBuilder_;
- /** repeated .tests.FieldPath fields = 1; */
- public java.util.List
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
+ public java.util.List
getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
@@ -16548,7 +17125,7 @@ private void ensureFieldsIsMutable() {
return fieldsBuilder_.getMessageList();
}
}
- /** repeated .tests.FieldPath fields = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
return fields_.size();
@@ -16556,17 +17133,18 @@ public int getFieldsCount() {
return fieldsBuilder_.getCount();
}
}
- /** repeated .tests.FieldPath fields = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath getFields(int index) {
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath getFields(
+ int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessage(index);
}
}
- /** repeated .tests.FieldPath fields = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
public Builder setFields(
- int index, com.google.cloud.firestore.conformance.TestDefinition.FieldPath value) {
+ int index, com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -16579,10 +17157,11 @@ public Builder setFields(
}
return this;
}
- /** repeated .tests.FieldPath fields = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
public Builder setFields(
int index,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
+ builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
@@ -16592,9 +17171,9 @@ public Builder setFields(
}
return this;
}
- /** repeated .tests.FieldPath fields = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
public Builder addFields(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -16607,9 +17186,9 @@ public Builder addFields(
}
return this;
}
- /** repeated .tests.FieldPath fields = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
public Builder addFields(
- int index, com.google.cloud.firestore.conformance.TestDefinition.FieldPath value) {
+ int index, com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -16622,9 +17201,10 @@ public Builder addFields(
}
return this;
}
- /** repeated .tests.FieldPath fields = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
public Builder addFields(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
+ builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
@@ -16634,10 +17214,11 @@ public Builder addFields(
}
return this;
}
- /** repeated .tests.FieldPath fields = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
public Builder addFields(
int index,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
+ builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
@@ -16647,10 +17228,10 @@ public Builder addFields(
}
return this;
}
- /** repeated .tests.FieldPath fields = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
public Builder addAllFields(
java.lang.Iterable<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.FieldPath>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath>
values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
@@ -16661,7 +17242,7 @@ public Builder addAllFields(
}
return this;
}
- /** repeated .tests.FieldPath fields = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
@@ -16672,7 +17253,7 @@ public Builder clearFields() {
}
return this;
}
- /** repeated .tests.FieldPath fields = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
@@ -16683,13 +17264,13 @@ public Builder removeFields(int index) {
}
return this;
}
- /** repeated .tests.FieldPath fields = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
getFieldsBuilder(int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
- /** repeated .tests.FieldPath fields = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder
getFieldsOrBuilder(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
@@ -16697,9 +17278,9 @@ public Builder removeFields(int index) {
return fieldsBuilder_.getMessageOrBuilder(index);
}
}
- /** repeated .tests.FieldPath fields = 1; */
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
public java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
@@ -16707,77 +17288,78 @@ public Builder removeFields(int index) {
return java.util.Collections.unmodifiableList(fields_);
}
}
- /** repeated .tests.FieldPath fields = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
addFieldsBuilder() {
return getFieldsFieldBuilder()
.addBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
.getDefaultInstance());
}
- /** repeated .tests.FieldPath fields = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
addFieldsBuilder(int index) {
return getFieldsFieldBuilder()
.addBuilder(
index,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
.getDefaultInstance());
}
- /** repeated .tests.FieldPath fields = 1; */
- public java.util.List
+ /** repeated .google.cloud.conformance.firestore.v1.FieldPath fields = 1; */
+ public java.util.List<
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder>
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>(
- fields_,
- ((bitField0_ & 0x00000001) == 0x00000001),
- getParentForChildren(),
- isClean());
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>(
+ fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
fields_ = null;
}
return fieldsBuilder_;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.Select)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.Select)
}
- // @@protoc_insertion_point(class_scope:tests.Select)
- private static final com.google.cloud.firestore.conformance.TestDefinition.Select
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.Select)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.Select
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.Select();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.Select();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Select
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Select
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public Select parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -16795,7 +17377,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Select
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Select
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -16803,15 +17386,15 @@ public com.google.protobuf.Parser getParserForType() {
public interface WhereOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.Where)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.Where)
com.google.protobuf.MessageOrBuilder {
- /** .tests.FieldPath path = 1; */
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
boolean hasPath();
- /** .tests.FieldPath path = 1; */
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath getPath();
- /** .tests.FieldPath path = 1; */
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder getPathOrBuilder();
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath getPath();
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder getPathOrBuilder();
/** string op = 2; */
java.lang.String getOp();
@@ -16823,10 +17406,10 @@ public interface WhereOrBuilder
/** string json_value = 3; */
com.google.protobuf.ByteString getJsonValueBytes();
}
- /** Protobuf type {@code tests.Where} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.Where} */
public static final class Where extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.Where)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.Where)
WhereOrBuilder {
private static final long serialVersionUID = 0L;
// Use Where.newBuilder() to construct.
@@ -16863,23 +17446,16 @@ private Where(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder subBuilder =
- null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
+ subBuilder = null;
if (path_ != null) {
subBuilder = path_.toBuilder();
}
path_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(path_);
@@ -16902,6 +17478,13 @@ private Where(
jsonValue_ = s;
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -16915,33 +17498,34 @@ private Where(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Where_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Where_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Where_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Where_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.Where.class,
- com.google.cloud.firestore.conformance.TestDefinition.Where.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where.Builder.class);
}
public static final int PATH_FIELD_NUMBER = 1;
- private com.google.cloud.firestore.conformance.TestDefinition.FieldPath path_;
- /** .tests.FieldPath path = 1; */
+ private com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath path_;
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
public boolean hasPath() {
return path_ != null;
}
- /** .tests.FieldPath path = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath getPath() {
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath getPath() {
return path_ == null
- ? com.google.cloud.firestore.conformance.TestDefinition.FieldPath.getDefaultInstance()
+ ? com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.getDefaultInstance()
: path_;
}
- /** .tests.FieldPath path = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder
getPathOrBuilder() {
return getPath();
}
@@ -17002,6 +17586,7 @@ public com.google.protobuf.ByteString getJsonValueBytes() {
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -17011,6 +17596,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (path_ != null) {
output.writeMessage(1, getPath());
@@ -17024,6 +17610,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -17048,21 +17635,20 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.Where)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.Where)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.Where other =
- (com.google.cloud.firestore.conformance.TestDefinition.Where) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Where) obj;
- boolean result = true;
- result = result && (hasPath() == other.hasPath());
+ if (hasPath() != other.hasPath()) return false;
if (hasPath()) {
- result = result && getPath().equals(other.getPath());
+ if (!getPath().equals(other.getPath())) return false;
}
- result = result && getOp().equals(other.getOp());
- result = result && getJsonValue().equals(other.getJsonValue());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (!getOp().equals(other.getOp())) return false;
+ if (!getJsonValue().equals(other.getJsonValue())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -17085,71 +17671,71 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Where parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Where parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Where parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Where parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Where parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Where parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Where parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Where parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Where parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Where parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Where parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Where parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Where parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Where parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Where parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Where parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Where parseDelimitedFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Where parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Where parseDelimitedFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Where parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Where parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Where parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Where parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Where parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -17157,6 +17743,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.Where parseF
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -17166,10 +17753,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.Where prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -17180,27 +17768,28 @@ protected Builder newBuilderForType(
Builder builder = new Builder(parent);
return builder;
}
- /** Protobuf type {@code tests.Where} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.Where} */
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.Where)
- com.google.cloud.firestore.conformance.TestDefinition.WhereOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.Where)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.WhereOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Where_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Where_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Where_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Where_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.Where.class,
- com.google.cloud.firestore.conformance.TestDefinition.Where.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where.Builder.class);
}
- // Construct using com.google.cloud.firestore.conformance.TestDefinition.Where.newBuilder()
+ // Construct using com.google.cloud.conformance.firestore.v1.TestDefinition.Where.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -17214,6 +17803,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
if (pathBuilder_ == null) {
@@ -17229,27 +17819,31 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Where_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Where_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Where
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Where
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.Where.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Where.getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.Where build() {
- com.google.cloud.firestore.conformance.TestDefinition.Where result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Where build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Where buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.Where result =
- new com.google.cloud.firestore.conformance.TestDefinition.Where(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Where buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.Where(this);
if (pathBuilder_ == null) {
result.path_ = path_;
} else {
@@ -17261,47 +17855,55 @@ public com.google.cloud.firestore.conformance.TestDefinition.Where buildPartial(
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.Where) {
- return mergeFrom((com.google.cloud.firestore.conformance.TestDefinition.Where) other);
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.Where) {
+ return mergeFrom((com.google.cloud.conformance.firestore.v1.TestDefinition.Where) other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(com.google.cloud.firestore.conformance.TestDefinition.Where other) {
+ public Builder mergeFrom(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.Where.getDefaultInstance())
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.Where.getDefaultInstance())
return this;
if (other.hasPath()) {
mergePath(other.getPath());
@@ -17319,20 +17921,22 @@ public Builder mergeFrom(com.google.cloud.firestore.conformance.TestDefinition.W
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.Where parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Where parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.Where)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Where)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -17343,29 +17947,30 @@ public Builder mergeFrom(
return this;
}
- private com.google.cloud.firestore.conformance.TestDefinition.FieldPath path_ = null;
+ private com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath path_;
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
pathBuilder_;
- /** .tests.FieldPath path = 1; */
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
public boolean hasPath() {
return pathBuilder_ != null || path_ != null;
}
- /** .tests.FieldPath path = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath getPath() {
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath getPath() {
if (pathBuilder_ == null) {
return path_ == null
- ? com.google.cloud.firestore.conformance.TestDefinition.FieldPath.getDefaultInstance()
+ ? com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
+ .getDefaultInstance()
: path_;
} else {
return pathBuilder_.getMessage();
}
}
- /** .tests.FieldPath path = 1; */
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
public Builder setPath(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath value) {
if (pathBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -17378,9 +17983,10 @@ public Builder setPath(
return this;
}
- /** .tests.FieldPath path = 1; */
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
public Builder setPath(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
+ builderForValue) {
if (pathBuilder_ == null) {
path_ = builderForValue.build();
onChanged();
@@ -17390,13 +17996,13 @@ public Builder setPath(
return this;
}
- /** .tests.FieldPath path = 1; */
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
public Builder mergePath(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath value) {
if (pathBuilder_ == null) {
if (path_ != null) {
path_ =
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.newBuilder(path_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.newBuilder(path_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -17409,7 +18015,7 @@ public Builder mergePath(
return this;
}
- /** .tests.FieldPath path = 1; */
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
public Builder clearPath() {
if (pathBuilder_ == null) {
path_ = null;
@@ -17421,36 +18027,37 @@ public Builder clearPath() {
return this;
}
- /** .tests.FieldPath path = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
getPathBuilder() {
onChanged();
return getPathFieldBuilder().getBuilder();
}
- /** .tests.FieldPath path = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder
getPathOrBuilder() {
if (pathBuilder_ != null) {
return pathBuilder_.getMessageOrBuilder();
} else {
return path_ == null
- ? com.google.cloud.firestore.conformance.TestDefinition.FieldPath.getDefaultInstance()
+ ? com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
+ .getDefaultInstance()
: path_;
}
}
- /** .tests.FieldPath path = 1; */
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
getPathFieldBuilder() {
if (pathBuilder_ == null) {
pathBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>(
getPath(), getParentForChildren(), isClean());
path_ = null;
}
@@ -17565,33 +18172,37 @@ public Builder setJsonValueBytes(com.google.protobuf.ByteString value) {
return this;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.Where)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.Where)
}
- // @@protoc_insertion_point(class_scope:tests.Where)
- private static final com.google.cloud.firestore.conformance.TestDefinition.Where
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.Where)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.Where
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.Where();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.Where();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Where getDefaultInstance() {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Where
+ getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public Where parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -17609,22 +18220,24 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Where getDefaultInstanceForType() {
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Where
+ getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OrderByOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.OrderBy)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.OrderBy)
com.google.protobuf.MessageOrBuilder {
- /** .tests.FieldPath path = 1; */
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
boolean hasPath();
- /** .tests.FieldPath path = 1; */
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath getPath();
- /** .tests.FieldPath path = 1; */
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder getPathOrBuilder();
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath getPath();
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder getPathOrBuilder();
/**
*
@@ -17647,10 +18260,10 @@ public interface OrderByOrBuilder
*/
com.google.protobuf.ByteString getDirectionBytes();
}
- /** Protobuf type {@code tests.OrderBy} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.OrderBy} */
public static final class OrderBy extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.OrderBy)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.OrderBy)
OrderByOrBuilder {
private static final long serialVersionUID = 0L;
// Use OrderBy.newBuilder() to construct.
@@ -17686,23 +18299,16 @@ private OrderBy(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder subBuilder =
- null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
+ subBuilder = null;
if (path_ != null) {
subBuilder = path_.toBuilder();
}
path_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(path_);
@@ -17718,6 +18324,13 @@ private OrderBy(
direction_ = s;
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -17731,33 +18344,34 @@ private OrderBy(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_OrderBy_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_OrderBy_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_OrderBy_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_OrderBy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy.class,
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy.Builder.class);
}
public static final int PATH_FIELD_NUMBER = 1;
- private com.google.cloud.firestore.conformance.TestDefinition.FieldPath path_;
- /** .tests.FieldPath path = 1; */
+ private com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath path_;
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
public boolean hasPath() {
return path_ != null;
}
- /** .tests.FieldPath path = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath getPath() {
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath getPath() {
return path_ == null
- ? com.google.cloud.firestore.conformance.TestDefinition.FieldPath.getDefaultInstance()
+ ? com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.getDefaultInstance()
: path_;
}
- /** .tests.FieldPath path = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder
getPathOrBuilder() {
return getPath();
}
@@ -17807,6 +18421,7 @@ public com.google.protobuf.ByteString getDirectionBytes() {
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -17816,6 +18431,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (path_ != null) {
output.writeMessage(1, getPath());
@@ -17826,6 +18442,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -17847,20 +18464,19 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.OrderBy)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy other =
- (com.google.cloud.firestore.conformance.TestDefinition.OrderBy) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy) obj;
- boolean result = true;
- result = result && (hasPath() == other.hasPath());
+ if (hasPath() != other.hasPath()) return false;
if (hasPath()) {
- result = result && getPath().equals(other.getPath());
+ if (!getPath().equals(other.getPath())) return false;
}
- result = result && getDirection().equals(other.getDirection());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (!getDirection().equals(other.getDirection())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -17881,71 +18497,72 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.OrderBy parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.OrderBy parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.OrderBy parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.OrderBy parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.OrderBy parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.OrderBy parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.OrderBy parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.OrderBy parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.OrderBy parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.OrderBy parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.OrderBy parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.OrderBy parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -17953,6 +18570,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.OrderBy pars
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -17962,10 +18580,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -17976,27 +18595,29 @@ protected Builder newBuilderForType(
Builder builder = new Builder(parent);
return builder;
}
- /** Protobuf type {@code tests.OrderBy} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.OrderBy} */
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.OrderBy)
- com.google.cloud.firestore.conformance.TestDefinition.OrderByOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.OrderBy)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderByOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_OrderBy_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_OrderBy_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_OrderBy_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_OrderBy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy.class,
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy.Builder.class);
}
- // Construct using com.google.cloud.firestore.conformance.TestDefinition.OrderBy.newBuilder()
+ // Construct using
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -18010,6 +18631,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
if (pathBuilder_ == null) {
@@ -18023,27 +18645,32 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_OrderBy_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_OrderBy_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.OrderBy
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.OrderBy.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy
+ .getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.OrderBy build() {
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.OrderBy buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy result =
- new com.google.cloud.firestore.conformance.TestDefinition.OrderBy(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy(this);
if (pathBuilder_ == null) {
result.path_ = path_;
} else {
@@ -18054,38 +18681,46 @@ public com.google.cloud.firestore.conformance.TestDefinition.OrderBy buildPartia
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.OrderBy) {
- return mergeFrom((com.google.cloud.firestore.conformance.TestDefinition.OrderBy) other);
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy) {
+ return mergeFrom(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy) other);
} else {
super.mergeFrom(other);
return this;
@@ -18093,10 +18728,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy other) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.OrderBy.getDefaultInstance())
- return this;
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy
+ .getDefaultInstance()) return this;
if (other.hasPath()) {
mergePath(other.getPath());
}
@@ -18109,20 +18744,22 @@ public Builder mergeFrom(
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.OrderBy parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.OrderBy)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -18133,29 +18770,30 @@ public Builder mergeFrom(
return this;
}
- private com.google.cloud.firestore.conformance.TestDefinition.FieldPath path_ = null;
+ private com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath path_;
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
pathBuilder_;
- /** .tests.FieldPath path = 1; */
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
public boolean hasPath() {
return pathBuilder_ != null || path_ != null;
}
- /** .tests.FieldPath path = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath getPath() {
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath getPath() {
if (pathBuilder_ == null) {
return path_ == null
- ? com.google.cloud.firestore.conformance.TestDefinition.FieldPath.getDefaultInstance()
+ ? com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
+ .getDefaultInstance()
: path_;
} else {
return pathBuilder_.getMessage();
}
}
- /** .tests.FieldPath path = 1; */
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
public Builder setPath(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath value) {
if (pathBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -18168,9 +18806,10 @@ public Builder setPath(
return this;
}
- /** .tests.FieldPath path = 1; */
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
public Builder setPath(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
+ builderForValue) {
if (pathBuilder_ == null) {
path_ = builderForValue.build();
onChanged();
@@ -18180,13 +18819,13 @@ public Builder setPath(
return this;
}
- /** .tests.FieldPath path = 1; */
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
public Builder mergePath(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath value) {
if (pathBuilder_ == null) {
if (path_ != null) {
path_ =
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.newBuilder(path_)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.newBuilder(path_)
.mergeFrom(value)
.buildPartial();
} else {
@@ -18199,7 +18838,7 @@ public Builder mergePath(
return this;
}
- /** .tests.FieldPath path = 1; */
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
public Builder clearPath() {
if (pathBuilder_ == null) {
path_ = null;
@@ -18211,36 +18850,37 @@ public Builder clearPath() {
return this;
}
- /** .tests.FieldPath path = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder
getPathBuilder() {
onChanged();
return getPathFieldBuilder().getBuilder();
}
- /** .tests.FieldPath path = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder
getPathOrBuilder() {
if (pathBuilder_ != null) {
return pathBuilder_.getMessageOrBuilder();
} else {
return path_ == null
- ? com.google.cloud.firestore.conformance.TestDefinition.FieldPath.getDefaultInstance()
+ ? com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
+ .getDefaultInstance()
: path_;
}
}
- /** .tests.FieldPath path = 1; */
+ /** .google.cloud.conformance.firestore.v1.FieldPath path = 1; */
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>
getPathFieldBuilder() {
if (pathBuilder_ == null) {
pathBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder>(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder>(
getPath(), getParentForChildren(), isClean());
path_ = null;
}
@@ -18341,34 +18981,37 @@ public Builder setDirectionBytes(com.google.protobuf.ByteString value) {
return this;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.OrderBy)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.OrderBy)
}
- // @@protoc_insertion_point(class_scope:tests.OrderBy)
- private static final com.google.cloud.firestore.conformance.TestDefinition.OrderBy
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.OrderBy)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.OrderBy();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.OrderBy
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public OrderBy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -18386,7 +19029,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.OrderBy
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.OrderBy
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -18394,7 +19038,7 @@ public com.google.protobuf.Parser getParserForType() {
public interface CursorOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.Cursor)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.Cursor)
com.google.protobuf.MessageOrBuilder {
/**
@@ -18404,7 +19048,7 @@ public interface CursorOrBuilder
* one of:
*
*
- * .tests.DocSnapshot doc_snapshot = 1;
+ * .google.cloud.conformance.firestore.v1.DocSnapshot doc_snapshot = 1;
*/
boolean hasDocSnapshot();
/**
@@ -18414,9 +19058,9 @@ public interface CursorOrBuilder
* one of:
*
*
- * .tests.DocSnapshot doc_snapshot = 1;
+ * .google.cloud.conformance.firestore.v1.DocSnapshot doc_snapshot = 1;
*/
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot getDocSnapshot();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot getDocSnapshot();
/**
*
*
@@ -18424,9 +19068,9 @@ public interface CursorOrBuilder
* one of:
*
*
- * .tests.DocSnapshot doc_snapshot = 1;
+ * .google.cloud.conformance.firestore.v1.DocSnapshot doc_snapshot = 1;
*/
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshotOrBuilder
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshotOrBuilder
getDocSnapshotOrBuilder();
/** repeated string json_values = 2; */
@@ -18438,10 +19082,10 @@ public interface CursorOrBuilder
/** repeated string json_values = 2; */
com.google.protobuf.ByteString getJsonValuesBytes(int index);
}
- /** Protobuf type {@code tests.Cursor} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.Cursor} */
public static final class Cursor extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.Cursor)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.Cursor)
CursorOrBuilder {
private static final long serialVersionUID = 0L;
// Use Cursor.newBuilder() to construct.
@@ -18477,23 +19121,17 @@ private Cursor(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot.Builder
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot.Builder
subBuilder = null;
if (docSnapshot_ != null) {
subBuilder = docSnapshot_.toBuilder();
}
docSnapshot_ =
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot
+ .parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(docSnapshot_);
@@ -18505,13 +19143,20 @@ private Cursor(
case 18:
{
java.lang.String s = input.readStringRequireUtf8();
- if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
jsonValues_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
jsonValues_.add(s);
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -18519,7 +19164,7 @@ private Cursor(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
jsonValues_ = jsonValues_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
@@ -18528,22 +19173,23 @@ private Cursor(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Cursor_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Cursor_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Cursor_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Cursor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.class,
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder.class);
}
private int bitField0_;
public static final int DOC_SNAPSHOT_FIELD_NUMBER = 1;
- private com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot docSnapshot_;
+ private com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot docSnapshot_;
/**
*
*
@@ -18551,7 +19197,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* one of:
*
*
- * .tests.DocSnapshot doc_snapshot = 1;
+ * .google.cloud.conformance.firestore.v1.DocSnapshot doc_snapshot = 1;
*/
public boolean hasDocSnapshot() {
return docSnapshot_ != null;
@@ -18563,11 +19209,12 @@ public boolean hasDocSnapshot() {
* one of:
*
*
- * .tests.DocSnapshot doc_snapshot = 1;
+ * .google.cloud.conformance.firestore.v1.DocSnapshot doc_snapshot = 1;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot getDocSnapshot() {
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot getDocSnapshot() {
return docSnapshot_ == null
- ? com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot.getDefaultInstance()
+ ? com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot
+ .getDefaultInstance()
: docSnapshot_;
}
/**
@@ -18577,9 +19224,9 @@ public com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot getDocS
* one of:
*
*
- * .tests.DocSnapshot doc_snapshot = 1;
+ * .google.cloud.conformance.firestore.v1.DocSnapshot doc_snapshot = 1;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.DocSnapshotOrBuilder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshotOrBuilder
getDocSnapshotOrBuilder() {
return getDocSnapshot();
}
@@ -18605,6 +19252,7 @@ public com.google.protobuf.ByteString getJsonValuesBytes(int index) {
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -18614,6 +19262,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (docSnapshot_ != null) {
output.writeMessage(1, getDocSnapshot());
@@ -18624,6 +19273,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -18650,20 +19300,19 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.Cursor)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.Cursor other =
- (com.google.cloud.firestore.conformance.TestDefinition.Cursor) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) obj;
- boolean result = true;
- result = result && (hasDocSnapshot() == other.hasDocSnapshot());
+ if (hasDocSnapshot() != other.hasDocSnapshot()) return false;
if (hasDocSnapshot()) {
- result = result && getDocSnapshot().equals(other.getDocSnapshot());
+ if (!getDocSnapshot().equals(other.getDocSnapshot())) return false;
}
- result = result && getJsonValuesList().equals(other.getJsonValuesList());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (!getJsonValuesList().equals(other.getJsonValuesList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -18686,71 +19335,72 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Cursor parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Cursor parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Cursor parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Cursor parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Cursor parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Cursor parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Cursor parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Cursor parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Cursor parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Cursor parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Cursor parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Cursor parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -18758,6 +19408,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.Cursor parse
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -18767,10 +19418,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -18781,27 +19433,29 @@ protected Builder newBuilderForType(
Builder builder = new Builder(parent);
return builder;
}
- /** Protobuf type {@code tests.Cursor} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.Cursor} */
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.Cursor)
- com.google.cloud.firestore.conformance.TestDefinition.CursorOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.Cursor)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.CursorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Cursor_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Cursor_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Cursor_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Cursor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.class,
- com.google.cloud.firestore.conformance.TestDefinition.Cursor.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.Builder.class);
}
- // Construct using com.google.cloud.firestore.conformance.TestDefinition.Cursor.newBuilder()
+ // Construct using
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -18815,6 +19469,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
if (docSnapshotBuilder_ == null) {
@@ -18828,27 +19483,31 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Cursor_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Cursor_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor build() {
- com.google.cloud.firestore.conformance.TestDefinition.Cursor result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.Cursor result =
- new com.google.cloud.firestore.conformance.TestDefinition.Cursor(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (docSnapshotBuilder_ == null) {
@@ -18856,7 +19515,7 @@ public com.google.cloud.firestore.conformance.TestDefinition.Cursor buildPartial
} else {
result.docSnapshot_ = docSnapshotBuilder_.build();
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
jsonValues_ = jsonValues_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
@@ -18866,47 +19525,55 @@ public com.google.cloud.firestore.conformance.TestDefinition.Cursor buildPartial
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.Cursor) {
- return mergeFrom((com.google.cloud.firestore.conformance.TestDefinition.Cursor) other);
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) {
+ return mergeFrom((com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor) other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(com.google.cloud.firestore.conformance.TestDefinition.Cursor other) {
+ public Builder mergeFrom(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.Cursor.getDefaultInstance())
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor.getDefaultInstance())
return this;
if (other.hasDocSnapshot()) {
mergeDocSnapshot(other.getDocSnapshot());
@@ -18926,20 +19593,22 @@ public Builder mergeFrom(com.google.cloud.firestore.conformance.TestDefinition.C
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.Cursor parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.Cursor)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -18952,11 +19621,11 @@ public Builder mergeFrom(
private int bitField0_;
- private com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot docSnapshot_ = null;
+ private com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot docSnapshot_;
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot,
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshotOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshotOrBuilder>
docSnapshotBuilder_;
/**
*
@@ -18965,7 +19634,7 @@ public Builder mergeFrom(
* one of:
*
*
- * .tests.DocSnapshot doc_snapshot = 1;
+ * .google.cloud.conformance.firestore.v1.DocSnapshot doc_snapshot = 1;
*/
public boolean hasDocSnapshot() {
return docSnapshotBuilder_ != null || docSnapshot_ != null;
@@ -18977,12 +19646,12 @@ public boolean hasDocSnapshot() {
* one of:
*
*
- * .tests.DocSnapshot doc_snapshot = 1;
+ * .google.cloud.conformance.firestore.v1.DocSnapshot doc_snapshot = 1;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot getDocSnapshot() {
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot getDocSnapshot() {
if (docSnapshotBuilder_ == null) {
return docSnapshot_ == null
- ? com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot
+ ? com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot
.getDefaultInstance()
: docSnapshot_;
} else {
@@ -18996,10 +19665,10 @@ public com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot getDocS
* one of:
*
*
- * .tests.DocSnapshot doc_snapshot = 1;
+ * .google.cloud.conformance.firestore.v1.DocSnapshot doc_snapshot = 1;
*/
public Builder setDocSnapshot(
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot value) {
if (docSnapshotBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -19019,10 +19688,10 @@ public Builder setDocSnapshot(
* one of:
*
*
- * .tests.DocSnapshot doc_snapshot = 1;
+ * .google.cloud.conformance.firestore.v1.DocSnapshot doc_snapshot = 1;
*/
public Builder setDocSnapshot(
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot.Builder
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot.Builder
builderForValue) {
if (docSnapshotBuilder_ == null) {
docSnapshot_ = builderForValue.build();
@@ -19040,14 +19709,14 @@ public Builder setDocSnapshot(
* one of:
*
*
- * .tests.DocSnapshot doc_snapshot = 1;
+ * .google.cloud.conformance.firestore.v1.DocSnapshot doc_snapshot = 1;
*/
public Builder mergeDocSnapshot(
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot value) {
if (docSnapshotBuilder_ == null) {
if (docSnapshot_ != null) {
docSnapshot_ =
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot.newBuilder(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot.newBuilder(
docSnapshot_)
.mergeFrom(value)
.buildPartial();
@@ -19068,7 +19737,7 @@ public Builder mergeDocSnapshot(
* one of:
*
*
- * .tests.DocSnapshot doc_snapshot = 1;
+ * .google.cloud.conformance.firestore.v1.DocSnapshot doc_snapshot = 1;
*/
public Builder clearDocSnapshot() {
if (docSnapshotBuilder_ == null) {
@@ -19088,9 +19757,9 @@ public Builder clearDocSnapshot() {
* one of:
*
*
- * .tests.DocSnapshot doc_snapshot = 1;
+ * .google.cloud.conformance.firestore.v1.DocSnapshot doc_snapshot = 1;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot.Builder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot.Builder
getDocSnapshotBuilder() {
onChanged();
@@ -19103,15 +19772,15 @@ public Builder clearDocSnapshot() {
* one of:
*
*
- * .tests.DocSnapshot doc_snapshot = 1;
+ * .google.cloud.conformance.firestore.v1.DocSnapshot doc_snapshot = 1;
*/
- public com.google.cloud.firestore.conformance.TestDefinition.DocSnapshotOrBuilder
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshotOrBuilder
getDocSnapshotOrBuilder() {
if (docSnapshotBuilder_ != null) {
return docSnapshotBuilder_.getMessageOrBuilder();
} else {
return docSnapshot_ == null
- ? com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot
+ ? com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot
.getDefaultInstance()
: docSnapshot_;
}
@@ -19123,19 +19792,19 @@ public Builder clearDocSnapshot() {
* one of:
*
*
- * .tests.DocSnapshot doc_snapshot = 1;
+ * .google.cloud.conformance.firestore.v1.DocSnapshot doc_snapshot = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot,
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshotOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshotOrBuilder>
getDocSnapshotFieldBuilder() {
if (docSnapshotBuilder_ == null) {
docSnapshotBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot,
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshotOrBuilder>(
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshotOrBuilder>(
getDocSnapshot(), getParentForChildren(), isClean());
docSnapshot_ = null;
}
@@ -19146,7 +19815,7 @@ public Builder clearDocSnapshot() {
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureJsonValuesIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (!((bitField0_ & 0x00000002) != 0)) {
jsonValues_ = new com.google.protobuf.LazyStringArrayList(jsonValues_);
bitField0_ |= 0x00000002;
}
@@ -19213,34 +19882,37 @@ public Builder addJsonValuesBytes(com.google.protobuf.ByteString value) {
return this;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.Cursor)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.Cursor)
}
- // @@protoc_insertion_point(class_scope:tests.Cursor)
- private static final com.google.cloud.firestore.conformance.TestDefinition.Cursor
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.Cursor)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.Cursor();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Cursor
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public Cursor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -19258,7 +19930,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Cursor
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Cursor
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -19266,7 +19939,7 @@ public com.google.protobuf.Parser getParserForType() {
public interface DocSnapshotOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.DocSnapshot)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.DocSnapshot)
com.google.protobuf.MessageOrBuilder {
/** string path = 1; */
@@ -19279,10 +19952,10 @@ public interface DocSnapshotOrBuilder
/** string json_data = 2; */
com.google.protobuf.ByteString getJsonDataBytes();
}
- /** Protobuf type {@code tests.DocSnapshot} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.DocSnapshot} */
public static final class DocSnapshot extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.DocSnapshot)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.DocSnapshot)
DocSnapshotOrBuilder {
private static final long serialVersionUID = 0L;
// Use DocSnapshot.newBuilder() to construct.
@@ -19319,13 +19992,6 @@ private DocSnapshot(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
@@ -19340,6 +20006,13 @@ private DocSnapshot(
jsonData_ = s;
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -19353,17 +20026,18 @@ private DocSnapshot(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_DocSnapshot_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_DocSnapshot_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_DocSnapshot_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_DocSnapshot_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot.class,
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot.Builder.class);
}
public static final int PATH_FIELD_NUMBER = 1;
@@ -19422,6 +20096,7 @@ public com.google.protobuf.ByteString getJsonDataBytes() {
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -19431,6 +20106,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_);
@@ -19441,6 +20117,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -19462,17 +20139,16 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot other =
- (com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot) obj;
- boolean result = true;
- result = result && getPath().equals(other.getPath());
- result = result && getJsonData().equals(other.getJsonData());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (!getPath().equals(other.getPath())) return false;
+ if (!getJsonData().equals(other.getJsonData())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -19491,59 +20167,59 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -19551,12 +20227,12 @@ public static com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -19564,6 +20240,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -19573,10 +20250,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -19587,28 +20265,29 @@ protected Builder newBuilderForType(
Builder builder = new Builder(parent);
return builder;
}
- /** Protobuf type {@code tests.DocSnapshot} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.DocSnapshot} */
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.DocSnapshot)
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshotOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.DocSnapshot)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshotOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_DocSnapshot_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_DocSnapshot_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_DocSnapshot_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_DocSnapshot_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot.class,
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot.Builder.class);
}
// Construct using
- // com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot.newBuilder()
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -19622,6 +20301,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
path_ = "";
@@ -19631,67 +20311,79 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_DocSnapshot_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_DocSnapshot_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot
.getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot build() {
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot result =
+ buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot result =
- new com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot(this);
result.path_ = path_;
result.jsonData_ = jsonData_;
onBuilt();
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot) {
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot) {
return mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot) other);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot) other);
} else {
super.mergeFrom(other);
return this;
@@ -19699,9 +20391,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot other) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot
.getDefaultInstance()) return this;
if (!other.getPath().isEmpty()) {
path_ = other.path_;
@@ -19716,20 +20408,22 @@ public Builder mergeFrom(
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -19848,34 +20542,37 @@ public Builder setJsonDataBytes(com.google.protobuf.ByteString value) {
return this;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.DocSnapshot)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.DocSnapshot)
}
- // @@protoc_insertion_point(class_scope:tests.DocSnapshot)
- private static final com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.DocSnapshot)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public DocSnapshot parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -19893,7 +20590,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.DocSnapshot
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocSnapshot
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -19901,7 +20599,7 @@ public com.google.protobuf.Parser getParserForType() {
public interface FieldPathOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.FieldPath)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.FieldPath)
com.google.protobuf.MessageOrBuilder {
/** repeated string field = 1; */
@@ -19913,10 +20611,10 @@ public interface FieldPathOrBuilder
/** repeated string field = 1; */
com.google.protobuf.ByteString getFieldBytes(int index);
}
- /** Protobuf type {@code tests.FieldPath} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.FieldPath} */
public static final class FieldPath extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.FieldPath)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.FieldPath)
FieldPathOrBuilder {
private static final long serialVersionUID = 0L;
// Use FieldPath.newBuilder() to construct.
@@ -19952,23 +20650,23 @@ private FieldPath(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
field_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
field_.add(s);
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -19976,7 +20674,7 @@ private FieldPath(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
field_ = field_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
@@ -19985,17 +20683,18 @@ private FieldPath(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_FieldPath_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_FieldPath_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_FieldPath_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_FieldPath_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.class,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder.class);
}
public static final int FIELD_FIELD_NUMBER = 1;
@@ -20019,6 +20718,7 @@ public com.google.protobuf.ByteString getFieldBytes(int index) {
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -20028,6 +20728,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < field_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_.getRaw(i));
@@ -20035,6 +20736,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -20058,16 +20760,15 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.FieldPath)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath other =
- (com.google.cloud.firestore.conformance.TestDefinition.FieldPath) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath) obj;
- boolean result = true;
- result = result && getFieldList().equals(other.getFieldList());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (!getFieldList().equals(other.getFieldList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -20086,59 +20787,59 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.FieldPath parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.FieldPath parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.FieldPath parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.FieldPath parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.FieldPath parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.FieldPath parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.FieldPath parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.FieldPath parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.FieldPath
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.FieldPath
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -20146,12 +20847,12 @@ public static com.google.cloud.firestore.conformance.TestDefinition.FieldPath pa
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.FieldPath parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.FieldPath parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -20159,6 +20860,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.FieldPath pa
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -20168,10 +20870,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -20182,28 +20885,29 @@ protected Builder newBuilderForType(
Builder builder = new Builder(parent);
return builder;
}
- /** Protobuf type {@code tests.FieldPath} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.FieldPath} */
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.FieldPath)
- com.google.cloud.firestore.conformance.TestDefinition.FieldPathOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.FieldPath)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPathOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_FieldPath_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_FieldPath_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_FieldPath_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_FieldPath_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.class,
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.Builder.class);
}
// Construct using
- // com.google.cloud.firestore.conformance.TestDefinition.FieldPath.newBuilder()
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -20217,6 +20921,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
field_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -20224,29 +20929,34 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_FieldPath_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_FieldPath_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.FieldPath.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
+ .getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath build() {
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath result =
- new com.google.cloud.firestore.conformance.TestDefinition.FieldPath(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath(this);
int from_bitField0_ = bitField0_;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
field_ = field_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
@@ -20255,38 +20965,46 @@ public com.google.cloud.firestore.conformance.TestDefinition.FieldPath buildPart
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.FieldPath) {
- return mergeFrom((com.google.cloud.firestore.conformance.TestDefinition.FieldPath) other);
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath) {
+ return mergeFrom(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath) other);
} else {
super.mergeFrom(other);
return this;
@@ -20294,10 +21012,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath other) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.FieldPath.getDefaultInstance())
- return this;
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
+ .getDefaultInstance()) return this;
if (!other.field_.isEmpty()) {
if (field_.isEmpty()) {
field_ = other.field_;
@@ -20313,20 +21031,22 @@ public Builder mergeFrom(
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.FieldPath parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.FieldPath)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -20343,7 +21063,7 @@ public Builder mergeFrom(
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFieldIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
field_ = new com.google.protobuf.LazyStringArrayList(field_);
bitField0_ |= 0x00000001;
}
@@ -20410,34 +21130,37 @@ public Builder addFieldBytes(com.google.protobuf.ByteString value) {
return this;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.FieldPath)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.FieldPath)
}
- // @@protoc_insertion_point(class_scope:tests.FieldPath)
- private static final com.google.cloud.firestore.conformance.TestDefinition.FieldPath
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.FieldPath)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.FieldPath();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.FieldPath
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public FieldPath parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -20455,7 +21178,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.FieldPath
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.FieldPath
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -20463,7 +21187,7 @@ public com.google.protobuf.Parser getParserForType() {
public interface ListenTestOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.ListenTest)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.ListenTest)
com.google.protobuf.MessageOrBuilder {
/** repeated .google.firestore.v1.ListenResponse responses = 1; */
@@ -20478,20 +21202,20 @@ public interface ListenTestOrBuilder
/** repeated .google.firestore.v1.ListenResponse responses = 1; */
com.google.firestore.v1.ListenResponseOrBuilder getResponsesOrBuilder(int index);
- /** repeated .tests.Snapshot snapshots = 2; */
- java.util.List
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
+ java.util.List
getSnapshotsList();
- /** repeated .tests.Snapshot snapshots = 2; */
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot getSnapshots(int index);
- /** repeated .tests.Snapshot snapshots = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot getSnapshots(int index);
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
int getSnapshotsCount();
- /** repeated .tests.Snapshot snapshots = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.SnapshotOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.SnapshotOrBuilder>
getSnapshotsOrBuilderList();
- /** repeated .tests.Snapshot snapshots = 2; */
- com.google.cloud.firestore.conformance.TestDefinition.SnapshotOrBuilder getSnapshotsOrBuilder(
- int index);
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SnapshotOrBuilder
+ getSnapshotsOrBuilder(int index);
/** bool is_error = 3; */
boolean getIsError();
@@ -20511,11 +21235,11 @@ com.google.cloud.firestore.conformance.TestDefinition.SnapshotOrBuilder getSnaps
* or change the ID in the tests before running them.
*
*
- * Protobuf type {@code tests.ListenTest}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.ListenTest}
*/
public static final class ListenTest extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.ListenTest)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.ListenTest)
ListenTestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListenTest.newBuilder() to construct.
@@ -20526,7 +21250,6 @@ private ListenTest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private ListenTest() {
responses_ = java.util.Collections.emptyList();
snapshots_ = java.util.Collections.emptyList();
- isError_ = false;
}
@java.lang.Override
@@ -20553,16 +21276,9 @@ private ListenTest(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
responses_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
@@ -20573,15 +21289,15 @@ private ListenTest(
}
case 18:
{
- if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
snapshots_ =
new java.util.ArrayList<
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot>();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot>();
mutable_bitField0_ |= 0x00000002;
}
snapshots_.add(
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.parser(),
extensionRegistry));
break;
}
@@ -20590,6 +21306,13 @@ private ListenTest(
isError_ = input.readBool();
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -20597,10 +21320,10 @@ private ListenTest(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
responses_ = java.util.Collections.unmodifiableList(responses_);
}
- if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
snapshots_ = java.util.Collections.unmodifiableList(snapshots_);
}
this.unknownFields = unknownFields.build();
@@ -20609,17 +21332,18 @@ private ListenTest(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_ListenTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_ListenTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_ListenTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_ListenTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest.Builder.class);
}
private int bitField0_;
@@ -20648,29 +21372,30 @@ public com.google.firestore.v1.ListenResponseOrBuilder getResponsesOrBuilder(int
}
public static final int SNAPSHOTS_FIELD_NUMBER = 2;
- private java.util.List
+ private java.util.List
snapshots_;
- /** repeated .tests.Snapshot snapshots = 2; */
- public java.util.List
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
+ public java.util.List
getSnapshotsList() {
return snapshots_;
}
- /** repeated .tests.Snapshot snapshots = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
public java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.SnapshotOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.SnapshotOrBuilder>
getSnapshotsOrBuilderList() {
return snapshots_;
}
- /** repeated .tests.Snapshot snapshots = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
public int getSnapshotsCount() {
return snapshots_.size();
}
- /** repeated .tests.Snapshot snapshots = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.Snapshot getSnapshots(int index) {
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot getSnapshots(
+ int index) {
return snapshots_.get(index);
}
- /** repeated .tests.Snapshot snapshots = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.SnapshotOrBuilder
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SnapshotOrBuilder
getSnapshotsOrBuilder(int index) {
return snapshots_.get(index);
}
@@ -20684,6 +21409,7 @@ public boolean getIsError() {
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -20693,6 +21419,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < responses_.size(); i++) {
output.writeMessage(1, responses_.get(i));
@@ -20706,6 +21433,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -20730,18 +21458,17 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.ListenTest)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest other =
- (com.google.cloud.firestore.conformance.TestDefinition.ListenTest) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest) obj;
- boolean result = true;
- result = result && getResponsesList().equals(other.getResponsesList());
- result = result && getSnapshotsList().equals(other.getSnapshotsList());
- result = result && (getIsError() == other.getIsError());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (!getResponsesList().equals(other.getResponsesList())) return false;
+ if (!getSnapshotsList().equals(other.getSnapshotsList())) return false;
+ if (getIsError() != other.getIsError()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -20766,59 +21493,59 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.ListenTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.ListenTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.ListenTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.ListenTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.ListenTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.ListenTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.ListenTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.ListenTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.ListenTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.ListenTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -20826,12 +21553,12 @@ public static com.google.cloud.firestore.conformance.TestDefinition.ListenTest p
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.ListenTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.ListenTest parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -20839,6 +21566,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.ListenTest p
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -20848,10 +21576,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -20877,29 +21606,30 @@ protected Builder newBuilderForType(
* or change the ID in the tests before running them.
*
*
- * Protobuf type {@code tests.ListenTest}
+ * Protobuf type {@code google.cloud.conformance.firestore.v1.ListenTest}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.ListenTest)
- com.google.cloud.firestore.conformance.TestDefinition.ListenTestOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.ListenTest)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_ListenTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_ListenTest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_ListenTest_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_ListenTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest.class,
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest.Builder.class);
}
// Construct using
- // com.google.cloud.firestore.conformance.TestDefinition.ListenTest.newBuilder()
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -20916,6 +21646,7 @@ private void maybeForceBuilderInitialization() {
}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
if (responsesBuilder_ == null) {
@@ -20935,32 +21666,36 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_ListenTest_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_ListenTest_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.ListenTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.ListenTest
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
.getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.ListenTest build() {
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.ListenTest buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest result =
- new com.google.cloud.firestore.conformance.TestDefinition.ListenTest(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (responsesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
responses_ = java.util.Collections.unmodifiableList(responses_);
bitField0_ = (bitField0_ & ~0x00000001);
}
@@ -20969,7 +21704,7 @@ public com.google.cloud.firestore.conformance.TestDefinition.ListenTest buildPar
result.responses_ = responsesBuilder_.build();
}
if (snapshotsBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
snapshots_ = java.util.Collections.unmodifiableList(snapshots_);
bitField0_ = (bitField0_ & ~0x00000002);
}
@@ -20983,39 +21718,46 @@ public com.google.cloud.firestore.conformance.TestDefinition.ListenTest buildPar
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.ListenTest) {
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest) {
return mergeFrom(
- (com.google.cloud.firestore.conformance.TestDefinition.ListenTest) other);
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest) other);
} else {
super.mergeFrom(other);
return this;
@@ -21023,9 +21765,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest other) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.ListenTest
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
.getDefaultInstance()) return this;
if (responsesBuilder_ == null) {
if (!other.responses_.isEmpty()) {
@@ -21089,20 +21831,22 @@ public Builder mergeFrom(
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.ListenTest parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.ListenTest)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -21119,7 +21863,7 @@ public Builder mergeFrom(
java.util.Collections.emptyList();
private void ensureResponsesIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
responses_ = new java.util.ArrayList(responses_);
bitField0_ |= 0x00000001;
}
@@ -21314,35 +22058,32 @@ public com.google.firestore.v1.ListenResponse.Builder addResponsesBuilder(int in
com.google.firestore.v1.ListenResponse,
com.google.firestore.v1.ListenResponse.Builder,
com.google.firestore.v1.ListenResponseOrBuilder>(
- responses_,
- ((bitField0_ & 0x00000001) == 0x00000001),
- getParentForChildren(),
- isClean());
+ responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
responses_ = null;
}
return responsesBuilder_;
}
- private java.util.List
+ private java.util.List
snapshots_ = java.util.Collections.emptyList();
private void ensureSnapshotsIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (!((bitField0_ & 0x00000002) != 0)) {
snapshots_ =
new java.util.ArrayList<
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot>(snapshots_);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot>(snapshots_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot,
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.SnapshotOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SnapshotOrBuilder>
snapshotsBuilder_;
- /** repeated .tests.Snapshot snapshots = 2; */
- public java.util.List
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
+ public java.util.List
getSnapshotsList() {
if (snapshotsBuilder_ == null) {
return java.util.Collections.unmodifiableList(snapshots_);
@@ -21350,7 +22091,7 @@ private void ensureSnapshotsIsMutable() {
return snapshotsBuilder_.getMessageList();
}
}
- /** repeated .tests.Snapshot snapshots = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
public int getSnapshotsCount() {
if (snapshotsBuilder_ == null) {
return snapshots_.size();
@@ -21358,8 +22099,8 @@ public int getSnapshotsCount() {
return snapshotsBuilder_.getCount();
}
}
- /** repeated .tests.Snapshot snapshots = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.Snapshot getSnapshots(
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot getSnapshots(
int index) {
if (snapshotsBuilder_ == null) {
return snapshots_.get(index);
@@ -21367,9 +22108,9 @@ public com.google.cloud.firestore.conformance.TestDefinition.Snapshot getSnapsho
return snapshotsBuilder_.getMessage(index);
}
}
- /** repeated .tests.Snapshot snapshots = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
public Builder setSnapshots(
- int index, com.google.cloud.firestore.conformance.TestDefinition.Snapshot value) {
+ int index, com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot value) {
if (snapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -21382,10 +22123,11 @@ public Builder setSnapshots(
}
return this;
}
- /** repeated .tests.Snapshot snapshots = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
public Builder setSnapshots(
int index,
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.Builder
+ builderForValue) {
if (snapshotsBuilder_ == null) {
ensureSnapshotsIsMutable();
snapshots_.set(index, builderForValue.build());
@@ -21395,9 +22137,9 @@ public Builder setSnapshots(
}
return this;
}
- /** repeated .tests.Snapshot snapshots = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
public Builder addSnapshots(
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot value) {
if (snapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -21410,9 +22152,9 @@ public Builder addSnapshots(
}
return this;
}
- /** repeated .tests.Snapshot snapshots = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
public Builder addSnapshots(
- int index, com.google.cloud.firestore.conformance.TestDefinition.Snapshot value) {
+ int index, com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot value) {
if (snapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -21425,9 +22167,10 @@ public Builder addSnapshots(
}
return this;
}
- /** repeated .tests.Snapshot snapshots = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
public Builder addSnapshots(
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.Builder
+ builderForValue) {
if (snapshotsBuilder_ == null) {
ensureSnapshotsIsMutable();
snapshots_.add(builderForValue.build());
@@ -21437,10 +22180,11 @@ public Builder addSnapshots(
}
return this;
}
- /** repeated .tests.Snapshot snapshots = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
public Builder addSnapshots(
int index,
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.Builder
+ builderForValue) {
if (snapshotsBuilder_ == null) {
ensureSnapshotsIsMutable();
snapshots_.add(index, builderForValue.build());
@@ -21450,10 +22194,10 @@ public Builder addSnapshots(
}
return this;
}
- /** repeated .tests.Snapshot snapshots = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
public Builder addAllSnapshots(
java.lang.Iterable<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.Snapshot>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot>
values) {
if (snapshotsBuilder_ == null) {
ensureSnapshotsIsMutable();
@@ -21464,7 +22208,7 @@ public Builder addAllSnapshots(
}
return this;
}
- /** repeated .tests.Snapshot snapshots = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
public Builder clearSnapshots() {
if (snapshotsBuilder_ == null) {
snapshots_ = java.util.Collections.emptyList();
@@ -21475,7 +22219,7 @@ public Builder clearSnapshots() {
}
return this;
}
- /** repeated .tests.Snapshot snapshots = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
public Builder removeSnapshots(int index) {
if (snapshotsBuilder_ == null) {
ensureSnapshotsIsMutable();
@@ -21486,13 +22230,13 @@ public Builder removeSnapshots(int index) {
}
return this;
}
- /** repeated .tests.Snapshot snapshots = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.Snapshot.Builder
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.Builder
getSnapshotsBuilder(int index) {
return getSnapshotsFieldBuilder().getBuilder(index);
}
- /** repeated .tests.Snapshot snapshots = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.SnapshotOrBuilder
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.SnapshotOrBuilder
getSnapshotsOrBuilder(int index) {
if (snapshotsBuilder_ == null) {
return snapshots_.get(index);
@@ -21500,9 +22244,9 @@ public Builder removeSnapshots(int index) {
return snapshotsBuilder_.getMessageOrBuilder(index);
}
}
- /** repeated .tests.Snapshot snapshots = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
public java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.SnapshotOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.SnapshotOrBuilder>
getSnapshotsOrBuilderList() {
if (snapshotsBuilder_ != null) {
return snapshotsBuilder_.getMessageOrBuilderList();
@@ -21510,44 +22254,42 @@ public Builder removeSnapshots(int index) {
return java.util.Collections.unmodifiableList(snapshots_);
}
}
- /** repeated .tests.Snapshot snapshots = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.Snapshot.Builder
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.Builder
addSnapshotsBuilder() {
return getSnapshotsFieldBuilder()
.addBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot
.getDefaultInstance());
}
- /** repeated .tests.Snapshot snapshots = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.Snapshot.Builder
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.Builder
addSnapshotsBuilder(int index) {
return getSnapshotsFieldBuilder()
.addBuilder(
index,
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot
.getDefaultInstance());
}
- /** repeated .tests.Snapshot snapshots = 2; */
- public java.util.List
+ /** repeated .google.cloud.conformance.firestore.v1.Snapshot snapshots = 2; */
+ public java.util.List<
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.Builder>
getSnapshotsBuilderList() {
return getSnapshotsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot,
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.SnapshotOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SnapshotOrBuilder>
getSnapshotsFieldBuilder() {
if (snapshotsBuilder_ == null) {
snapshotsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot,
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.SnapshotOrBuilder>(
- snapshots_,
- ((bitField0_ & 0x00000002) == 0x00000002),
- getParentForChildren(),
- isClean());
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SnapshotOrBuilder>(
+ snapshots_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
snapshots_ = null;
}
return snapshotsBuilder_;
@@ -21573,34 +22315,37 @@ public Builder clearIsError() {
return this;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.ListenTest)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.ListenTest)
}
- // @@protoc_insertion_point(class_scope:tests.ListenTest)
- private static final com.google.cloud.firestore.conformance.TestDefinition.ListenTest
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.ListenTest)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.ListenTest();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.ListenTest
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public ListenTest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -21618,7 +22363,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.ListenTest
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.ListenTest
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -21626,7 +22372,7 @@ public com.google.protobuf.Parser getParserForType() {
public interface SnapshotOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.Snapshot)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.Snapshot)
com.google.protobuf.MessageOrBuilder {
/** repeated .google.firestore.v1.Document docs = 1; */
@@ -21640,19 +22386,19 @@ public interface SnapshotOrBuilder
/** repeated .google.firestore.v1.Document docs = 1; */
com.google.firestore.v1.DocumentOrBuilder getDocsOrBuilder(int index);
- /** repeated .tests.DocChange changes = 2; */
- java.util.List
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
+ java.util.List
getChangesList();
- /** repeated .tests.DocChange changes = 2; */
- com.google.cloud.firestore.conformance.TestDefinition.DocChange getChanges(int index);
- /** repeated .tests.DocChange changes = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange getChanges(int index);
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
int getChangesCount();
- /** repeated .tests.DocChange changes = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.DocChangeOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.DocChangeOrBuilder>
getChangesOrBuilderList();
- /** repeated .tests.DocChange changes = 2; */
- com.google.cloud.firestore.conformance.TestDefinition.DocChangeOrBuilder getChangesOrBuilder(
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChangeOrBuilder getChangesOrBuilder(
int index);
/** .google.protobuf.Timestamp read_time = 3; */
@@ -21662,10 +22408,10 @@ com.google.cloud.firestore.conformance.TestDefinition.DocChangeOrBuilder getChan
/** .google.protobuf.Timestamp read_time = 3; */
com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
}
- /** Protobuf type {@code tests.Snapshot} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.Snapshot} */
public static final class Snapshot extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.Snapshot)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.Snapshot)
SnapshotOrBuilder {
private static final long serialVersionUID = 0L;
// Use Snapshot.newBuilder() to construct.
@@ -21702,16 +22448,9 @@ private Snapshot(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10:
{
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
docs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
@@ -21722,15 +22461,15 @@ private Snapshot(
}
case 18:
{
- if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
changes_ =
new java.util.ArrayList<
- com.google.cloud.firestore.conformance.TestDefinition.DocChange>();
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange>();
mutable_bitField0_ |= 0x00000002;
}
changes_.add(
input.readMessage(
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.parser(),
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.parser(),
extensionRegistry));
break;
}
@@ -21747,6 +22486,13 @@ private Snapshot(
readTime_ = subBuilder.buildPartial();
}
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -21756,10 +22502,10 @@ private Snapshot(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
docs_ = java.util.Collections.unmodifiableList(docs_);
}
- if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
changes_ = java.util.Collections.unmodifiableList(changes_);
}
this.unknownFields = unknownFields.build();
@@ -21768,17 +22514,18 @@ private Snapshot(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Snapshot_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Snapshot_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Snapshot_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Snapshot_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot.class,
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.Builder.class);
}
private int bitField0_;
@@ -21807,29 +22554,30 @@ public com.google.firestore.v1.DocumentOrBuilder getDocsOrBuilder(int index) {
}
public static final int CHANGES_FIELD_NUMBER = 2;
- private java.util.List
+ private java.util.List
changes_;
- /** repeated .tests.DocChange changes = 2; */
- public java.util.List
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
+ public java.util.List
getChangesList() {
return changes_;
}
- /** repeated .tests.DocChange changes = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
public java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.DocChangeOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.DocChangeOrBuilder>
getChangesOrBuilderList() {
return changes_;
}
- /** repeated .tests.DocChange changes = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
public int getChangesCount() {
return changes_.size();
}
- /** repeated .tests.DocChange changes = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.DocChange getChanges(int index) {
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange getChanges(
+ int index) {
return changes_.get(index);
}
- /** repeated .tests.DocChange changes = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.DocChangeOrBuilder
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocChangeOrBuilder
getChangesOrBuilder(int index) {
return changes_.get(index);
}
@@ -21851,6 +22599,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -21860,6 +22609,7 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < docs_.size(); i++) {
output.writeMessage(1, docs_.get(i));
@@ -21873,6 +22623,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -21897,21 +22648,20 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.Snapshot)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot other =
- (com.google.cloud.firestore.conformance.TestDefinition.Snapshot) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot) obj;
- boolean result = true;
- result = result && getDocsList().equals(other.getDocsList());
- result = result && getChangesList().equals(other.getChangesList());
- result = result && (hasReadTime() == other.hasReadTime());
+ if (!getDocsList().equals(other.getDocsList())) return false;
+ if (!getChangesList().equals(other.getChangesList())) return false;
+ if (hasReadTime() != other.hasReadTime()) return false;
if (hasReadTime()) {
- result = result && getReadTime().equals(other.getReadTime());
+ if (!getReadTime().equals(other.getReadTime())) return false;
}
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -21938,71 +22688,72 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Snapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Snapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Snapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Snapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Snapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Snapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Snapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Snapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Snapshot parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Snapshot parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Snapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Snapshot parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -22010,6 +22761,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.Snapshot par
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -22019,10 +22771,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -22033,27 +22786,29 @@ protected Builder newBuilderForType(
Builder builder = new Builder(parent);
return builder;
}
- /** Protobuf type {@code tests.Snapshot} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.Snapshot} */
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.Snapshot)
- com.google.cloud.firestore.conformance.TestDefinition.SnapshotOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.Snapshot)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.SnapshotOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Snapshot_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Snapshot_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Snapshot_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Snapshot_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot.class,
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.Builder.class);
}
- // Construct using com.google.cloud.firestore.conformance.TestDefinition.Snapshot.newBuilder()
+ // Construct using
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -22070,6 +22825,7 @@ private void maybeForceBuilderInitialization() {
}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
if (docsBuilder_ == null) {
@@ -22093,31 +22849,36 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_Snapshot_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_Snapshot_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Snapshot
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.Snapshot.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot
+ .getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.Snapshot build() {
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Snapshot buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot result =
- new com.google.cloud.firestore.conformance.TestDefinition.Snapshot(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (docsBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
docs_ = java.util.Collections.unmodifiableList(docs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
@@ -22126,7 +22887,7 @@ public com.google.cloud.firestore.conformance.TestDefinition.Snapshot buildParti
result.docs_ = docsBuilder_.build();
}
if (changesBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
changes_ = java.util.Collections.unmodifiableList(changes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
@@ -22144,38 +22905,46 @@ public com.google.cloud.firestore.conformance.TestDefinition.Snapshot buildParti
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.Snapshot) {
- return mergeFrom((com.google.cloud.firestore.conformance.TestDefinition.Snapshot) other);
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot) {
+ return mergeFrom(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot) other);
} else {
super.mergeFrom(other);
return this;
@@ -22183,10 +22952,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot other) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.Snapshot.getDefaultInstance())
- return this;
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot
+ .getDefaultInstance()) return this;
if (docsBuilder_ == null) {
if (!other.docs_.isEmpty()) {
if (docs_.isEmpty()) {
@@ -22249,20 +23018,22 @@ public Builder mergeFrom(
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.Snapshot parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.Snapshot)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -22279,7 +23050,7 @@ public Builder mergeFrom(
java.util.Collections.emptyList();
private void ensureDocsIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (!((bitField0_ & 0x00000001) != 0)) {
docs_ = new java.util.ArrayList(docs_);
bitField0_ |= 0x00000001;
}
@@ -22471,35 +23242,32 @@ public java.util.List getDocsBuilderLi
com.google.firestore.v1.Document,
com.google.firestore.v1.Document.Builder,
com.google.firestore.v1.DocumentOrBuilder>(
- docs_,
- ((bitField0_ & 0x00000001) == 0x00000001),
- getParentForChildren(),
- isClean());
+ docs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
docs_ = null;
}
return docsBuilder_;
}
- private java.util.List
+ private java.util.List
changes_ = java.util.Collections.emptyList();
private void ensureChangesIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (!((bitField0_ & 0x00000002) != 0)) {
changes_ =
new java.util.ArrayList<
- com.google.cloud.firestore.conformance.TestDefinition.DocChange>(changes_);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange>(changes_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.DocChange,
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.DocChangeOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChangeOrBuilder>
changesBuilder_;
- /** repeated .tests.DocChange changes = 2; */
- public java.util.List
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
+ public java.util.List
getChangesList() {
if (changesBuilder_ == null) {
return java.util.Collections.unmodifiableList(changes_);
@@ -22507,7 +23275,7 @@ private void ensureChangesIsMutable() {
return changesBuilder_.getMessageList();
}
}
- /** repeated .tests.DocChange changes = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
public int getChangesCount() {
if (changesBuilder_ == null) {
return changes_.size();
@@ -22515,17 +23283,18 @@ public int getChangesCount() {
return changesBuilder_.getCount();
}
}
- /** repeated .tests.DocChange changes = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.DocChange getChanges(int index) {
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange getChanges(
+ int index) {
if (changesBuilder_ == null) {
return changes_.get(index);
} else {
return changesBuilder_.getMessage(index);
}
}
- /** repeated .tests.DocChange changes = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
public Builder setChanges(
- int index, com.google.cloud.firestore.conformance.TestDefinition.DocChange value) {
+ int index, com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange value) {
if (changesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -22538,10 +23307,11 @@ public Builder setChanges(
}
return this;
}
- /** repeated .tests.DocChange changes = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
public Builder setChanges(
int index,
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Builder
+ builderForValue) {
if (changesBuilder_ == null) {
ensureChangesIsMutable();
changes_.set(index, builderForValue.build());
@@ -22551,9 +23321,9 @@ public Builder setChanges(
}
return this;
}
- /** repeated .tests.DocChange changes = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
public Builder addChanges(
- com.google.cloud.firestore.conformance.TestDefinition.DocChange value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange value) {
if (changesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -22566,9 +23336,9 @@ public Builder addChanges(
}
return this;
}
- /** repeated .tests.DocChange changes = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
public Builder addChanges(
- int index, com.google.cloud.firestore.conformance.TestDefinition.DocChange value) {
+ int index, com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange value) {
if (changesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -22581,9 +23351,10 @@ public Builder addChanges(
}
return this;
}
- /** repeated .tests.DocChange changes = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
public Builder addChanges(
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Builder
+ builderForValue) {
if (changesBuilder_ == null) {
ensureChangesIsMutable();
changes_.add(builderForValue.build());
@@ -22593,10 +23364,11 @@ public Builder addChanges(
}
return this;
}
- /** repeated .tests.DocChange changes = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
public Builder addChanges(
int index,
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.Builder builderForValue) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Builder
+ builderForValue) {
if (changesBuilder_ == null) {
ensureChangesIsMutable();
changes_.add(index, builderForValue.build());
@@ -22606,10 +23378,10 @@ public Builder addChanges(
}
return this;
}
- /** repeated .tests.DocChange changes = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
public Builder addAllChanges(
java.lang.Iterable<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.DocChange>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange>
values) {
if (changesBuilder_ == null) {
ensureChangesIsMutable();
@@ -22620,7 +23392,7 @@ public Builder addAllChanges(
}
return this;
}
- /** repeated .tests.DocChange changes = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
public Builder clearChanges() {
if (changesBuilder_ == null) {
changes_ = java.util.Collections.emptyList();
@@ -22631,7 +23403,7 @@ public Builder clearChanges() {
}
return this;
}
- /** repeated .tests.DocChange changes = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
public Builder removeChanges(int index) {
if (changesBuilder_ == null) {
ensureChangesIsMutable();
@@ -22642,13 +23414,13 @@ public Builder removeChanges(int index) {
}
return this;
}
- /** repeated .tests.DocChange changes = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.DocChange.Builder
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Builder
getChangesBuilder(int index) {
return getChangesFieldBuilder().getBuilder(index);
}
- /** repeated .tests.DocChange changes = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.DocChangeOrBuilder
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocChangeOrBuilder
getChangesOrBuilder(int index) {
if (changesBuilder_ == null) {
return changes_.get(index);
@@ -22656,9 +23428,9 @@ public Builder removeChanges(int index) {
return changesBuilder_.getMessageOrBuilder(index);
}
}
- /** repeated .tests.DocChange changes = 2; */
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
public java.util.List<
- ? extends com.google.cloud.firestore.conformance.TestDefinition.DocChangeOrBuilder>
+ ? extends com.google.cloud.conformance.firestore.v1.TestDefinition.DocChangeOrBuilder>
getChangesOrBuilderList() {
if (changesBuilder_ != null) {
return changesBuilder_.getMessageOrBuilderList();
@@ -22666,50 +23438,48 @@ public Builder removeChanges(int index) {
return java.util.Collections.unmodifiableList(changes_);
}
}
- /** repeated .tests.DocChange changes = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.DocChange.Builder
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Builder
addChangesBuilder() {
return getChangesFieldBuilder()
.addBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.DocChange
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange
.getDefaultInstance());
}
- /** repeated .tests.DocChange changes = 2; */
- public com.google.cloud.firestore.conformance.TestDefinition.DocChange.Builder
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Builder
addChangesBuilder(int index) {
return getChangesFieldBuilder()
.addBuilder(
index,
- com.google.cloud.firestore.conformance.TestDefinition.DocChange
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange
.getDefaultInstance());
}
- /** repeated .tests.DocChange changes = 2; */
- public java.util.List
+ /** repeated .google.cloud.conformance.firestore.v1.DocChange changes = 2; */
+ public java.util.List<
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Builder>
getChangesBuilderList() {
return getChangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.DocChange,
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.DocChangeOrBuilder>
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChangeOrBuilder>
getChangesFieldBuilder() {
if (changesBuilder_ == null) {
changesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.firestore.conformance.TestDefinition.DocChange,
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.Builder,
- com.google.cloud.firestore.conformance.TestDefinition.DocChangeOrBuilder>(
- changes_,
- ((bitField0_ & 0x00000002) == 0x00000002),
- getParentForChildren(),
- isClean());
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Builder,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChangeOrBuilder>(
+ changes_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
changes_ = null;
}
return changesBuilder_;
}
- private com.google.protobuf.Timestamp readTime_ = null;
+ private com.google.protobuf.Timestamp readTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
@@ -22812,34 +23582,37 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return readTimeBuilder_;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.Snapshot)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.Snapshot)
}
- // @@protoc_insertion_point(class_scope:tests.Snapshot)
- private static final com.google.cloud.firestore.conformance.TestDefinition.Snapshot
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.Snapshot)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.Snapshot();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.Snapshot
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public Snapshot parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -22857,7 +23630,8 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.Snapshot
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.Snapshot
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@@ -22865,13 +23639,13 @@ public com.google.protobuf.Parser getParserForType() {
public interface DocChangeOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:tests.DocChange)
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.firestore.v1.DocChange)
com.google.protobuf.MessageOrBuilder {
- /** .tests.DocChange.Kind kind = 1; */
+ /** .google.cloud.conformance.firestore.v1.DocChange.Kind kind = 1; */
int getKindValue();
- /** .tests.DocChange.Kind kind = 1; */
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.Kind getKind();
+ /** .google.cloud.conformance.firestore.v1.DocChange.Kind kind = 1; */
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Kind getKind();
/** .google.firestore.v1.Document doc = 2; */
boolean hasDoc();
@@ -22886,10 +23660,10 @@ public interface DocChangeOrBuilder
/** int32 new_index = 4; */
int getNewIndex();
}
- /** Protobuf type {@code tests.DocChange} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.DocChange} */
public static final class DocChange extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:tests.DocChange)
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.firestore.v1.DocChange)
DocChangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use DocChange.newBuilder() to construct.
@@ -22899,8 +23673,6 @@ private DocChange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private DocChange() {
kind_ = 0;
- oldIndex_ = 0;
- newIndex_ = 0;
}
@java.lang.Override
@@ -22927,13 +23699,6 @@ private DocChange(
case 0:
done = true;
break;
- default:
- {
- if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8:
{
int rawValue = input.readEnum();
@@ -22966,6 +23731,13 @@ private DocChange(
newIndex_ = input.readInt32();
break;
}
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -22979,20 +23751,21 @@ private DocChange(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_DocChange_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_DocChange_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_DocChange_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_DocChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.class,
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Builder.class);
}
- /** Protobuf enum {@code tests.DocChange.Kind} */
+ /** Protobuf enum {@code google.cloud.conformance.firestore.v1.DocChange.Kind} */
public enum Kind implements com.google.protobuf.ProtocolMessageEnum {
/** KIND_UNSPECIFIED = 0; */
KIND_UNSPECIFIED(0),
@@ -23063,7 +23836,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition.DocChange.getDescriptor()
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.getDescriptor()
.getEnumTypes()
.get(0);
}
@@ -23086,21 +23859,22 @@ private Kind(int value) {
this.value = value;
}
- // @@protoc_insertion_point(enum_scope:tests.DocChange.Kind)
+ // @@protoc_insertion_point(enum_scope:google.cloud.conformance.firestore.v1.DocChange.Kind)
}
public static final int KIND_FIELD_NUMBER = 1;
private int kind_;
- /** .tests.DocChange.Kind kind = 1; */
+ /** .google.cloud.conformance.firestore.v1.DocChange.Kind kind = 1; */
public int getKindValue() {
return kind_;
}
- /** .tests.DocChange.Kind kind = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.DocChange.Kind getKind() {
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.Kind result =
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.Kind.forNumber(kind_);
+ /** .google.cloud.conformance.firestore.v1.DocChange.Kind kind = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Kind getKind() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Kind result =
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Kind.valueOf(kind_);
return result == null
- ? com.google.cloud.firestore.conformance.TestDefinition.DocChange.Kind.UNRECOGNIZED
+ ? com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Kind.UNRECOGNIZED
: result;
}
@@ -23135,6 +23909,7 @@ public int getNewIndex() {
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -23144,9 +23919,11 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (kind_
- != com.google.cloud.firestore.conformance.TestDefinition.DocChange.Kind.KIND_UNSPECIFIED
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Kind
+ .KIND_UNSPECIFIED
.getNumber()) {
output.writeEnum(1, kind_);
}
@@ -23162,13 +23939,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (kind_
- != com.google.cloud.firestore.conformance.TestDefinition.DocChange.Kind.KIND_UNSPECIFIED
+ != com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Kind
+ .KIND_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, kind_);
}
@@ -23191,22 +23970,21 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.cloud.firestore.conformance.TestDefinition.DocChange)) {
+ if (!(obj instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange)) {
return super.equals(obj);
}
- com.google.cloud.firestore.conformance.TestDefinition.DocChange other =
- (com.google.cloud.firestore.conformance.TestDefinition.DocChange) obj;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange other =
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange) obj;
- boolean result = true;
- result = result && kind_ == other.kind_;
- result = result && (hasDoc() == other.hasDoc());
+ if (kind_ != other.kind_) return false;
+ if (hasDoc() != other.hasDoc()) return false;
if (hasDoc()) {
- result = result && getDoc().equals(other.getDoc());
+ if (!getDoc().equals(other.getDoc())) return false;
}
- result = result && (getOldIndex() == other.getOldIndex());
- result = result && (getNewIndex() == other.getNewIndex());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
+ if (getOldIndex() != other.getOldIndex()) return false;
+ if (getNewIndex() != other.getNewIndex()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
@java.lang.Override
@@ -23231,59 +24009,59 @@ public int hashCode() {
return hash;
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocChange parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocChange parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocChange parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocChange parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocChange parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocChange parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocChange parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocChange parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocChange
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocChange
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -23291,12 +24069,12 @@ public static com.google.cloud.firestore.conformance.TestDefinition.DocChange pa
PARSER, input, extensionRegistry);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocChange parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocChange parseFrom(
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -23304,6 +24082,7 @@ public static com.google.cloud.firestore.conformance.TestDefinition.DocChange pa
PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
@@ -23313,10 +24092,11 @@ public static Builder newBuilder() {
}
public static Builder newBuilder(
- com.google.cloud.firestore.conformance.TestDefinition.DocChange prototype) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@@ -23327,28 +24107,29 @@ protected Builder newBuilderForType(
Builder builder = new Builder(parent);
return builder;
}
- /** Protobuf type {@code tests.DocChange} */
+ /** Protobuf type {@code google.cloud.conformance.firestore.v1.DocChange} */
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
- // @@protoc_insertion_point(builder_implements:tests.DocChange)
- com.google.cloud.firestore.conformance.TestDefinition.DocChangeOrBuilder {
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.firestore.v1.DocChange)
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_DocChange_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_DocChange_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_DocChange_fieldAccessorTable
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_DocChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.class,
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.Builder.class);
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.class,
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Builder.class);
}
// Construct using
- // com.google.cloud.firestore.conformance.TestDefinition.DocChange.newBuilder()
+ // com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -23362,6 +24143,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
+ @java.lang.Override
public Builder clear() {
super.clear();
kind_ = 0;
@@ -23379,27 +24161,32 @@ public Builder clear() {
return this;
}
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.firestore.conformance.TestDefinition
- .internal_static_tests_DocChange_descriptor;
+ return com.google.cloud.conformance.firestore.v1.TestDefinition
+ .internal_static_google_cloud_conformance_firestore_v1_DocChange_descriptor;
}
- public com.google.cloud.firestore.conformance.TestDefinition.DocChange
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange
getDefaultInstanceForType() {
- return com.google.cloud.firestore.conformance.TestDefinition.DocChange.getDefaultInstance();
+ return com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange
+ .getDefaultInstance();
}
- public com.google.cloud.firestore.conformance.TestDefinition.DocChange build() {
- com.google.cloud.firestore.conformance.TestDefinition.DocChange result = buildPartial();
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange build() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public com.google.cloud.firestore.conformance.TestDefinition.DocChange buildPartial() {
- com.google.cloud.firestore.conformance.TestDefinition.DocChange result =
- new com.google.cloud.firestore.conformance.TestDefinition.DocChange(this);
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange buildPartial() {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange result =
+ new com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange(this);
result.kind_ = kind_;
if (docBuilder_ == null) {
result.doc_ = doc_;
@@ -23412,38 +24199,46 @@ public com.google.cloud.firestore.conformance.TestDefinition.DocChange buildPart
return result;
}
+ @java.lang.Override
public Builder clone() {
- return (Builder) super.clone();
+ return super.clone();
}
+ @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.setField(field, value);
+ return super.setField(field, value);
}
+ @java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
+ return super.clearField(field);
}
+ @java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
+ return super.clearOneof(oneof);
}
+ @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
+ return super.setRepeatedField(field, index, value);
}
+ @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
+ return super.addRepeatedField(field, value);
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.firestore.conformance.TestDefinition.DocChange) {
- return mergeFrom((com.google.cloud.firestore.conformance.TestDefinition.DocChange) other);
+ if (other instanceof com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange) {
+ return mergeFrom(
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange) other);
} else {
super.mergeFrom(other);
return this;
@@ -23451,10 +24246,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}
public Builder mergeFrom(
- com.google.cloud.firestore.conformance.TestDefinition.DocChange other) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange other) {
if (other
- == com.google.cloud.firestore.conformance.TestDefinition.DocChange.getDefaultInstance())
- return this;
+ == com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange
+ .getDefaultInstance()) return this;
if (other.kind_ != 0) {
setKindValue(other.getKindValue());
}
@@ -23472,20 +24267,22 @@ public Builder mergeFrom(
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.cloud.firestore.conformance.TestDefinition.DocChange parsedMessage = null;
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
- (com.google.cloud.firestore.conformance.TestDefinition.DocChange)
+ (com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
@@ -23497,27 +24294,28 @@ public Builder mergeFrom(
}
private int kind_ = 0;
- /** .tests.DocChange.Kind kind = 1; */
+ /** .google.cloud.conformance.firestore.v1.DocChange.Kind kind = 1; */
public int getKindValue() {
return kind_;
}
- /** .tests.DocChange.Kind kind = 1; */
+ /** .google.cloud.conformance.firestore.v1.DocChange.Kind kind = 1; */
public Builder setKindValue(int value) {
kind_ = value;
onChanged();
return this;
}
- /** .tests.DocChange.Kind kind = 1; */
- public com.google.cloud.firestore.conformance.TestDefinition.DocChange.Kind getKind() {
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.Kind result =
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.Kind.forNumber(kind_);
+ /** .google.cloud.conformance.firestore.v1.DocChange.Kind kind = 1; */
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Kind getKind() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Kind result =
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Kind.valueOf(kind_);
return result == null
- ? com.google.cloud.firestore.conformance.TestDefinition.DocChange.Kind.UNRECOGNIZED
+ ? com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Kind.UNRECOGNIZED
: result;
}
- /** .tests.DocChange.Kind kind = 1; */
+ /** .google.cloud.conformance.firestore.v1.DocChange.Kind kind = 1; */
public Builder setKind(
- com.google.cloud.firestore.conformance.TestDefinition.DocChange.Kind value) {
+ com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange.Kind value) {
if (value == null) {
throw new NullPointerException();
}
@@ -23526,7 +24324,7 @@ public Builder setKind(
onChanged();
return this;
}
- /** .tests.DocChange.Kind kind = 1; */
+ /** .google.cloud.conformance.firestore.v1.DocChange.Kind kind = 1; */
public Builder clearKind() {
kind_ = 0;
@@ -23534,7 +24332,7 @@ public Builder clearKind() {
return this;
}
- private com.google.firestore.v1.Document doc_ = null;
+ private com.google.firestore.v1.Document doc_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.firestore.v1.Document,
com.google.firestore.v1.Document.Builder,
@@ -23677,34 +24475,37 @@ public Builder clearNewIndex() {
return this;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:tests.DocChange)
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.firestore.v1.DocChange)
}
- // @@protoc_insertion_point(class_scope:tests.DocChange)
- private static final com.google.cloud.firestore.conformance.TestDefinition.DocChange
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.firestore.v1.DocChange)
+ private static final com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange
DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.cloud.firestore.conformance.TestDefinition.DocChange();
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange();
}
- public static com.google.cloud.firestore.conformance.TestDefinition.DocChange
+ public static com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
public DocChange parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -23722,92 +24523,93 @@ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
- public com.google.cloud.firestore.conformance.TestDefinition.DocChange
+ @java.lang.Override
+ public com.google.cloud.conformance.firestore.v1.TestDefinition.DocChange
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_TestSuite_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_TestSuite_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_TestSuite_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_TestSuite_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_Test_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_Test_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_Test_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_Test_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_GetTest_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_GetTest_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_GetTest_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_GetTest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_CreateTest_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_CreateTest_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_CreateTest_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_CreateTest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_SetTest_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_SetTest_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_SetTest_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_SetTest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_UpdateTest_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_UpdateTest_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_UpdateTest_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_UpdateTest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_UpdatePathsTest_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_UpdatePathsTest_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_UpdatePathsTest_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_UpdatePathsTest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_DeleteTest_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_DeleteTest_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_DeleteTest_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_DeleteTest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_SetOption_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_SetOption_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_SetOption_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_SetOption_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_QueryTest_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_QueryTest_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_QueryTest_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_QueryTest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_Clause_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_Clause_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_Clause_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_Clause_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_Select_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_Select_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_Select_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_Select_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_Where_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_Where_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_Where_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_Where_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_OrderBy_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_OrderBy_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_OrderBy_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_OrderBy_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_Cursor_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_Cursor_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_Cursor_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_Cursor_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_DocSnapshot_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_DocSnapshot_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_DocSnapshot_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_DocSnapshot_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_FieldPath_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_FieldPath_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_FieldPath_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_FieldPath_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_ListenTest_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_ListenTest_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_ListenTest_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_ListenTest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_Snapshot_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_Snapshot_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_Snapshot_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_Snapshot_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tests_DocChange_descriptor;
+ internal_static_google_cloud_conformance_firestore_v1_DocChange_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_tests_DocChange_fieldAccessorTable;
+ internal_static_google_cloud_conformance_firestore_v1_DocChange_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -23817,82 +24619,104 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n\025test-definition.proto\022\005tests\032%google/f"
- + "irestore/v1/common.proto\032\'google/fi"
- + "restore/v1/document.proto\032(google/f"
- + "irestore/v1/firestore.proto\032$google"
- + "/firestore/v1/query.proto\032\037google/p"
- + "rotobuf/timestamp.proto\"\'\n\tTestSuite\022\032\n\005"
- + "tests\030\001 \003(\0132\013.tests.Test\"\310\002\n\004Test\022\023\n\013des"
- + "cription\030\001 \001(\t\022\035\n\003get\030\002 \001(\0132\016.tests.GetT"
- + "estH\000\022#\n\006create\030\003 \001(\0132\021.tests.CreateTest"
- + "H\000\022\035\n\003set\030\004 \001(\0132\016.tests.SetTestH\000\022#\n\006upd"
- + "ate\030\005 \001(\0132\021.tests.UpdateTestH\000\022.\n\014update"
- + "_paths\030\006 \001(\0132\026.tests.UpdatePathsTestH\000\022#"
- + "\n\006delete\030\007 \001(\0132\021.tests.DeleteTestH\000\022!\n\005q"
- + "uery\030\010 \001(\0132\020.tests.QueryTestH\000\022#\n\006listen"
- + "\030\t \001(\0132\021.tests.ListenTestH\000B\006\n\004test\"^\n\007G"
- + "etTest\022\024\n\014doc_ref_path\030\001 \001(\t\022=\n\007request\030"
- + "\002 \001(\0132,.google.firestore.v1.GetDocu"
- + "mentRequest\"\201\001\n\nCreateTest\022\024\n\014doc_ref_pa"
- + "th\030\001 \001(\t\022\021\n\tjson_data\030\002 \001(\t\0228\n\007request\030\003"
- + " \001(\0132\'.google.firestore.v1.CommitRe"
- + "quest\022\020\n\010is_error\030\004 \001(\010\"\240\001\n\007SetTest\022\024\n\014d"
- + "oc_ref_path\030\001 \001(\t\022 \n\006option\030\002 \001(\0132\020.test"
- + "s.SetOption\022\021\n\tjson_data\030\003 \001(\t\0228\n\007reques"
- + "t\030\004 \001(\0132\'.google.firestore.v1.Commi"
- + "tRequest\022\020\n\010is_error\030\005 \001(\010\"\277\001\n\nUpdateTes"
- + "t\022\024\n\014doc_ref_path\030\001 \001(\t\022<\n\014precondition\030"
- + "\002 \001(\0132&.google.firestore.v1.Precond"
- + "ition\022\021\n\tjson_data\030\003 \001(\t\0228\n\007request\030\004 \001("
- + "\0132\'.google.firestore.v1.CommitReque"
- + "st\022\020\n\010is_error\030\005 \001(\010\"\355\001\n\017UpdatePathsTest"
- + "\022\024\n\014doc_ref_path\030\001 \001(\t\022<\n\014precondition\030\002"
- + " \001(\0132&.google.firestore.v1.Precondi"
- + "tion\022%\n\013field_paths\030\003 \003(\0132\020.tests.FieldP"
- + "ath\022\023\n\013json_values\030\004 \003(\t\0228\n\007request\030\005 \001("
- + "\0132\'.google.firestore.v1.CommitReque"
- + "st\022\020\n\010is_error\030\006 \001(\010\"\254\001\n\nDeleteTest\022\024\n\014d"
- + "oc_ref_path\030\001 \001(\t\022<\n\014precondition\030\002 \001(\0132"
- + "&.google.firestore.v1.Precondition\022"
- + "8\n\007request\030\003 \001(\0132\'.google.firestore.v1be"
- + "ta1.CommitRequest\022\020\n\010is_error\030\004 \001(\010\":\n\tS"
- + "etOption\022\013\n\003all\030\001 \001(\010\022 \n\006fields\030\002 \003(\0132\020."
- + "tests.FieldPath\"\212\001\n\tQueryTest\022\021\n\tcoll_pa"
- + "th\030\001 \001(\t\022\036\n\007clauses\030\002 \003(\0132\r.tests.Clause"
- + "\0228\n\005query\030\003 \001(\0132).google.firestore.v1bet"
- + "a1.StructuredQuery\022\020\n\010is_error\030\004 \001(\010\"\250\002\n"
- + "\006Clause\022\037\n\006select\030\001 \001(\0132\r.tests.SelectH\000"
- + "\022\035\n\005where\030\002 \001(\0132\014.tests.WhereH\000\022\"\n\010order"
- + "_by\030\003 \001(\0132\016.tests.OrderByH\000\022\020\n\006offset\030\004 "
- + "\001(\005H\000\022\017\n\005limit\030\005 \001(\005H\000\022!\n\010start_at\030\006 \001(\013"
- + "2\r.tests.CursorH\000\022$\n\013start_after\030\007 \001(\0132\r"
- + ".tests.CursorH\000\022\037\n\006end_at\030\010 \001(\0132\r.tests."
- + "CursorH\000\022#\n\nend_before\030\t \001(\0132\r.tests.Cur"
- + "sorH\000B\010\n\006clause\"*\n\006Select\022 \n\006fields\030\001 \003("
- + "\0132\020.tests.FieldPath\"G\n\005Where\022\036\n\004path\030\001 \001"
- + "(\0132\020.tests.FieldPath\022\n\n\002op\030\002 \001(\t\022\022\n\njson"
- + "_value\030\003 \001(\t\"<\n\007OrderBy\022\036\n\004path\030\001 \001(\0132\020."
- + "tests.FieldPath\022\021\n\tdirection\030\002 \001(\t\"G\n\006Cu"
- + "rsor\022(\n\014doc_snapshot\030\001 \001(\0132\022.tests.DocSn"
- + "apshot\022\023\n\013json_values\030\002 \003(\t\".\n\013DocSnapsh"
- + "ot\022\014\n\004path\030\001 \001(\t\022\021\n\tjson_data\030\002 \001(\t\"\032\n\tF"
- + "ieldPath\022\r\n\005field\030\001 \003(\t\"\177\n\nListenTest\022;\n"
- + "\tresponses\030\001 \003(\0132(.google.firestore.v1be"
- + "ta1.ListenResponse\022\"\n\tsnapshots\030\002 \003(\0132\017."
- + "tests.Snapshot\022\020\n\010is_error\030\003 \001(\010\"\216\001\n\010Sna"
- + "pshot\0220\n\004docs\030\001 \003(\0132\".google.firestore.v"
- + "1beta1.Document\022!\n\007changes\030\002 \003(\0132\020.tests"
- + ".DocChange\022-\n\tread_time\030\003 \001(\0132\032.google.p"
- + "rotobuf.Timestamp\"\313\001\n\tDocChange\022#\n\004kind\030"
- + "\001 \001(\0162\025.tests.DocChange.Kind\022/\n\003doc\030\002 \001("
- + "\0132\".google.firestore.v1.Document\022\021\n"
- + "\told_index\030\003 \001(\005\022\021\n\tnew_index\030\004 \001(\005\"B\n\004K"
- + "ind\022\024\n\020KIND_UNSPECIFIED\020\000\022\t\n\005ADDED\020\001\022\013\n\007"
- + "REMOVED\020\002\022\014\n\010MODIFIED\020\003Bx\n&com.google.cl"
- + "oud.firestore.conformance\252\002\"Google.Cloud"
- + ".Firestore.Tests.Proto\312\002(Google\\Cloud\\Fi"
- + "restore\\Tests\\Conformanceb\006proto3"
+ "\n1google/cloud/conformance/firestore/v1/"
+ + "tests.proto\022%google.cloud.conformance.fi"
+ + "restore.v1\032 google/firestore/v1/common.p"
+ + "roto\032\"google/firestore/v1/document.proto"
+ + "\032#google/firestore/v1/firestore.proto\032\037g"
+ + "oogle/firestore/v1/query.proto\032\037google/p"
+ + "rotobuf/timestamp.proto\"G\n\tTestSuite\022:\n\005"
+ + "tests\030\001 \003(\0132+.google.cloud.conformance.f"
+ + "irestore.v1.Test\"\331\004\n\004Test\022\023\n\013description"
+ + "\030\001 \001(\t\022\017\n\007comment\030\n \001(\t\022=\n\003get\030\002 \001(\0132..g"
+ + "oogle.cloud.conformance.firestore.v1.Get"
+ + "TestH\000\022C\n\006create\030\003 \001(\01321.google.cloud.co"
+ + "nformance.firestore.v1.CreateTestH\000\022=\n\003s"
+ + "et\030\004 \001(\0132..google.cloud.conformance.fire"
+ + "store.v1.SetTestH\000\022C\n\006update\030\005 \001(\01321.goo"
+ + "gle.cloud.conformance.firestore.v1.Updat"
+ + "eTestH\000\022N\n\014update_paths\030\006 \001(\01326.google.c"
+ + "loud.conformance.firestore.v1.UpdatePath"
+ + "sTestH\000\022C\n\006delete\030\007 \001(\01321.google.cloud.c"
+ + "onformance.firestore.v1.DeleteTestH\000\022A\n\005"
+ + "query\030\010 \001(\01320.google.cloud.conformance.f"
+ + "irestore.v1.QueryTestH\000\022C\n\006listen\030\t \001(\0132"
+ + "1.google.cloud.conformance.firestore.v1."
+ + "ListenTestH\000B\006\n\004test\"Y\n\007GetTest\022\024\n\014doc_r"
+ + "ef_path\030\001 \001(\t\0228\n\007request\030\002 \001(\0132\'.google."
+ + "firestore.v1.GetDocumentRequest\"|\n\nCreat"
+ + "eTest\022\024\n\014doc_ref_path\030\001 \001(\t\022\021\n\tjson_data"
+ + "\030\002 \001(\t\0223\n\007request\030\003 \001(\0132\".google.firesto"
+ + "re.v1.CommitRequest\022\020\n\010is_error\030\004 \001(\010\"\273\001"
+ + "\n\007SetTest\022\024\n\014doc_ref_path\030\001 \001(\t\022@\n\006optio"
+ + "n\030\002 \001(\01320.google.cloud.conformance.fires"
+ + "tore.v1.SetOption\022\021\n\tjson_data\030\003 \001(\t\0223\n\007"
+ + "request\030\004 \001(\0132\".google.firestore.v1.Comm"
+ + "itRequest\022\020\n\010is_error\030\005 \001(\010\"\265\001\n\nUpdateTe"
+ + "st\022\024\n\014doc_ref_path\030\001 \001(\t\0227\n\014precondition"
+ + "\030\002 \001(\0132!.google.firestore.v1.Preconditio"
+ + "n\022\021\n\tjson_data\030\003 \001(\t\0223\n\007request\030\004 \001(\0132\"."
+ + "google.firestore.v1.CommitRequest\022\020\n\010is_"
+ + "error\030\005 \001(\010\"\203\002\n\017UpdatePathsTest\022\024\n\014doc_r"
+ + "ef_path\030\001 \001(\t\0227\n\014precondition\030\002 \001(\0132!.go"
+ + "ogle.firestore.v1.Precondition\022E\n\013field_"
+ + "paths\030\003 \003(\01320.google.cloud.conformance.f"
+ + "irestore.v1.FieldPath\022\023\n\013json_values\030\004 \003"
+ + "(\t\0223\n\007request\030\005 \001(\0132\".google.firestore.v"
+ + "1.CommitRequest\022\020\n\010is_error\030\006 \001(\010\"\242\001\n\nDe"
+ + "leteTest\022\024\n\014doc_ref_path\030\001 \001(\t\0227\n\014precon"
+ + "dition\030\002 \001(\0132!.google.firestore.v1.Preco"
+ + "ndition\0223\n\007request\030\003 \001(\0132\".google.firest"
+ + "ore.v1.CommitRequest\022\020\n\010is_error\030\004 \001(\010\"Z"
+ + "\n\tSetOption\022\013\n\003all\030\001 \001(\010\022@\n\006fields\030\002 \003(\013"
+ + "20.google.cloud.conformance.firestore.v1"
+ + ".FieldPath\"\245\001\n\tQueryTest\022\021\n\tcoll_path\030\001 "
+ + "\001(\t\022>\n\007clauses\030\002 \003(\0132-.google.cloud.conf"
+ + "ormance.firestore.v1.Clause\0223\n\005query\030\003 \001"
+ + "(\0132$.google.firestore.v1.StructuredQuery"
+ + "\022\020\n\010is_error\030\004 \001(\010\"\210\004\n\006Clause\022?\n\006select\030"
+ + "\001 \001(\0132-.google.cloud.conformance.firesto"
+ + "re.v1.SelectH\000\022=\n\005where\030\002 \001(\0132,.google.c"
+ + "loud.conformance.firestore.v1.WhereH\000\022B\n"
+ + "\010order_by\030\003 \001(\0132..google.cloud.conforman"
+ + "ce.firestore.v1.OrderByH\000\022\020\n\006offset\030\004 \001("
+ + "\005H\000\022\017\n\005limit\030\005 \001(\005H\000\022A\n\010start_at\030\006 \001(\0132-"
+ + ".google.cloud.conformance.firestore.v1.C"
+ + "ursorH\000\022D\n\013start_after\030\007 \001(\0132-.google.cl"
+ + "oud.conformance.firestore.v1.CursorH\000\022?\n"
+ + "\006end_at\030\010 \001(\0132-.google.cloud.conformance"
+ + ".firestore.v1.CursorH\000\022C\n\nend_before\030\t \001"
+ + "(\0132-.google.cloud.conformance.firestore."
+ + "v1.CursorH\000B\010\n\006clause\"J\n\006Select\022@\n\006field"
+ + "s\030\001 \003(\01320.google.cloud.conformance.fires"
+ + "tore.v1.FieldPath\"g\n\005Where\022>\n\004path\030\001 \001(\013"
+ + "20.google.cloud.conformance.firestore.v1"
+ + ".FieldPath\022\n\n\002op\030\002 \001(\t\022\022\n\njson_value\030\003 \001"
+ + "(\t\"\\\n\007OrderBy\022>\n\004path\030\001 \001(\01320.google.clo"
+ + "ud.conformance.firestore.v1.FieldPath\022\021\n"
+ + "\tdirection\030\002 \001(\t\"g\n\006Cursor\022H\n\014doc_snapsh"
+ + "ot\030\001 \001(\01322.google.cloud.conformance.fire"
+ + "store.v1.DocSnapshot\022\023\n\013json_values\030\002 \003("
+ + "\t\".\n\013DocSnapshot\022\014\n\004path\030\001 \001(\t\022\021\n\tjson_d"
+ + "ata\030\002 \001(\t\"\032\n\tFieldPath\022\r\n\005field\030\001 \003(\t\"\232\001"
+ + "\n\nListenTest\0226\n\tresponses\030\001 \003(\0132#.google"
+ + ".firestore.v1.ListenResponse\022B\n\tsnapshot"
+ + "s\030\002 \003(\0132/.google.cloud.conformance.fires"
+ + "tore.v1.Snapshot\022\020\n\010is_error\030\003 \001(\010\"\251\001\n\010S"
+ + "napshot\022+\n\004docs\030\001 \003(\0132\035.google.firestore"
+ + ".v1.Document\022A\n\007changes\030\002 \003(\01320.google.c"
+ + "loud.conformance.firestore.v1.DocChange\022"
+ + "-\n\tread_time\030\003 \001(\0132\032.google.protobuf.Tim"
+ + "estamp\"\346\001\n\tDocChange\022C\n\004kind\030\001 \001(\01625.goo"
+ + "gle.cloud.conformance.firestore.v1.DocCh"
+ + "ange.Kind\022*\n\003doc\030\002 \001(\0132\035.google.firestor"
+ + "e.v1.Document\022\021\n\told_index\030\003 \001(\005\022\021\n\tnew_"
+ + "index\030\004 \001(\005\"B\n\004Kind\022\024\n\020KIND_UNSPECIFIED\020"
+ + "\000\022\t\n\005ADDED\020\001\022\013\n\007REMOVED\020\002\022\014\n\010MODIFIED\020\003B"
+ + "\213\001\n)com.google.cloud.conformance.firesto"
+ + "re.v1B\016TestDefinition\252\002\"Google.Cloud.Fir"
+ + "estore.Tests.Proto\312\002(Google\\Cloud\\Firest"
+ + "ore\\Tests\\Conformanceb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -23912,19 +24736,22 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.TimestampProto.getDescriptor(),
},
assigner);
- internal_static_tests_TestSuite_descriptor = getDescriptor().getMessageTypes().get(0);
- internal_static_tests_TestSuite_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_TestSuite_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_conformance_firestore_v1_TestSuite_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_TestSuite_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_TestSuite_descriptor,
new java.lang.String[] {
"Tests",
});
- internal_static_tests_Test_descriptor = getDescriptor().getMessageTypes().get(1);
- internal_static_tests_Test_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_Test_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_conformance_firestore_v1_Test_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_Test_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_Test_descriptor,
new java.lang.String[] {
"Description",
+ "Comment",
"Get",
"Create",
"Set",
@@ -23935,66 +24762,75 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"Listen",
"Test",
});
- internal_static_tests_GetTest_descriptor = getDescriptor().getMessageTypes().get(2);
- internal_static_tests_GetTest_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_GetTest_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_conformance_firestore_v1_GetTest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_GetTest_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_GetTest_descriptor,
new java.lang.String[] {
"DocRefPath", "Request",
});
- internal_static_tests_CreateTest_descriptor = getDescriptor().getMessageTypes().get(3);
- internal_static_tests_CreateTest_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_CreateTest_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_cloud_conformance_firestore_v1_CreateTest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_CreateTest_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_CreateTest_descriptor,
new java.lang.String[] {
"DocRefPath", "JsonData", "Request", "IsError",
});
- internal_static_tests_SetTest_descriptor = getDescriptor().getMessageTypes().get(4);
- internal_static_tests_SetTest_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_SetTest_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_google_cloud_conformance_firestore_v1_SetTest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_SetTest_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_SetTest_descriptor,
new java.lang.String[] {
"DocRefPath", "Option", "JsonData", "Request", "IsError",
});
- internal_static_tests_UpdateTest_descriptor = getDescriptor().getMessageTypes().get(5);
- internal_static_tests_UpdateTest_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_UpdateTest_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_google_cloud_conformance_firestore_v1_UpdateTest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_UpdateTest_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_UpdateTest_descriptor,
new java.lang.String[] {
"DocRefPath", "Precondition", "JsonData", "Request", "IsError",
});
- internal_static_tests_UpdatePathsTest_descriptor = getDescriptor().getMessageTypes().get(6);
- internal_static_tests_UpdatePathsTest_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_UpdatePathsTest_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_google_cloud_conformance_firestore_v1_UpdatePathsTest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_UpdatePathsTest_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_UpdatePathsTest_descriptor,
new java.lang.String[] {
"DocRefPath", "Precondition", "FieldPaths", "JsonValues", "Request", "IsError",
});
- internal_static_tests_DeleteTest_descriptor = getDescriptor().getMessageTypes().get(7);
- internal_static_tests_DeleteTest_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_DeleteTest_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_google_cloud_conformance_firestore_v1_DeleteTest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_DeleteTest_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_DeleteTest_descriptor,
new java.lang.String[] {
"DocRefPath", "Precondition", "Request", "IsError",
});
- internal_static_tests_SetOption_descriptor = getDescriptor().getMessageTypes().get(8);
- internal_static_tests_SetOption_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_SetOption_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_google_cloud_conformance_firestore_v1_SetOption_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_SetOption_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_SetOption_descriptor,
new java.lang.String[] {
"All", "Fields",
});
- internal_static_tests_QueryTest_descriptor = getDescriptor().getMessageTypes().get(9);
- internal_static_tests_QueryTest_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_QueryTest_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_google_cloud_conformance_firestore_v1_QueryTest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_QueryTest_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_QueryTest_descriptor,
new java.lang.String[] {
"CollPath", "Clauses", "Query", "IsError",
});
- internal_static_tests_Clause_descriptor = getDescriptor().getMessageTypes().get(10);
- internal_static_tests_Clause_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_Clause_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_google_cloud_conformance_firestore_v1_Clause_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_Clause_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_Clause_descriptor,
new java.lang.String[] {
"Select",
"Where",
@@ -24007,66 +24843,75 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"EndBefore",
"Clause",
});
- internal_static_tests_Select_descriptor = getDescriptor().getMessageTypes().get(11);
- internal_static_tests_Select_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_Select_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_google_cloud_conformance_firestore_v1_Select_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_Select_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_Select_descriptor,
new java.lang.String[] {
"Fields",
});
- internal_static_tests_Where_descriptor = getDescriptor().getMessageTypes().get(12);
- internal_static_tests_Where_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_Where_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_google_cloud_conformance_firestore_v1_Where_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_Where_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_Where_descriptor,
new java.lang.String[] {
"Path", "Op", "JsonValue",
});
- internal_static_tests_OrderBy_descriptor = getDescriptor().getMessageTypes().get(13);
- internal_static_tests_OrderBy_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_OrderBy_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_google_cloud_conformance_firestore_v1_OrderBy_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_OrderBy_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_OrderBy_descriptor,
new java.lang.String[] {
"Path", "Direction",
});
- internal_static_tests_Cursor_descriptor = getDescriptor().getMessageTypes().get(14);
- internal_static_tests_Cursor_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_Cursor_descriptor =
+ getDescriptor().getMessageTypes().get(14);
+ internal_static_google_cloud_conformance_firestore_v1_Cursor_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_Cursor_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_Cursor_descriptor,
new java.lang.String[] {
"DocSnapshot", "JsonValues",
});
- internal_static_tests_DocSnapshot_descriptor = getDescriptor().getMessageTypes().get(15);
- internal_static_tests_DocSnapshot_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_DocSnapshot_descriptor =
+ getDescriptor().getMessageTypes().get(15);
+ internal_static_google_cloud_conformance_firestore_v1_DocSnapshot_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_DocSnapshot_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_DocSnapshot_descriptor,
new java.lang.String[] {
"Path", "JsonData",
});
- internal_static_tests_FieldPath_descriptor = getDescriptor().getMessageTypes().get(16);
- internal_static_tests_FieldPath_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_FieldPath_descriptor =
+ getDescriptor().getMessageTypes().get(16);
+ internal_static_google_cloud_conformance_firestore_v1_FieldPath_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_FieldPath_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_FieldPath_descriptor,
new java.lang.String[] {
"Field",
});
- internal_static_tests_ListenTest_descriptor = getDescriptor().getMessageTypes().get(17);
- internal_static_tests_ListenTest_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_ListenTest_descriptor =
+ getDescriptor().getMessageTypes().get(17);
+ internal_static_google_cloud_conformance_firestore_v1_ListenTest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_ListenTest_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_ListenTest_descriptor,
new java.lang.String[] {
"Responses", "Snapshots", "IsError",
});
- internal_static_tests_Snapshot_descriptor = getDescriptor().getMessageTypes().get(18);
- internal_static_tests_Snapshot_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_Snapshot_descriptor =
+ getDescriptor().getMessageTypes().get(18);
+ internal_static_google_cloud_conformance_firestore_v1_Snapshot_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_Snapshot_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_Snapshot_descriptor,
new java.lang.String[] {
"Docs", "Changes", "ReadTime",
});
- internal_static_tests_DocChange_descriptor = getDescriptor().getMessageTypes().get(19);
- internal_static_tests_DocChange_fieldAccessorTable =
+ internal_static_google_cloud_conformance_firestore_v1_DocChange_descriptor =
+ getDescriptor().getMessageTypes().get(19);
+ internal_static_google_cloud_conformance_firestore_v1_DocChange_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_tests_DocChange_descriptor,
+ internal_static_google_cloud_conformance_firestore_v1_DocChange_descriptor,
new java.lang.String[] {
"Kind", "Doc", "OldIndex", "NewIndex",
});
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/proto/google/cloud/conformance/firestore/v1/tests.proto b/google-cloud-testing/google-cloud-conformance-tests/src/main/proto/google/cloud/conformance/firestore/v1/tests.proto
new file mode 100644
index 000000000000..48eb89cf7bc3
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/proto/google/cloud/conformance/firestore/v1/tests.proto
@@ -0,0 +1,213 @@
+// Copyright 2019 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.
+//
+
+// Tests for firestore clients.
+
+syntax = "proto3";
+
+package google.cloud.conformance.firestore.v1;
+
+option php_namespace = "Google\\Cloud\\Firestore\\Tests\\Conformance";
+option csharp_namespace = "Google.Cloud.Firestore.Tests.Proto";
+option java_outer_classname = "TestDefinition";
+option java_package = "com.google.cloud.conformance.firestore.v1";
+
+import "google/firestore/v1/common.proto";
+import "google/firestore/v1/document.proto";
+import "google/firestore/v1/firestore.proto";
+import "google/firestore/v1/query.proto";
+import "google/protobuf/timestamp.proto";
+
+// A collection of tests.
+message TestSuite {
+ repeated Test tests = 1;
+}
+
+// A Test describes a single client method call and its expected result.
+message Test {
+ string description = 1; // short description of the test
+ string comment = 10; // a comment describing the behavior being tested
+
+ oneof test {
+ GetTest get = 2;
+ CreateTest create = 3;
+ SetTest set = 4;
+ UpdateTest update = 5;
+ UpdatePathsTest update_paths = 6;
+ DeleteTest delete = 7;
+ QueryTest query = 8;
+ ListenTest listen = 9;
+ }
+}
+
+// Call to the DocumentRef.Get method.
+message GetTest {
+ // The path of the doc, e.g. "projects/projectID/databases/(default)/documents/C/d"
+ string doc_ref_path = 1;
+
+ // The request that the call should send to the Firestore service.
+ google.firestore.v1.GetDocumentRequest request = 2;
+}
+
+// Call to DocumentRef.Create.
+message CreateTest {
+ // The path of the doc, e.g. "projects/projectID/databases/(default)/documents/C/d"
+ string doc_ref_path = 1;
+
+ // The data passed to Create, as JSON. The strings "Delete" and "ServerTimestamp"
+ // denote the two special sentinel values. Values that could be interpreted as integers
+ // (i.e. digit strings) should be treated as integers.
+ string json_data = 2;
+
+ // The request that the call should generate.
+ google.firestore.v1.CommitRequest request = 3;
+
+ // If true, the call should result in an error without generating a request.
+ // If this is true, request should not be set.
+ bool is_error = 4;
+}
+
+// A call to DocumentRef.Set.
+message SetTest {
+ string doc_ref_path = 1; // path of doc
+ SetOption option = 2; // option to the Set call, if any
+ string json_data = 3; // data (see CreateTest.json_data)
+ google.firestore.v1.CommitRequest request = 4; // expected request
+ bool is_error = 5; // call signals an error
+}
+
+// A call to the form of DocumentRef.Update that represents the data as a map
+// or dictionary.
+message UpdateTest {
+ string doc_ref_path = 1; // path of doc
+ google.firestore.v1.Precondition precondition = 2; // precondition in call, if any
+ string json_data = 3; // data (see CreateTest.json_data)
+ google.firestore.v1.CommitRequest request = 4; // expected request
+ bool is_error = 5; // call signals an error
+}
+
+// A call to the form of DocumentRef.Update that represents the data as a list
+// of field paths and their values.
+message UpdatePathsTest {
+ string doc_ref_path = 1; // path of doc
+ google.firestore.v1.Precondition precondition = 2; // precondition in call, if any
+ // parallel sequences: field_paths[i] corresponds to json_values[i]
+ repeated FieldPath field_paths = 3; // the argument field paths
+ repeated string json_values = 4; // the argument values, as JSON
+ google.firestore.v1.CommitRequest request = 5; // expected rquest
+ bool is_error = 6; // call signals an error
+}
+
+// A call to DocmentRef.Delete
+message DeleteTest {
+ string doc_ref_path = 1; // path of doc
+ google.firestore.v1.Precondition precondition = 2;
+ google.firestore.v1.CommitRequest request = 3; // expected rquest
+ bool is_error = 4; // call signals an error
+}
+
+// An option to the DocumentRef.Set call.
+message SetOption {
+ bool all = 1; // if true, merge all fields ("fields" is ignored).
+ repeated FieldPath fields = 2; // field paths for a Merge option
+}
+
+message QueryTest {
+ string coll_path = 1; // path of collection, e.g. "projects/projectID/databases/(default)/documents/C"
+ repeated Clause clauses = 2;
+ google.firestore.v1.StructuredQuery query = 3;
+ bool is_error = 4;
+}
+
+message Clause {
+ oneof clause {
+ Select select = 1;
+ Where where = 2;
+ OrderBy order_by = 3;
+ int32 offset = 4;
+ int32 limit = 5;
+ Cursor start_at = 6;
+ Cursor start_after = 7;
+ Cursor end_at = 8;
+ Cursor end_before = 9;
+ }
+}
+
+message Select {
+ repeated FieldPath fields = 1;
+}
+
+message Where {
+ FieldPath path = 1;
+ string op = 2;
+ string json_value = 3;
+}
+
+message OrderBy {
+ FieldPath path = 1;
+ string direction = 2; // "asc" or "desc"
+}
+
+message Cursor {
+ // one of:
+ DocSnapshot doc_snapshot = 1;
+ repeated string json_values = 2;
+}
+
+message DocSnapshot {
+ string path = 1;
+ string json_data = 2;
+}
+
+message FieldPath {
+ repeated string field = 1;
+}
+
+// A test of the Listen streaming RPC (a.k.a. FireStore watch).
+// If the sequence of responses is provided to the implementation,
+// it should produce the sequence of snapshots.
+// If is_error is true, an error should occur after the snapshots.
+//
+// The tests assume that the query is
+// Collection("projects/projectID/databases/(default)/documents/C").OrderBy("a", Ascending)
+//
+// The watch target ID used in these tests is 1. Test interpreters
+// should either change their client's ID for testing,
+// or change the ID in the tests before running them.
+message ListenTest {
+ repeated google.firestore.v1.ListenResponse responses = 1;
+ repeated Snapshot snapshots = 2;
+ bool is_error = 3;
+}
+
+message Snapshot {
+ repeated google.firestore.v1.Document docs = 1;
+ repeated DocChange changes = 2;
+ google.protobuf.Timestamp read_time = 3;
+}
+
+message DocChange {
+ enum Kind {
+ KIND_UNSPECIFIED = 0;
+ ADDED = 1;
+ REMOVED = 2;
+ MODIFIED = 3;
+ }
+
+ Kind kind = 1;
+ google.firestore.v1.Document doc = 2;
+ int32 old_index = 3;
+ int32 new_index = 4;
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-all-transforms.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-all-transforms.json
new file mode 100644
index 000000000000..82831624bb1f
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-all-transforms.json
@@ -0,0 +1,73 @@
+{
+ "tests": [
+ {
+ "description": "create: all transforms in a single call",
+ "comment": "A document can be created with any amount of transforms.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": \"ServerTimestamp\", \"c\": [\"ArrayUnion\", 1, 2, 3], \"d\": [\"ArrayRemove\", 4, 5, 6]}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "setToServerValue": "REQUEST_TIME"
+ },
+ {
+ "fieldPath": "c",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ },
+ {
+ "fieldPath": "d",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "4"
+ },
+ {
+ "integerValue": "5"
+ },
+ {
+ "integerValue": "6"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove-multi.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove-multi.json
new file mode 100644
index 000000000000..548a9838089e
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove-multi.json
@@ -0,0 +1,69 @@
+{
+ "tests": [
+ {
+ "description": "create: multiple ArrayRemove fields",
+ "comment": "A document can have more than one ArrayRemove field.\nSince all the ArrayRemove fields are removed, the only field in the update is \"a\".",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": [\"ArrayRemove\", 1, 2, 3], \"c\": {\"d\": [\"ArrayRemove\", 4, 5, 6]}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ },
+ {
+ "fieldPath": "c.d",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "4"
+ },
+ {
+ "integerValue": "5"
+ },
+ {
+ "integerValue": "6"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove-nested.json
new file mode 100644
index 000000000000..fa01bd7e0071
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove-nested.json
@@ -0,0 +1,53 @@
+{
+ "tests": [
+ {
+ "description": "create: nested ArrayRemove field",
+ "comment": "An ArrayRemove value can occur at any depth. In this case,\nthe transform applies to the field path \"b.c\". Since \"c\" is removed from the update,\n\"b\" becomes empty, so it is also removed from the update.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": {\"c\": [\"ArrayRemove\", 1, 2, 3]}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b.c",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove-noarray-nested.json
new file mode 100644
index 000000000000..7d530084d448
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove-noarray-nested.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "create: ArrayRemove cannot be anywhere inside an array value",
+ "comment": "There cannot be an array value anywhere on the path from the document\nroot to the ArrayRemove. Firestore transforms don't support array indexing.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, {\"b\": [\"ArrayRemove\", 1, 2, 3]}]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove-noarray.json
new file mode 100644
index 000000000000..99aea7e35cdf
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove-noarray.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "create: ArrayRemove cannot be in an array value",
+ "comment": "ArrayRemove must be the value of a field. Firestore\ntransforms don't support array indexing.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, 2, [\"ArrayRemove\", 1, 2, 3]]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove-with-st.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove-with-st.json
new file mode 100644
index 000000000000..56bdc435daff
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove-with-st.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "create: The ServerTimestamp sentinel cannot be in an ArrayUnion",
+ "comment": "The ServerTimestamp sentinel must be the value of a field. It may\nnot appear in an ArrayUnion.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [\"ArrayRemove\", 1, \"ServerTimestamp\", 3]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove.json
new file mode 100644
index 000000000000..a69be14b7b12
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayremove.json
@@ -0,0 +1,53 @@
+{
+ "tests": [
+ {
+ "description": "create: ArrayRemove with data",
+ "comment": "A key with ArrayRemove is removed from the data in the update \noperation. Instead it appears in a separate Transform operation.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": [\"ArrayRemove\", 1, 2, 3]}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion-multi.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion-multi.json
new file mode 100644
index 000000000000..7ca9852f48d9
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion-multi.json
@@ -0,0 +1,69 @@
+{
+ "tests": [
+ {
+ "description": "create: multiple ArrayUnion fields",
+ "comment": "A document can have more than one ArrayUnion field.\nSince all the ArrayUnion fields are removed, the only field in the update is \"a\".",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": [\"ArrayUnion\", 1, 2, 3], \"c\": {\"d\": [\"ArrayUnion\", 4, 5, 6]}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ },
+ {
+ "fieldPath": "c.d",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "4"
+ },
+ {
+ "integerValue": "5"
+ },
+ {
+ "integerValue": "6"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion-nested.json
new file mode 100644
index 000000000000..a2f20299d3be
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion-nested.json
@@ -0,0 +1,53 @@
+{
+ "tests": [
+ {
+ "description": "create: nested ArrayUnion field",
+ "comment": "An ArrayUnion value can occur at any depth. In this case,\nthe transform applies to the field path \"b.c\". Since \"c\" is removed from the update,\n\"b\" becomes empty, so it is also removed from the update.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": {\"c\": [\"ArrayUnion\", 1, 2, 3]}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b.c",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion-noarray-nested.json
new file mode 100644
index 000000000000..b9ec5c01cbf1
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion-noarray-nested.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "create: ArrayUnion cannot be anywhere inside an array value",
+ "comment": "There cannot be an array value anywhere on the path from the document\nroot to the ArrayUnion. Firestore transforms don't support array indexing.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, {\"b\": [\"ArrayUnion\", 1, 2, 3]}]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion-noarray.json
new file mode 100644
index 000000000000..1b85a93c45e9
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion-noarray.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "create: ArrayUnion cannot be in an array value",
+ "comment": "ArrayUnion must be the value of a field. Firestore\ntransforms don't support array indexing.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, 2, [\"ArrayRemove\", 1, 2, 3]]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion-with-st.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion-with-st.json
new file mode 100644
index 000000000000..2847f57490b8
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion-with-st.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "create: The ServerTimestamp sentinel cannot be in an ArrayUnion",
+ "comment": "The ServerTimestamp sentinel must be the value of a field. It may\nnot appear in an ArrayUnion.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [\"ArrayUnion\", 1, \"ServerTimestamp\", 3]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion.json
new file mode 100644
index 000000000000..26d079946645
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-arrayunion.json
@@ -0,0 +1,53 @@
+{
+ "tests": [
+ {
+ "description": "create: ArrayUnion with data",
+ "comment": "A key with ArrayUnion is removed from the data in the update \noperation. Instead it appears in a separate Transform operation.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": [\"ArrayUnion\", 1, 2, 3]}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-basic.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-basic.json
new file mode 100644
index 000000000000..d67558ca13dd
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-basic.json
@@ -0,0 +1,30 @@
+{
+ "tests": [
+ {
+ "description": "create: basic",
+ "comment": "A simple call, resulting in a single update operation.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-complex.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-complex.json
new file mode 100644
index 000000000000..a01b307f672d
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-complex.json
@@ -0,0 +1,63 @@
+{
+ "tests": [
+ {
+ "description": "create: complex",
+ "comment": "A call to a write method with complicated input data.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, 2.5], \"b\": {\"c\": [\"three\", {\"d\": true}]}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "arrayValue": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "doubleValue": 2.5
+ }
+ ]
+ }
+ },
+ "b": {
+ "mapValue": {
+ "fields": {
+ "c": {
+ "arrayValue": {
+ "values": [
+ {
+ "stringValue": "three"
+ },
+ {
+ "mapValue": {
+ "fields": {
+ "d": {
+ "booleanValue": true
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-del-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-del-noarray-nested.json
new file mode 100644
index 000000000000..34d8258e1b21
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-del-noarray-nested.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "create: Delete cannot be anywhere inside an array value",
+ "comment": "The Delete sentinel must be the value of a field. Deletes are implemented\nby turning the path to the Delete sentinel into a FieldPath, and FieldPaths do not support\narray indexing.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, {\"b\": \"Delete\"}]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-del-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-del-noarray.json
new file mode 100644
index 000000000000..dde6b334b461
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-del-noarray.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "create: Delete cannot be in an array value",
+ "comment": "The Delete sentinel must be the value of a field. Deletes are\nimplemented by turning the path to the Delete sentinel into a FieldPath, and FieldPaths\ndo not support array indexing.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, 2, \"Delete\"]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-empty.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-empty.json
new file mode 100644
index 000000000000..7d9f7f009872
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-empty.json
@@ -0,0 +1,25 @@
+{
+ "tests": [
+ {
+ "description": "create: creating or setting an empty map",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {}
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-nodel.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-nodel.json
new file mode 100644
index 000000000000..dd8baaf227aa
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-nodel.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "create: Delete cannot appear in data",
+ "comment": "The Delete sentinel cannot be used in Create, or in Set without a Merge option.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": \"Delete\"}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-nosplit.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-nosplit.json
new file mode 100644
index 000000000000..8807af362e70
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-nosplit.json
@@ -0,0 +1,39 @@
+{
+ "tests": [
+ {
+ "description": "create: don’t split on dots",
+ "comment": "Create and Set treat their map keys literally. They do not split on dots.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{ \"a.b\": { \"c.d\": 1 }, \"e\": 2 }",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a.b": {
+ "mapValue": {
+ "fields": {
+ "c.d": {
+ "integerValue": "1"
+ }
+ }
+ }
+ },
+ "e": {
+ "integerValue": "2"
+ }
+ }
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-special-chars.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-special-chars.json
new file mode 100644
index 000000000000..4080042000d5
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-special-chars.json
@@ -0,0 +1,39 @@
+{
+ "tests": [
+ {
+ "description": "create: non-alpha characters in map keys",
+ "comment": "Create and Set treat their map keys literally. They do not escape special characters.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{ \"*\": { \".\": 1 }, \"~\": 2 }",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "*": {
+ "mapValue": {
+ "fields": {
+ ".": {
+ "integerValue": "1"
+ }
+ }
+ }
+ },
+ "~": {
+ "integerValue": "2"
+ }
+ }
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-alone.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-alone.json
new file mode 100644
index 000000000000..20c5e8ec32a3
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-alone.json
@@ -0,0 +1,31 @@
+{
+ "tests": [
+ {
+ "description": "create: ServerTimestamp alone",
+ "comment": "If the only values in the input are ServerTimestamps, then no\nupdate operation should be produced.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": \"ServerTimestamp\"}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-multi.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-multi.json
new file mode 100644
index 000000000000..89430e2b64d6
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-multi.json
@@ -0,0 +1,45 @@
+{
+ "tests": [
+ {
+ "description": "create: multiple ServerTimestamp fields",
+ "comment": "A document can have more than one ServerTimestamp field.\nSince all the ServerTimestamp fields are removed, the only field in the update is \"a\".",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": \"ServerTimestamp\", \"c\": {\"d\": \"ServerTimestamp\"}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "setToServerValue": "REQUEST_TIME"
+ },
+ {
+ "fieldPath": "c.d",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-nested.json
new file mode 100644
index 000000000000..f2a3a8d1f624
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-nested.json
@@ -0,0 +1,41 @@
+{
+ "tests": [
+ {
+ "description": "create: nested ServerTimestamp field",
+ "comment": "A ServerTimestamp value can occur at any depth. In this case,\nthe transform applies to the field path \"b.c\". Since \"c\" is removed from the update,\n\"b\" becomes empty, so it is also removed from the update.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": {\"c\": \"ServerTimestamp\"}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b.c",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-noarray-nested.json
new file mode 100644
index 000000000000..8660531dcc9a
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-noarray-nested.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "create: ServerTimestamp cannot be anywhere inside an array value",
+ "comment": "There cannot be an array value anywhere on the path from the document\nroot to the ServerTimestamp sentinel. Firestore transforms don't support array indexing.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, {\"b\": \"ServerTimestamp\"}]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-noarray.json
new file mode 100644
index 000000000000..31104f25613c
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-noarray.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "create: ServerTimestamp cannot be in an array value",
+ "comment": "The ServerTimestamp sentinel must be the value of a field. Firestore\ntransforms don't support array indexing.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, 2, \"ServerTimestamp\"]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-with-empty-map.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-with-empty-map.json
new file mode 100644
index 000000000000..730afd154fd8
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st-with-empty-map.json
@@ -0,0 +1,49 @@
+{
+ "tests": [
+ {
+ "description": "create: ServerTimestamp beside an empty map",
+ "comment": "When a ServerTimestamp and a map both reside inside a map, the\nServerTimestamp should be stripped out but the empty map should remain.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": {\"b\": {}, \"c\": \"ServerTimestamp\"}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "mapValue": {
+ "fields": {
+ "b": {
+ "mapValue": {
+ "fields": {}
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a.c",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st.json
new file mode 100644
index 000000000000..705f76ed16ac
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/create-st.json
@@ -0,0 +1,41 @@
+{
+ "tests": [
+ {
+ "description": "create: ServerTimestamp with data",
+ "comment": "A key with the special ServerTimestamp sentinel is removed from\nthe data in the update operation. Instead it appears in a separate Transform operation.\nNote that in these tests, the string \"ServerTimestamp\" should be replaced with the\nspecial ServerTimestamp value.",
+ "create": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": \"ServerTimestamp\"}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "currentDocument": {
+ "exists": false
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/delete-exists-precond.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/delete-exists-precond.json
new file mode 100644
index 000000000000..174be0eccb06
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/delete-exists-precond.json
@@ -0,0 +1,25 @@
+{
+ "tests": [
+ {
+ "description": "delete: delete with exists precondition",
+ "comment": "Delete supports an exists precondition.",
+ "delete": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "precondition": {
+ "exists": true
+ },
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "delete": "projects/projectID/databases/(default)/documents/C/d",
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/delete-no-precond.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/delete-no-precond.json
new file mode 100644
index 000000000000..96fcb39a5988
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/delete-no-precond.json
@@ -0,0 +1,19 @@
+{
+ "tests": [
+ {
+ "description": "delete: delete without precondition",
+ "comment": "An ordinary Delete call.",
+ "delete": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "delete": "projects/projectID/databases/(default)/documents/C/d"
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/delete-time-precond.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/delete-time-precond.json
new file mode 100644
index 000000000000..160defb3fedb
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/delete-time-precond.json
@@ -0,0 +1,25 @@
+{
+ "tests": [
+ {
+ "description": "delete: delete with last-update-time precondition",
+ "comment": "Delete supports a last-update-time precondition.",
+ "delete": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "precondition": {
+ "updateTime": "1970-01-01T00:00:42Z"
+ },
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "delete": "projects/projectID/databases/(default)/documents/C/d",
+ "currentDocument": {
+ "updateTime": "1970-01-01T00:00:42Z"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/get-basic.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/get-basic.json
new file mode 100644
index 000000000000..0a2cd2d4a1b7
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/get-basic.json
@@ -0,0 +1,14 @@
+{
+ "tests": [
+ {
+ "description": "get: get a document",
+ "comment": "A call to DocumentRef.Get",
+ "get": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "request": {
+ "name": "projects/projectID/databases/(default)/documents/C/d"
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-add-mod-del-add.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-add-mod-del-add.json
new file mode 100644
index 000000000000..d05997332df0
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-add-mod-del-add.json
@@ -0,0 +1,206 @@
+{
+ "tests": [
+ {
+ "description": "listen: add a doc, modify it, delete it, then add it again",
+ "comment": "Various changes to a single document.",
+ "listen": {
+ "responses": [
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:01Z"
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:02Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ },
+ {
+ "documentDelete": {
+ "document": "projects/projectID/databases/(default)/documents/C/d1"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:03Z"
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:03Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:04Z"
+ }
+ }
+ ],
+ "snapshots": [
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:01Z"
+ },
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:02Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "MODIFIED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:02Z"
+ }
+ }
+ ],
+ "readTime": "1970-01-01T00:00:02Z"
+ },
+ {
+ "changes": [
+ {
+ "kind": "REMOVED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:02Z"
+ },
+ "newIndex": -1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:03Z"
+ },
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:03Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:03Z"
+ },
+ "oldIndex": -1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:04Z"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-add-one.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-add-one.json
new file mode 100644
index 000000000000..8223180a8765
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-add-one.json
@@ -0,0 +1,72 @@
+{
+ "tests": [
+ {
+ "description": "listen: add a doc",
+ "comment": "Snapshot with a single document.",
+ "listen": {
+ "responses": [
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ }
+ ],
+ "snapshots": [
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-add-three.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-add-three.json
new file mode 100644
index 000000000000..6ea117a7cc38
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-add-three.json
@@ -0,0 +1,156 @@
+{
+ "tests": [
+ {
+ "description": "listen: add three documents",
+ "comment": "A snapshot with three documents. The documents are sorted\nfirst by the \"a\" field, then by their path. The changes are ordered the same way.",
+ "listen": {
+ "responses": [
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d3",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ }
+ ],
+ "snapshots": [
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d3",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1
+ },
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d3",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1,
+ "newIndex": 1
+ },
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1,
+ "newIndex": 2
+ }
+ ],
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-doc-remove.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-doc-remove.json
new file mode 100644
index 000000000000..59af7d11a6e8
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-doc-remove.json
@@ -0,0 +1,101 @@
+{
+ "tests": [
+ {
+ "description": "listen: DocumentRemove behaves like DocumentDelete",
+ "comment": "The DocumentRemove response behaves exactly like DocumentDelete.",
+ "listen": {
+ "responses": [
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:01Z"
+ }
+ },
+ {
+ "documentRemove": {
+ "document": "projects/projectID/databases/(default)/documents/C/d1"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ }
+ ],
+ "snapshots": [
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:01Z"
+ },
+ {
+ "changes": [
+ {
+ "kind": "REMOVED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "newIndex": -1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-empty.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-empty.json
new file mode 100644
index 000000000000..734aa41f9ee7
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-empty.json
@@ -0,0 +1,27 @@
+{
+ "tests": [
+ {
+ "description": "listen: no changes; empty snapshot",
+ "comment": "There are no changes, so the snapshot should be empty.",
+ "listen": {
+ "responses": [
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:01Z"
+ }
+ }
+ ],
+ "snapshots": [
+ {
+ "readTime": "1970-01-01T00:00:01Z"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-filter-nop.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-filter-nop.json
new file mode 100644
index 000000000000..a7c09e97d99a
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-filter-nop.json
@@ -0,0 +1,203 @@
+{
+ "tests": [
+ {
+ "description": "listen: Filter response with same size is a no-op",
+ "comment": "A Filter response whose count matches the size of the current\nstate (docs in last snapshot + docs added - docs deleted) is a no-op.",
+ "listen": {
+ "responses": [
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:01Z"
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d3",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "documentDelete": {
+ "document": "projects/projectID/databases/(default)/documents/C/d1"
+ }
+ },
+ {
+ "filter": {
+ "count": 2
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ }
+ ],
+ "snapshots": [
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1
+ },
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1,
+ "newIndex": 1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:01Z"
+ },
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d3",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "REMOVED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": 1,
+ "newIndex": -1
+ },
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d3",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1,
+ "newIndex": 1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-multi-docs.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-multi-docs.json
new file mode 100644
index 000000000000..fe5b0f0bbf9b
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-multi-docs.json
@@ -0,0 +1,414 @@
+{
+ "tests": [
+ {
+ "description": "listen: multiple documents, added, deleted and updated",
+ "comment": "Changes should be ordered with deletes first, then additions, then mods,\neach in query order.\nOld indices refer to the immediately previous state, not the previous snapshot",
+ "listen": {
+ "responses": [
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d3",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d4",
+ "fields": {
+ "a": {
+ "integerValue": "2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d5",
+ "fields": {
+ "a": {
+ "integerValue": "4"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "documentDelete": {
+ "document": "projects/projectID/databases/(default)/documents/C/d3"
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "-1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:03Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d6",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "documentDelete": {
+ "document": "projects/projectID/databases/(default)/documents/C/d2"
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d4",
+ "fields": {
+ "a": {
+ "integerValue": "-2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:03Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:04Z"
+ }
+ }
+ ],
+ "snapshots": [
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d3",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d4",
+ "fields": {
+ "a": {
+ "integerValue": "2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1
+ },
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d3",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1,
+ "newIndex": 1
+ },
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d4",
+ "fields": {
+ "a": {
+ "integerValue": "2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1,
+ "newIndex": 2
+ },
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1,
+ "newIndex": 3
+ }
+ ],
+ "readTime": "1970-01-01T00:00:02Z"
+ },
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d4",
+ "fields": {
+ "a": {
+ "integerValue": "-2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:03Z"
+ },
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "-1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:03Z"
+ },
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d6",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d5",
+ "fields": {
+ "a": {
+ "integerValue": "4"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "REMOVED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "newIndex": -1
+ },
+ {
+ "kind": "REMOVED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d3",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "newIndex": -1
+ },
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d6",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1,
+ "newIndex": 2
+ },
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d5",
+ "fields": {
+ "a": {
+ "integerValue": "4"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1,
+ "newIndex": 3
+ },
+ {
+ "kind": "MODIFIED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d4",
+ "fields": {
+ "a": {
+ "integerValue": "-2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:03Z"
+ }
+ },
+ {
+ "kind": "MODIFIED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "-1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:03Z"
+ },
+ "oldIndex": 1,
+ "newIndex": 1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:04Z"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-nocurrent.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-nocurrent.json
new file mode 100644
index 000000000000..158595e963df
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-nocurrent.json
@@ -0,0 +1,119 @@
+{
+ "tests": [
+ {
+ "description": "listen: no snapshot if we don't see CURRENT",
+ "comment": "If the watch state is not marked CURRENT, no snapshot is issued.",
+ "listen": {
+ "responses": [
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:01Z"
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:02Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ }
+ ],
+ "snapshots": [
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:02Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1
+ },
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:02Z"
+ },
+ "oldIndex": -1,
+ "newIndex": 1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-nomod.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-nomod.json
new file mode 100644
index 000000000000..0e454d51286a
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-nomod.json
@@ -0,0 +1,123 @@
+{
+ "tests": [
+ {
+ "description": "listen: add a doc, then change it but without changing its update time",
+ "comment": "Document updates are recognized by a change in the update time, not the data.\nThis shouldn't actually happen. It is just a test of the update logic.",
+ "listen": {
+ "responses": [
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:01Z"
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ },
+ {
+ "documentDelete": {
+ "document": "projects/projectID/databases/(default)/documents/C/d1"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:03Z"
+ }
+ }
+ ],
+ "snapshots": [
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:01Z"
+ },
+ {
+ "changes": [
+ {
+ "kind": "REMOVED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "newIndex": -1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:03Z"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-removed-target-ids.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-removed-target-ids.json
new file mode 100644
index 000000000000..57c91b7bd7f5
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-removed-target-ids.json
@@ -0,0 +1,113 @@
+{
+ "tests": [
+ {
+ "description": "listen: DocumentChange with removed_target_id is like a delete.",
+ "comment": "A DocumentChange with the watch target ID in the removed_target_ids field is the\nsame as deleting a document.",
+ "listen": {
+ "responses": [
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:01Z"
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "removedTargetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ }
+ ],
+ "snapshots": [
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:01Z"
+ },
+ {
+ "changes": [
+ {
+ "kind": "REMOVED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "newIndex": -1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-reset.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-reset.json
new file mode 100644
index 000000000000..d988a1ba9bf0
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-reset.json
@@ -0,0 +1,309 @@
+{
+ "tests": [
+ {
+ "description": "listen: RESET turns off CURRENT",
+ "comment": "A RESET message turns off the CURRENT state, and marks all documents as deleted.\n\nIf a document appeared on the stream but was never part of a snapshot (\"d3\" in this test), a reset\nwill make it disappear completely.\n\nFor a snapshot to happen at a NO_CHANGE reponse, we need to have both seen a CURRENT response, and\nhave a change from the previous snapshot. Here, after the reset, we see the same version of d2\nagain. That doesn't result in a snapshot.\n",
+ "listen": {
+ "responses": [
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:02Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:01Z"
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d3",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:02Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "RESET"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:03Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:03Z"
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "RESET"
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:03Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:04Z"
+ }
+ },
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d3",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:02Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:05Z"
+ }
+ }
+ ],
+ "snapshots": [
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:02Z"
+ },
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:02Z"
+ },
+ "oldIndex": -1
+ },
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1,
+ "newIndex": 1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:01Z"
+ },
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:03Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "REMOVED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "2"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": 1,
+ "newIndex": -1
+ },
+ {
+ "kind": "MODIFIED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:03Z"
+ }
+ }
+ ],
+ "readTime": "1970-01-01T00:00:03Z"
+ },
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d2",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:03Z"
+ },
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d3",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:02Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d3",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:02Z"
+ },
+ "oldIndex": -1,
+ "newIndex": 1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:05Z"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-target-add-nop.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-target-add-nop.json
new file mode 100644
index 000000000000..e864ea58221a
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-target-add-nop.json
@@ -0,0 +1,81 @@
+{
+ "tests": [
+ {
+ "description": "listen: TargetChange_ADD is a no-op if it has the same target ID",
+ "comment": "A TargetChange_ADD response must have the same watch target ID.",
+ "listen": {
+ "responses": [
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "ADD",
+ "targetIds": [
+ 1
+ ],
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:01Z"
+ }
+ }
+ ],
+ "snapshots": [
+ {
+ "docs": [
+ {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ }
+ ],
+ "changes": [
+ {
+ "kind": "ADDED",
+ "doc": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "oldIndex": -1
+ }
+ ],
+ "readTime": "1970-01-01T00:00:01Z"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-target-add-wrong-id.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-target-add-wrong-id.json
new file mode 100644
index 000000000000..5bd295d50572
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-target-add-wrong-id.json
@@ -0,0 +1,49 @@
+{
+ "tests": [
+ {
+ "description": "listen: TargetChange_ADD is an error if it has a different target ID",
+ "comment": "A TargetChange_ADD response must have the same watch target ID.",
+ "listen": {
+ "responses": [
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "ADD",
+ "targetIds": [
+ 2
+ ],
+ "readTime": "1970-01-01T00:00:02Z"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:01Z"
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-target-remove.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-target-remove.json
new file mode 100644
index 000000000000..2b11e280eb19
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/listen-target-remove.json
@@ -0,0 +1,45 @@
+{
+ "tests": [
+ {
+ "description": "listen: TargetChange_REMOVE should not appear",
+ "comment": "A TargetChange_REMOVE response should never be sent.",
+ "listen": {
+ "responses": [
+ {
+ "documentChange": {
+ "document": {
+ "name": "projects/projectID/databases/(default)/documents/C/d1",
+ "fields": {
+ "a": {
+ "integerValue": "3"
+ }
+ },
+ "createTime": "1970-01-01T00:00:01Z",
+ "updateTime": "1970-01-01T00:00:01Z"
+ },
+ "targetIds": [
+ 1
+ ]
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "CURRENT"
+ }
+ },
+ {
+ "targetChange": {
+ "targetChangeType": "REMOVE"
+ }
+ },
+ {
+ "targetChange": {
+ "readTime": "1970-01-01T00:00:01Z"
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-arrayremove-cursor.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-arrayremove-cursor.json
new file mode 100644
index 000000000000..9e396b358cd6
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-arrayremove-cursor.json
@@ -0,0 +1,31 @@
+{
+ "tests": [
+ {
+ "description": "query: ArrayRemove in cursor method",
+ "comment": "ArrayRemove is not permitted in queries.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "endBefore": {
+ "jsonValues": [
+ "[\"ArrayRemove\", 1, 2, 3]"
+ ]
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-arrayremove-where.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-arrayremove-where.json
new file mode 100644
index 000000000000..c488bba85afc
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-arrayremove-where.json
@@ -0,0 +1,25 @@
+{
+ "tests": [
+ {
+ "description": "query: ArrayRemove in Where",
+ "comment": "ArrayRemove is not permitted in queries.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "where": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "op": "==",
+ "jsonValue": "[\"ArrayRemove\", 1, 2, 3]"
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-arrayunion-cursor.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-arrayunion-cursor.json
new file mode 100644
index 000000000000..8259d31cc75e
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-arrayunion-cursor.json
@@ -0,0 +1,31 @@
+{
+ "tests": [
+ {
+ "description": "query: ArrayUnion in cursor method",
+ "comment": "ArrayUnion is not permitted in queries.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "endBefore": {
+ "jsonValues": [
+ "[\"ArrayUnion\", 1, 2, 3]"
+ ]
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-arrayunion-where.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-arrayunion-where.json
new file mode 100644
index 000000000000..9f298d84e02c
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-arrayunion-where.json
@@ -0,0 +1,25 @@
+{
+ "tests": [
+ {
+ "description": "query: ArrayUnion in Where",
+ "comment": "ArrayUnion is not permitted in queries.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "where": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "op": "==",
+ "jsonValue": "[\"ArrayUnion\", 1, 2, 3]"
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-bad-NaN.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-bad-NaN.json
new file mode 100644
index 000000000000..47344309fe6b
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-bad-NaN.json
@@ -0,0 +1,25 @@
+{
+ "tests": [
+ {
+ "description": "query: where clause with non-== comparison with NaN",
+ "comment": "You can only compare NaN for equality.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "where": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "op": "\u003c",
+ "jsonValue": "\"NaN\""
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-bad-null.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-bad-null.json
new file mode 100644
index 000000000000..340afb9332db
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-bad-null.json
@@ -0,0 +1,25 @@
+{
+ "tests": [
+ {
+ "description": "query: where clause with non-== comparison with Null",
+ "comment": "You can only compare Null for equality.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "where": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "op": "\u003e",
+ "jsonValue": "null"
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap-order.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap-order.json
new file mode 100644
index 000000000000..89d2696dd493
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap-order.json
@@ -0,0 +1,81 @@
+{
+ "tests": [
+ {
+ "description": "query: cursor methods with a document snapshot, existing orderBy",
+ "comment": "When a document snapshot is used, the client appends a __name__ order-by clause\nwith the direction of the last order-by clause.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "b"
+ ]
+ },
+ "direction": "desc"
+ }
+ },
+ {
+ "startAfter": {
+ "docSnapshot": {
+ "path": "projects/projectID/databases/(default)/documents/C/D",
+ "jsonData": "{\"a\": 7, \"b\": 8}"
+ }
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "orderBy": [
+ {
+ "field": {
+ "fieldPath": "a"
+ },
+ "direction": "ASCENDING"
+ },
+ {
+ "field": {
+ "fieldPath": "b"
+ },
+ "direction": "DESCENDING"
+ },
+ {
+ "field": {
+ "fieldPath": "__name__"
+ },
+ "direction": "DESCENDING"
+ }
+ ],
+ "startAt": {
+ "values": [
+ {
+ "integerValue": "7"
+ },
+ {
+ "integerValue": "8"
+ },
+ {
+ "referenceValue": "projects/projectID/databases/(default)/documents/C/D"
+ }
+ ]
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap-orderby-name.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap-orderby-name.json
new file mode 100644
index 000000000000..189b302a0b73
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap-orderby-name.json
@@ -0,0 +1,91 @@
+{
+ "tests": [
+ {
+ "description": "query: cursor method, doc snapshot, existing orderBy __name__",
+ "comment": "If there is an existing orderBy clause on __name__,\nno changes are made to the list of orderBy clauses.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "desc"
+ }
+ },
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "__name__"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "startAt": {
+ "docSnapshot": {
+ "path": "projects/projectID/databases/(default)/documents/C/D",
+ "jsonData": "{\"a\": 7, \"b\": 8}"
+ }
+ }
+ },
+ {
+ "endAt": {
+ "docSnapshot": {
+ "path": "projects/projectID/databases/(default)/documents/C/D",
+ "jsonData": "{\"a\": 7, \"b\": 8}"
+ }
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "orderBy": [
+ {
+ "field": {
+ "fieldPath": "a"
+ },
+ "direction": "DESCENDING"
+ },
+ {
+ "field": {
+ "fieldPath": "__name__"
+ },
+ "direction": "ASCENDING"
+ }
+ ],
+ "startAt": {
+ "values": [
+ {
+ "integerValue": "7"
+ },
+ {
+ "referenceValue": "projects/projectID/databases/(default)/documents/C/D"
+ }
+ ],
+ "before": true
+ },
+ "endAt": {
+ "values": [
+ {
+ "integerValue": "7"
+ },
+ {
+ "referenceValue": "projects/projectID/databases/(default)/documents/C/D"
+ }
+ ]
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap-where-eq.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap-where-eq.json
new file mode 100644
index 000000000000..41bc9bf1c07c
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap-where-eq.json
@@ -0,0 +1,65 @@
+{
+ "tests": [
+ {
+ "description": "query: cursor methods with a document snapshot and an equality where clause",
+ "comment": "A Where clause using equality doesn't change the implicit orderBy clauses.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "where": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "op": "==",
+ "jsonValue": "3"
+ }
+ },
+ {
+ "endAt": {
+ "docSnapshot": {
+ "path": "projects/projectID/databases/(default)/documents/C/D",
+ "jsonData": "{\"a\": 7, \"b\": 8}"
+ }
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "where": {
+ "fieldFilter": {
+ "field": {
+ "fieldPath": "a"
+ },
+ "op": "EQUAL",
+ "value": {
+ "integerValue": "3"
+ }
+ }
+ },
+ "orderBy": [
+ {
+ "field": {
+ "fieldPath": "__name__"
+ },
+ "direction": "ASCENDING"
+ }
+ ],
+ "endAt": {
+ "values": [
+ {
+ "referenceValue": "projects/projectID/databases/(default)/documents/C/D"
+ }
+ ]
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap-where-neq-orderby.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap-where-neq-orderby.json
new file mode 100644
index 000000000000..ce99f786d39f
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap-where-neq-orderby.json
@@ -0,0 +1,85 @@
+{
+ "tests": [
+ {
+ "description": "query: cursor method, doc snapshot, inequality where clause, and existing orderBy clause",
+ "comment": "If there is an OrderBy clause, the inequality Where clause does\nnot result in a new OrderBy clause. We still add a __name__ OrderBy clause",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "desc"
+ }
+ },
+ {
+ "where": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "op": "\u003c",
+ "jsonValue": "4"
+ }
+ },
+ {
+ "startAt": {
+ "docSnapshot": {
+ "path": "projects/projectID/databases/(default)/documents/C/D",
+ "jsonData": "{\"a\": 7, \"b\": 8}"
+ }
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "where": {
+ "fieldFilter": {
+ "field": {
+ "fieldPath": "a"
+ },
+ "op": "LESS_THAN",
+ "value": {
+ "integerValue": "4"
+ }
+ }
+ },
+ "orderBy": [
+ {
+ "field": {
+ "fieldPath": "a"
+ },
+ "direction": "DESCENDING"
+ },
+ {
+ "field": {
+ "fieldPath": "__name__"
+ },
+ "direction": "DESCENDING"
+ }
+ ],
+ "startAt": {
+ "values": [
+ {
+ "integerValue": "7"
+ },
+ {
+ "referenceValue": "projects/projectID/databases/(default)/documents/C/D"
+ }
+ ],
+ "before": true
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap-where-neq.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap-where-neq.json
new file mode 100644
index 000000000000..384bb7c2042a
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap-where-neq.json
@@ -0,0 +1,75 @@
+{
+ "tests": [
+ {
+ "description": "query: cursor method with a document snapshot and an inequality where clause",
+ "comment": "A Where clause with an inequality results in an OrderBy clause\non that clause's path, if there are no other OrderBy clauses.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "where": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "op": "\u003c=",
+ "jsonValue": "3"
+ }
+ },
+ {
+ "endBefore": {
+ "docSnapshot": {
+ "path": "projects/projectID/databases/(default)/documents/C/D",
+ "jsonData": "{\"a\": 7, \"b\": 8}"
+ }
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "where": {
+ "fieldFilter": {
+ "field": {
+ "fieldPath": "a"
+ },
+ "op": "LESS_THAN_OR_EQUAL",
+ "value": {
+ "integerValue": "3"
+ }
+ }
+ },
+ "orderBy": [
+ {
+ "field": {
+ "fieldPath": "a"
+ },
+ "direction": "ASCENDING"
+ },
+ {
+ "field": {
+ "fieldPath": "__name__"
+ },
+ "direction": "ASCENDING"
+ }
+ ],
+ "endAt": {
+ "values": [
+ {
+ "integerValue": "7"
+ },
+ {
+ "referenceValue": "projects/projectID/databases/(default)/documents/C/D"
+ }
+ ],
+ "before": true
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap.json
new file mode 100644
index 000000000000..ea84c01729e6
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-docsnap.json
@@ -0,0 +1,44 @@
+{
+ "tests": [
+ {
+ "description": "query: cursor methods with a document snapshot",
+ "comment": "When a document snapshot is used, the client appends a __name__ order-by clause.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "startAt": {
+ "docSnapshot": {
+ "path": "projects/projectID/databases/(default)/documents/C/D",
+ "jsonData": "{\"a\": 7, \"b\": 8}"
+ }
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "orderBy": [
+ {
+ "field": {
+ "fieldPath": "__name__"
+ },
+ "direction": "ASCENDING"
+ }
+ ],
+ "startAt": {
+ "values": [
+ {
+ "referenceValue": "projects/projectID/databases/(default)/documents/C/D"
+ }
+ ],
+ "before": true
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-endbefore-empty-map.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-endbefore-empty-map.json
new file mode 100644
index 000000000000..3d02cbca2127
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-endbefore-empty-map.json
@@ -0,0 +1,55 @@
+{
+ "tests": [
+ {
+ "description": "query: EndBefore with explicit empty map",
+ "comment": "Cursor methods are allowed to use empty maps with EndBefore. It should result in an empty map in the query.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "endBefore": {
+ "jsonValues": [
+ "{}"
+ ]
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "orderBy": [
+ {
+ "field": {
+ "fieldPath": "a"
+ },
+ "direction": "ASCENDING"
+ }
+ ],
+ "endAt": {
+ "values": [
+ {
+ "mapValue": {
+ "fields": {}
+ }
+ }
+ ],
+ "before": true
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-endbefore-empty.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-endbefore-empty.json
new file mode 100644
index 000000000000..c491dcd79882
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-endbefore-empty.json
@@ -0,0 +1,27 @@
+{
+ "tests": [
+ {
+ "description": "query: EndBefore with empty values",
+ "comment": "Cursor methods are not allowed to use empty values with EndBefore. It should result in an error.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "endBefore": {}
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-no-order.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-no-order.json
new file mode 100644
index 000000000000..45823b228483
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-no-order.json
@@ -0,0 +1,21 @@
+{
+ "tests": [
+ {
+ "description": "query: cursor method without orderBy",
+ "comment": "If a cursor method with a list of values is provided, there must be at least as many\nexplicit orderBy clauses as values.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "startAt": {
+ "jsonValues": [
+ "2"
+ ]
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-startat-empty-map.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-startat-empty-map.json
new file mode 100644
index 000000000000..788588f76424
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-startat-empty-map.json
@@ -0,0 +1,55 @@
+{
+ "tests": [
+ {
+ "description": "query: StartAt with explicit empty map",
+ "comment": "Cursor methods are allowed to use empty maps with StartAt. It should result in an empty map in the query.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "startAt": {
+ "jsonValues": [
+ "{}"
+ ]
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "orderBy": [
+ {
+ "field": {
+ "fieldPath": "a"
+ },
+ "direction": "ASCENDING"
+ }
+ ],
+ "startAt": {
+ "values": [
+ {
+ "mapValue": {
+ "fields": {}
+ }
+ }
+ ],
+ "before": true
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-startat-empty.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-startat-empty.json
new file mode 100644
index 000000000000..c0c5a09801d4
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-startat-empty.json
@@ -0,0 +1,27 @@
+{
+ "tests": [
+ {
+ "description": "query: StartAt with empty values",
+ "comment": "Cursor methods are not allowed to use empty values with StartAt. It should result in an error.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "startAt": {}
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-vals-1a.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-vals-1a.json
new file mode 100644
index 000000000000..038d177f1535
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-vals-1a.json
@@ -0,0 +1,68 @@
+{
+ "tests": [
+ {
+ "description": "query: StartAt/EndBefore with values",
+ "comment": "Cursor methods take the same number of values as there are OrderBy clauses.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "startAt": {
+ "jsonValues": [
+ "7"
+ ]
+ }
+ },
+ {
+ "endBefore": {
+ "jsonValues": [
+ "9"
+ ]
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "orderBy": [
+ {
+ "field": {
+ "fieldPath": "a"
+ },
+ "direction": "ASCENDING"
+ }
+ ],
+ "startAt": {
+ "values": [
+ {
+ "integerValue": "7"
+ }
+ ],
+ "before": true
+ },
+ "endAt": {
+ "values": [
+ {
+ "integerValue": "9"
+ }
+ ],
+ "before": true
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-vals-1b.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-vals-1b.json
new file mode 100644
index 000000000000..089cff93bdef
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-vals-1b.json
@@ -0,0 +1,66 @@
+{
+ "tests": [
+ {
+ "description": "query: StartAfter/EndAt with values",
+ "comment": "Cursor methods take the same number of values as there are OrderBy clauses.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "startAfter": {
+ "jsonValues": [
+ "7"
+ ]
+ }
+ },
+ {
+ "endAt": {
+ "jsonValues": [
+ "9"
+ ]
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "orderBy": [
+ {
+ "field": {
+ "fieldPath": "a"
+ },
+ "direction": "ASCENDING"
+ }
+ ],
+ "startAt": {
+ "values": [
+ {
+ "integerValue": "7"
+ }
+ ]
+ },
+ "endAt": {
+ "values": [
+ {
+ "integerValue": "9"
+ }
+ ]
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-vals-2.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-vals-2.json
new file mode 100644
index 000000000000..8554b436039a
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-vals-2.json
@@ -0,0 +1,91 @@
+{
+ "tests": [
+ {
+ "description": "query: Start/End with two values",
+ "comment": "Cursor methods take the same number of values as there are OrderBy clauses.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "b"
+ ]
+ },
+ "direction": "desc"
+ }
+ },
+ {
+ "startAt": {
+ "jsonValues": [
+ "7",
+ "8"
+ ]
+ }
+ },
+ {
+ "endAt": {
+ "jsonValues": [
+ "9",
+ "10"
+ ]
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "orderBy": [
+ {
+ "field": {
+ "fieldPath": "a"
+ },
+ "direction": "ASCENDING"
+ },
+ {
+ "field": {
+ "fieldPath": "b"
+ },
+ "direction": "DESCENDING"
+ }
+ ],
+ "startAt": {
+ "values": [
+ {
+ "integerValue": "7"
+ },
+ {
+ "integerValue": "8"
+ }
+ ],
+ "before": true
+ },
+ "endAt": {
+ "values": [
+ {
+ "integerValue": "9"
+ },
+ {
+ "integerValue": "10"
+ }
+ ]
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-vals-docid.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-vals-docid.json
new file mode 100644
index 000000000000..6492b3f19527
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-vals-docid.json
@@ -0,0 +1,67 @@
+{
+ "tests": [
+ {
+ "description": "query: cursor methods with __name__",
+ "comment": "Cursor values corresponding to a __name__ field take the document path relative to the\nquery's collection.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "__name__"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "startAfter": {
+ "jsonValues": [
+ "\"D1\""
+ ]
+ }
+ },
+ {
+ "endBefore": {
+ "jsonValues": [
+ "\"D2\""
+ ]
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "orderBy": [
+ {
+ "field": {
+ "fieldPath": "__name__"
+ },
+ "direction": "ASCENDING"
+ }
+ ],
+ "startAt": {
+ "values": [
+ {
+ "referenceValue": "projects/projectID/databases/(default)/documents/C/D1"
+ }
+ ]
+ },
+ "endAt": {
+ "values": [
+ {
+ "referenceValue": "projects/projectID/databases/(default)/documents/C/D2"
+ }
+ ],
+ "before": true
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-vals-last-wins.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-vals-last-wins.json
new file mode 100644
index 000000000000..4a46b2f789d5
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-cursor-vals-last-wins.json
@@ -0,0 +1,82 @@
+{
+ "tests": [
+ {
+ "description": "query: cursor methods, last one wins",
+ "comment": "When multiple Start* or End* calls occur, the values of the last one are used.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "startAfter": {
+ "jsonValues": [
+ "1"
+ ]
+ }
+ },
+ {
+ "startAt": {
+ "jsonValues": [
+ "2"
+ ]
+ }
+ },
+ {
+ "endAt": {
+ "jsonValues": [
+ "3"
+ ]
+ }
+ },
+ {
+ "endBefore": {
+ "jsonValues": [
+ "4"
+ ]
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "orderBy": [
+ {
+ "field": {
+ "fieldPath": "a"
+ },
+ "direction": "ASCENDING"
+ }
+ ],
+ "startAt": {
+ "values": [
+ {
+ "integerValue": "2"
+ }
+ ],
+ "before": true
+ },
+ "endAt": {
+ "values": [
+ {
+ "integerValue": "4"
+ }
+ ],
+ "before": true
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-del-cursor.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-del-cursor.json
new file mode 100644
index 000000000000..921ace131d28
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-del-cursor.json
@@ -0,0 +1,31 @@
+{
+ "tests": [
+ {
+ "description": "query: Delete in cursor method",
+ "comment": "Sentinel values are not permitted in queries.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "endBefore": {
+ "jsonValues": [
+ "\"Delete\""
+ ]
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-del-where.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-del-where.json
new file mode 100644
index 000000000000..2075e3578078
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-del-where.json
@@ -0,0 +1,25 @@
+{
+ "tests": [
+ {
+ "description": "query: Delete in Where",
+ "comment": "Sentinel values are not permitted in queries.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "where": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "op": "==",
+ "jsonValue": "\"Delete\""
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-invalid-operator.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-invalid-operator.json
new file mode 100644
index 000000000000..064164dc0d89
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-invalid-operator.json
@@ -0,0 +1,25 @@
+{
+ "tests": [
+ {
+ "description": "query: invalid operator in Where clause",
+ "comment": "The != operator is not supported.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "where": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "op": "!=",
+ "jsonValue": "4"
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-invalid-path-order.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-invalid-path-order.json
new file mode 100644
index 000000000000..d0c5ba654f61
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-invalid-path-order.json
@@ -0,0 +1,25 @@
+{
+ "tests": [
+ {
+ "description": "query: invalid path in OrderBy clause",
+ "comment": "The path has an empty component.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "*",
+ ""
+ ]
+ },
+ "direction": "asc"
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-invalid-path-select.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-invalid-path-select.json
new file mode 100644
index 000000000000..fa18f72817a4
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-invalid-path-select.json
@@ -0,0 +1,26 @@
+{
+ "tests": [
+ {
+ "description": "query: invalid path in Where clause",
+ "comment": "The path has an empty component.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "select": {
+ "fields": [
+ {
+ "field": [
+ "*",
+ ""
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-invalid-path-where.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-invalid-path-where.json
new file mode 100644
index 000000000000..a5b2add33360
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-invalid-path-where.json
@@ -0,0 +1,26 @@
+{
+ "tests": [
+ {
+ "description": "query: invalid path in Where clause",
+ "comment": "The path has an empty component.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "where": {
+ "path": {
+ "field": [
+ "*",
+ ""
+ ]
+ },
+ "op": "==",
+ "jsonValue": "4"
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-offset-limit-last-wins.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-offset-limit-last-wins.json
new file mode 100644
index 000000000000..8788826081ef
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-offset-limit-last-wins.json
@@ -0,0 +1,34 @@
+{
+ "tests": [
+ {
+ "description": "query: multiple Offset and Limit clauses",
+ "comment": "With multiple Offset or Limit clauses, the last one wins.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "offset": 2
+ },
+ {
+ "limit": 3
+ },
+ {
+ "limit": 4
+ },
+ {
+ "offset": 5
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "offset": 5,
+ "limit": 4
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-offset-limit.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-offset-limit.json
new file mode 100644
index 000000000000..3429dce0e89d
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-offset-limit.json
@@ -0,0 +1,28 @@
+{
+ "tests": [
+ {
+ "description": "query: Offset and Limit clauses",
+ "comment": "Offset and Limit clauses.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "offset": 2
+ },
+ {
+ "limit": 3
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "offset": 2,
+ "limit": 3
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-order.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-order.json
new file mode 100644
index 000000000000..f6670f060db9
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-order.json
@@ -0,0 +1,54 @@
+{
+ "tests": [
+ {
+ "description": "query: basic OrderBy clauses",
+ "comment": "Multiple OrderBy clauses combine.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "b"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "desc"
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "orderBy": [
+ {
+ "field": {
+ "fieldPath": "b"
+ },
+ "direction": "ASCENDING"
+ },
+ {
+ "field": {
+ "fieldPath": "a"
+ },
+ "direction": "DESCENDING"
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-select-empty.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-select-empty.json
new file mode 100644
index 000000000000..8dda741a63e8
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-select-empty.json
@@ -0,0 +1,32 @@
+{
+ "tests": [
+ {
+ "description": "query: empty Select clause",
+ "comment": "An empty Select clause selects just the document ID.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "select": {
+ "fields": []
+ }
+ }
+ ],
+ "query": {
+ "select": {
+ "fields": [
+ {
+ "fieldPath": "__name__"
+ }
+ ]
+ },
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-select-last-wins.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-select-last-wins.json
new file mode 100644
index 000000000000..9df4d13d054c
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-select-last-wins.json
@@ -0,0 +1,54 @@
+{
+ "tests": [
+ {
+ "description": "query: two Select clauses",
+ "comment": "The last Select clause is the only one used.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "select": {
+ "fields": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "select": {
+ "fields": [
+ {
+ "field": [
+ "c"
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "query": {
+ "select": {
+ "fields": [
+ {
+ "fieldPath": "c"
+ }
+ ]
+ },
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-select.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-select.json
new file mode 100644
index 000000000000..cfaab8f1f55a
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-select.json
@@ -0,0 +1,46 @@
+{
+ "tests": [
+ {
+ "description": "query: Select clause with some fields",
+ "comment": "An ordinary Select clause.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "select": {
+ "fields": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "query": {
+ "select": {
+ "fields": [
+ {
+ "fieldPath": "a"
+ },
+ {
+ "fieldPath": "b"
+ }
+ ]
+ },
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-st-cursor.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-st-cursor.json
new file mode 100644
index 000000000000..d42416ee1dd8
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-st-cursor.json
@@ -0,0 +1,31 @@
+{
+ "tests": [
+ {
+ "description": "query: ServerTimestamp in cursor method",
+ "comment": "Sentinel values are not permitted in queries.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "orderBy": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "direction": "asc"
+ }
+ },
+ {
+ "endBefore": {
+ "jsonValues": [
+ "\"ServerTimestamp\""
+ ]
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-st-where.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-st-where.json
new file mode 100644
index 000000000000..1584bb9b47b5
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-st-where.json
@@ -0,0 +1,25 @@
+{
+ "tests": [
+ {
+ "description": "query: ServerTimestamp in Where",
+ "comment": "Sentinel values are not permitted in queries.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "where": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "op": "==",
+ "jsonValue": "\"ServerTimestamp\""
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-where-2.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-where-2.json
new file mode 100644
index 000000000000..a78beb264642
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-where-2.json
@@ -0,0 +1,71 @@
+{
+ "tests": [
+ {
+ "description": "query: two Where clauses",
+ "comment": "Multiple Where clauses are combined into a composite filter.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "where": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "op": "\u003e=",
+ "jsonValue": "5"
+ }
+ },
+ {
+ "where": {
+ "path": {
+ "field": [
+ "b"
+ ]
+ },
+ "op": "\u003c",
+ "jsonValue": "\"foo\""
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "where": {
+ "compositeFilter": {
+ "op": "AND",
+ "filters": [
+ {
+ "fieldFilter": {
+ "field": {
+ "fieldPath": "a"
+ },
+ "op": "GREATER_THAN_OR_EQUAL",
+ "value": {
+ "integerValue": "5"
+ }
+ }
+ },
+ {
+ "fieldFilter": {
+ "field": {
+ "fieldPath": "b"
+ },
+ "op": "LESS_THAN",
+ "value": {
+ "stringValue": "foo"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-where-NaN.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-where-NaN.json
new file mode 100644
index 000000000000..c091fe5c091c
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-where-NaN.json
@@ -0,0 +1,39 @@
+{
+ "tests": [
+ {
+ "description": "query: a Where clause comparing to NaN",
+ "comment": "A Where clause that tests for equality with NaN results in a unary filter.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "where": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "op": "==",
+ "jsonValue": "\"NaN\""
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "where": {
+ "unaryFilter": {
+ "op": "IS_NAN",
+ "field": {
+ "fieldPath": "a"
+ }
+ }
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-where-null.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-where-null.json
new file mode 100644
index 000000000000..6862dd97f6cf
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-where-null.json
@@ -0,0 +1,39 @@
+{
+ "tests": [
+ {
+ "description": "query: a Where clause comparing to null",
+ "comment": "A Where clause that tests for equality with null results in a unary filter.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "where": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "op": "==",
+ "jsonValue": "null"
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "where": {
+ "unaryFilter": {
+ "op": "IS_NULL",
+ "field": {
+ "fieldPath": "a"
+ }
+ }
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-where.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-where.json
new file mode 100644
index 000000000000..b132c3030f02
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-where.json
@@ -0,0 +1,42 @@
+{
+ "tests": [
+ {
+ "description": "query: Where clause",
+ "comment": "A simple Where clause.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "where": {
+ "path": {
+ "field": [
+ "a"
+ ]
+ },
+ "op": "\u003e",
+ "jsonValue": "5"
+ }
+ }
+ ],
+ "query": {
+ "from": [
+ {
+ "collectionId": "C"
+ }
+ ],
+ "where": {
+ "fieldFilter": {
+ "field": {
+ "fieldPath": "a"
+ },
+ "op": "GREATER_THAN",
+ "value": {
+ "integerValue": "5"
+ }
+ }
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-wrong-collection.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-wrong-collection.json
new file mode 100644
index 000000000000..6a677f53decf
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/query-wrong-collection.json
@@ -0,0 +1,22 @@
+{
+ "tests": [
+ {
+ "description": "query: doc snapshot with wrong collection in cursor method",
+ "comment": "If a document snapshot is passed to a Start*/End* method, it must be in the\nsame collection as the query.",
+ "query": {
+ "collPath": "projects/projectID/databases/(default)/documents/C",
+ "clauses": [
+ {
+ "endBefore": {
+ "docSnapshot": {
+ "path": "projects/projectID/databases/(default)/documents/C2/D",
+ "jsonData": "{\"a\": 7, \"b\": 8}"
+ }
+ }
+ }
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-all-transforms.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-all-transforms.json
new file mode 100644
index 000000000000..5c8b1373d4c0
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-all-transforms.json
@@ -0,0 +1,70 @@
+{
+ "tests": [
+ {
+ "description": "set: all transforms in a single call",
+ "comment": "A document can be created with any amount of transforms.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": \"ServerTimestamp\", \"c\": [\"ArrayUnion\", 1, 2, 3], \"d\": [\"ArrayRemove\", 4, 5, 6]}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "setToServerValue": "REQUEST_TIME"
+ },
+ {
+ "fieldPath": "c",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ },
+ {
+ "fieldPath": "d",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "4"
+ },
+ {
+ "integerValue": "5"
+ },
+ {
+ "integerValue": "6"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove-multi.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove-multi.json
new file mode 100644
index 000000000000..3ea9b0dbd8a8
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove-multi.json
@@ -0,0 +1,66 @@
+{
+ "tests": [
+ {
+ "description": "set: multiple ArrayRemove fields",
+ "comment": "A document can have more than one ArrayRemove field.\nSince all the ArrayRemove fields are removed, the only field in the update is \"a\".",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": [\"ArrayRemove\", 1, 2, 3], \"c\": {\"d\": [\"ArrayRemove\", 4, 5, 6]}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ },
+ {
+ "fieldPath": "c.d",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "4"
+ },
+ {
+ "integerValue": "5"
+ },
+ {
+ "integerValue": "6"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove-nested.json
new file mode 100644
index 000000000000..4db133f2c54c
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove-nested.json
@@ -0,0 +1,50 @@
+{
+ "tests": [
+ {
+ "description": "set: nested ArrayRemove field",
+ "comment": "An ArrayRemove value can occur at any depth. In this case,\nthe transform applies to the field path \"b.c\". Since \"c\" is removed from the update,\n\"b\" becomes empty, so it is also removed from the update.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": {\"c\": [\"ArrayRemove\", 1, 2, 3]}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b.c",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove-noarray-nested.json
new file mode 100644
index 000000000000..96965faa660d
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove-noarray-nested.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "set: ArrayRemove cannot be anywhere inside an array value",
+ "comment": "There cannot be an array value anywhere on the path from the document\nroot to the ArrayRemove. Firestore transforms don't support array indexing.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, {\"b\": [\"ArrayRemove\", 1, 2, 3]}]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove-noarray.json
new file mode 100644
index 000000000000..cd0e04468bdf
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove-noarray.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "set: ArrayRemove cannot be in an array value",
+ "comment": "ArrayRemove must be the value of a field. Firestore\ntransforms don't support array indexing.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, 2, [\"ArrayRemove\", 1, 2, 3]]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove-with-st.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove-with-st.json
new file mode 100644
index 000000000000..146e41fdf439
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove-with-st.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "set: The ServerTimestamp sentinel cannot be in an ArrayUnion",
+ "comment": "The ServerTimestamp sentinel must be the value of a field. It may\nnot appear in an ArrayUnion.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [\"ArrayRemove\", 1, \"ServerTimestamp\", 3]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove.json
new file mode 100644
index 000000000000..18969ef80a5f
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayremove.json
@@ -0,0 +1,50 @@
+{
+ "tests": [
+ {
+ "description": "set: ArrayRemove with data",
+ "comment": "A key with ArrayRemove is removed from the data in the update \noperation. Instead it appears in a separate Transform operation.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": [\"ArrayRemove\", 1, 2, 3]}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion-multi.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion-multi.json
new file mode 100644
index 000000000000..3d076397c5ff
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion-multi.json
@@ -0,0 +1,66 @@
+{
+ "tests": [
+ {
+ "description": "set: multiple ArrayUnion fields",
+ "comment": "A document can have more than one ArrayUnion field.\nSince all the ArrayUnion fields are removed, the only field in the update is \"a\".",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": [\"ArrayUnion\", 1, 2, 3], \"c\": {\"d\": [\"ArrayUnion\", 4, 5, 6]}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ },
+ {
+ "fieldPath": "c.d",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "4"
+ },
+ {
+ "integerValue": "5"
+ },
+ {
+ "integerValue": "6"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion-nested.json
new file mode 100644
index 000000000000..e265f6c61375
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion-nested.json
@@ -0,0 +1,50 @@
+{
+ "tests": [
+ {
+ "description": "set: nested ArrayUnion field",
+ "comment": "An ArrayUnion value can occur at any depth. In this case,\nthe transform applies to the field path \"b.c\". Since \"c\" is removed from the update,\n\"b\" becomes empty, so it is also removed from the update.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": {\"c\": [\"ArrayUnion\", 1, 2, 3]}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b.c",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion-noarray-nested.json
new file mode 100644
index 000000000000..c9b1385e03ad
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion-noarray-nested.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "set: ArrayUnion cannot be anywhere inside an array value",
+ "comment": "There cannot be an array value anywhere on the path from the document\nroot to the ArrayUnion. Firestore transforms don't support array indexing.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, {\"b\": [\"ArrayUnion\", 1, 2, 3]}]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion-noarray.json
new file mode 100644
index 000000000000..4379578bd838
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion-noarray.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "set: ArrayUnion cannot be in an array value",
+ "comment": "ArrayUnion must be the value of a field. Firestore\ntransforms don't support array indexing.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, 2, [\"ArrayRemove\", 1, 2, 3]]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion-with-st.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion-with-st.json
new file mode 100644
index 000000000000..d65436af2055
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion-with-st.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "set: The ServerTimestamp sentinel cannot be in an ArrayUnion",
+ "comment": "The ServerTimestamp sentinel must be the value of a field. It may\nnot appear in an ArrayUnion.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [\"ArrayUnion\", 1, \"ServerTimestamp\", 3]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion.json
new file mode 100644
index 000000000000..856e07517327
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-arrayunion.json
@@ -0,0 +1,50 @@
+{
+ "tests": [
+ {
+ "description": "set: ArrayUnion with data",
+ "comment": "A key with ArrayUnion is removed from the data in the update \noperation. Instead it appears in a separate Transform operation.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": [\"ArrayUnion\", 1, 2, 3]}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-basic.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-basic.json
new file mode 100644
index 000000000000..f322509126d3
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-basic.json
@@ -0,0 +1,27 @@
+{
+ "tests": [
+ {
+ "description": "set: basic",
+ "comment": "A simple call, resulting in a single update operation.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-complex.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-complex.json
new file mode 100644
index 000000000000..aa871ddae6c7
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-complex.json
@@ -0,0 +1,60 @@
+{
+ "tests": [
+ {
+ "description": "set: complex",
+ "comment": "A call to a write method with complicated input data.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, 2.5], \"b\": {\"c\": [\"three\", {\"d\": true}]}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "arrayValue": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "doubleValue": 2.5
+ }
+ ]
+ }
+ },
+ "b": {
+ "mapValue": {
+ "fields": {
+ "c": {
+ "arrayValue": {
+ "values": [
+ {
+ "stringValue": "three"
+ },
+ {
+ "mapValue": {
+ "fields": {
+ "d": {
+ "booleanValue": true
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-merge-alone.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-merge-alone.json
new file mode 100644
index 000000000000..7a8ba5d5458c
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-merge-alone.json
@@ -0,0 +1,37 @@
+{
+ "tests": [
+ {
+ "description": "set-merge: Delete with merge",
+ "comment": "A Delete sentinel can appear with a merge option. If the delete\npaths are the only ones to be merged, then no document is sent, just an update mask.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "fields": [
+ {
+ "field": [
+ "b",
+ "c"
+ ]
+ }
+ ]
+ },
+ "jsonData": "{\"a\": 1, \"b\": {\"c\": \"Delete\"}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d"
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "b.c"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-merge.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-merge.json
new file mode 100644
index 000000000000..6a5759c12555
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-merge.json
@@ -0,0 +1,48 @@
+{
+ "tests": [
+ {
+ "description": "set-merge: Delete with merge",
+ "comment": "A Delete sentinel can appear with a merge option.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "fields": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b",
+ "c"
+ ]
+ }
+ ]
+ },
+ "jsonData": "{\"a\": 1, \"b\": {\"c\": \"Delete\"}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "b.c"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-mergeall.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-mergeall.json
new file mode 100644
index 000000000000..6106a3e4f229
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-mergeall.json
@@ -0,0 +1,36 @@
+{
+ "tests": [
+ {
+ "description": "set: Delete with MergeAll",
+ "comment": "A Delete sentinel can appear with a mergeAll option.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "all": true
+ },
+ "jsonData": "{\"a\": 1, \"b\": {\"c\": \"Delete\"}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "b.c"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-noarray-nested.json
new file mode 100644
index 000000000000..5a2303284e48
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-noarray-nested.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "set: Delete cannot be anywhere inside an array value",
+ "comment": "The Delete sentinel must be the value of a field. Deletes are implemented\nby turning the path to the Delete sentinel into a FieldPath, and FieldPaths do not support\narray indexing.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, {\"b\": \"Delete\"}]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-noarray.json
new file mode 100644
index 000000000000..dee9c75f6972
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-noarray.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "set: Delete cannot be in an array value",
+ "comment": "The Delete sentinel must be the value of a field. Deletes are\nimplemented by turning the path to the Delete sentinel into a FieldPath, and FieldPaths\ndo not support array indexing.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, 2, \"Delete\"]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-nomerge.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-nomerge.json
new file mode 100644
index 000000000000..67e3b74b8607
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-nomerge.json
@@ -0,0 +1,22 @@
+{
+ "tests": [
+ {
+ "description": "set-merge: Delete cannot appear in an unmerged field",
+ "comment": "The client signals an error if the Delete sentinel is in the\ninput data, but not selected by a merge option, because this is most likely a programming\nbug.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "fields": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ]
+ },
+ "jsonData": "{\"a\": 1, \"b\": \"Delete\"}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-nonleaf.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-nonleaf.json
new file mode 100644
index 000000000000..67c864957ca8
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-nonleaf.json
@@ -0,0 +1,22 @@
+{
+ "tests": [
+ {
+ "description": "set-merge: Delete cannot appear as part of a merge path",
+ "comment": "If a Delete is part of the value at a merge path, then the user is\nconfused: their merge path says \"replace this entire value\" but their Delete says\n\"delete this part of the value\". This should be an error, just as if they specified Delete\nin a Set with no merge.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "fields": [
+ {
+ "field": [
+ "h"
+ ]
+ }
+ ]
+ },
+ "jsonData": "{\"h\": {\"g\": \"Delete\"}}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-wo-merge.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-wo-merge.json
new file mode 100644
index 000000000000..32d860a626df
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-del-wo-merge.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "set: Delete cannot appear unless a merge option is specified",
+ "comment": "Without a merge option, Set replaces the document with the input\ndata. A Delete sentinel in the data makes no sense in this case.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": \"Delete\"}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-empty.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-empty.json
new file mode 100644
index 000000000000..924992caf308
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-empty.json
@@ -0,0 +1,22 @@
+{
+ "tests": [
+ {
+ "description": "set: creating or setting an empty map",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {}
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge-fp.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge-fp.json
new file mode 100644
index 000000000000..8a5b0faa6e2a
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge-fp.json
@@ -0,0 +1,48 @@
+{
+ "tests": [
+ {
+ "description": "set-merge: Merge with FieldPaths",
+ "comment": "A merge with fields that use special characters.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "fields": [
+ {
+ "field": [
+ "*",
+ "~"
+ ]
+ }
+ ]
+ },
+ "jsonData": "{\"*\": {\"~\": true}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "*": {
+ "mapValue": {
+ "fields": {
+ "~": {
+ "booleanValue": true
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "`*`.`~`"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge-nested.json
new file mode 100644
index 000000000000..8ebec8fda277
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge-nested.json
@@ -0,0 +1,48 @@
+{
+ "tests": [
+ {
+ "description": "set-merge: Merge with a nested field",
+ "comment": "A merge option where the field is not at top level.\nOnly fields mentioned in the option are present in the update operation.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "fields": [
+ {
+ "field": [
+ "h",
+ "g"
+ ]
+ }
+ ]
+ },
+ "jsonData": "{\"h\": {\"g\": 4, \"f\": 5}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "h": {
+ "mapValue": {
+ "fields": {
+ "g": {
+ "integerValue": "4"
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "h.g"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge-nonleaf.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge-nonleaf.json
new file mode 100644
index 000000000000..d115e12c2abd
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge-nonleaf.json
@@ -0,0 +1,50 @@
+{
+ "tests": [
+ {
+ "description": "set-merge: Merge field is not a leaf",
+ "comment": "If a field path is in a merge option, the value at that path\nreplaces the stored value. That is true even if the value is complex.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "fields": [
+ {
+ "field": [
+ "h"
+ ]
+ }
+ ]
+ },
+ "jsonData": "{\"h\": {\"f\": 5, \"g\": 6}, \"e\": 7}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "h": {
+ "mapValue": {
+ "fields": {
+ "f": {
+ "integerValue": "5"
+ },
+ "g": {
+ "integerValue": "6"
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "h"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge-prefix.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge-prefix.json
new file mode 100644
index 000000000000..a09e4db50985
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge-prefix.json
@@ -0,0 +1,28 @@
+{
+ "tests": [
+ {
+ "description": "set-merge: One merge path cannot be the prefix of another",
+ "comment": "The prefix would make the other path meaningless, so this is\nprobably a programming error.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "fields": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "a",
+ "b"
+ ]
+ }
+ ]
+ },
+ "jsonData": "{\"a\": {\"b\": 1}}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge-present.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge-present.json
new file mode 100644
index 000000000000..b501b23d03f5
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge-present.json
@@ -0,0 +1,27 @@
+{
+ "tests": [
+ {
+ "description": "set-merge: Merge fields must all be present in data",
+ "comment": "The client signals an error if a merge option mentions a path\nthat is not in the input data.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "fields": [
+ {
+ "field": [
+ "b"
+ ]
+ },
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ]
+ },
+ "jsonData": "{\"a\": 1}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge.json
new file mode 100644
index 000000000000..8ce730e840ad
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-merge.json
@@ -0,0 +1,41 @@
+{
+ "tests": [
+ {
+ "description": "set-merge: Merge with a field",
+ "comment": "Fields in the input data but not in a merge option are pruned.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "fields": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ]
+ },
+ "jsonData": "{\"a\": 1, \"b\": 2}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-mergeall-empty.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-mergeall-empty.json
new file mode 100644
index 000000000000..e541ad8c9a7d
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-mergeall-empty.json
@@ -0,0 +1,29 @@
+{
+ "tests": [
+ {
+ "description": "set: MergeAll can be specified with empty data.",
+ "comment": "This is a valid call that can be used to ensure a document exists.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "all": true
+ },
+ "jsonData": "{}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {}
+ },
+ "updateMask": {
+ "fieldPaths": []
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-mergeall-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-mergeall-nested.json
new file mode 100644
index 000000000000..c70ec691e29a
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-mergeall-nested.json
@@ -0,0 +1,45 @@
+{
+ "tests": [
+ {
+ "description": "set: MergeAll with nested fields",
+ "comment": "MergeAll with nested fields results in an update mask that\nincludes entries for all the leaf fields.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "all": true
+ },
+ "jsonData": "{\"h\": { \"g\": 3, \"f\": 4 }}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "h": {
+ "mapValue": {
+ "fields": {
+ "f": {
+ "integerValue": "4"
+ },
+ "g": {
+ "integerValue": "3"
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "h.f",
+ "h.g"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-mergeall.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-mergeall.json
new file mode 100644
index 000000000000..55a2377cb51d
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-mergeall.json
@@ -0,0 +1,39 @@
+{
+ "tests": [
+ {
+ "description": "set: MergeAll",
+ "comment": "The MergeAll option with a simple piece of data.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "all": true
+ },
+ "jsonData": "{\"a\": 1, \"b\": 2}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ },
+ "b": {
+ "integerValue": "2"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "b"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-nodel.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-nodel.json
new file mode 100644
index 000000000000..5580bc04f64c
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-nodel.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "set: Delete cannot appear in data",
+ "comment": "The Delete sentinel cannot be used in Create, or in Set without a Merge option.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": \"Delete\"}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-nosplit.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-nosplit.json
new file mode 100644
index 000000000000..3866027b9b58
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-nosplit.json
@@ -0,0 +1,36 @@
+{
+ "tests": [
+ {
+ "description": "set: don’t split on dots",
+ "comment": "Create and Set treat their map keys literally. They do not split on dots.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{ \"a.b\": { \"c.d\": 1 }, \"e\": 2 }",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a.b": {
+ "mapValue": {
+ "fields": {
+ "c.d": {
+ "integerValue": "1"
+ }
+ }
+ }
+ },
+ "e": {
+ "integerValue": "2"
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-special-chars.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-special-chars.json
new file mode 100644
index 000000000000..865ffcd9dc76
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-special-chars.json
@@ -0,0 +1,36 @@
+{
+ "tests": [
+ {
+ "description": "set: non-alpha characters in map keys",
+ "comment": "Create and Set treat their map keys literally. They do not escape special characters.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{ \"*\": { \".\": 1 }, \"~\": 2 }",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "*": {
+ "mapValue": {
+ "fields": {
+ ".": {
+ "integerValue": "1"
+ }
+ }
+ }
+ },
+ "~": {
+ "integerValue": "2"
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-alone-mergeall.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-alone-mergeall.json
new file mode 100644
index 000000000000..d95bf0973b79
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-alone-mergeall.json
@@ -0,0 +1,31 @@
+{
+ "tests": [
+ {
+ "description": "set: ServerTimestamp alone with MergeAll",
+ "comment": "If the only values in the input are ServerTimestamps, then no\nupdate operation should be produced.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "all": true
+ },
+ "jsonData": "{\"a\": \"ServerTimestamp\"}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-alone.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-alone.json
new file mode 100644
index 000000000000..3fe931394b0e
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-alone.json
@@ -0,0 +1,34 @@
+{
+ "tests": [
+ {
+ "description": "set: ServerTimestamp alone",
+ "comment": "If the only values in the input are ServerTimestamps, then\nan update operation with an empty map should be produced.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": \"ServerTimestamp\"}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {}
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-merge-both.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-merge-both.json
new file mode 100644
index 000000000000..a39ada55f738
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-merge-both.json
@@ -0,0 +1,57 @@
+{
+ "tests": [
+ {
+ "description": "set-merge: ServerTimestamp with Merge of both fields",
+ "comment": "Just as when no merge option is specified, ServerTimestamp\nsentinel values are removed from the data in the update operation and become\ntransforms.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "fields": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ }
+ ]
+ },
+ "jsonData": "{\"a\": 1, \"b\": \"ServerTimestamp\"}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-merge-nonleaf-alone.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-merge-nonleaf-alone.json
new file mode 100644
index 000000000000..4193b00ea683
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-merge-nonleaf-alone.json
@@ -0,0 +1,47 @@
+{
+ "tests": [
+ {
+ "description": "set-merge: non-leaf merge field with ServerTimestamp alone",
+ "comment": "If a field path is in a merge option, the value at that path\nreplaces the stored value. If the value has only ServerTimestamps, they become transforms\nand we clear the value by including the field path in the update mask.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "fields": [
+ {
+ "field": [
+ "h"
+ ]
+ }
+ ]
+ },
+ "jsonData": "{\"h\": {\"g\": \"ServerTimestamp\"}, \"e\": 7}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d"
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "h"
+ ]
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "h.g",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-merge-nonleaf.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-merge-nonleaf.json
new file mode 100644
index 000000000000..5e91d663b8c6
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-merge-nonleaf.json
@@ -0,0 +1,58 @@
+{
+ "tests": [
+ {
+ "description": "set-merge: non-leaf merge field with ServerTimestamp",
+ "comment": "If a field path is in a merge option, the value at that path\nreplaces the stored value, and ServerTimestamps inside that value become transforms\nas usual.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "fields": [
+ {
+ "field": [
+ "h"
+ ]
+ }
+ ]
+ },
+ "jsonData": "{\"h\": {\"f\": 5, \"g\": \"ServerTimestamp\"}, \"e\": 7}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "h": {
+ "mapValue": {
+ "fields": {
+ "f": {
+ "integerValue": "5"
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "h"
+ ]
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "h.g",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-merge-nowrite.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-merge-nowrite.json
new file mode 100644
index 000000000000..08fa8b52f54b
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-merge-nowrite.json
@@ -0,0 +1,37 @@
+{
+ "tests": [
+ {
+ "description": "set-merge: If no ordinary values in Merge, no write",
+ "comment": "If all the fields in the merge option have ServerTimestamp\nvalues, then no update operation is produced, only a transform.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "fields": [
+ {
+ "field": [
+ "b"
+ ]
+ }
+ ]
+ },
+ "jsonData": "{\"a\": 1, \"b\": \"ServerTimestamp\"}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-mergeall.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-mergeall.json
new file mode 100644
index 000000000000..26883c03820d
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-mergeall.json
@@ -0,0 +1,46 @@
+{
+ "tests": [
+ {
+ "description": "set: ServerTimestamp with MergeAll",
+ "comment": "Just as when no merge option is specified, ServerTimestamp\nsentinel values are removed from the data in the update operation and become\ntransforms.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "all": true
+ },
+ "jsonData": "{\"a\": 1, \"b\": \"ServerTimestamp\"}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-multi.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-multi.json
new file mode 100644
index 000000000000..23c06f4976f7
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-multi.json
@@ -0,0 +1,42 @@
+{
+ "tests": [
+ {
+ "description": "set: multiple ServerTimestamp fields",
+ "comment": "A document can have more than one ServerTimestamp field.\nSince all the ServerTimestamp fields are removed, the only field in the update is \"a\".",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": \"ServerTimestamp\", \"c\": {\"d\": \"ServerTimestamp\"}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "setToServerValue": "REQUEST_TIME"
+ },
+ {
+ "fieldPath": "c.d",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-nested.json
new file mode 100644
index 000000000000..5c94c33f943d
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-nested.json
@@ -0,0 +1,38 @@
+{
+ "tests": [
+ {
+ "description": "set: nested ServerTimestamp field",
+ "comment": "A ServerTimestamp value can occur at any depth. In this case,\nthe transform applies to the field path \"b.c\". Since \"c\" is removed from the update,\n\"b\" becomes empty, so it is also removed from the update.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": {\"c\": \"ServerTimestamp\"}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b.c",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-noarray-nested.json
new file mode 100644
index 000000000000..5ad6a50897ba
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-noarray-nested.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "set: ServerTimestamp cannot be anywhere inside an array value",
+ "comment": "There cannot be an array value anywhere on the path from the document\nroot to the ServerTimestamp sentinel. Firestore transforms don't support array indexing.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, {\"b\": \"ServerTimestamp\"}]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-noarray.json
new file mode 100644
index 000000000000..76a2881cb61b
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-noarray.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "set: ServerTimestamp cannot be in an array value",
+ "comment": "The ServerTimestamp sentinel must be the value of a field. Firestore\ntransforms don't support array indexing.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, 2, \"ServerTimestamp\"]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-nomerge.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-nomerge.json
new file mode 100644
index 000000000000..0523ed74fb44
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-nomerge.json
@@ -0,0 +1,41 @@
+{
+ "tests": [
+ {
+ "description": "set-merge: If is ServerTimestamp not in Merge, no transform",
+ "comment": "If the ServerTimestamp value is not mentioned in a merge option,\nthen it is pruned from the data but does not result in a transform.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "option": {
+ "fields": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ]
+ },
+ "jsonData": "{\"a\": 1, \"b\": \"ServerTimestamp\"}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-with-empty-map.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-with-empty-map.json
new file mode 100644
index 000000000000..063c94a0e6cd
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st-with-empty-map.json
@@ -0,0 +1,46 @@
+{
+ "tests": [
+ {
+ "description": "set: ServerTimestamp beside an empty map",
+ "comment": "When a ServerTimestamp and a map both reside inside a map, the\nServerTimestamp should be stripped out but the empty map should remain.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": {\"b\": {}, \"c\": \"ServerTimestamp\"}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "mapValue": {
+ "fields": {
+ "b": {
+ "mapValue": {
+ "fields": {}
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a.c",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st.json
new file mode 100644
index 000000000000..42f2b14f1c7f
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/set-st.json
@@ -0,0 +1,38 @@
+{
+ "tests": [
+ {
+ "description": "set: ServerTimestamp with data",
+ "comment": "A key with the special ServerTimestamp sentinel is removed from\nthe data in the update operation. Instead it appears in a separate Transform operation.\nNote that in these tests, the string \"ServerTimestamp\" should be replaced with the\nspecial ServerTimestamp value.",
+ "set": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": \"ServerTimestamp\"}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-all-transforms.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-all-transforms.json
new file mode 100644
index 000000000000..6f6a725df0fc
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-all-transforms.json
@@ -0,0 +1,78 @@
+{
+ "tests": [
+ {
+ "description": "update: all transforms in a single call",
+ "comment": "A document can be created with any amount of transforms.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": \"ServerTimestamp\", \"c\": [\"ArrayUnion\", 1, 2, 3], \"d\": [\"ArrayRemove\", 4, 5, 6]}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "setToServerValue": "REQUEST_TIME"
+ },
+ {
+ "fieldPath": "c",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ },
+ {
+ "fieldPath": "d",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "4"
+ },
+ {
+ "integerValue": "5"
+ },
+ {
+ "integerValue": "6"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-alone.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-alone.json
new file mode 100644
index 000000000000..86fc8802e52e
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-alone.json
@@ -0,0 +1,43 @@
+{
+ "tests": [
+ {
+ "description": "update: ArrayRemove alone",
+ "comment": "If the only values in the input are ArrayRemove, then no\nupdate operation should be produced.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [\"ArrayRemove\", 1, 2, 3]}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-multi.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-multi.json
new file mode 100644
index 000000000000..df880f6792b9
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-multi.json
@@ -0,0 +1,75 @@
+{
+ "tests": [
+ {
+ "description": "update: multiple ArrayRemove fields",
+ "comment": "A document can have more than one ArrayRemove field.\nSince all the ArrayRemove fields are removed, the only field in the update is \"a\".",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": [\"ArrayRemove\", 1, 2, 3], \"c\": {\"d\": [\"ArrayRemove\", 4, 5, 6]}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "c"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ },
+ {
+ "fieldPath": "c.d",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "4"
+ },
+ {
+ "integerValue": "5"
+ },
+ {
+ "integerValue": "6"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-nested.json
new file mode 100644
index 000000000000..28d59aff661f
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-nested.json
@@ -0,0 +1,59 @@
+{
+ "tests": [
+ {
+ "description": "update: nested ArrayRemove field",
+ "comment": "An ArrayRemove value can occur at any depth. In this case,\nthe transform applies to the field path \"b.c\". Since \"c\" is removed from the update,\n\"b\" becomes empty, so it is also removed from the update.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": {\"c\": [\"ArrayRemove\", 1, 2, 3]}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "b"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b.c",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-noarray-nested.json
new file mode 100644
index 000000000000..842c5fe3240c
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-noarray-nested.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: ArrayRemove cannot be anywhere inside an array value",
+ "comment": "There cannot be an array value anywhere on the path from the document\nroot to the ArrayRemove. Firestore transforms don't support array indexing.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, {\"b\": [\"ArrayRemove\", 1, 2, 3]}]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-noarray.json
new file mode 100644
index 000000000000..0a371f055488
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-noarray.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: ArrayRemove cannot be in an array value",
+ "comment": "ArrayRemove must be the value of a field. Firestore\ntransforms don't support array indexing.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, 2, [\"ArrayRemove\", 1, 2, 3]]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-with-st.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-with-st.json
new file mode 100644
index 000000000000..9d110de9caea
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove-with-st.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: The ServerTimestamp sentinel cannot be in an ArrayUnion",
+ "comment": "The ServerTimestamp sentinel must be the value of a field. It may\nnot appear in an ArrayUnion.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [\"ArrayRemove\", 1, \"ServerTimestamp\", 3]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove.json
new file mode 100644
index 000000000000..d925704db63b
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayremove.json
@@ -0,0 +1,58 @@
+{
+ "tests": [
+ {
+ "description": "update: ArrayRemove with data",
+ "comment": "A key with ArrayRemove is removed from the data in the update \noperation. Instead it appears in a separate Transform operation.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": [\"ArrayRemove\", 1, 2, 3]}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-alone.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-alone.json
new file mode 100644
index 000000000000..757ea48c3b7f
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-alone.json
@@ -0,0 +1,43 @@
+{
+ "tests": [
+ {
+ "description": "update: ArrayUnion alone",
+ "comment": "If the only values in the input are ArrayUnion, then no\nupdate operation should be produced.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [\"ArrayUnion\", 1, 2, 3]}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-multi.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-multi.json
new file mode 100644
index 000000000000..3aafcd0f3545
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-multi.json
@@ -0,0 +1,75 @@
+{
+ "tests": [
+ {
+ "description": "update: multiple ArrayUnion fields",
+ "comment": "A document can have more than one ArrayUnion field.\nSince all the ArrayUnion fields are removed, the only field in the update is \"a\".",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": [\"ArrayUnion\", 1, 2, 3], \"c\": {\"d\": [\"ArrayUnion\", 4, 5, 6]}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "c"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ },
+ {
+ "fieldPath": "c.d",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "4"
+ },
+ {
+ "integerValue": "5"
+ },
+ {
+ "integerValue": "6"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-nested.json
new file mode 100644
index 000000000000..f2bf3770dc77
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-nested.json
@@ -0,0 +1,59 @@
+{
+ "tests": [
+ {
+ "description": "update: nested ArrayUnion field",
+ "comment": "An ArrayUnion value can occur at any depth. In this case,\nthe transform applies to the field path \"b.c\". Since \"c\" is removed from the update,\n\"b\" becomes empty, so it is also removed from the update.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": {\"c\": [\"ArrayUnion\", 1, 2, 3]}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "b"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b.c",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-noarray-nested.json
new file mode 100644
index 000000000000..08745a08b07b
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-noarray-nested.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: ArrayUnion cannot be anywhere inside an array value",
+ "comment": "There cannot be an array value anywhere on the path from the document\nroot to the ArrayUnion. Firestore transforms don't support array indexing.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, {\"b\": [\"ArrayUnion\", 1, 2, 3]}]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-noarray.json
new file mode 100644
index 000000000000..284f42800eba
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-noarray.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: ArrayUnion cannot be in an array value",
+ "comment": "ArrayUnion must be the value of a field. Firestore\ntransforms don't support array indexing.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, 2, [\"ArrayRemove\", 1, 2, 3]]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-with-st.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-with-st.json
new file mode 100644
index 000000000000..1c47591e29bc
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion-with-st.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: The ServerTimestamp sentinel cannot be in an ArrayUnion",
+ "comment": "The ServerTimestamp sentinel must be the value of a field. It may\nnot appear in an ArrayUnion.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [\"ArrayUnion\", 1, \"ServerTimestamp\", 3]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion.json
new file mode 100644
index 000000000000..60192c9f8c0b
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-arrayunion.json
@@ -0,0 +1,58 @@
+{
+ "tests": [
+ {
+ "description": "update: ArrayUnion with data",
+ "comment": "A key with ArrayUnion is removed from the data in the update \noperation. Instead it appears in a separate Transform operation.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": [\"ArrayUnion\", 1, 2, 3]}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-badchar.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-badchar.json
new file mode 100644
index 000000000000..7d5e6e4f07bc
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-badchar.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: invalid character",
+ "comment": "The keys of the data given to Update are interpreted, unlike those of Create and Set. They cannot contain special characters.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a~b\": 1}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-basic.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-basic.json
new file mode 100644
index 000000000000..f864247427e8
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-basic.json
@@ -0,0 +1,35 @@
+{
+ "tests": [
+ {
+ "description": "update: basic",
+ "comment": "A simple call, resulting in a single update operation.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-complex.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-complex.json
new file mode 100644
index 000000000000..ddf8373367c4
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-complex.json
@@ -0,0 +1,69 @@
+{
+ "tests": [
+ {
+ "description": "update: complex",
+ "comment": "A call to a write method with complicated input data.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, 2.5], \"b\": {\"c\": [\"three\", {\"d\": true}]}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "arrayValue": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "doubleValue": 2.5
+ }
+ ]
+ }
+ },
+ "b": {
+ "mapValue": {
+ "fields": {
+ "c": {
+ "arrayValue": {
+ "values": [
+ {
+ "stringValue": "three"
+ },
+ {
+ "mapValue": {
+ "fields": {
+ "d": {
+ "booleanValue": true
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "b"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del-alone.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del-alone.json
new file mode 100644
index 000000000000..45598ab40220
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del-alone.json
@@ -0,0 +1,30 @@
+{
+ "tests": [
+ {
+ "description": "update: Delete alone",
+ "comment": "If the input data consists solely of Deletes, then the update\noperation has no map, just an update mask.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": \"Delete\"}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d"
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del-dot.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del-dot.json
new file mode 100644
index 000000000000..44f36b0c3e85
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del-dot.json
@@ -0,0 +1,46 @@
+{
+ "tests": [
+ {
+ "description": "update: Delete with a dotted field",
+ "comment": "After expanding top-level dotted fields, fields with Delete\nvalues are pruned from the output data, but appear in the update mask.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b.c\": \"Delete\", \"b.d\": 2}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ },
+ "b": {
+ "mapValue": {
+ "fields": {
+ "d": {
+ "integerValue": "2"
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "b.c",
+ "b.d"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del-nested.json
new file mode 100644
index 000000000000..18d08f3f004e
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del-nested.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: Delete cannot be nested",
+ "comment": "The Delete sentinel must be the value of a top-level key.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": {\"b\": \"Delete\"}}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del-noarray-nested.json
new file mode 100644
index 000000000000..025cbed0dfb3
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del-noarray-nested.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: Delete cannot be anywhere inside an array value",
+ "comment": "The Delete sentinel must be the value of a field. Deletes are implemented\nby turning the path to the Delete sentinel into a FieldPath, and FieldPaths do not support\narray indexing.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, {\"b\": \"Delete\"}]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del-noarray.json
new file mode 100644
index 000000000000..dce3806f2c35
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del-noarray.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: Delete cannot be in an array value",
+ "comment": "The Delete sentinel must be the value of a field. Deletes are\nimplemented by turning the path to the Delete sentinel into a FieldPath, and FieldPaths\ndo not support array indexing.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, 2, \"Delete\"]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del.json
new file mode 100644
index 000000000000..26a6a1bc7e43
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-del.json
@@ -0,0 +1,36 @@
+{
+ "tests": [
+ {
+ "description": "update: Delete",
+ "comment": "If a field's value is the Delete sentinel, then it doesn't appear\nin the update data, but does in the mask.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": \"Delete\"}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "b"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-exists-precond.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-exists-precond.json
new file mode 100644
index 000000000000..bdbe274b4c23
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-exists-precond.json
@@ -0,0 +1,16 @@
+{
+ "tests": [
+ {
+ "description": "update: Exists precondition is invalid",
+ "comment": "The Update method does not support an explicit exists precondition.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "precondition": {
+ "exists": true
+ },
+ "jsonData": "{\"a\": 1}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-fp-empty-component.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-fp-empty-component.json
new file mode 100644
index 000000000000..50274e49ffe2
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-fp-empty-component.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: empty field path component",
+ "comment": "Empty fields are not allowed.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a..b\": 1}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-nested-transform-and-nested-value.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-nested-transform-and-nested-value.json
new file mode 100644
index 000000000000..ff7bfc6ee944
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-nested-transform-and-nested-value.json
@@ -0,0 +1,52 @@
+{
+ "tests": [
+ {
+ "description": "update: Nested transforms should not affect the field mask, even\nwhen there are other values that do. Transforms should only affect the\nDocumentTransform_FieldTransform list.",
+ "comment": "For updates, top-level paths in json-like map inputs\nare split on the dot. That is, an input {\"a.b.c\": 7} results in an update to\nfield c of object b of object a with value 7. In order to specify this behavior,\nthe update must use a fieldmask \"a.b.c\". However, fieldmasks are only used for\nconcrete values - transforms are separately encoded in a\nDocumentTransform_FieldTransform array.\n\nThis test exercises a bug found in python (https://github.com/googleapis/google-cloud-python/issues/7215)\nin which nested transforms ({\"a.c\": \"ServerTimestamp\"}) next to nested values\n({\"a.b\": 7}) incorrectly caused the fieldmask \"a\" to be set, which has the\neffect of wiping out all data in \"a\" other than what was specified in the\njson-like input.\n\nInstead, as this test specifies, transforms should not affect the fieldmask.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a.b\": 7, \"a.c\": \"ServerTimestamp\"}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "mapValue": {
+ "fields": {
+ "b": {
+ "integerValue": "7"
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a.b"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a.c",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-no-paths.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-no-paths.json
new file mode 100644
index 000000000000..6cfbc01dce20
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-no-paths.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: no paths",
+ "comment": "It is a client-side error to call Update with empty data.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-all-transforms.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-all-transforms.json
new file mode 100644
index 000000000000..01a4c1143dc1
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-all-transforms.json
@@ -0,0 +1,105 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: all transforms in a single call",
+ "comment": "A document can be created with any amount of transforms.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ },
+ {
+ "field": [
+ "c"
+ ]
+ },
+ {
+ "field": [
+ "d"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "\"ServerTimestamp\"",
+ "[\"ArrayUnion\", 1, 2, 3]",
+ "[\"ArrayRemove\", 4, 5, 6]"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "setToServerValue": "REQUEST_TIME"
+ },
+ {
+ "fieldPath": "c",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ },
+ {
+ "fieldPath": "d",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "4"
+ },
+ {
+ "integerValue": "5"
+ },
+ {
+ "integerValue": "6"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-alone.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-alone.json
new file mode 100644
index 000000000000..9bc8a1440137
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-alone.json
@@ -0,0 +1,52 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: ArrayRemove alone",
+ "comment": "If the only values in the input are ArrayRemove, then no\nupdate operation should be produced.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "[\"ArrayRemove\", 1, 2, 3]"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-multi.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-multi.json
new file mode 100644
index 000000000000..9a8547120e3a
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-multi.json
@@ -0,0 +1,96 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: multiple ArrayRemove fields",
+ "comment": "A document can have more than one ArrayRemove field.\nSince all the ArrayRemove fields are removed, the only field in the update is \"a\".",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ },
+ {
+ "field": [
+ "c"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "[\"ArrayRemove\", 1, 2, 3]",
+ "{\"d\": [\"ArrayRemove\", 4, 5, 6]}"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "c"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ },
+ {
+ "fieldPath": "c.d",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "4"
+ },
+ {
+ "integerValue": "5"
+ },
+ {
+ "integerValue": "6"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-nested.json
new file mode 100644
index 000000000000..e7f952ec3423
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-nested.json
@@ -0,0 +1,74 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: nested ArrayRemove field",
+ "comment": "An ArrayRemove value can occur at any depth. In this case,\nthe transform applies to the field path \"b.c\". Since \"c\" is removed from the update,\n\"b\" becomes empty, so it is also removed from the update.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "{\"c\": [\"ArrayRemove\", 1, 2, 3]}"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "b"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b.c",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-noarray-nested.json
new file mode 100644
index 000000000000..b669e870cd31
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-noarray-nested.json
@@ -0,0 +1,22 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: ArrayRemove cannot be anywhere inside an array value",
+ "comment": "There cannot be an array value anywhere on the path from the document\nroot to the ArrayRemove. Firestore transforms don't support array indexing.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "[1, {\"b\": [\"ArrayRemove\", 1, 2, 3]}]"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-noarray.json
new file mode 100644
index 000000000000..ff50e11e4fb2
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-noarray.json
@@ -0,0 +1,22 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: ArrayRemove cannot be in an array value",
+ "comment": "ArrayRemove must be the value of a field. Firestore\ntransforms don't support array indexing.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "[1, 2, [\"ArrayRemove\", 1, 2, 3]]"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-with-st.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-with-st.json
new file mode 100644
index 000000000000..d27d26e44664
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove-with-st.json
@@ -0,0 +1,22 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: The ServerTimestamp sentinel cannot be in an ArrayUnion",
+ "comment": "The ServerTimestamp sentinel must be the value of a field. It may\nnot appear in an ArrayUnion.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "[\"ArrayRemove\", 1, \"ServerTimestamp\", 3]"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove.json
new file mode 100644
index 000000000000..673a2ca2c1af
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayremove.json
@@ -0,0 +1,73 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: ArrayRemove with data",
+ "comment": "A key with ArrayRemove is removed from the data in the update \noperation. Instead it appears in a separate Transform operation.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "[\"ArrayRemove\", 1, 2, 3]"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "removeAllFromArray": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-alone.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-alone.json
new file mode 100644
index 000000000000..81e1e9771ab7
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-alone.json
@@ -0,0 +1,52 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: ArrayUnion alone",
+ "comment": "If the only values in the input are ArrayUnion, then no\nupdate operation should be produced.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "[\"ArrayUnion\", 1, 2, 3]"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-multi.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-multi.json
new file mode 100644
index 000000000000..ef421bdad180
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-multi.json
@@ -0,0 +1,96 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: multiple ArrayUnion fields",
+ "comment": "A document can have more than one ArrayUnion field.\nSince all the ArrayUnion fields are removed, the only field in the update is \"a\".",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ },
+ {
+ "field": [
+ "c"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "[\"ArrayUnion\", 1, 2, 3]",
+ "{\"d\": [\"ArrayUnion\", 4, 5, 6]}"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "c"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ },
+ {
+ "fieldPath": "c.d",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "4"
+ },
+ {
+ "integerValue": "5"
+ },
+ {
+ "integerValue": "6"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-nested.json
new file mode 100644
index 000000000000..2d73527a4048
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-nested.json
@@ -0,0 +1,74 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: nested ArrayUnion field",
+ "comment": "An ArrayUnion value can occur at any depth. In this case,\nthe transform applies to the field path \"b.c\". Since \"c\" is removed from the update,\n\"b\" becomes empty, so it is also removed from the update.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "{\"c\": [\"ArrayUnion\", 1, 2, 3]}"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "b"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b.c",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-noarray-nested.json
new file mode 100644
index 000000000000..0e8a634a4417
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-noarray-nested.json
@@ -0,0 +1,22 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: ArrayUnion cannot be anywhere inside an array value",
+ "comment": "There cannot be an array value anywhere on the path from the document\nroot to the ArrayUnion. Firestore transforms don't support array indexing.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "[1, {\"b\": [\"ArrayUnion\", 1, 2, 3]}]"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-noarray.json
new file mode 100644
index 000000000000..ce45841888fa
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-noarray.json
@@ -0,0 +1,22 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: ArrayUnion cannot be in an array value",
+ "comment": "ArrayUnion must be the value of a field. Firestore\ntransforms don't support array indexing.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "[1, 2, [\"ArrayRemove\", 1, 2, 3]]"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-with-st.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-with-st.json
new file mode 100644
index 000000000000..c0a4204182cd
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion-with-st.json
@@ -0,0 +1,22 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: The ServerTimestamp sentinel cannot be in an ArrayUnion",
+ "comment": "The ServerTimestamp sentinel must be the value of a field. It may\nnot appear in an ArrayUnion.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "[\"ArrayUnion\", 1, \"ServerTimestamp\", 3]"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion.json
new file mode 100644
index 000000000000..1401993d059d
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-arrayunion.json
@@ -0,0 +1,73 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: ArrayUnion with data",
+ "comment": "A key with ArrayUnion is removed from the data in the update \noperation. Instead it appears in a separate Transform operation.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "[\"ArrayUnion\", 1, 2, 3]"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "appendMissingElements": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "integerValue": "2"
+ },
+ {
+ "integerValue": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-basic.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-basic.json
new file mode 100644
index 000000000000..bf1164ac410d
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-basic.json
@@ -0,0 +1,44 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: basic",
+ "comment": "A simple call, resulting in a single update operation.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-complex.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-complex.json
new file mode 100644
index 000000000000..2f3faa7846c6
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-complex.json
@@ -0,0 +1,84 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: complex",
+ "comment": "A call to a write method with complicated input data.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "[1, 2.5]",
+ "{\"c\": [\"three\", {\"d\": true}]}"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "arrayValue": {
+ "values": [
+ {
+ "integerValue": "1"
+ },
+ {
+ "doubleValue": 2.5
+ }
+ ]
+ }
+ },
+ "b": {
+ "mapValue": {
+ "fields": {
+ "c": {
+ "arrayValue": {
+ "values": [
+ {
+ "stringValue": "three"
+ },
+ {
+ "mapValue": {
+ "fields": {
+ "d": {
+ "booleanValue": true
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "b"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-del-alone.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-del-alone.json
new file mode 100644
index 000000000000..e3368c86c376
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-del-alone.json
@@ -0,0 +1,39 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: Delete alone",
+ "comment": "If the input data consists solely of Deletes, then the update\noperation has no map, just an update mask.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "\"Delete\""
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d"
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-del-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-del-nested.json
new file mode 100644
index 000000000000..07f9f405ea40
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-del-nested.json
@@ -0,0 +1,22 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: Delete cannot be nested",
+ "comment": "The Delete sentinel must be the value of a top-level key.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "{\"b\": \"Delete\"}"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-del-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-del-noarray-nested.json
new file mode 100644
index 000000000000..a74c0aeb570c
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-del-noarray-nested.json
@@ -0,0 +1,22 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: Delete cannot be anywhere inside an array value",
+ "comment": "The Delete sentinel must be the value of a field. Deletes are implemented\nby turning the path to the Delete sentinel into a FieldPath, and FieldPaths do not support\narray indexing.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "[1, {\"b\": \"Delete\"}]"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-del-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-del-noarray.json
new file mode 100644
index 000000000000..fb6d00b72400
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-del-noarray.json
@@ -0,0 +1,22 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: Delete cannot be in an array value",
+ "comment": "The Delete sentinel must be the value of a field. Deletes are\nimplemented by turning the path to the Delete sentinel into a FieldPath, and FieldPaths\ndo not support array indexing.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "[1, 2, \"Delete\"]"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-del.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-del.json
new file mode 100644
index 000000000000..cb5f6bedf41e
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-del.json
@@ -0,0 +1,51 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: Delete",
+ "comment": "If a field's value is the Delete sentinel, then it doesn't appear\nin the update data, but does in the mask.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "\"Delete\""
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "b"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-exists-precond.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-exists-precond.json
new file mode 100644
index 000000000000..d495db033010
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-exists-precond.json
@@ -0,0 +1,25 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: Exists precondition is invalid",
+ "comment": "The Update method does not support an explicit exists precondition.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "precondition": {
+ "exists": true
+ },
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-del.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-del.json
new file mode 100644
index 000000000000..95b787a91363
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-del.json
@@ -0,0 +1,59 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: field paths with delete",
+ "comment": "If one nested field is deleted, and another isn't, preserve the second.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "foo",
+ "bar"
+ ]
+ },
+ {
+ "field": [
+ "foo",
+ "delete"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "\"Delete\""
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "foo": {
+ "mapValue": {
+ "fields": {
+ "bar": {
+ "integerValue": "1"
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "foo.bar",
+ "foo.delete"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-dup-transforms.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-dup-transforms.json
new file mode 100644
index 000000000000..aff02a8d2036
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-dup-transforms.json
@@ -0,0 +1,34 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: duplicate field path with only transforms",
+ "comment": "The same field cannot occur more than once, even if all the operations are transforms.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ },
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "[\"ArrayUnion\", 1, 2, 3]",
+ "\"ServerTimestamp\"",
+ "[\"ArrayUnion\", 4, 5, 6]"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-dup.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-dup.json
new file mode 100644
index 000000000000..71bf4d54a2a4
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-dup.json
@@ -0,0 +1,34 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: duplicate field path",
+ "comment": "The same field cannot occur more than once.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ },
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "2",
+ "3"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-empty-component.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-empty-component.json
new file mode 100644
index 000000000000..161e9f6eff9e
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-empty-component.json
@@ -0,0 +1,23 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: empty field path component",
+ "comment": "Empty fields are not allowed.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "*",
+ ""
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-empty.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-empty.json
new file mode 100644
index 000000000000..9424da130565
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-empty.json
@@ -0,0 +1,20 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: empty field path",
+ "comment": "A FieldPath of length zero is invalid.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": []
+ }
+ ],
+ "jsonValues": [
+ "1"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-multi.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-multi.json
new file mode 100644
index 000000000000..a0afd38b8f26
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-multi.json
@@ -0,0 +1,51 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: multiple-element field path",
+ "comment": "The UpdatePaths or equivalent method takes a list of FieldPaths.\nEach FieldPath is a sequence of uninterpreted path components.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a",
+ "b"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "mapValue": {
+ "fields": {
+ "b": {
+ "integerValue": "1"
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a.b"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-nosplit.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-nosplit.json
new file mode 100644
index 000000000000..23e9ddc9d3ad
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-fp-nosplit.json
@@ -0,0 +1,57 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: FieldPath elements are not split on dots",
+ "comment": "FieldPath components are not split on dots.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a.b",
+ "f.g"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "{\"n.o\": 7}"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a.b": {
+ "mapValue": {
+ "fields": {
+ "f.g": {
+ "mapValue": {
+ "fields": {
+ "n.o": {
+ "integerValue": "7"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "`a.b`.`f.g`"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-nested-transform-and-nested-value.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-nested-transform-and-nested-value.json
new file mode 100644
index 000000000000..927d783aee46
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-nested-transform-and-nested-value.json
@@ -0,0 +1,69 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: Nested transforms should not affect the field mask, even\nwhen there are other values that do. Transforms should only affect the\nDocumentTransform_FieldTransform list.",
+ "comment": "For updates, top-level paths in json-like map inputs\nare split on the dot. That is, an input {\"a.b.c\": 7} results in an update to\nfield c of object b of object a with value 7. In order to specify this behavior,\nthe update must use a fieldmask \"a.b.c\". However, fieldmasks are only used for\nconcrete values - transforms are separately encoded in a\nDocumentTransform_FieldTransform array.\n\nThis test exercises a bug found in python (https://github.com/googleapis/google-cloud-python/issues/7215)\nin which nested transforms ({\"a.c\": \"ServerTimestamp\"}) next to nested values\n({\"a.b\": 7}) incorrectly caused the fieldmask \"a\" to be set, which has the\neffect of wiping out all data in \"a\" other than what was specified in the\njson-like input.\n\nInstead, as this test specifies, transforms should not affect the fieldmask.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a",
+ "b"
+ ]
+ },
+ {
+ "field": [
+ "a",
+ "c"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "7",
+ "\"ServerTimestamp\""
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "mapValue": {
+ "fields": {
+ "b": {
+ "integerValue": "7"
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a.b"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a.c",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-no-paths.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-no-paths.json
new file mode 100644
index 000000000000..e8ad035eaf13
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-no-paths.json
@@ -0,0 +1,12 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: no paths",
+ "comment": "It is a client-side error to call Update with empty data.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-prefix-1.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-prefix-1.json
new file mode 100644
index 000000000000..0bc1c0e812de
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-prefix-1.json
@@ -0,0 +1,29 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: prefix #1",
+ "comment": "In the input data, one field cannot be a prefix of another.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a",
+ "b"
+ ]
+ },
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "2"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-prefix-2.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-prefix-2.json
new file mode 100644
index 000000000000..6f1d152a7077
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-prefix-2.json
@@ -0,0 +1,29 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: prefix #2",
+ "comment": "In the input data, one field cannot be a prefix of another.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "a",
+ "b"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "2"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-prefix-3.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-prefix-3.json
new file mode 100644
index 000000000000..4fe17b292f6a
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-prefix-3.json
@@ -0,0 +1,29 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: prefix #3",
+ "comment": "In the input data, one field cannot be a prefix of another, even if the values could in principle be combined.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "a",
+ "d"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "{\"b\": 1}",
+ "2"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-special-chars.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-special-chars.json
new file mode 100644
index 000000000000..83b27d8dbfde
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-special-chars.json
@@ -0,0 +1,62 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: special characters",
+ "comment": "FieldPaths can contain special characters.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "*",
+ "~"
+ ]
+ },
+ {
+ "field": [
+ "*",
+ "`"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "2"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "*": {
+ "mapValue": {
+ "fields": {
+ "`": {
+ "integerValue": "2"
+ },
+ "~": {
+ "integerValue": "1"
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "`*`.`\\``",
+ "`*`.`~`"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-alone.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-alone.json
new file mode 100644
index 000000000000..085d04987713
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-alone.json
@@ -0,0 +1,40 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: ServerTimestamp alone",
+ "comment": "If the only values in the input are ServerTimestamps, then no\nupdate operation should be produced.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "\"ServerTimestamp\""
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-multi.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-multi.json
new file mode 100644
index 000000000000..2d813801ac33
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-multi.json
@@ -0,0 +1,72 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: multiple ServerTimestamp fields",
+ "comment": "A document can have more than one ServerTimestamp field.\nSince all the ServerTimestamp fields are removed, the only field in the update is \"a\".",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ },
+ {
+ "field": [
+ "c"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "\"ServerTimestamp\"",
+ "{\"d\": \"ServerTimestamp\"}"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "c"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "setToServerValue": "REQUEST_TIME"
+ },
+ {
+ "fieldPath": "c.d",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-nested.json
new file mode 100644
index 000000000000..8bd35c9111b1
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-nested.json
@@ -0,0 +1,62 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: nested ServerTimestamp field",
+ "comment": "A ServerTimestamp value can occur at any depth. In this case,\nthe transform applies to the field path \"b.c\". Since \"c\" is removed from the update,\n\"b\" becomes empty, so it is also removed from the update.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "{\"c\": \"ServerTimestamp\"}"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "b"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b.c",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-noarray-nested.json
new file mode 100644
index 000000000000..2dd1bcacc775
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-noarray-nested.json
@@ -0,0 +1,22 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: ServerTimestamp cannot be anywhere inside an array value",
+ "comment": "There cannot be an array value anywhere on the path from the document\nroot to the ServerTimestamp sentinel. Firestore transforms don't support array indexing.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "[1, {\"b\": \"ServerTimestamp\"}]"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-noarray.json
new file mode 100644
index 000000000000..5da60306bc25
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-noarray.json
@@ -0,0 +1,22 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: ServerTimestamp cannot be in an array value",
+ "comment": "The ServerTimestamp sentinel must be the value of a field. Firestore\ntransforms don't support array indexing.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "[1, 2, \"ServerTimestamp\"]"
+ ],
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-with-empty-map.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-with-empty-map.json
new file mode 100644
index 000000000000..ac60b2771d37
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st-with-empty-map.json
@@ -0,0 +1,63 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: ServerTimestamp beside an empty map",
+ "comment": "When a ServerTimestamp and a map both reside inside a map, the\nServerTimestamp should be stripped out but the empty map should remain.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "{\"b\": {}, \"c\": \"ServerTimestamp\"}"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "mapValue": {
+ "fields": {
+ "b": {
+ "mapValue": {
+ "fields": {}
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a.c",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st.json
new file mode 100644
index 000000000000..011405b9bf7b
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-st.json
@@ -0,0 +1,61 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: ServerTimestamp with data",
+ "comment": "A key with the special ServerTimestamp sentinel is removed from\nthe data in the update operation. Instead it appears in a separate Transform operation.\nNote that in these tests, the string \"ServerTimestamp\" should be replaced with the\nspecial ServerTimestamp value.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ },
+ {
+ "field": [
+ "b"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1",
+ "\"ServerTimestamp\""
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-uptime.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-uptime.json
new file mode 100644
index 000000000000..96801a0cd8e7
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-paths-uptime.json
@@ -0,0 +1,47 @@
+{
+ "tests": [
+ {
+ "description": "update-paths: last-update-time precondition",
+ "comment": "The Update call supports a last-update-time precondition.",
+ "updatePaths": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "precondition": {
+ "updateTime": "1970-01-01T00:00:42Z"
+ },
+ "fieldPaths": [
+ {
+ "field": [
+ "a"
+ ]
+ }
+ ],
+ "jsonValues": [
+ "1"
+ ],
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "updateTime": "1970-01-01T00:00:42Z"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-prefix-1.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-prefix-1.json
new file mode 100644
index 000000000000..faad69d140bc
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-prefix-1.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: prefix #1",
+ "comment": "In the input data, one field cannot be a prefix of another.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a.b\": 1, \"a\": 2}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-prefix-2.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-prefix-2.json
new file mode 100644
index 000000000000..96545c134867
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-prefix-2.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: prefix #2",
+ "comment": "In the input data, one field cannot be a prefix of another.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"a.b\": 2}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-prefix-3.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-prefix-3.json
new file mode 100644
index 000000000000..95f7024966c7
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-prefix-3.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: prefix #3",
+ "comment": "In the input data, one field cannot be a prefix of another, even if the values could in principle be combined.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": {\"b\": 1}, \"a.d\": 2}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-quoting.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-quoting.json
new file mode 100644
index 000000000000..10e3c35c22ca
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-quoting.json
@@ -0,0 +1,47 @@
+{
+ "tests": [
+ {
+ "description": "update: non-letter starting chars are quoted, except underscore",
+ "comment": "In a field path, any component beginning with a non-letter or underscore is quoted.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"_0.1.+2\": 1}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "_0": {
+ "mapValue": {
+ "fields": {
+ "1": {
+ "mapValue": {
+ "fields": {
+ "+2": {
+ "integerValue": "1"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "_0.`1`.`+2`"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-split-top-level.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-split-top-level.json
new file mode 100644
index 000000000000..eddf360d3731
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-split-top-level.json
@@ -0,0 +1,47 @@
+{
+ "tests": [
+ {
+ "description": "update: Split on dots for top-level keys only",
+ "comment": "The Update method splits only top-level keys at dots. Keys at\nother levels are taken literally.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"h.g\": {\"j.k\": 6}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "h": {
+ "mapValue": {
+ "fields": {
+ "g": {
+ "mapValue": {
+ "fields": {
+ "j.k": {
+ "integerValue": "6"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "h.g"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-split.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-split.json
new file mode 100644
index 000000000000..e18c78bf6e61
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-split.json
@@ -0,0 +1,47 @@
+{
+ "tests": [
+ {
+ "description": "update: split on dots",
+ "comment": "The Update method splits top-level keys at dots.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a.b.c\": 1}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "mapValue": {
+ "fields": {
+ "b": {
+ "mapValue": {
+ "fields": {
+ "c": {
+ "integerValue": "1"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a.b.c"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-alone.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-alone.json
new file mode 100644
index 000000000000..1a333f30cbb6
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-alone.json
@@ -0,0 +1,31 @@
+{
+ "tests": [
+ {
+ "description": "update: ServerTimestamp alone",
+ "comment": "If the only values in the input are ServerTimestamps, then no\nupdate operation should be produced.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": \"ServerTimestamp\"}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-dot.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-dot.json
new file mode 100644
index 000000000000..83422ca5271f
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-dot.json
@@ -0,0 +1,31 @@
+{
+ "tests": [
+ {
+ "description": "update: ServerTimestamp with dotted field",
+ "comment": "Like other uses of ServerTimestamp, the data is pruned and the\nfield does not appear in the update mask, because it is in the transform. In this case\nAn update operation is produced just to hold the precondition.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a.b.c\": \"ServerTimestamp\"}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a.b.c",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-multi.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-multi.json
new file mode 100644
index 000000000000..8105ec27f543
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-multi.json
@@ -0,0 +1,51 @@
+{
+ "tests": [
+ {
+ "description": "update: multiple ServerTimestamp fields",
+ "comment": "A document can have more than one ServerTimestamp field.\nSince all the ServerTimestamp fields are removed, the only field in the update is \"a\".",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": \"ServerTimestamp\", \"c\": {\"d\": \"ServerTimestamp\"}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "c"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "setToServerValue": "REQUEST_TIME"
+ },
+ {
+ "fieldPath": "c.d",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-nested.json
new file mode 100644
index 000000000000..5a8e73237c34
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-nested.json
@@ -0,0 +1,47 @@
+{
+ "tests": [
+ {
+ "description": "update: nested ServerTimestamp field",
+ "comment": "A ServerTimestamp value can occur at any depth. In this case,\nthe transform applies to the field path \"b.c\". Since \"c\" is removed from the update,\n\"b\" becomes empty, so it is also removed from the update.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": {\"c\": \"ServerTimestamp\"}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a",
+ "b"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b.c",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-noarray-nested.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-noarray-nested.json
new file mode 100644
index 000000000000..9f94501aa7fb
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-noarray-nested.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: ServerTimestamp cannot be anywhere inside an array value",
+ "comment": "There cannot be an array value anywhere on the path from the document\nroot to the ServerTimestamp sentinel. Firestore transforms don't support array indexing.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, {\"b\": \"ServerTimestamp\"}]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-noarray.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-noarray.json
new file mode 100644
index 000000000000..02615bd3ceb2
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-noarray.json
@@ -0,0 +1,13 @@
+{
+ "tests": [
+ {
+ "description": "update: ServerTimestamp cannot be in an array value",
+ "comment": "The ServerTimestamp sentinel must be the value of a field. Firestore\ntransforms don't support array indexing.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": [1, 2, \"ServerTimestamp\"]}",
+ "isError": true
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-with-empty-map.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-with-empty-map.json
new file mode 100644
index 000000000000..abeceb03ea8e
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st-with-empty-map.json
@@ -0,0 +1,54 @@
+{
+ "tests": [
+ {
+ "description": "update: ServerTimestamp beside an empty map",
+ "comment": "When a ServerTimestamp and a map both reside inside a map, the\nServerTimestamp should be stripped out but the empty map should remain.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": {\"b\": {}, \"c\": \"ServerTimestamp\"}}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "mapValue": {
+ "fields": {
+ "b": {
+ "mapValue": {
+ "fields": {}
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "a.c",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st.json
new file mode 100644
index 000000000000..6249d8bda90d
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-st.json
@@ -0,0 +1,46 @@
+{
+ "tests": [
+ {
+ "description": "update: ServerTimestamp with data",
+ "comment": "A key with the special ServerTimestamp sentinel is removed from\nthe data in the update operation. Instead it appears in a separate Transform operation.\nNote that in these tests, the string \"ServerTimestamp\" should be replaced with the\nspecial ServerTimestamp value.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "jsonData": "{\"a\": 1, \"b\": \"ServerTimestamp\"}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "exists": true
+ }
+ },
+ {
+ "transform": {
+ "document": "projects/projectID/databases/(default)/documents/C/d",
+ "fieldTransforms": [
+ {
+ "fieldPath": "b",
+ "setToServerValue": "REQUEST_TIME"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-uptime.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-uptime.json
new file mode 100644
index 000000000000..9210a2cf0328
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/firestore/v1/update-uptime.json
@@ -0,0 +1,38 @@
+{
+ "tests": [
+ {
+ "description": "update: last-update-time precondition",
+ "comment": "The Update call supports a last-update-time precondition.",
+ "update": {
+ "docRefPath": "projects/projectID/databases/(default)/documents/C/d",
+ "precondition": {
+ "updateTime": "1970-01-01T00:00:42Z"
+ },
+ "jsonData": "{\"a\": 1}",
+ "request": {
+ "database": "projects/projectID/databases/(default)",
+ "writes": [
+ {
+ "update": {
+ "name": "projects/projectID/databases/(default)/documents/C/d",
+ "fields": {
+ "a": {
+ "integerValue": "1"
+ }
+ }
+ },
+ "updateMask": {
+ "fieldPaths": [
+ "a"
+ ]
+ },
+ "currentDocument": {
+ "updateTime": "1970-01-01T00:00:42Z"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/test/java/com/google/cloud/conformance/ConformanceTestLocatorTest.java b/google-cloud-testing/google-cloud-conformance-tests/src/test/java/com/google/cloud/conformance/ConformanceTestLocatorTest.java
new file mode 100644
index 000000000000..d9bc997a1139
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/test/java/com/google/cloud/conformance/ConformanceTestLocatorTest.java
@@ -0,0 +1,115 @@
+/*
+ * Copyright 2019 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.
+ */
+
+package com.google.cloud.conformance;
+
+import static com.google.cloud.conformance.ConformanceTestLocator.newMatchPattern;
+import static com.google.common.collect.Lists.newArrayList;
+import static com.google.common.collect.Sets.newHashSet;
+import static com.google.common.truth.Truth.assertThat;
+import static org.junit.Assert.assertEquals;
+
+import com.google.cloud.conformance.ConformanceTestLocator.MatchPattern;
+import com.google.common.base.Joiner;
+import java.io.IOException;
+import java.net.URISyntaxException;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Set;
+import org.junit.Test;
+
+public class ConformanceTestLocatorTest {
+
+ @Test
+ public void load_all__org_junit_validator() throws IOException, URISyntaxException {
+ doTest(newMatchPattern("org/junit/validator", ".class"), ALL_RESOURCES_ORG_JUNIT_VALIDATOR);
+ }
+
+ @Test
+ public void load_all__load_across_dir_and_jars() throws IOException, URISyntaxException {
+ doTest(newMatchPattern("junit", ".gif"), ALL_RESOURCES_JUNIT_RUNNER_GIF);
+ }
+
+ @Test
+ public void newMatchPattern__validation_suffix__null() {
+ try {
+ newMatchPattern("something", null);
+ } catch (IllegalArgumentException e) {
+ assertThat(e).hasMessageThat().isEqualTo("suffix must be non-null and non-empty");
+ }
+ }
+
+ @Test
+ public void newMatchPattern__validation_suffix__empty() {
+ try {
+ newMatchPattern("something", "");
+ } catch (IllegalArgumentException e) {
+ assertThat(e).hasMessageThat().isEqualTo("suffix must be non-null and non-empty");
+ }
+ }
+
+ @Test
+ public void newMatchPattern__validation_baseResourcePath__null() {
+ try {
+ newMatchPattern(null, "*.class");
+ } catch (IllegalArgumentException e) {
+ assertThat(e).hasMessageThat().isEqualTo("baseResourcePath must be non-null");
+ }
+ }
+
+ @Test
+ public void newMatchPattern__ensure_no_leading_slash() {
+ final MatchPattern matchPattern = newMatchPattern("/something", ".class");
+ assertThat(matchPattern.getBaseResourcePath()).isEqualTo("something");
+ }
+
+ private void doTest(final MatchPattern mp, Collection expectedResources)
+ throws IOException, URISyntaxException {
+ final List expected = newArrayList(expectedResources);
+
+ final List actual = ConformanceTestLocator.findAllResourcePaths(mp);
+
+ Collections.sort(expected);
+ Collections.sort(actual);
+
+ final Joiner joiner = Joiner.on("\n");
+ final String expectedS = joiner.join(expected);
+ final String actualS = joiner.join(actual);
+ assertEquals(expectedS, actualS);
+ }
+
+ private static final Set ALL_RESOURCES_ORG_JUNIT_VALIDATOR =
+ newHashSet(
+ "org/junit/validator/AnnotationsValidator.class",
+ "org/junit/validator/AnnotationsValidator$1.class",
+ "org/junit/validator/AnnotationsValidator$AnnotatableValidator.class",
+ "org/junit/validator/AnnotationsValidator$ClassValidator.class",
+ "org/junit/validator/AnnotationsValidator$FieldValidator.class",
+ "org/junit/validator/AnnotationsValidator$MethodValidator.class",
+ "org/junit/validator/AnnotationValidator.class",
+ "org/junit/validator/AnnotationValidatorFactory.class",
+ "org/junit/validator/PublicClassValidator.class",
+ "org/junit/validator/TestClassValidator.class",
+ "org/junit/validator/ValidateWith.class");
+
+ private static final Set ALL_RESOURCES_JUNIT_RUNNER_GIF =
+ newHashSet(
+ "junit/runner/smalllogo.gif", // in junit:junit:4.12
+ "junit/runner/logo.gif", // in junit:junit:4.12
+ "junit/runner/next-2019-hashtag.gif" // in ../src/test/resources
+ );
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/test/resources/junit/runner/next-2019-hashtag.gif b/google-cloud-testing/google-cloud-conformance-tests/src/test/resources/junit/runner/next-2019-hashtag.gif
new file mode 100644
index 000000000000..8c7f70b439a9
Binary files /dev/null and b/google-cloud-testing/google-cloud-conformance-tests/src/test/resources/junit/runner/next-2019-hashtag.gif differ
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/test/resources/junit/runner/next-2019-hashtag_readme.md b/google-cloud-testing/google-cloud-conformance-tests/src/test/resources/junit/runner/next-2019-hashtag_readme.md
new file mode 100644
index 000000000000..eb34c75d11c1
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/test/resources/junit/runner/next-2019-hashtag_readme.md
@@ -0,0 +1,7 @@
+The resource `junit/runner/next-2019-hashtag.gif` is a resource used in the tests of
+`ConformanceTestLoader`. It is specifically defined here in `test/resources` to verify that
+all resources matching the pattern `junit/runner/*.gif` are returned from multiple classpath
+elements.
+
+Found on: https://events.google.com/io/ (2019-06-05 1555 EDT)
+Downloaded url: https://storage.googleapis.com/io-19-assets/images/global/hashtag.gif
diff --git a/google-cloud-testing/pom.xml b/google-cloud-testing/pom.xml
index 817178c5c6c6..1e4e0745b635 100644
--- a/google-cloud-testing/pom.xml
+++ b/google-cloud-testing/pom.xml
@@ -26,6 +26,7 @@
google-cloud-managedtest
google-cloud-gcloud-maven-plugin
google-cloud-bigtable-emulator
+ google-cloud-conformance-tests