diff --git a/google-api-grpc/grpc-google-cloud-firestore-admin-v1/pom.xml b/google-api-grpc/grpc-google-cloud-firestore-admin-v1/pom.xml
new file mode 100644
index 000000000000..cc078bb90bd8
--- /dev/null
+++ b/google-api-grpc/grpc-google-cloud-firestore-admin-v1/pom.xml
@@ -0,0 +1,31 @@
+
+ * Operations are created by service `FirestoreAdmin`, but are accessed via + * service `google.longrunning.Operations`. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/firestore/admin/v1/firestore_admin.proto") +public final class FirestoreAdminGrpc { + + private FirestoreAdminGrpc() {} + + public static final String SERVICE_NAME = "google.firestore.admin.v1.FirestoreAdmin"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateIndexMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.CreateIndexRequest, com.google.longrunning.Operation> + METHOD_CREATE_INDEX = getCreateIndexMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.CreateIndexRequest, com.google.longrunning.Operation> + getCreateIndexMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.CreateIndexRequest, com.google.longrunning.Operation> + getCreateIndexMethod() { + return getCreateIndexMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.CreateIndexRequest, com.google.longrunning.Operation> + getCreateIndexMethodHelper() { + io.grpc.MethodDescriptor< + com.google.firestore.admin.v1.CreateIndexRequest, com.google.longrunning.Operation> + getCreateIndexMethod; + if ((getCreateIndexMethod = FirestoreAdminGrpc.getCreateIndexMethod) == null) { + synchronized (FirestoreAdminGrpc.class) { + if ((getCreateIndexMethod = FirestoreAdminGrpc.getCreateIndexMethod) == null) { + FirestoreAdminGrpc.getCreateIndexMethod = + getCreateIndexMethod = + io.grpc.MethodDescriptor + .
+ * Operations are created by service `FirestoreAdmin`, but are accessed via + * service `google.longrunning.Operations`. + *+ */ + public abstract static class FirestoreAdminImplBase implements io.grpc.BindableService { + + /** + * + * + *
+ * Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation] + * which may be used to track the status of the creation. The metadata for + * the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata]. + *+ */ + public void createIndex( + com.google.firestore.admin.v1.CreateIndexRequest request, + io.grpc.stub.StreamObserver
+ * Lists composite indexes. + *+ */ + public void listIndexes( + com.google.firestore.admin.v1.ListIndexesRequest request, + io.grpc.stub.StreamObserver
+ * Gets a composite index. + *+ */ + public void getIndex( + com.google.firestore.admin.v1.GetIndexRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a composite index. + *+ */ + public void deleteIndex( + com.google.firestore.admin.v1.DeleteIndexRequest request, + io.grpc.stub.StreamObserver
+ * Gets the metadata and configuration for a Field. + *+ */ + public void getField( + com.google.firestore.admin.v1.GetFieldRequest request, + io.grpc.stub.StreamObserver
+ * Updates a field configuration. Currently, field updates apply only to + * single field index configuration. However, calls to + * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid + * changing any configuration that the caller isn't aware of. The field mask + * should be specified as: `{ paths: "index_config" }`. + * This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to + * track the status of the field update. The metadata for + * the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata]. + * To configure the default field settings for the database, use + * the special `Field` with resource name: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`. + *+ */ + public void updateField( + com.google.firestore.admin.v1.UpdateFieldRequest request, + io.grpc.stub.StreamObserver
+ * Lists the field configuration and metadata for this database. + * Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + * that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + * `indexConfig.usesAncestorConfig:false`. + *+ */ + public void listFields( + com.google.firestore.admin.v1.ListFieldsRequest request, + io.grpc.stub.StreamObserver
+ * Exports a copy of all or a subset of documents from Google Cloud Firestore + * to another storage system, such as Google Cloud Storage. Recent updates to + * documents may not be reflected in the export. The export occurs in the + * background and its progress can be monitored and managed via the + * Operation resource that is created. The output of an export may only be + * used once the associated operation is done. If an export operation is + * cancelled before completion it may leave partial data behind in Google + * Cloud Storage. + *+ */ + public void exportDocuments( + com.google.firestore.admin.v1.ExportDocumentsRequest request, + io.grpc.stub.StreamObserver
+ * Imports documents into Google Cloud Firestore. Existing documents with the + * same name are overwritten. The import occurs in the background and its + * progress can be monitored and managed via the Operation resource that is + * created. If an ImportDocuments operation is cancelled, it is possible + * that a subset of the data has already been imported to Cloud Firestore. + *+ */ + public void importDocuments( + com.google.firestore.admin.v1.ImportDocumentsRequest request, + io.grpc.stub.StreamObserver
+ * Operations are created by service `FirestoreAdmin`, but are accessed via + * service `google.longrunning.Operations`. + *+ */ + public static final class FirestoreAdminStub + extends io.grpc.stub.AbstractStub
+ * Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation] + * which may be used to track the status of the creation. The metadata for + * the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata]. + *+ */ + public void createIndex( + com.google.firestore.admin.v1.CreateIndexRequest request, + io.grpc.stub.StreamObserver
+ * Lists composite indexes. + *+ */ + public void listIndexes( + com.google.firestore.admin.v1.ListIndexesRequest request, + io.grpc.stub.StreamObserver
+ * Gets a composite index. + *+ */ + public void getIndex( + com.google.firestore.admin.v1.GetIndexRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a composite index. + *+ */ + public void deleteIndex( + com.google.firestore.admin.v1.DeleteIndexRequest request, + io.grpc.stub.StreamObserver
+ * Gets the metadata and configuration for a Field. + *+ */ + public void getField( + com.google.firestore.admin.v1.GetFieldRequest request, + io.grpc.stub.StreamObserver
+ * Updates a field configuration. Currently, field updates apply only to + * single field index configuration. However, calls to + * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid + * changing any configuration that the caller isn't aware of. The field mask + * should be specified as: `{ paths: "index_config" }`. + * This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to + * track the status of the field update. The metadata for + * the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata]. + * To configure the default field settings for the database, use + * the special `Field` with resource name: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`. + *+ */ + public void updateField( + com.google.firestore.admin.v1.UpdateFieldRequest request, + io.grpc.stub.StreamObserver
+ * Lists the field configuration and metadata for this database. + * Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + * that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + * `indexConfig.usesAncestorConfig:false`. + *+ */ + public void listFields( + com.google.firestore.admin.v1.ListFieldsRequest request, + io.grpc.stub.StreamObserver
+ * Exports a copy of all or a subset of documents from Google Cloud Firestore + * to another storage system, such as Google Cloud Storage. Recent updates to + * documents may not be reflected in the export. The export occurs in the + * background and its progress can be monitored and managed via the + * Operation resource that is created. The output of an export may only be + * used once the associated operation is done. If an export operation is + * cancelled before completion it may leave partial data behind in Google + * Cloud Storage. + *+ */ + public void exportDocuments( + com.google.firestore.admin.v1.ExportDocumentsRequest request, + io.grpc.stub.StreamObserver
+ * Imports documents into Google Cloud Firestore. Existing documents with the + * same name are overwritten. The import occurs in the background and its + * progress can be monitored and managed via the Operation resource that is + * created. If an ImportDocuments operation is cancelled, it is possible + * that a subset of the data has already been imported to Cloud Firestore. + *+ */ + public void importDocuments( + com.google.firestore.admin.v1.ImportDocumentsRequest request, + io.grpc.stub.StreamObserver
+ * Operations are created by service `FirestoreAdmin`, but are accessed via + * service `google.longrunning.Operations`. + *+ */ + public static final class FirestoreAdminBlockingStub + extends io.grpc.stub.AbstractStub
+ * Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation] + * which may be used to track the status of the creation. The metadata for + * the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata]. + *+ */ + public com.google.longrunning.Operation createIndex( + com.google.firestore.admin.v1.CreateIndexRequest request) { + return blockingUnaryCall( + getChannel(), getCreateIndexMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Lists composite indexes. + *+ */ + public com.google.firestore.admin.v1.ListIndexesResponse listIndexes( + com.google.firestore.admin.v1.ListIndexesRequest request) { + return blockingUnaryCall( + getChannel(), getListIndexesMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets a composite index. + *+ */ + public com.google.firestore.admin.v1.Index getIndex( + com.google.firestore.admin.v1.GetIndexRequest request) { + return blockingUnaryCall(getChannel(), getGetIndexMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a composite index. + *+ */ + public com.google.protobuf.Empty deleteIndex( + com.google.firestore.admin.v1.DeleteIndexRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteIndexMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets the metadata and configuration for a Field. + *+ */ + public com.google.firestore.admin.v1.Field getField( + com.google.firestore.admin.v1.GetFieldRequest request) { + return blockingUnaryCall(getChannel(), getGetFieldMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Updates a field configuration. Currently, field updates apply only to + * single field index configuration. However, calls to + * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid + * changing any configuration that the caller isn't aware of. The field mask + * should be specified as: `{ paths: "index_config" }`. + * This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to + * track the status of the field update. The metadata for + * the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata]. + * To configure the default field settings for the database, use + * the special `Field` with resource name: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`. + *+ */ + public com.google.longrunning.Operation updateField( + com.google.firestore.admin.v1.UpdateFieldRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateFieldMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Lists the field configuration and metadata for this database. + * Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + * that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + * `indexConfig.usesAncestorConfig:false`. + *+ */ + public com.google.firestore.admin.v1.ListFieldsResponse listFields( + com.google.firestore.admin.v1.ListFieldsRequest request) { + return blockingUnaryCall( + getChannel(), getListFieldsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Exports a copy of all or a subset of documents from Google Cloud Firestore + * to another storage system, such as Google Cloud Storage. Recent updates to + * documents may not be reflected in the export. The export occurs in the + * background and its progress can be monitored and managed via the + * Operation resource that is created. The output of an export may only be + * used once the associated operation is done. If an export operation is + * cancelled before completion it may leave partial data behind in Google + * Cloud Storage. + *+ */ + public com.google.longrunning.Operation exportDocuments( + com.google.firestore.admin.v1.ExportDocumentsRequest request) { + return blockingUnaryCall( + getChannel(), getExportDocumentsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Imports documents into Google Cloud Firestore. Existing documents with the + * same name are overwritten. The import occurs in the background and its + * progress can be monitored and managed via the Operation resource that is + * created. If an ImportDocuments operation is cancelled, it is possible + * that a subset of the data has already been imported to Cloud Firestore. + *+ */ + public com.google.longrunning.Operation importDocuments( + com.google.firestore.admin.v1.ImportDocumentsRequest request) { + return blockingUnaryCall( + getChannel(), getImportDocumentsMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+ * Operations are created by service `FirestoreAdmin`, but are accessed via + * service `google.longrunning.Operations`. + *+ */ + public static final class FirestoreAdminFutureStub + extends io.grpc.stub.AbstractStub
+ * Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation] + * which may be used to track the status of the creation. The metadata for + * the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata]. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Lists composite indexes. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.firestore.admin.v1.ListIndexesResponse> + listIndexes(com.google.firestore.admin.v1.ListIndexesRequest request) { + return futureUnaryCall( + getChannel().newCall(getListIndexesMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets a composite index. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a composite index. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Gets the metadata and configuration for a Field. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates a field configuration. Currently, field updates apply only to + * single field index configuration. However, calls to + * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid + * changing any configuration that the caller isn't aware of. The field mask + * should be specified as: `{ paths: "index_config" }`. + * This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to + * track the status of the field update. The metadata for + * the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata]. + * To configure the default field settings for the database, use + * the special `Field` with resource name: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Lists the field configuration and metadata for this database. + * Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + * that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + * `indexConfig.usesAncestorConfig:false`. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.firestore.admin.v1.ListFieldsResponse> + listFields(com.google.firestore.admin.v1.ListFieldsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListFieldsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+ * Exports a copy of all or a subset of documents from Google Cloud Firestore + * to another storage system, such as Google Cloud Storage. Recent updates to + * documents may not be reflected in the export. The export occurs in the + * background and its progress can be monitored and managed via the + * Operation resource that is created. The output of an export may only be + * used once the associated operation is done. If an export operation is + * cancelled before completion it may leave partial data behind in Google + * Cloud Storage. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Imports documents into Google Cloud Firestore. Existing documents with the + * same name are overwritten. The import occurs in the background and its + * progress can be monitored and managed via the Operation resource that is + * created. If an ImportDocuments operation is cancelled, it is possible + * that a subset of the data has already been imported to Cloud Firestore. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * The request for [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.CreateIndexRequest} + */ +public final class CreateIndexRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.CreateIndexRequest) + CreateIndexRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateIndexRequest.newBuilder() to construct. + private CreateIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CreateIndexRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateIndexRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.firestore.admin.v1.Index.Builder subBuilder = null; + if (index_ != null) { + subBuilder = index_.toBuilder(); + } + index_ = + input.readMessage( + com.google.firestore.admin.v1.Index.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(index_); + index_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_CreateIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.CreateIndexRequest.class, + com.google.firestore.admin.v1.CreateIndexRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+ * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ 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();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INDEX_FIELD_NUMBER = 2;
+ private com.google.firestore.admin.v1.Index index_;
+ /**
+ *
+ *
+ * + * The composite index to create. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public boolean hasIndex() {
+ return index_ != null;
+ }
+ /**
+ *
+ *
+ * + * The composite index to create. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public com.google.firestore.admin.v1.Index getIndex() {
+ return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_;
+ }
+ /**
+ *
+ *
+ * + * The composite index to create. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public com.google.firestore.admin.v1.IndexOrBuilder getIndexOrBuilder() {
+ return getIndex();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (index_ != null) {
+ output.writeMessage(2, getIndex());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (index_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndex());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.CreateIndexRequest)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.CreateIndexRequest other =
+ (com.google.firestore.admin.v1.CreateIndexRequest) obj;
+
+ boolean result = true;
+ result = result && getParent().equals(other.getParent());
+ result = result && (hasIndex() == other.hasIndex());
+ if (hasIndex()) {
+ result = result && getIndex().equals(other.getIndex());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (hasIndex()) {
+ hash = (37 * hash) + INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + getIndex().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.CreateIndexRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.CreateIndexRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.CreateIndexRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.CreateIndexRequest 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.firestore.admin.v1.CreateIndexRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.CreateIndexRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.CreateIndexRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.CreateIndexRequest 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.firestore.admin.v1.CreateIndexRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.CreateIndexRequest 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.firestore.admin.v1.CreateIndexRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.CreateIndexRequest 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.CreateIndexRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The request for [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.CreateIndexRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.firestore.admin.v1.Index index_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Index,
+ com.google.firestore.admin.v1.Index.Builder,
+ com.google.firestore.admin.v1.IndexOrBuilder>
+ indexBuilder_;
+ /**
+ *
+ *
+ * + * The composite index to create. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public boolean hasIndex() {
+ return indexBuilder_ != null || index_ != null;
+ }
+ /**
+ *
+ *
+ * + * The composite index to create. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public com.google.firestore.admin.v1.Index getIndex() {
+ if (indexBuilder_ == null) {
+ return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_;
+ } else {
+ return indexBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The composite index to create. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public Builder setIndex(com.google.firestore.admin.v1.Index value) {
+ if (indexBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ index_ = value;
+ onChanged();
+ } else {
+ indexBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The composite index to create. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public Builder setIndex(com.google.firestore.admin.v1.Index.Builder builderForValue) {
+ if (indexBuilder_ == null) {
+ index_ = builderForValue.build();
+ onChanged();
+ } else {
+ indexBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The composite index to create. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public Builder mergeIndex(com.google.firestore.admin.v1.Index value) {
+ if (indexBuilder_ == null) {
+ if (index_ != null) {
+ index_ =
+ com.google.firestore.admin.v1.Index.newBuilder(index_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ index_ = value;
+ }
+ onChanged();
+ } else {
+ indexBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The composite index to create. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public Builder clearIndex() {
+ if (indexBuilder_ == null) {
+ index_ = null;
+ onChanged();
+ } else {
+ index_ = null;
+ indexBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The composite index to create. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public com.google.firestore.admin.v1.Index.Builder getIndexBuilder() {
+
+ onChanged();
+ return getIndexFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The composite index to create. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public com.google.firestore.admin.v1.IndexOrBuilder getIndexOrBuilder() {
+ if (indexBuilder_ != null) {
+ return indexBuilder_.getMessageOrBuilder();
+ } else {
+ return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The composite index to create. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Index,
+ com.google.firestore.admin.v1.Index.Builder,
+ com.google.firestore.admin.v1.IndexOrBuilder>
+ getIndexFieldBuilder() {
+ if (indexBuilder_ == null) {
+ indexBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Index,
+ com.google.firestore.admin.v1.Index.Builder,
+ com.google.firestore.admin.v1.IndexOrBuilder>(
+ getIndex(), getParentForChildren(), isClean());
+ index_ = null;
+ }
+ return indexBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.CreateIndexRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.CreateIndexRequest)
+ private static final com.google.firestore.admin.v1.CreateIndexRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.CreateIndexRequest();
+ }
+
+ public static com.google.firestore.admin.v1.CreateIndexRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * The composite index to create. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ boolean hasIndex();
+ /**
+ *
+ *
+ * + * The composite index to create. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ com.google.firestore.admin.v1.Index getIndex();
+ /**
+ *
+ *
+ * + * The composite index to create. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ com.google.firestore.admin.v1.IndexOrBuilder getIndexOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseName.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseName.java
new file mode 100644
index 000000000000..ba472b0b6ce4
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseName.java
@@ -0,0 +1,180 @@
+/*
+ * Copyright 2018 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.firestore.admin.v1;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class DatabaseName implements ResourceName {
+
+ private static final PathTemplate PATH_TEMPLATE =
+ PathTemplate.createWithoutUrlEncoding("projects/{project}/databases/{database}");
+
+ private volatile Map+ * The request for [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1.FirestoreAdmin.DeleteIndex]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.DeleteIndexRequest} + */ +public final class DeleteIndexRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.DeleteIndexRequest) + DeleteIndexRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteIndexRequest.newBuilder() to construct. + private DeleteIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DeleteIndexRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteIndexRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_DeleteIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_DeleteIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.DeleteIndexRequest.class, + com.google.firestore.admin.v1.DeleteIndexRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.DeleteIndexRequest)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.DeleteIndexRequest other =
+ (com.google.firestore.admin.v1.DeleteIndexRequest) obj;
+
+ boolean result = true;
+ result = result && getName().equals(other.getName());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.DeleteIndexRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.DeleteIndexRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.DeleteIndexRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.DeleteIndexRequest 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.firestore.admin.v1.DeleteIndexRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.DeleteIndexRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.DeleteIndexRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.DeleteIndexRequest 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.firestore.admin.v1.DeleteIndexRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.DeleteIndexRequest 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.firestore.admin.v1.DeleteIndexRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.DeleteIndexRequest 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.DeleteIndexRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The request for [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1.FirestoreAdmin.DeleteIndex]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.DeleteIndexRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.DeleteIndexRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.DeleteIndexRequest)
+ private static final com.google.firestore.admin.v1.DeleteIndexRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.DeleteIndexRequest();
+ }
+
+ public static com.google.firestore.admin.v1.DeleteIndexRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadata.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadata.java
new file mode 100644
index 000000000000..7ddc080e3095
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadata.java
@@ -0,0 +1,2040 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/operation.proto
+
+package com.google.firestore.admin.v1;
+
+/**
+ *
+ *
+ * + * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from + * [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsMetadata} + */ +public final class ExportDocumentsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ExportDocumentsMetadata) + ExportDocumentsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportDocumentsMetadata.newBuilder() to construct. + private ExportDocumentsMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ExportDocumentsMetadata() { + operationState_ = 0; + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + outputUriPrefix_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportDocumentsMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + int rawValue = input.readEnum(); + + operationState_ = rawValue; + break; + } + case 34: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressDocuments_ != null) { + subBuilder = progressDocuments_.toBuilder(); + } + progressDocuments_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressDocuments_); + progressDocuments_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressBytes_ != null) { + subBuilder = progressBytes_.toBuilder(); + } + progressBytes_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressBytes_); + progressBytes_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + collectionIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + collectionIds_.add(s); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + outputUriPrefix_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + collectionIds_ = collectionIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ExportDocumentsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ExportDocumentsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ExportDocumentsMetadata.class, + com.google.firestore.admin.v1.ExportDocumentsMetadata.Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+ * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public boolean hasStartTime() {
+ return startTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.Timestamp getStartTime() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ return getStartTime();
+ }
+
+ public static final int END_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp endTime_;
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public boolean hasEndTime() {
+ return endTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp getEndTime() {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ return getEndTime();
+ }
+
+ public static final int OPERATION_STATE_FIELD_NUMBER = 3;
+ private int operationState_;
+ /**
+ *
+ *
+ * + * The state of the export operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ public int getOperationStateValue() {
+ return operationState_;
+ }
+ /**
+ *
+ *
+ * + * The state of the export operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ public com.google.firestore.admin.v1.OperationState getOperationState() {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.OperationState result =
+ com.google.firestore.admin.v1.OperationState.valueOf(operationState_);
+ return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result;
+ }
+
+ public static final int PROGRESS_DOCUMENTS_FIELD_NUMBER = 4;
+ private com.google.firestore.admin.v1.Progress progressDocuments_;
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public boolean hasProgressDocuments() {
+ return progressDocuments_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressDocuments() {
+ return progressDocuments_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressDocuments_;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() {
+ return getProgressDocuments();
+ }
+
+ public static final int PROGRESS_BYTES_FIELD_NUMBER = 5;
+ private com.google.firestore.admin.v1.Progress progressBytes_;
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public boolean hasProgressBytes() {
+ return progressBytes_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressBytes() {
+ return progressBytes_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressBytes_;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() {
+ return getProgressBytes();
+ }
+
+ public static final int COLLECTION_IDS_FIELD_NUMBER = 6;
+ private com.google.protobuf.LazyStringList collectionIds_;
+ /**
+ *
+ *
+ * + * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public com.google.protobuf.ProtocolStringList getCollectionIdsList() {
+ return collectionIds_;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public int getCollectionIdsCount() {
+ return collectionIds_.size();
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public java.lang.String getCollectionIds(int index) {
+ return collectionIds_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public com.google.protobuf.ByteString getCollectionIdsBytes(int index) {
+ return collectionIds_.getByteString(index);
+ }
+
+ public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 7;
+ private volatile java.lang.Object outputUriPrefix_;
+ /**
+ *
+ *
+ * + * Where the entities are being exported to. + *+ * + *
string output_uri_prefix = 7;
+ */
+ public java.lang.String getOutputUriPrefix() {
+ java.lang.Object ref = outputUriPrefix_;
+ 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();
+ outputUriPrefix_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Where the entities are being exported to. + *+ * + *
string output_uri_prefix = 7;
+ */
+ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
+ java.lang.Object ref = outputUriPrefix_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputUriPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (startTime_ != null) {
+ output.writeMessage(1, getStartTime());
+ }
+ if (endTime_ != null) {
+ output.writeMessage(2, getEndTime());
+ }
+ if (operationState_
+ != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(3, operationState_);
+ }
+ if (progressDocuments_ != null) {
+ output.writeMessage(4, getProgressDocuments());
+ }
+ if (progressBytes_ != null) {
+ output.writeMessage(5, getProgressBytes());
+ }
+ for (int i = 0; i < collectionIds_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, collectionIds_.getRaw(i));
+ }
+ if (!getOutputUriPrefixBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, outputUriPrefix_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (startTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
+ }
+ if (endTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
+ }
+ if (operationState_
+ != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, operationState_);
+ }
+ if (progressDocuments_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProgressDocuments());
+ }
+ if (progressBytes_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProgressBytes());
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < collectionIds_.size(); i++) {
+ dataSize += computeStringSizeNoTag(collectionIds_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getCollectionIdsList().size();
+ }
+ if (!getOutputUriPrefixBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, outputUriPrefix_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.ExportDocumentsMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.ExportDocumentsMetadata other =
+ (com.google.firestore.admin.v1.ExportDocumentsMetadata) obj;
+
+ boolean result = true;
+ result = result && (hasStartTime() == other.hasStartTime());
+ if (hasStartTime()) {
+ result = result && getStartTime().equals(other.getStartTime());
+ }
+ result = result && (hasEndTime() == other.hasEndTime());
+ if (hasEndTime()) {
+ result = result && getEndTime().equals(other.getEndTime());
+ }
+ result = result && operationState_ == other.operationState_;
+ result = result && (hasProgressDocuments() == other.hasProgressDocuments());
+ if (hasProgressDocuments()) {
+ result = result && getProgressDocuments().equals(other.getProgressDocuments());
+ }
+ result = result && (hasProgressBytes() == other.hasProgressBytes());
+ if (hasProgressBytes()) {
+ result = result && getProgressBytes().equals(other.getProgressBytes());
+ }
+ result = result && getCollectionIdsList().equals(other.getCollectionIdsList());
+ result = result && getOutputUriPrefix().equals(other.getOutputUriPrefix());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStartTime()) {
+ hash = (37 * hash) + START_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getStartTime().hashCode();
+ }
+ if (hasEndTime()) {
+ hash = (37 * hash) + END_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getEndTime().hashCode();
+ }
+ hash = (37 * hash) + OPERATION_STATE_FIELD_NUMBER;
+ hash = (53 * hash) + operationState_;
+ if (hasProgressDocuments()) {
+ hash = (37 * hash) + PROGRESS_DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getProgressDocuments().hashCode();
+ }
+ if (hasProgressBytes()) {
+ hash = (37 * hash) + PROGRESS_BYTES_FIELD_NUMBER;
+ hash = (53 * hash) + getProgressBytes().hashCode();
+ }
+ if (getCollectionIdsCount() > 0) {
+ hash = (37 * hash) + COLLECTION_IDS_FIELD_NUMBER;
+ hash = (53 * hash) + getCollectionIdsList().hashCode();
+ }
+ hash = (37 * hash) + OUTPUT_URI_PREFIX_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputUriPrefix().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsMetadata parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsMetadata 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.firestore.admin.v1.ExportDocumentsMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsMetadata 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.firestore.admin.v1.ExportDocumentsMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsMetadata 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.firestore.admin.v1.ExportDocumentsMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsMetadata 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.firestore.admin.v1.ExportDocumentsMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from + * [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public boolean hasStartTime() {
+ return startTimeBuilder_ != null || startTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.Timestamp getStartTime() {
+ if (startTimeBuilder_ == null) {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ } else {
+ return startTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ startTime_ = value;
+ onChanged();
+ } else {
+ startTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (startTimeBuilder_ == null) {
+ startTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ startTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (startTime_ != null) {
+ startTime_ =
+ com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
+ } else {
+ startTime_ = value;
+ }
+ onChanged();
+ } else {
+ startTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder clearStartTime() {
+ if (startTimeBuilder_ == null) {
+ startTime_ = null;
+ onChanged();
+ } else {
+ startTime_ = null;
+ startTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
+
+ onChanged();
+ return getStartTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ if (startTimeBuilder_ != null) {
+ return startTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getStartTimeFieldBuilder() {
+ if (startTimeBuilder_ == null) {
+ startTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getStartTime(), getParentForChildren(), isClean());
+ startTime_ = null;
+ }
+ return startTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp endTime_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ endTimeBuilder_;
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public boolean hasEndTime() {
+ return endTimeBuilder_ != null || endTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp getEndTime() {
+ if (endTimeBuilder_ == null) {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ } else {
+ return endTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder setEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ endTime_ = value;
+ onChanged();
+ } else {
+ endTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (endTimeBuilder_ == null) {
+ endTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ endTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (endTime_ != null) {
+ endTime_ =
+ com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+ } else {
+ endTime_ = value;
+ }
+ onChanged();
+ } else {
+ endTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder clearEndTime() {
+ if (endTimeBuilder_ == null) {
+ endTime_ = null;
+ onChanged();
+ } else {
+ endTime_ = null;
+ endTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
+
+ onChanged();
+ return getEndTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ if (endTimeBuilder_ != null) {
+ return endTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getEndTimeFieldBuilder() {
+ if (endTimeBuilder_ == null) {
+ endTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getEndTime(), getParentForChildren(), isClean());
+ endTime_ = null;
+ }
+ return endTimeBuilder_;
+ }
+
+ private int operationState_ = 0;
+ /**
+ *
+ *
+ * + * The state of the export operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ public int getOperationStateValue() {
+ return operationState_;
+ }
+ /**
+ *
+ *
+ * + * The state of the export operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ public Builder setOperationStateValue(int value) {
+ operationState_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The state of the export operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ public com.google.firestore.admin.v1.OperationState getOperationState() {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.OperationState result =
+ com.google.firestore.admin.v1.OperationState.valueOf(operationState_);
+ return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * The state of the export operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ public Builder setOperationState(com.google.firestore.admin.v1.OperationState value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ operationState_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The state of the export operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ public Builder clearOperationState() {
+
+ operationState_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.firestore.admin.v1.Progress progressDocuments_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ progressDocumentsBuilder_;
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public boolean hasProgressDocuments() {
+ return progressDocumentsBuilder_ != null || progressDocuments_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressDocuments() {
+ if (progressDocumentsBuilder_ == null) {
+ return progressDocuments_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressDocuments_;
+ } else {
+ return progressDocumentsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public Builder setProgressDocuments(com.google.firestore.admin.v1.Progress value) {
+ if (progressDocumentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ progressDocuments_ = value;
+ onChanged();
+ } else {
+ progressDocumentsBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public Builder setProgressDocuments(
+ com.google.firestore.admin.v1.Progress.Builder builderForValue) {
+ if (progressDocumentsBuilder_ == null) {
+ progressDocuments_ = builderForValue.build();
+ onChanged();
+ } else {
+ progressDocumentsBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public Builder mergeProgressDocuments(com.google.firestore.admin.v1.Progress value) {
+ if (progressDocumentsBuilder_ == null) {
+ if (progressDocuments_ != null) {
+ progressDocuments_ =
+ com.google.firestore.admin.v1.Progress.newBuilder(progressDocuments_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ progressDocuments_ = value;
+ }
+ onChanged();
+ } else {
+ progressDocumentsBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public Builder clearProgressDocuments() {
+ if (progressDocumentsBuilder_ == null) {
+ progressDocuments_ = null;
+ onChanged();
+ } else {
+ progressDocuments_ = null;
+ progressDocumentsBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public com.google.firestore.admin.v1.Progress.Builder getProgressDocumentsBuilder() {
+
+ onChanged();
+ return getProgressDocumentsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() {
+ if (progressDocumentsBuilder_ != null) {
+ return progressDocumentsBuilder_.getMessageOrBuilder();
+ } else {
+ return progressDocuments_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressDocuments_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ getProgressDocumentsFieldBuilder() {
+ if (progressDocumentsBuilder_ == null) {
+ progressDocumentsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>(
+ getProgressDocuments(), getParentForChildren(), isClean());
+ progressDocuments_ = null;
+ }
+ return progressDocumentsBuilder_;
+ }
+
+ private com.google.firestore.admin.v1.Progress progressBytes_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ progressBytesBuilder_;
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public boolean hasProgressBytes() {
+ return progressBytesBuilder_ != null || progressBytes_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressBytes() {
+ if (progressBytesBuilder_ == null) {
+ return progressBytes_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressBytes_;
+ } else {
+ return progressBytesBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public Builder setProgressBytes(com.google.firestore.admin.v1.Progress value) {
+ if (progressBytesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ progressBytes_ = value;
+ onChanged();
+ } else {
+ progressBytesBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public Builder setProgressBytes(
+ com.google.firestore.admin.v1.Progress.Builder builderForValue) {
+ if (progressBytesBuilder_ == null) {
+ progressBytes_ = builderForValue.build();
+ onChanged();
+ } else {
+ progressBytesBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public Builder mergeProgressBytes(com.google.firestore.admin.v1.Progress value) {
+ if (progressBytesBuilder_ == null) {
+ if (progressBytes_ != null) {
+ progressBytes_ =
+ com.google.firestore.admin.v1.Progress.newBuilder(progressBytes_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ progressBytes_ = value;
+ }
+ onChanged();
+ } else {
+ progressBytesBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public Builder clearProgressBytes() {
+ if (progressBytesBuilder_ == null) {
+ progressBytes_ = null;
+ onChanged();
+ } else {
+ progressBytes_ = null;
+ progressBytesBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public com.google.firestore.admin.v1.Progress.Builder getProgressBytesBuilder() {
+
+ onChanged();
+ return getProgressBytesFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() {
+ if (progressBytesBuilder_ != null) {
+ return progressBytesBuilder_.getMessageOrBuilder();
+ } else {
+ return progressBytes_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressBytes_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ getProgressBytesFieldBuilder() {
+ if (progressBytesBuilder_ == null) {
+ progressBytesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>(
+ getProgressBytes(), getParentForChildren(), isClean());
+ progressBytes_ = null;
+ }
+ return progressBytesBuilder_;
+ }
+
+ private com.google.protobuf.LazyStringList collectionIds_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureCollectionIdsIsMutable() {
+ if (!((bitField0_ & 0x00000020) == 0x00000020)) {
+ collectionIds_ = new com.google.protobuf.LazyStringArrayList(collectionIds_);
+ bitField0_ |= 0x00000020;
+ }
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public com.google.protobuf.ProtocolStringList getCollectionIdsList() {
+ return collectionIds_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public int getCollectionIdsCount() {
+ return collectionIds_.size();
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public java.lang.String getCollectionIds(int index) {
+ return collectionIds_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public com.google.protobuf.ByteString getCollectionIdsBytes(int index) {
+ return collectionIds_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public Builder setCollectionIds(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCollectionIdsIsMutable();
+ collectionIds_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public Builder addCollectionIds(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCollectionIdsIsMutable();
+ collectionIds_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public Builder addAllCollectionIds(java.lang.Iterable+ * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public Builder clearCollectionIds() {
+ collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public Builder addCollectionIdsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureCollectionIdsIsMutable();
+ collectionIds_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object outputUriPrefix_ = "";
+ /**
+ *
+ *
+ * + * Where the entities are being exported to. + *+ * + *
string output_uri_prefix = 7;
+ */
+ public java.lang.String getOutputUriPrefix() {
+ java.lang.Object ref = outputUriPrefix_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ outputUriPrefix_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Where the entities are being exported to. + *+ * + *
string output_uri_prefix = 7;
+ */
+ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
+ java.lang.Object ref = outputUriPrefix_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputUriPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Where the entities are being exported to. + *+ * + *
string output_uri_prefix = 7;
+ */
+ public Builder setOutputUriPrefix(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ outputUriPrefix_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Where the entities are being exported to. + *+ * + *
string output_uri_prefix = 7;
+ */
+ public Builder clearOutputUriPrefix() {
+
+ outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Where the entities are being exported to. + *+ * + *
string output_uri_prefix = 7;
+ */
+ public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ outputUriPrefix_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.ExportDocumentsMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ExportDocumentsMetadata)
+ private static final com.google.firestore.admin.v1.ExportDocumentsMetadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ExportDocumentsMetadata();
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ boolean hasStartTime();
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ com.google.protobuf.Timestamp getStartTime();
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ boolean hasEndTime();
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ com.google.protobuf.Timestamp getEndTime();
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The state of the export operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ int getOperationStateValue();
+ /**
+ *
+ *
+ * + * The state of the export operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ com.google.firestore.admin.v1.OperationState getOperationState();
+
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ boolean hasProgressDocuments();
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ com.google.firestore.admin.v1.Progress getProgressDocuments();
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder();
+
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ boolean hasProgressBytes();
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ com.google.firestore.admin.v1.Progress getProgressBytes();
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder();
+
+ /**
+ *
+ *
+ * + * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ java.util.List+ * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ int getCollectionIdsCount();
+ /**
+ *
+ *
+ * + * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ java.lang.String getCollectionIds(int index);
+ /**
+ *
+ *
+ * + * Which collection ids are being exported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ com.google.protobuf.ByteString getCollectionIdsBytes(int index);
+
+ /**
+ *
+ *
+ * + * Where the entities are being exported to. + *+ * + *
string output_uri_prefix = 7;
+ */
+ java.lang.String getOutputUriPrefix();
+ /**
+ *
+ *
+ * + * Where the entities are being exported to. + *+ * + *
string output_uri_prefix = 7;
+ */
+ com.google.protobuf.ByteString getOutputUriPrefixBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequest.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequest.java
new file mode 100644
index 000000000000..a0e6235d075d
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequest.java
@@ -0,0 +1,1063 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/firestore_admin.proto
+
+package com.google.firestore.admin.v1;
+
+/**
+ *
+ *
+ * + * The request for [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsRequest} + */ +public final class ExportDocumentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ExportDocumentsRequest) + ExportDocumentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportDocumentsRequest.newBuilder() to construct. + private ExportDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ExportDocumentsRequest() { + name_ = ""; + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + outputUriPrefix_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportDocumentsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + collectionIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + collectionIds_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + outputUriPrefix_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + collectionIds_ = collectionIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ExportDocumentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ExportDocumentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ExportDocumentsRequest.class, + com.google.firestore.admin.v1.ExportDocumentsRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Database to export. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Database to export. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COLLECTION_IDS_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList collectionIds_;
+ /**
+ *
+ *
+ * + * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public com.google.protobuf.ProtocolStringList getCollectionIdsList() {
+ return collectionIds_;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public int getCollectionIdsCount() {
+ return collectionIds_.size();
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public java.lang.String getCollectionIds(int index) {
+ return collectionIds_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public com.google.protobuf.ByteString getCollectionIdsBytes(int index) {
+ return collectionIds_.getByteString(index);
+ }
+
+ public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 3;
+ private volatile java.lang.Object outputUriPrefix_;
+ /**
+ *
+ *
+ * + * The output URI. Currently only supports Google Cloud Storage URIs of the + * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name + * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional + * Google Cloud Storage namespace path. When + * choosing a name, be sure to consider Google Cloud Storage naming + * guidelines: https://cloud.google.com/storage/docs/naming. + * If the URI is a bucket (without a namespace path), a prefix will be + * generated based on the start time. + *+ * + *
string output_uri_prefix = 3;
+ */
+ public java.lang.String getOutputUriPrefix() {
+ java.lang.Object ref = outputUriPrefix_;
+ 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();
+ outputUriPrefix_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The output URI. Currently only supports Google Cloud Storage URIs of the + * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name + * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional + * Google Cloud Storage namespace path. When + * choosing a name, be sure to consider Google Cloud Storage naming + * guidelines: https://cloud.google.com/storage/docs/naming. + * If the URI is a bucket (without a namespace path), a prefix will be + * generated based on the start time. + *+ * + *
string output_uri_prefix = 3;
+ */
+ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
+ java.lang.Object ref = outputUriPrefix_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputUriPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ for (int i = 0; i < collectionIds_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, collectionIds_.getRaw(i));
+ }
+ if (!getOutputUriPrefixBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputUriPrefix_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < collectionIds_.size(); i++) {
+ dataSize += computeStringSizeNoTag(collectionIds_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getCollectionIdsList().size();
+ }
+ if (!getOutputUriPrefixBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputUriPrefix_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.ExportDocumentsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.ExportDocumentsRequest other =
+ (com.google.firestore.admin.v1.ExportDocumentsRequest) obj;
+
+ boolean result = true;
+ result = result && getName().equals(other.getName());
+ result = result && getCollectionIdsList().equals(other.getCollectionIdsList());
+ result = result && getOutputUriPrefix().equals(other.getOutputUriPrefix());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ if (getCollectionIdsCount() > 0) {
+ hash = (37 * hash) + COLLECTION_IDS_FIELD_NUMBER;
+ hash = (53 * hash) + getCollectionIdsList().hashCode();
+ }
+ hash = (37 * hash) + OUTPUT_URI_PREFIX_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputUriPrefix().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsRequest 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.firestore.admin.v1.ExportDocumentsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsRequest 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.firestore.admin.v1.ExportDocumentsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsRequest 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.firestore.admin.v1.ExportDocumentsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsRequest 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.ExportDocumentsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The request for [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Database to export. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Database to export. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Database to export. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Database to export. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Database to export. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList collectionIds_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureCollectionIdsIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ collectionIds_ = new com.google.protobuf.LazyStringArrayList(collectionIds_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public com.google.protobuf.ProtocolStringList getCollectionIdsList() {
+ return collectionIds_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public int getCollectionIdsCount() {
+ return collectionIds_.size();
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public java.lang.String getCollectionIds(int index) {
+ return collectionIds_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public com.google.protobuf.ByteString getCollectionIdsBytes(int index) {
+ return collectionIds_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public Builder setCollectionIds(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCollectionIdsIsMutable();
+ collectionIds_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public Builder addCollectionIds(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCollectionIdsIsMutable();
+ collectionIds_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public Builder addAllCollectionIds(java.lang.Iterable+ * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public Builder clearCollectionIds() {
+ collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public Builder addCollectionIdsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureCollectionIdsIsMutable();
+ collectionIds_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object outputUriPrefix_ = "";
+ /**
+ *
+ *
+ * + * The output URI. Currently only supports Google Cloud Storage URIs of the + * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name + * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional + * Google Cloud Storage namespace path. When + * choosing a name, be sure to consider Google Cloud Storage naming + * guidelines: https://cloud.google.com/storage/docs/naming. + * If the URI is a bucket (without a namespace path), a prefix will be + * generated based on the start time. + *+ * + *
string output_uri_prefix = 3;
+ */
+ public java.lang.String getOutputUriPrefix() {
+ java.lang.Object ref = outputUriPrefix_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ outputUriPrefix_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The output URI. Currently only supports Google Cloud Storage URIs of the + * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name + * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional + * Google Cloud Storage namespace path. When + * choosing a name, be sure to consider Google Cloud Storage naming + * guidelines: https://cloud.google.com/storage/docs/naming. + * If the URI is a bucket (without a namespace path), a prefix will be + * generated based on the start time. + *+ * + *
string output_uri_prefix = 3;
+ */
+ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
+ java.lang.Object ref = outputUriPrefix_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputUriPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The output URI. Currently only supports Google Cloud Storage URIs of the + * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name + * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional + * Google Cloud Storage namespace path. When + * choosing a name, be sure to consider Google Cloud Storage naming + * guidelines: https://cloud.google.com/storage/docs/naming. + * If the URI is a bucket (without a namespace path), a prefix will be + * generated based on the start time. + *+ * + *
string output_uri_prefix = 3;
+ */
+ public Builder setOutputUriPrefix(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ outputUriPrefix_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The output URI. Currently only supports Google Cloud Storage URIs of the + * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name + * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional + * Google Cloud Storage namespace path. When + * choosing a name, be sure to consider Google Cloud Storage naming + * guidelines: https://cloud.google.com/storage/docs/naming. + * If the URI is a bucket (without a namespace path), a prefix will be + * generated based on the start time. + *+ * + *
string output_uri_prefix = 3;
+ */
+ public Builder clearOutputUriPrefix() {
+
+ outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The output URI. Currently only supports Google Cloud Storage URIs of the + * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name + * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional + * Google Cloud Storage namespace path. When + * choosing a name, be sure to consider Google Cloud Storage naming + * guidelines: https://cloud.google.com/storage/docs/naming. + * If the URI is a bucket (without a namespace path), a prefix will be + * generated based on the start time. + *+ * + *
string output_uri_prefix = 3;
+ */
+ public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ outputUriPrefix_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.ExportDocumentsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ExportDocumentsRequest)
+ private static final com.google.firestore.admin.v1.ExportDocumentsRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ExportDocumentsRequest();
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Database to export. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Database to export. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ java.util.List+ * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ int getCollectionIdsCount();
+ /**
+ *
+ *
+ * + * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ java.lang.String getCollectionIds(int index);
+ /**
+ *
+ *
+ * + * Which collection ids to export. Unspecified means all collections. + *+ * + *
repeated string collection_ids = 2;
+ */
+ com.google.protobuf.ByteString getCollectionIdsBytes(int index);
+
+ /**
+ *
+ *
+ * + * The output URI. Currently only supports Google Cloud Storage URIs of the + * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name + * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional + * Google Cloud Storage namespace path. When + * choosing a name, be sure to consider Google Cloud Storage naming + * guidelines: https://cloud.google.com/storage/docs/naming. + * If the URI is a bucket (without a namespace path), a prefix will be + * generated based on the start time. + *+ * + *
string output_uri_prefix = 3;
+ */
+ java.lang.String getOutputUriPrefix();
+ /**
+ *
+ *
+ * + * The output URI. Currently only supports Google Cloud Storage URIs of the + * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name + * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional + * Google Cloud Storage namespace path. When + * choosing a name, be sure to consider Google Cloud Storage naming + * guidelines: https://cloud.google.com/storage/docs/naming. + * If the URI is a bucket (without a namespace path), a prefix will be + * generated based on the start time. + *+ * + *
string output_uri_prefix = 3;
+ */
+ com.google.protobuf.ByteString getOutputUriPrefixBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponse.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponse.java
new file mode 100644
index 000000000000..6fe726211a8d
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponse.java
@@ -0,0 +1,614 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/operation.proto
+
+package com.google.firestore.admin.v1;
+
+/**
+ *
+ *
+ * + * Returned in the [google.longrunning.Operation][google.longrunning.Operation] response field. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsResponse} + */ +public final class ExportDocumentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ExportDocumentsResponse) + ExportDocumentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportDocumentsResponse.newBuilder() to construct. + private ExportDocumentsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ExportDocumentsResponse() { + outputUriPrefix_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportDocumentsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + outputUriPrefix_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ExportDocumentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ExportDocumentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ExportDocumentsResponse.class, + com.google.firestore.admin.v1.ExportDocumentsResponse.Builder.class); + } + + public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; + private volatile java.lang.Object outputUriPrefix_; + /** + * + * + *
+ * Location of the output files. This can be used to begin an import + * into Cloud Firestore (this project or another project) after the operation + * completes successfully. + *+ * + *
string output_uri_prefix = 1;
+ */
+ public java.lang.String getOutputUriPrefix() {
+ java.lang.Object ref = outputUriPrefix_;
+ 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();
+ outputUriPrefix_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location of the output files. This can be used to begin an import + * into Cloud Firestore (this project or another project) after the operation + * completes successfully. + *+ * + *
string output_uri_prefix = 1;
+ */
+ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
+ java.lang.Object ref = outputUriPrefix_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputUriPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getOutputUriPrefixBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getOutputUriPrefixBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputUriPrefix_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.ExportDocumentsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.ExportDocumentsResponse other =
+ (com.google.firestore.admin.v1.ExportDocumentsResponse) obj;
+
+ boolean result = true;
+ result = result && getOutputUriPrefix().equals(other.getOutputUriPrefix());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + OUTPUT_URI_PREFIX_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputUriPrefix().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsResponse 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.firestore.admin.v1.ExportDocumentsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsResponse 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.firestore.admin.v1.ExportDocumentsResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsResponse 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.firestore.admin.v1.ExportDocumentsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsResponse 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.firestore.admin.v1.ExportDocumentsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Returned in the [google.longrunning.Operation][google.longrunning.Operation] response field. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Location of the output files. This can be used to begin an import + * into Cloud Firestore (this project or another project) after the operation + * completes successfully. + *+ * + *
string output_uri_prefix = 1;
+ */
+ public java.lang.String getOutputUriPrefix() {
+ java.lang.Object ref = outputUriPrefix_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ outputUriPrefix_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location of the output files. This can be used to begin an import + * into Cloud Firestore (this project or another project) after the operation + * completes successfully. + *+ * + *
string output_uri_prefix = 1;
+ */
+ public com.google.protobuf.ByteString getOutputUriPrefixBytes() {
+ java.lang.Object ref = outputUriPrefix_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputUriPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location of the output files. This can be used to begin an import + * into Cloud Firestore (this project or another project) after the operation + * completes successfully. + *+ * + *
string output_uri_prefix = 1;
+ */
+ public Builder setOutputUriPrefix(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ outputUriPrefix_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Location of the output files. This can be used to begin an import + * into Cloud Firestore (this project or another project) after the operation + * completes successfully. + *+ * + *
string output_uri_prefix = 1;
+ */
+ public Builder clearOutputUriPrefix() {
+
+ outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Location of the output files. This can be used to begin an import + * into Cloud Firestore (this project or another project) after the operation + * completes successfully. + *+ * + *
string output_uri_prefix = 1;
+ */
+ public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ outputUriPrefix_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.ExportDocumentsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ExportDocumentsResponse)
+ private static final com.google.firestore.admin.v1.ExportDocumentsResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ExportDocumentsResponse();
+ }
+
+ public static com.google.firestore.admin.v1.ExportDocumentsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Location of the output files. This can be used to begin an import + * into Cloud Firestore (this project or another project) after the operation + * completes successfully. + *+ * + *
string output_uri_prefix = 1;
+ */
+ java.lang.String getOutputUriPrefix();
+ /**
+ *
+ *
+ * + * Location of the output files. This can be used to begin an import + * into Cloud Firestore (this project or another project) after the operation + * completes successfully. + *+ * + *
string output_uri_prefix = 1;
+ */
+ com.google.protobuf.ByteString getOutputUriPrefixBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Field.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Field.java
new file mode 100644
index 000000000000..cd4f1f7afcc2
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Field.java
@@ -0,0 +1,2470 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/field.proto
+
+package com.google.firestore.admin.v1;
+
+/**
+ *
+ *
+ * + * Represents a single field in the database. + * Fields are grouped by their "Collection Group", which represent all + * collections in the database with the same id. + *+ * + * Protobuf type {@code google.firestore.admin.v1.Field} + */ +public final class Field extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.Field) + FieldOrBuilder { + private static final long serialVersionUID = 0L; + // Use Field.newBuilder() to construct. + private Field(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Field() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Field( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + com.google.firestore.admin.v1.Field.IndexConfig.Builder subBuilder = null; + if (indexConfig_ != null) { + subBuilder = indexConfig_.toBuilder(); + } + indexConfig_ = + input.readMessage( + com.google.firestore.admin.v1.Field.IndexConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(indexConfig_); + indexConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FieldProto + .internal_static_google_firestore_admin_v1_Field_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FieldProto + .internal_static_google_firestore_admin_v1_Field_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.Field.class, + com.google.firestore.admin.v1.Field.Builder.class); + } + + public interface IndexConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.Field.IndexConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ java.util.List+ * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ com.google.firestore.admin.v1.Index getIndexes(int index);
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ int getIndexesCount();
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ java.util.List extends com.google.firestore.admin.v1.IndexOrBuilder>
+ getIndexesOrBuilderList();
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ com.google.firestore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Output only. + * When true, the `Field`'s index configuration is set from the + * configuration specified by the `ancestor_field`. + * When false, the `Field`'s index configuration is defined explicitly. + *+ * + *
bool uses_ancestor_config = 2;
+ */
+ boolean getUsesAncestorConfig();
+
+ /**
+ *
+ *
+ * + * Output only. + * Specifies the resource name of the `Field` from which this field's + * index configuration is set (when `uses_ancestor_config` is true), + * or from which it *would* be set if this field had no index configuration + * (when `uses_ancestor_config` is false). + *+ * + *
string ancestor_field = 3;
+ */
+ java.lang.String getAncestorField();
+ /**
+ *
+ *
+ * + * Output only. + * Specifies the resource name of the `Field` from which this field's + * index configuration is set (when `uses_ancestor_config` is true), + * or from which it *would* be set if this field had no index configuration + * (when `uses_ancestor_config` is false). + *+ * + *
string ancestor_field = 3;
+ */
+ com.google.protobuf.ByteString getAncestorFieldBytes();
+
+ /**
+ *
+ *
+ * + * Output only + * When true, the `Field`'s index configuration is in the process of being + * reverted. Once complete, the index config will transition to the same + * state as the field specified by `ancestor_field`, at which point + * `uses_ancestor_config` will be `true` and `reverting` will be `false`. + *+ * + *
bool reverting = 4;
+ */
+ boolean getReverting();
+ }
+ /**
+ *
+ *
+ * + * The index configuration for this field. + *+ * + * Protobuf type {@code google.firestore.admin.v1.Field.IndexConfig} + */ + public static final class IndexConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.Field.IndexConfig) + IndexConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use IndexConfig.newBuilder() to construct. + private IndexConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private IndexConfig() { + indexes_ = java.util.Collections.emptyList(); + usesAncestorConfig_ = false; + ancestorField_ = ""; + reverting_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IndexConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + indexes_ = new java.util.ArrayList
+ * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public java.util.List+ * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public java.util.List extends com.google.firestore.admin.v1.IndexOrBuilder>
+ getIndexesOrBuilderList() {
+ return indexes_;
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public int getIndexesCount() {
+ return indexes_.size();
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public com.google.firestore.admin.v1.Index getIndexes(int index) {
+ return indexes_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public com.google.firestore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index) {
+ return indexes_.get(index);
+ }
+
+ public static final int USES_ANCESTOR_CONFIG_FIELD_NUMBER = 2;
+ private boolean usesAncestorConfig_;
+ /**
+ *
+ *
+ * + * Output only. + * When true, the `Field`'s index configuration is set from the + * configuration specified by the `ancestor_field`. + * When false, the `Field`'s index configuration is defined explicitly. + *+ * + *
bool uses_ancestor_config = 2;
+ */
+ public boolean getUsesAncestorConfig() {
+ return usesAncestorConfig_;
+ }
+
+ public static final int ANCESTOR_FIELD_FIELD_NUMBER = 3;
+ private volatile java.lang.Object ancestorField_;
+ /**
+ *
+ *
+ * + * Output only. + * Specifies the resource name of the `Field` from which this field's + * index configuration is set (when `uses_ancestor_config` is true), + * or from which it *would* be set if this field had no index configuration + * (when `uses_ancestor_config` is false). + *+ * + *
string ancestor_field = 3;
+ */
+ public java.lang.String getAncestorField() {
+ java.lang.Object ref = ancestorField_;
+ 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();
+ ancestorField_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. + * Specifies the resource name of the `Field` from which this field's + * index configuration is set (when `uses_ancestor_config` is true), + * or from which it *would* be set if this field had no index configuration + * (when `uses_ancestor_config` is false). + *+ * + *
string ancestor_field = 3;
+ */
+ public com.google.protobuf.ByteString getAncestorFieldBytes() {
+ java.lang.Object ref = ancestorField_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ ancestorField_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REVERTING_FIELD_NUMBER = 4;
+ private boolean reverting_;
+ /**
+ *
+ *
+ * + * Output only + * When true, the `Field`'s index configuration is in the process of being + * reverted. Once complete, the index config will transition to the same + * state as the field specified by `ancestor_field`, at which point + * `uses_ancestor_config` will be `true` and `reverting` will be `false`. + *+ * + *
bool reverting = 4;
+ */
+ public boolean getReverting() {
+ return reverting_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < indexes_.size(); i++) {
+ output.writeMessage(1, indexes_.get(i));
+ }
+ if (usesAncestorConfig_ != false) {
+ output.writeBool(2, usesAncestorConfig_);
+ }
+ if (!getAncestorFieldBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ancestorField_);
+ }
+ if (reverting_ != false) {
+ output.writeBool(4, reverting_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < indexes_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, indexes_.get(i));
+ }
+ if (usesAncestorConfig_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, usesAncestorConfig_);
+ }
+ if (!getAncestorFieldBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ancestorField_);
+ }
+ if (reverting_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reverting_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.Field.IndexConfig)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.Field.IndexConfig other =
+ (com.google.firestore.admin.v1.Field.IndexConfig) obj;
+
+ boolean result = true;
+ result = result && getIndexesList().equals(other.getIndexesList());
+ result = result && (getUsesAncestorConfig() == other.getUsesAncestorConfig());
+ result = result && getAncestorField().equals(other.getAncestorField());
+ result = result && (getReverting() == other.getReverting());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getIndexesCount() > 0) {
+ hash = (37 * hash) + INDEXES_FIELD_NUMBER;
+ hash = (53 * hash) + getIndexesList().hashCode();
+ }
+ hash = (37 * hash) + USES_ANCESTOR_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsesAncestorConfig());
+ hash = (37 * hash) + ANCESTOR_FIELD_FIELD_NUMBER;
+ hash = (53 * hash) + getAncestorField().hashCode();
+ hash = (37 * hash) + REVERTING_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReverting());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.Field.IndexConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.Field.IndexConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.Field.IndexConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.Field.IndexConfig 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.firestore.admin.v1.Field.IndexConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.Field.IndexConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.Field.IndexConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.Field.IndexConfig 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.firestore.admin.v1.Field.IndexConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.Field.IndexConfig 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.firestore.admin.v1.Field.IndexConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.Field.IndexConfig 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.Field.IndexConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The index configuration for this field. + *+ * + * Protobuf type {@code google.firestore.admin.v1.Field.IndexConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public java.util.List+ * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public int getIndexesCount() {
+ if (indexesBuilder_ == null) {
+ return indexes_.size();
+ } else {
+ return indexesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public com.google.firestore.admin.v1.Index getIndexes(int index) {
+ if (indexesBuilder_ == null) {
+ return indexes_.get(index);
+ } else {
+ return indexesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder setIndexes(int index, com.google.firestore.admin.v1.Index value) {
+ if (indexesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIndexesIsMutable();
+ indexes_.set(index, value);
+ onChanged();
+ } else {
+ indexesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder setIndexes(
+ int index, com.google.firestore.admin.v1.Index.Builder builderForValue) {
+ if (indexesBuilder_ == null) {
+ ensureIndexesIsMutable();
+ indexes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ indexesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder addIndexes(com.google.firestore.admin.v1.Index value) {
+ if (indexesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIndexesIsMutable();
+ indexes_.add(value);
+ onChanged();
+ } else {
+ indexesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder addIndexes(int index, com.google.firestore.admin.v1.Index value) {
+ if (indexesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIndexesIsMutable();
+ indexes_.add(index, value);
+ onChanged();
+ } else {
+ indexesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder addIndexes(com.google.firestore.admin.v1.Index.Builder builderForValue) {
+ if (indexesBuilder_ == null) {
+ ensureIndexesIsMutable();
+ indexes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ indexesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder addIndexes(
+ int index, com.google.firestore.admin.v1.Index.Builder builderForValue) {
+ if (indexesBuilder_ == null) {
+ ensureIndexesIsMutable();
+ indexes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ indexesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder addAllIndexes(
+ java.lang.Iterable extends com.google.firestore.admin.v1.Index> values) {
+ if (indexesBuilder_ == null) {
+ ensureIndexesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indexes_);
+ onChanged();
+ } else {
+ indexesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder clearIndexes() {
+ if (indexesBuilder_ == null) {
+ indexes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ indexesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder removeIndexes(int index) {
+ if (indexesBuilder_ == null) {
+ ensureIndexesIsMutable();
+ indexes_.remove(index);
+ onChanged();
+ } else {
+ indexesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public com.google.firestore.admin.v1.Index.Builder getIndexesBuilder(int index) {
+ return getIndexesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public com.google.firestore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index) {
+ if (indexesBuilder_ == null) {
+ return indexes_.get(index);
+ } else {
+ return indexesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public java.util.List extends com.google.firestore.admin.v1.IndexOrBuilder>
+ getIndexesOrBuilderList() {
+ if (indexesBuilder_ != null) {
+ return indexesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(indexes_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public com.google.firestore.admin.v1.Index.Builder addIndexesBuilder() {
+ return getIndexesFieldBuilder()
+ .addBuilder(com.google.firestore.admin.v1.Index.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public com.google.firestore.admin.v1.Index.Builder addIndexesBuilder(int index) {
+ return getIndexesFieldBuilder()
+ .addBuilder(index, com.google.firestore.admin.v1.Index.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The indexes supported for this field. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public java.util.List+ * Output only. + * When true, the `Field`'s index configuration is set from the + * configuration specified by the `ancestor_field`. + * When false, the `Field`'s index configuration is defined explicitly. + *+ * + *
bool uses_ancestor_config = 2;
+ */
+ public boolean getUsesAncestorConfig() {
+ return usesAncestorConfig_;
+ }
+ /**
+ *
+ *
+ * + * Output only. + * When true, the `Field`'s index configuration is set from the + * configuration specified by the `ancestor_field`. + * When false, the `Field`'s index configuration is defined explicitly. + *+ * + *
bool uses_ancestor_config = 2;
+ */
+ public Builder setUsesAncestorConfig(boolean value) {
+
+ usesAncestorConfig_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. + * When true, the `Field`'s index configuration is set from the + * configuration specified by the `ancestor_field`. + * When false, the `Field`'s index configuration is defined explicitly. + *+ * + *
bool uses_ancestor_config = 2;
+ */
+ public Builder clearUsesAncestorConfig() {
+
+ usesAncestorConfig_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object ancestorField_ = "";
+ /**
+ *
+ *
+ * + * Output only. + * Specifies the resource name of the `Field` from which this field's + * index configuration is set (when `uses_ancestor_config` is true), + * or from which it *would* be set if this field had no index configuration + * (when `uses_ancestor_config` is false). + *+ * + *
string ancestor_field = 3;
+ */
+ public java.lang.String getAncestorField() {
+ java.lang.Object ref = ancestorField_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ ancestorField_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. + * Specifies the resource name of the `Field` from which this field's + * index configuration is set (when `uses_ancestor_config` is true), + * or from which it *would* be set if this field had no index configuration + * (when `uses_ancestor_config` is false). + *+ * + *
string ancestor_field = 3;
+ */
+ public com.google.protobuf.ByteString getAncestorFieldBytes() {
+ java.lang.Object ref = ancestorField_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ ancestorField_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. + * Specifies the resource name of the `Field` from which this field's + * index configuration is set (when `uses_ancestor_config` is true), + * or from which it *would* be set if this field had no index configuration + * (when `uses_ancestor_config` is false). + *+ * + *
string ancestor_field = 3;
+ */
+ public Builder setAncestorField(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ ancestorField_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. + * Specifies the resource name of the `Field` from which this field's + * index configuration is set (when `uses_ancestor_config` is true), + * or from which it *would* be set if this field had no index configuration + * (when `uses_ancestor_config` is false). + *+ * + *
string ancestor_field = 3;
+ */
+ public Builder clearAncestorField() {
+
+ ancestorField_ = getDefaultInstance().getAncestorField();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. + * Specifies the resource name of the `Field` from which this field's + * index configuration is set (when `uses_ancestor_config` is true), + * or from which it *would* be set if this field had no index configuration + * (when `uses_ancestor_config` is false). + *+ * + *
string ancestor_field = 3;
+ */
+ public Builder setAncestorFieldBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ ancestorField_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean reverting_;
+ /**
+ *
+ *
+ * + * Output only + * When true, the `Field`'s index configuration is in the process of being + * reverted. Once complete, the index config will transition to the same + * state as the field specified by `ancestor_field`, at which point + * `uses_ancestor_config` will be `true` and `reverting` will be `false`. + *+ * + *
bool reverting = 4;
+ */
+ public boolean getReverting() {
+ return reverting_;
+ }
+ /**
+ *
+ *
+ * + * Output only + * When true, the `Field`'s index configuration is in the process of being + * reverted. Once complete, the index config will transition to the same + * state as the field specified by `ancestor_field`, at which point + * `uses_ancestor_config` will be `true` and `reverting` will be `false`. + *+ * + *
bool reverting = 4;
+ */
+ public Builder setReverting(boolean value) {
+
+ reverting_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only + * When true, the `Field`'s index configuration is in the process of being + * reverted. Once complete, the index config will transition to the same + * state as the field specified by `ancestor_field`, at which point + * `uses_ancestor_config` will be `true` and `reverting` will be `false`. + *+ * + *
bool reverting = 4;
+ */
+ public Builder clearReverting() {
+
+ reverting_ = false;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.Field.IndexConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.Field.IndexConfig)
+ private static final com.google.firestore.admin.v1.Field.IndexConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.Field.IndexConfig();
+ }
+
+ public static com.google.firestore.admin.v1.Field.IndexConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A field name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + * A field path may be a simple field name, e.g. `address` or a path to fields + * within map_value , e.g. `address.city`, + * or a special field path. The only valid special field is `*`, which + * represents any field. + * Field paths may be quoted using ` (backtick). The only character that needs + * to be escaped within a quoted field path is the backtick character itself, + * escaped using a backslash. Special characters in field paths that + * must be quoted include: `*`, `.`, + * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. + * Examples: + * (Note: Comments here are written in markdown syntax, so there is an + * additional layer of backticks to represent a code block) + * `\`address.city\`` represents a field named `address.city`, not the map key + * `city` in the field `address`. + * `\`*\`` represents a field named `*`, not any field. + * A special `Field` contains the default indexing settings for all fields. + * This field's resource name is: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` + * Indexes defined on this `Field` will be applied to all fields which do not + * have their own `Field` index configuration. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A field name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + * A field path may be a simple field name, e.g. `address` or a path to fields + * within map_value , e.g. `address.city`, + * or a special field path. The only valid special field is `*`, which + * represents any field. + * Field paths may be quoted using ` (backtick). The only character that needs + * to be escaped within a quoted field path is the backtick character itself, + * escaped using a backslash. Special characters in field paths that + * must be quoted include: `*`, `.`, + * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. + * Examples: + * (Note: Comments here are written in markdown syntax, so there is an + * additional layer of backticks to represent a code block) + * `\`address.city\`` represents a field named `address.city`, not the map key + * `city` in the field `address`. + * `\`*\`` represents a field named `*`, not any field. + * A special `Field` contains the default indexing settings for all fields. + * This field's resource name is: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` + * Indexes defined on this `Field` will be applied to all fields which do not + * have their own `Field` index configuration. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INDEX_CONFIG_FIELD_NUMBER = 2;
+ private com.google.firestore.admin.v1.Field.IndexConfig indexConfig_;
+ /**
+ *
+ *
+ * + * The index configuration for this field. If unset, field indexing will + * revert to the configuration defined by the `ancestor_field`. To + * explicitly remove all indexes for this field, specify an index config + * with an empty list of indexes. + *+ * + *
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
+ */
+ public boolean hasIndexConfig() {
+ return indexConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * The index configuration for this field. If unset, field indexing will + * revert to the configuration defined by the `ancestor_field`. To + * explicitly remove all indexes for this field, specify an index config + * with an empty list of indexes. + *+ * + *
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
+ */
+ public com.google.firestore.admin.v1.Field.IndexConfig getIndexConfig() {
+ return indexConfig_ == null
+ ? com.google.firestore.admin.v1.Field.IndexConfig.getDefaultInstance()
+ : indexConfig_;
+ }
+ /**
+ *
+ *
+ * + * The index configuration for this field. If unset, field indexing will + * revert to the configuration defined by the `ancestor_field`. To + * explicitly remove all indexes for this field, specify an index config + * with an empty list of indexes. + *+ * + *
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
+ */
+ public com.google.firestore.admin.v1.Field.IndexConfigOrBuilder getIndexConfigOrBuilder() {
+ return getIndexConfig();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (indexConfig_ != null) {
+ output.writeMessage(2, getIndexConfig());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (indexConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndexConfig());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.Field)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.Field other = (com.google.firestore.admin.v1.Field) obj;
+
+ boolean result = true;
+ result = result && getName().equals(other.getName());
+ result = result && (hasIndexConfig() == other.hasIndexConfig());
+ if (hasIndexConfig()) {
+ result = result && getIndexConfig().equals(other.getIndexConfig());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ if (hasIndexConfig()) {
+ hash = (37 * hash) + INDEX_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getIndexConfig().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.Field parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.Field parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.Field parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.Field 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.firestore.admin.v1.Field parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.Field parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.Field parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.Field 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.firestore.admin.v1.Field parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.Field 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.firestore.admin.v1.Field parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.Field 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.Field prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Represents a single field in the database. + * Fields are grouped by their "Collection Group", which represent all + * collections in the database with the same id. + *+ * + * Protobuf type {@code google.firestore.admin.v1.Field} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A field name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + * A field path may be a simple field name, e.g. `address` or a path to fields + * within map_value , e.g. `address.city`, + * or a special field path. The only valid special field is `*`, which + * represents any field. + * Field paths may be quoted using ` (backtick). The only character that needs + * to be escaped within a quoted field path is the backtick character itself, + * escaped using a backslash. Special characters in field paths that + * must be quoted include: `*`, `.`, + * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. + * Examples: + * (Note: Comments here are written in markdown syntax, so there is an + * additional layer of backticks to represent a code block) + * `\`address.city\`` represents a field named `address.city`, not the map key + * `city` in the field `address`. + * `\`*\`` represents a field named `*`, not any field. + * A special `Field` contains the default indexing settings for all fields. + * This field's resource name is: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` + * Indexes defined on this `Field` will be applied to all fields which do not + * have their own `Field` index configuration. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A field name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + * A field path may be a simple field name, e.g. `address` or a path to fields + * within map_value , e.g. `address.city`, + * or a special field path. The only valid special field is `*`, which + * represents any field. + * Field paths may be quoted using ` (backtick). The only character that needs + * to be escaped within a quoted field path is the backtick character itself, + * escaped using a backslash. Special characters in field paths that + * must be quoted include: `*`, `.`, + * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. + * Examples: + * (Note: Comments here are written in markdown syntax, so there is an + * additional layer of backticks to represent a code block) + * `\`address.city\`` represents a field named `address.city`, not the map key + * `city` in the field `address`. + * `\`*\`` represents a field named `*`, not any field. + * A special `Field` contains the default indexing settings for all fields. + * This field's resource name is: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` + * Indexes defined on this `Field` will be applied to all fields which do not + * have their own `Field` index configuration. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A field name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + * A field path may be a simple field name, e.g. `address` or a path to fields + * within map_value , e.g. `address.city`, + * or a special field path. The only valid special field is `*`, which + * represents any field. + * Field paths may be quoted using ` (backtick). The only character that needs + * to be escaped within a quoted field path is the backtick character itself, + * escaped using a backslash. Special characters in field paths that + * must be quoted include: `*`, `.`, + * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. + * Examples: + * (Note: Comments here are written in markdown syntax, so there is an + * additional layer of backticks to represent a code block) + * `\`address.city\`` represents a field named `address.city`, not the map key + * `city` in the field `address`. + * `\`*\`` represents a field named `*`, not any field. + * A special `Field` contains the default indexing settings for all fields. + * This field's resource name is: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` + * Indexes defined on this `Field` will be applied to all fields which do not + * have their own `Field` index configuration. + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A field name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + * A field path may be a simple field name, e.g. `address` or a path to fields + * within map_value , e.g. `address.city`, + * or a special field path. The only valid special field is `*`, which + * represents any field. + * Field paths may be quoted using ` (backtick). The only character that needs + * to be escaped within a quoted field path is the backtick character itself, + * escaped using a backslash. Special characters in field paths that + * must be quoted include: `*`, `.`, + * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. + * Examples: + * (Note: Comments here are written in markdown syntax, so there is an + * additional layer of backticks to represent a code block) + * `\`address.city\`` represents a field named `address.city`, not the map key + * `city` in the field `address`. + * `\`*\`` represents a field named `*`, not any field. + * A special `Field` contains the default indexing settings for all fields. + * This field's resource name is: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` + * Indexes defined on this `Field` will be applied to all fields which do not + * have their own `Field` index configuration. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A field name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + * A field path may be a simple field name, e.g. `address` or a path to fields + * within map_value , e.g. `address.city`, + * or a special field path. The only valid special field is `*`, which + * represents any field. + * Field paths may be quoted using ` (backtick). The only character that needs + * to be escaped within a quoted field path is the backtick character itself, + * escaped using a backslash. Special characters in field paths that + * must be quoted include: `*`, `.`, + * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. + * Examples: + * (Note: Comments here are written in markdown syntax, so there is an + * additional layer of backticks to represent a code block) + * `\`address.city\`` represents a field named `address.city`, not the map key + * `city` in the field `address`. + * `\`*\`` represents a field named `*`, not any field. + * A special `Field` contains the default indexing settings for all fields. + * This field's resource name is: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` + * Indexes defined on this `Field` will be applied to all fields which do not + * have their own `Field` index configuration. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.firestore.admin.v1.Field.IndexConfig indexConfig_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Field.IndexConfig,
+ com.google.firestore.admin.v1.Field.IndexConfig.Builder,
+ com.google.firestore.admin.v1.Field.IndexConfigOrBuilder>
+ indexConfigBuilder_;
+ /**
+ *
+ *
+ * + * The index configuration for this field. If unset, field indexing will + * revert to the configuration defined by the `ancestor_field`. To + * explicitly remove all indexes for this field, specify an index config + * with an empty list of indexes. + *+ * + *
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
+ */
+ public boolean hasIndexConfig() {
+ return indexConfigBuilder_ != null || indexConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * The index configuration for this field. If unset, field indexing will + * revert to the configuration defined by the `ancestor_field`. To + * explicitly remove all indexes for this field, specify an index config + * with an empty list of indexes. + *+ * + *
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
+ */
+ public com.google.firestore.admin.v1.Field.IndexConfig getIndexConfig() {
+ if (indexConfigBuilder_ == null) {
+ return indexConfig_ == null
+ ? com.google.firestore.admin.v1.Field.IndexConfig.getDefaultInstance()
+ : indexConfig_;
+ } else {
+ return indexConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The index configuration for this field. If unset, field indexing will + * revert to the configuration defined by the `ancestor_field`. To + * explicitly remove all indexes for this field, specify an index config + * with an empty list of indexes. + *+ * + *
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
+ */
+ public Builder setIndexConfig(com.google.firestore.admin.v1.Field.IndexConfig value) {
+ if (indexConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ indexConfig_ = value;
+ onChanged();
+ } else {
+ indexConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The index configuration for this field. If unset, field indexing will + * revert to the configuration defined by the `ancestor_field`. To + * explicitly remove all indexes for this field, specify an index config + * with an empty list of indexes. + *+ * + *
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
+ */
+ public Builder setIndexConfig(
+ com.google.firestore.admin.v1.Field.IndexConfig.Builder builderForValue) {
+ if (indexConfigBuilder_ == null) {
+ indexConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ indexConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The index configuration for this field. If unset, field indexing will + * revert to the configuration defined by the `ancestor_field`. To + * explicitly remove all indexes for this field, specify an index config + * with an empty list of indexes. + *+ * + *
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
+ */
+ public Builder mergeIndexConfig(com.google.firestore.admin.v1.Field.IndexConfig value) {
+ if (indexConfigBuilder_ == null) {
+ if (indexConfig_ != null) {
+ indexConfig_ =
+ com.google.firestore.admin.v1.Field.IndexConfig.newBuilder(indexConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ indexConfig_ = value;
+ }
+ onChanged();
+ } else {
+ indexConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The index configuration for this field. If unset, field indexing will + * revert to the configuration defined by the `ancestor_field`. To + * explicitly remove all indexes for this field, specify an index config + * with an empty list of indexes. + *+ * + *
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
+ */
+ public Builder clearIndexConfig() {
+ if (indexConfigBuilder_ == null) {
+ indexConfig_ = null;
+ onChanged();
+ } else {
+ indexConfig_ = null;
+ indexConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The index configuration for this field. If unset, field indexing will + * revert to the configuration defined by the `ancestor_field`. To + * explicitly remove all indexes for this field, specify an index config + * with an empty list of indexes. + *+ * + *
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
+ */
+ public com.google.firestore.admin.v1.Field.IndexConfig.Builder getIndexConfigBuilder() {
+
+ onChanged();
+ return getIndexConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The index configuration for this field. If unset, field indexing will + * revert to the configuration defined by the `ancestor_field`. To + * explicitly remove all indexes for this field, specify an index config + * with an empty list of indexes. + *+ * + *
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
+ */
+ public com.google.firestore.admin.v1.Field.IndexConfigOrBuilder getIndexConfigOrBuilder() {
+ if (indexConfigBuilder_ != null) {
+ return indexConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return indexConfig_ == null
+ ? com.google.firestore.admin.v1.Field.IndexConfig.getDefaultInstance()
+ : indexConfig_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The index configuration for this field. If unset, field indexing will + * revert to the configuration defined by the `ancestor_field`. To + * explicitly remove all indexes for this field, specify an index config + * with an empty list of indexes. + *+ * + *
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Field.IndexConfig,
+ com.google.firestore.admin.v1.Field.IndexConfig.Builder,
+ com.google.firestore.admin.v1.Field.IndexConfigOrBuilder>
+ getIndexConfigFieldBuilder() {
+ if (indexConfigBuilder_ == null) {
+ indexConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Field.IndexConfig,
+ com.google.firestore.admin.v1.Field.IndexConfig.Builder,
+ com.google.firestore.admin.v1.Field.IndexConfigOrBuilder>(
+ getIndexConfig(), getParentForChildren(), isClean());
+ indexConfig_ = null;
+ }
+ return indexConfigBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.Field)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.Field)
+ private static final com.google.firestore.admin.v1.Field DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.Field();
+ }
+
+ public static com.google.firestore.admin.v1.Field getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from + * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata} + */ +public final class FieldOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.FieldOperationMetadata) + FieldOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use FieldOperationMetadata.newBuilder() to construct. + private FieldOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FieldOperationMetadata() { + field_ = ""; + indexConfigDeltas_ = java.util.Collections.emptyList(); + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FieldOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + field_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + indexConfigDeltas_ = + new java.util.ArrayList< + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta>(); + mutable_bitField0_ |= 0x00000008; + } + indexConfigDeltas_.add( + input.readMessage( + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta + .parser(), + extensionRegistry)); + break; + } + case 40: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 50: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressDocuments_ != null) { + subBuilder = progressDocuments_.toBuilder(); + } + progressDocuments_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressDocuments_); + progressDocuments_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressBytes_ != null) { + subBuilder = progressBytes_.toBuilder(); + } + progressBytes_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressBytes_); + progressBytes_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + indexConfigDeltas_ = java.util.Collections.unmodifiableList(indexConfigDeltas_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_FieldOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_FieldOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.FieldOperationMetadata.class, + com.google.firestore.admin.v1.FieldOperationMetadata.Builder.class); + } + + public interface IndexConfigDeltaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Specifies how the index is changing. + *+ * + *
+ * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
+ *
+ */
+ int getChangeTypeValue();
+ /**
+ *
+ *
+ * + * Specifies how the index is changing. + *+ * + *
+ * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
+ *
+ */
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
+ getChangeType();
+
+ /**
+ *
+ *
+ * + * The index being changed. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ boolean hasIndex();
+ /**
+ *
+ *
+ * + * The index being changed. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ com.google.firestore.admin.v1.Index getIndex();
+ /**
+ *
+ *
+ * + * The index being changed. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ com.google.firestore.admin.v1.IndexOrBuilder getIndexOrBuilder();
+ }
+ /**
+ *
+ *
+ * + * Information about an index configuration change. + *+ * + * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta} + */ + public static final class IndexConfigDelta extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta) + IndexConfigDeltaOrBuilder { + private static final long serialVersionUID = 0L; + // Use IndexConfigDelta.newBuilder() to construct. + private IndexConfigDelta(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private IndexConfigDelta() { + changeType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IndexConfigDelta( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + changeType_ = rawValue; + break; + } + case 18: + { + com.google.firestore.admin.v1.Index.Builder subBuilder = null; + if (index_ != null) { + subBuilder = index_.toBuilder(); + } + index_ = + input.readMessage( + com.google.firestore.admin.v1.Index.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(index_); + index_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.class, + com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder.class); + } + + /** + * + * + *
+ * Specifies how the index is changing. + *+ * + * Protobuf enum {@code + * google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType} + */ + public enum ChangeType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * The type of change is not specified or known. + *+ * + *
CHANGE_TYPE_UNSPECIFIED = 0;
+ */
+ CHANGE_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The single field index is being added. + *+ * + *
ADD = 1;
+ */
+ ADD(1),
+ /**
+ *
+ *
+ * + * The single field index is being removed. + *+ * + *
REMOVE = 2;
+ */
+ REMOVE(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * The type of change is not specified or known. + *+ * + *
CHANGE_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int CHANGE_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * The single field index is being added. + *+ * + *
ADD = 1;
+ */
+ public static final int ADD_VALUE = 1;
+ /**
+ *
+ *
+ * + * The single field index is being removed. + *+ * + *
REMOVE = 2;
+ */
+ public static final int REMOVE_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static ChangeType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static ChangeType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return CHANGE_TYPE_UNSPECIFIED;
+ case 1:
+ return ADD;
+ case 2:
+ return REMOVE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Specifies how the index is changing. + *+ * + *
+ * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
+ *
+ */
+ public int getChangeTypeValue() {
+ return changeType_;
+ }
+ /**
+ *
+ *
+ * + * Specifies how the index is changing. + *+ * + *
+ * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
+ *
+ */
+ public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
+ getChangeType() {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType result =
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType.valueOf(
+ changeType_);
+ return result == null
+ ? com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
+ .UNRECOGNIZED
+ : result;
+ }
+
+ public static final int INDEX_FIELD_NUMBER = 2;
+ private com.google.firestore.admin.v1.Index index_;
+ /**
+ *
+ *
+ * + * The index being changed. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public boolean hasIndex() {
+ return index_ != null;
+ }
+ /**
+ *
+ *
+ * + * The index being changed. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public com.google.firestore.admin.v1.Index getIndex() {
+ return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_;
+ }
+ /**
+ *
+ *
+ * + * The index being changed. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public com.google.firestore.admin.v1.IndexOrBuilder getIndexOrBuilder() {
+ return getIndex();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (changeType_
+ != com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
+ .CHANGE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, changeType_);
+ }
+ if (index_ != null) {
+ output.writeMessage(2, getIndex());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (changeType_
+ != com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
+ .CHANGE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, changeType_);
+ }
+ if (index_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndex());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta other =
+ (com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta) obj;
+
+ boolean result = true;
+ result = result && changeType_ == other.changeType_;
+ result = result && (hasIndex() == other.hasIndex());
+ if (hasIndex()) {
+ result = result && getIndex().equals(other.getIndex());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CHANGE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + changeType_;
+ if (hasIndex()) {
+ hash = (37 * hash) + INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + getIndex().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta 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.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta 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.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
+ 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.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Information about an index configuration change. + *+ * + * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Specifies how the index is changing. + *+ * + *
+ * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
+ *
+ */
+ public int getChangeTypeValue() {
+ return changeType_;
+ }
+ /**
+ *
+ *
+ * + * Specifies how the index is changing. + *+ * + *
+ * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
+ *
+ */
+ public Builder setChangeTypeValue(int value) {
+ changeType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Specifies how the index is changing. + *+ * + *
+ * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
+ *
+ */
+ public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
+ getChangeType() {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType result =
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
+ .valueOf(changeType_);
+ return result == null
+ ? com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
+ .UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Specifies how the index is changing. + *+ * + *
+ * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
+ *
+ */
+ public Builder setChangeType(
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ changeType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Specifies how the index is changing. + *+ * + *
+ * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
+ *
+ */
+ public Builder clearChangeType() {
+
+ changeType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.firestore.admin.v1.Index index_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Index,
+ com.google.firestore.admin.v1.Index.Builder,
+ com.google.firestore.admin.v1.IndexOrBuilder>
+ indexBuilder_;
+ /**
+ *
+ *
+ * + * The index being changed. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public boolean hasIndex() {
+ return indexBuilder_ != null || index_ != null;
+ }
+ /**
+ *
+ *
+ * + * The index being changed. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public com.google.firestore.admin.v1.Index getIndex() {
+ if (indexBuilder_ == null) {
+ return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_;
+ } else {
+ return indexBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The index being changed. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public Builder setIndex(com.google.firestore.admin.v1.Index value) {
+ if (indexBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ index_ = value;
+ onChanged();
+ } else {
+ indexBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The index being changed. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public Builder setIndex(com.google.firestore.admin.v1.Index.Builder builderForValue) {
+ if (indexBuilder_ == null) {
+ index_ = builderForValue.build();
+ onChanged();
+ } else {
+ indexBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The index being changed. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public Builder mergeIndex(com.google.firestore.admin.v1.Index value) {
+ if (indexBuilder_ == null) {
+ if (index_ != null) {
+ index_ =
+ com.google.firestore.admin.v1.Index.newBuilder(index_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ index_ = value;
+ }
+ onChanged();
+ } else {
+ indexBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The index being changed. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public Builder clearIndex() {
+ if (indexBuilder_ == null) {
+ index_ = null;
+ onChanged();
+ } else {
+ index_ = null;
+ indexBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The index being changed. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public com.google.firestore.admin.v1.Index.Builder getIndexBuilder() {
+
+ onChanged();
+ return getIndexFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The index being changed. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ public com.google.firestore.admin.v1.IndexOrBuilder getIndexOrBuilder() {
+ if (indexBuilder_ != null) {
+ return indexBuilder_.getMessageOrBuilder();
+ } else {
+ return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The index being changed. + *+ * + *
.google.firestore.admin.v1.Index index = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Index,
+ com.google.firestore.admin.v1.Index.Builder,
+ com.google.firestore.admin.v1.IndexOrBuilder>
+ getIndexFieldBuilder() {
+ if (indexBuilder_ == null) {
+ indexBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Index,
+ com.google.firestore.admin.v1.Index.Builder,
+ com.google.firestore.admin.v1.IndexOrBuilder>(
+ getIndex(), getParentForChildren(), isClean());
+ index_ = null;
+ }
+ return indexBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta)
+ private static final com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta();
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public boolean hasStartTime() {
+ return startTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.Timestamp getStartTime() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ return getStartTime();
+ }
+
+ public static final int END_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp endTime_;
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public boolean hasEndTime() {
+ return endTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp getEndTime() {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ return getEndTime();
+ }
+
+ public static final int FIELD_FIELD_NUMBER = 3;
+ private volatile java.lang.Object field_;
+ /**
+ *
+ *
+ * + * The field resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + *+ * + *
string field = 3;
+ */
+ public java.lang.String getField() {
+ java.lang.Object ref = field_;
+ 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();
+ field_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The field resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + *+ * + *
string field = 3;
+ */
+ public com.google.protobuf.ByteString getFieldBytes() {
+ java.lang.Object ref = field_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ field_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INDEX_CONFIG_DELTAS_FIELD_NUMBER = 4;
+ private java.util.List+ * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public java.util.List+ * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder>
+ getIndexConfigDeltasOrBuilderList() {
+ return indexConfigDeltas_;
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public int getIndexConfigDeltasCount() {
+ return indexConfigDeltas_.size();
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta getIndexConfigDeltas(
+ int index) {
+ return indexConfigDeltas_.get(index);
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder
+ getIndexConfigDeltasOrBuilder(int index) {
+ return indexConfigDeltas_.get(index);
+ }
+
+ public static final int STATE_FIELD_NUMBER = 5;
+ private int state_;
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 5;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 5;
+ */
+ public com.google.firestore.admin.v1.OperationState getState() {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.OperationState result =
+ com.google.firestore.admin.v1.OperationState.valueOf(state_);
+ return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result;
+ }
+
+ public static final int PROGRESS_DOCUMENTS_FIELD_NUMBER = 6;
+ private com.google.firestore.admin.v1.Progress progressDocuments_;
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 6;
+ */
+ public boolean hasProgressDocuments() {
+ return progressDocuments_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 6;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressDocuments() {
+ return progressDocuments_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressDocuments_;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 6;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() {
+ return getProgressDocuments();
+ }
+
+ public static final int PROGRESS_BYTES_FIELD_NUMBER = 7;
+ private com.google.firestore.admin.v1.Progress progressBytes_;
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 7;
+ */
+ public boolean hasProgressBytes() {
+ return progressBytes_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 7;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressBytes() {
+ return progressBytes_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressBytes_;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 7;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() {
+ return getProgressBytes();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (startTime_ != null) {
+ output.writeMessage(1, getStartTime());
+ }
+ if (endTime_ != null) {
+ output.writeMessage(2, getEndTime());
+ }
+ if (!getFieldBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, field_);
+ }
+ for (int i = 0; i < indexConfigDeltas_.size(); i++) {
+ output.writeMessage(4, indexConfigDeltas_.get(i));
+ }
+ if (state_
+ != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(5, state_);
+ }
+ if (progressDocuments_ != null) {
+ output.writeMessage(6, getProgressDocuments());
+ }
+ if (progressBytes_ != null) {
+ output.writeMessage(7, getProgressBytes());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (startTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
+ }
+ if (endTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
+ }
+ if (!getFieldBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, field_);
+ }
+ for (int i = 0; i < indexConfigDeltas_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(4, indexConfigDeltas_.get(i));
+ }
+ if (state_
+ != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_);
+ }
+ if (progressDocuments_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getProgressDocuments());
+ }
+ if (progressBytes_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getProgressBytes());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.FieldOperationMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.FieldOperationMetadata other =
+ (com.google.firestore.admin.v1.FieldOperationMetadata) obj;
+
+ boolean result = true;
+ result = result && (hasStartTime() == other.hasStartTime());
+ if (hasStartTime()) {
+ result = result && getStartTime().equals(other.getStartTime());
+ }
+ result = result && (hasEndTime() == other.hasEndTime());
+ if (hasEndTime()) {
+ result = result && getEndTime().equals(other.getEndTime());
+ }
+ result = result && getField().equals(other.getField());
+ result = result && getIndexConfigDeltasList().equals(other.getIndexConfigDeltasList());
+ result = result && state_ == other.state_;
+ result = result && (hasProgressDocuments() == other.hasProgressDocuments());
+ if (hasProgressDocuments()) {
+ result = result && getProgressDocuments().equals(other.getProgressDocuments());
+ }
+ result = result && (hasProgressBytes() == other.hasProgressBytes());
+ if (hasProgressBytes()) {
+ result = result && getProgressBytes().equals(other.getProgressBytes());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStartTime()) {
+ hash = (37 * hash) + START_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getStartTime().hashCode();
+ }
+ if (hasEndTime()) {
+ hash = (37 * hash) + END_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getEndTime().hashCode();
+ }
+ hash = (37 * hash) + FIELD_FIELD_NUMBER;
+ hash = (53 * hash) + getField().hashCode();
+ if (getIndexConfigDeltasCount() > 0) {
+ hash = (37 * hash) + INDEX_CONFIG_DELTAS_FIELD_NUMBER;
+ hash = (53 * hash) + getIndexConfigDeltasList().hashCode();
+ }
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ if (hasProgressDocuments()) {
+ hash = (37 * hash) + PROGRESS_DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getProgressDocuments().hashCode();
+ }
+ if (hasProgressBytes()) {
+ hash = (37 * hash) + PROGRESS_BYTES_FIELD_NUMBER;
+ hash = (53 * hash) + getProgressBytes().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata 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.firestore.admin.v1.FieldOperationMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata 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.firestore.admin.v1.FieldOperationMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata 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.firestore.admin.v1.FieldOperationMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.FieldOperationMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from + * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public boolean hasStartTime() {
+ return startTimeBuilder_ != null || startTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.Timestamp getStartTime() {
+ if (startTimeBuilder_ == null) {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ } else {
+ return startTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ startTime_ = value;
+ onChanged();
+ } else {
+ startTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (startTimeBuilder_ == null) {
+ startTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ startTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (startTime_ != null) {
+ startTime_ =
+ com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
+ } else {
+ startTime_ = value;
+ }
+ onChanged();
+ } else {
+ startTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder clearStartTime() {
+ if (startTimeBuilder_ == null) {
+ startTime_ = null;
+ onChanged();
+ } else {
+ startTime_ = null;
+ startTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
+
+ onChanged();
+ return getStartTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ if (startTimeBuilder_ != null) {
+ return startTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getStartTimeFieldBuilder() {
+ if (startTimeBuilder_ == null) {
+ startTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getStartTime(), getParentForChildren(), isClean());
+ startTime_ = null;
+ }
+ return startTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp endTime_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ endTimeBuilder_;
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public boolean hasEndTime() {
+ return endTimeBuilder_ != null || endTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp getEndTime() {
+ if (endTimeBuilder_ == null) {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ } else {
+ return endTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder setEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ endTime_ = value;
+ onChanged();
+ } else {
+ endTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (endTimeBuilder_ == null) {
+ endTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ endTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (endTime_ != null) {
+ endTime_ =
+ com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+ } else {
+ endTime_ = value;
+ }
+ onChanged();
+ } else {
+ endTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder clearEndTime() {
+ if (endTimeBuilder_ == null) {
+ endTime_ = null;
+ onChanged();
+ } else {
+ endTime_ = null;
+ endTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
+
+ onChanged();
+ return getEndTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ if (endTimeBuilder_ != null) {
+ return endTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getEndTimeFieldBuilder() {
+ if (endTimeBuilder_ == null) {
+ endTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getEndTime(), getParentForChildren(), isClean());
+ endTime_ = null;
+ }
+ return endTimeBuilder_;
+ }
+
+ private java.lang.Object field_ = "";
+ /**
+ *
+ *
+ * + * The field resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + *+ * + *
string field = 3;
+ */
+ public java.lang.String getField() {
+ java.lang.Object ref = field_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ field_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The field resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + *+ * + *
string field = 3;
+ */
+ public com.google.protobuf.ByteString getFieldBytes() {
+ java.lang.Object ref = field_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ field_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The field resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + *+ * + *
string field = 3;
+ */
+ public Builder setField(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ field_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The field resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + *+ * + *
string field = 3;
+ */
+ public Builder clearField() {
+
+ field_ = getDefaultInstance().getField();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The field resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + *+ * + *
string field = 3;
+ */
+ public Builder setFieldBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ field_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public java.util.List+ * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public int getIndexConfigDeltasCount() {
+ if (indexConfigDeltasBuilder_ == null) {
+ return indexConfigDeltas_.size();
+ } else {
+ return indexConfigDeltasBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
+ getIndexConfigDeltas(int index) {
+ if (indexConfigDeltasBuilder_ == null) {
+ return indexConfigDeltas_.get(index);
+ } else {
+ return indexConfigDeltasBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public Builder setIndexConfigDeltas(
+ int index, com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta value) {
+ if (indexConfigDeltasBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIndexConfigDeltasIsMutable();
+ indexConfigDeltas_.set(index, value);
+ onChanged();
+ } else {
+ indexConfigDeltasBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public Builder setIndexConfigDeltas(
+ int index,
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder
+ builderForValue) {
+ if (indexConfigDeltasBuilder_ == null) {
+ ensureIndexConfigDeltasIsMutable();
+ indexConfigDeltas_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ indexConfigDeltasBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public Builder addIndexConfigDeltas(
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta value) {
+ if (indexConfigDeltasBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIndexConfigDeltasIsMutable();
+ indexConfigDeltas_.add(value);
+ onChanged();
+ } else {
+ indexConfigDeltasBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public Builder addIndexConfigDeltas(
+ int index, com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta value) {
+ if (indexConfigDeltasBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIndexConfigDeltasIsMutable();
+ indexConfigDeltas_.add(index, value);
+ onChanged();
+ } else {
+ indexConfigDeltasBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public Builder addIndexConfigDeltas(
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder
+ builderForValue) {
+ if (indexConfigDeltasBuilder_ == null) {
+ ensureIndexConfigDeltasIsMutable();
+ indexConfigDeltas_.add(builderForValue.build());
+ onChanged();
+ } else {
+ indexConfigDeltasBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public Builder addIndexConfigDeltas(
+ int index,
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder
+ builderForValue) {
+ if (indexConfigDeltasBuilder_ == null) {
+ ensureIndexConfigDeltasIsMutable();
+ indexConfigDeltas_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ indexConfigDeltasBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public Builder addAllIndexConfigDeltas(
+ java.lang.Iterable<
+ ? extends com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta>
+ values) {
+ if (indexConfigDeltasBuilder_ == null) {
+ ensureIndexConfigDeltasIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indexConfigDeltas_);
+ onChanged();
+ } else {
+ indexConfigDeltasBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public Builder clearIndexConfigDeltas() {
+ if (indexConfigDeltasBuilder_ == null) {
+ indexConfigDeltas_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ indexConfigDeltasBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public Builder removeIndexConfigDeltas(int index) {
+ if (indexConfigDeltasBuilder_ == null) {
+ ensureIndexConfigDeltasIsMutable();
+ indexConfigDeltas_.remove(index);
+ onChanged();
+ } else {
+ indexConfigDeltasBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder
+ getIndexConfigDeltasBuilder(int index) {
+ return getIndexConfigDeltasFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder
+ getIndexConfigDeltasOrBuilder(int index) {
+ if (indexConfigDeltasBuilder_ == null) {
+ return indexConfigDeltas_.get(index);
+ } else {
+ return indexConfigDeltasBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder>
+ getIndexConfigDeltasOrBuilderList() {
+ if (indexConfigDeltasBuilder_ != null) {
+ return indexConfigDeltasBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(indexConfigDeltas_);
+ }
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder
+ addIndexConfigDeltasBuilder() {
+ return getIndexConfigDeltasFieldBuilder()
+ .addBuilder(
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder
+ addIndexConfigDeltasBuilder(int index) {
+ return getIndexConfigDeltasFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ public java.util.List<
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder>
+ getIndexConfigDeltasBuilderList() {
+ return getIndexConfigDeltasFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta,
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder,
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder>
+ getIndexConfigDeltasFieldBuilder() {
+ if (indexConfigDeltasBuilder_ == null) {
+ indexConfigDeltasBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta,
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder,
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder>(
+ indexConfigDeltas_,
+ ((bitField0_ & 0x00000008) == 0x00000008),
+ getParentForChildren(),
+ isClean());
+ indexConfigDeltas_ = null;
+ }
+ return indexConfigDeltasBuilder_;
+ }
+
+ private int state_ = 0;
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 5;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 5;
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 5;
+ */
+ public com.google.firestore.admin.v1.OperationState getState() {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.OperationState result =
+ com.google.firestore.admin.v1.OperationState.valueOf(state_);
+ return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 5;
+ */
+ public Builder setState(com.google.firestore.admin.v1.OperationState value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 5;
+ */
+ public Builder clearState() {
+
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.firestore.admin.v1.Progress progressDocuments_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ progressDocumentsBuilder_;
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 6;
+ */
+ public boolean hasProgressDocuments() {
+ return progressDocumentsBuilder_ != null || progressDocuments_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 6;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressDocuments() {
+ if (progressDocumentsBuilder_ == null) {
+ return progressDocuments_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressDocuments_;
+ } else {
+ return progressDocumentsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 6;
+ */
+ public Builder setProgressDocuments(com.google.firestore.admin.v1.Progress value) {
+ if (progressDocumentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ progressDocuments_ = value;
+ onChanged();
+ } else {
+ progressDocumentsBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 6;
+ */
+ public Builder setProgressDocuments(
+ com.google.firestore.admin.v1.Progress.Builder builderForValue) {
+ if (progressDocumentsBuilder_ == null) {
+ progressDocuments_ = builderForValue.build();
+ onChanged();
+ } else {
+ progressDocumentsBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 6;
+ */
+ public Builder mergeProgressDocuments(com.google.firestore.admin.v1.Progress value) {
+ if (progressDocumentsBuilder_ == null) {
+ if (progressDocuments_ != null) {
+ progressDocuments_ =
+ com.google.firestore.admin.v1.Progress.newBuilder(progressDocuments_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ progressDocuments_ = value;
+ }
+ onChanged();
+ } else {
+ progressDocumentsBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 6;
+ */
+ public Builder clearProgressDocuments() {
+ if (progressDocumentsBuilder_ == null) {
+ progressDocuments_ = null;
+ onChanged();
+ } else {
+ progressDocuments_ = null;
+ progressDocumentsBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 6;
+ */
+ public com.google.firestore.admin.v1.Progress.Builder getProgressDocumentsBuilder() {
+
+ onChanged();
+ return getProgressDocumentsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 6;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() {
+ if (progressDocumentsBuilder_ != null) {
+ return progressDocumentsBuilder_.getMessageOrBuilder();
+ } else {
+ return progressDocuments_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressDocuments_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ getProgressDocumentsFieldBuilder() {
+ if (progressDocumentsBuilder_ == null) {
+ progressDocumentsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>(
+ getProgressDocuments(), getParentForChildren(), isClean());
+ progressDocuments_ = null;
+ }
+ return progressDocumentsBuilder_;
+ }
+
+ private com.google.firestore.admin.v1.Progress progressBytes_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ progressBytesBuilder_;
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 7;
+ */
+ public boolean hasProgressBytes() {
+ return progressBytesBuilder_ != null || progressBytes_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 7;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressBytes() {
+ if (progressBytesBuilder_ == null) {
+ return progressBytes_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressBytes_;
+ } else {
+ return progressBytesBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 7;
+ */
+ public Builder setProgressBytes(com.google.firestore.admin.v1.Progress value) {
+ if (progressBytesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ progressBytes_ = value;
+ onChanged();
+ } else {
+ progressBytesBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 7;
+ */
+ public Builder setProgressBytes(
+ com.google.firestore.admin.v1.Progress.Builder builderForValue) {
+ if (progressBytesBuilder_ == null) {
+ progressBytes_ = builderForValue.build();
+ onChanged();
+ } else {
+ progressBytesBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 7;
+ */
+ public Builder mergeProgressBytes(com.google.firestore.admin.v1.Progress value) {
+ if (progressBytesBuilder_ == null) {
+ if (progressBytes_ != null) {
+ progressBytes_ =
+ com.google.firestore.admin.v1.Progress.newBuilder(progressBytes_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ progressBytes_ = value;
+ }
+ onChanged();
+ } else {
+ progressBytesBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 7;
+ */
+ public Builder clearProgressBytes() {
+ if (progressBytesBuilder_ == null) {
+ progressBytes_ = null;
+ onChanged();
+ } else {
+ progressBytes_ = null;
+ progressBytesBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 7;
+ */
+ public com.google.firestore.admin.v1.Progress.Builder getProgressBytesBuilder() {
+
+ onChanged();
+ return getProgressBytesFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 7;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() {
+ if (progressBytesBuilder_ != null) {
+ return progressBytesBuilder_.getMessageOrBuilder();
+ } else {
+ return progressBytes_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressBytes_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ getProgressBytesFieldBuilder() {
+ if (progressBytesBuilder_ == null) {
+ progressBytesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>(
+ getProgressBytes(), getParentForChildren(), isClean());
+ progressBytes_ = null;
+ }
+ return progressBytesBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.FieldOperationMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.FieldOperationMetadata)
+ private static final com.google.firestore.admin.v1.FieldOperationMetadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.FieldOperationMetadata();
+ }
+
+ public static com.google.firestore.admin.v1.FieldOperationMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ boolean hasStartTime();
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ com.google.protobuf.Timestamp getStartTime();
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ boolean hasEndTime();
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ com.google.protobuf.Timestamp getEndTime();
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The field resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + *+ * + *
string field = 3;
+ */
+ java.lang.String getField();
+ /**
+ *
+ *
+ * + * The field resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + *+ * + *
string field = 3;
+ */
+ com.google.protobuf.ByteString getFieldBytes();
+
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ java.util.List+ * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta getIndexConfigDeltas(
+ int index);
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ int getIndexConfigDeltasCount();
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ java.util.List<
+ ? extends com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder>
+ getIndexConfigDeltasOrBuilderList();
+ /**
+ *
+ *
+ * + * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this + * operation. + *+ * + *
+ * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
+ *
+ */
+ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder
+ getIndexConfigDeltasOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 5;
+ */
+ int getStateValue();
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 5;
+ */
+ com.google.firestore.admin.v1.OperationState getState();
+
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 6;
+ */
+ boolean hasProgressDocuments();
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 6;
+ */
+ com.google.firestore.admin.v1.Progress getProgressDocuments();
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 6;
+ */
+ com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder();
+
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 7;
+ */
+ boolean hasProgressBytes();
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 7;
+ */
+ com.google.firestore.admin.v1.Progress getProgressBytes();
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 7;
+ */
+ com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOrBuilder.java
new file mode 100644
index 000000000000..117cfa5a0db1
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOrBuilder.java
@@ -0,0 +1,113 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/field.proto
+
+package com.google.firestore.admin.v1;
+
+public interface FieldOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.Field)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * A field name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + * A field path may be a simple field name, e.g. `address` or a path to fields + * within map_value , e.g. `address.city`, + * or a special field path. The only valid special field is `*`, which + * represents any field. + * Field paths may be quoted using ` (backtick). The only character that needs + * to be escaped within a quoted field path is the backtick character itself, + * escaped using a backslash. Special characters in field paths that + * must be quoted include: `*`, `.`, + * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. + * Examples: + * (Note: Comments here are written in markdown syntax, so there is an + * additional layer of backticks to represent a code block) + * `\`address.city\`` represents a field named `address.city`, not the map key + * `city` in the field `address`. + * `\`*\`` represents a field named `*`, not any field. + * A special `Field` contains the default indexing settings for all fields. + * This field's resource name is: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` + * Indexes defined on this `Field` will be applied to all fields which do not + * have their own `Field` index configuration. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * A field name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + * A field path may be a simple field name, e.g. `address` or a path to fields + * within map_value , e.g. `address.city`, + * or a special field path. The only valid special field is `*`, which + * represents any field. + * Field paths may be quoted using ` (backtick). The only character that needs + * to be escaped within a quoted field path is the backtick character itself, + * escaped using a backslash. Special characters in field paths that + * must be quoted include: `*`, `.`, + * ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. + * Examples: + * (Note: Comments here are written in markdown syntax, so there is an + * additional layer of backticks to represent a code block) + * `\`address.city\`` represents a field named `address.city`, not the map key + * `city` in the field `address`. + * `\`*\`` represents a field named `*`, not any field. + * A special `Field` contains the default indexing settings for all fields. + * This field's resource name is: + * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` + * Indexes defined on this `Field` will be applied to all fields which do not + * have their own `Field` index configuration. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * The index configuration for this field. If unset, field indexing will + * revert to the configuration defined by the `ancestor_field`. To + * explicitly remove all indexes for this field, specify an index config + * with an empty list of indexes. + *+ * + *
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
+ */
+ boolean hasIndexConfig();
+ /**
+ *
+ *
+ * + * The index configuration for this field. If unset, field indexing will + * revert to the configuration defined by the `ancestor_field`. To + * explicitly remove all indexes for this field, specify an index config + * with an empty list of indexes. + *+ * + *
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
+ */
+ com.google.firestore.admin.v1.Field.IndexConfig getIndexConfig();
+ /**
+ *
+ *
+ * + * The index configuration for this field. If unset, field indexing will + * revert to the configuration defined by the `ancestor_field`. To + * explicitly remove all indexes for this field, specify an index config + * with an empty list of indexes. + *+ * + *
.google.firestore.admin.v1.Field.IndexConfig index_config = 2;
+ */
+ com.google.firestore.admin.v1.Field.IndexConfigOrBuilder getIndexConfigOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldProto.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldProto.java
new file mode 100644
index 000000000000..bb1d6c386ef6
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldProto.java
@@ -0,0 +1,84 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/field.proto
+
+package com.google.firestore.admin.v1;
+
+public final class FieldProto {
+ private FieldProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_firestore_admin_v1_Field_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_firestore_admin_v1_Field_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_firestore_admin_v1_Field_IndexConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_firestore_admin_v1_Field_IndexConfig_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n%google/firestore/admin/v1/field.proto\022"
+ + "\031google.firestore.admin.v1\032%google/fires"
+ + "tore/admin/v1/index.proto\032\034google/api/an"
+ + "notations.proto\"\345\001\n\005Field\022\014\n\004name\030\001 \001(\t\022"
+ + "B\n\014index_config\030\002 \001(\0132,.google.firestore"
+ + ".admin.v1.Field.IndexConfig\032\211\001\n\013IndexCon"
+ + "fig\0221\n\007indexes\030\001 \003(\0132 .google.firestore."
+ + "admin.v1.Index\022\034\n\024uses_ancestor_config\030\002"
+ + " \001(\010\022\026\n\016ancestor_field\030\003 \001(\t\022\021\n\trevertin"
+ + "g\030\004 \001(\010B\270\001\n\035com.google.firestore.admin.v"
+ + "1B\nFieldProtoP\001Z>google.golang.org/genpr"
+ + "oto/googleapis/firestore/admin/v1;admin\242"
+ + "\002\004GCFS\252\002\037Google.Cloud.Firestore.Admin.V1"
+ + "\312\002\037Google\\Cloud\\Firestore\\Admin\\V1b\006prot"
+ + "o3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.firestore.admin.v1.IndexProto.getDescriptor(),
+ com.google.api.AnnotationsProto.getDescriptor(),
+ },
+ assigner);
+ internal_static_google_firestore_admin_v1_Field_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_firestore_admin_v1_Field_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_firestore_admin_v1_Field_descriptor,
+ new java.lang.String[] {
+ "Name", "IndexConfig",
+ });
+ internal_static_google_firestore_admin_v1_Field_IndexConfig_descriptor =
+ internal_static_google_firestore_admin_v1_Field_descriptor.getNestedTypes().get(0);
+ internal_static_google_firestore_admin_v1_Field_IndexConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_firestore_admin_v1_Field_IndexConfig_descriptor,
+ new java.lang.String[] {
+ "Indexes", "UsesAncestorConfig", "AncestorField", "Reverting",
+ });
+ com.google.firestore.admin.v1.IndexProto.getDescriptor();
+ com.google.api.AnnotationsProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminProto.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminProto.java
new file mode 100644
index 000000000000..c058711f5eda
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminProto.java
@@ -0,0 +1,263 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/firestore_admin.proto
+
+package com.google.firestore.admin.v1;
+
+public final class FirestoreAdminProto {
+ private FirestoreAdminProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_firestore_admin_v1_CreateIndexRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_firestore_admin_v1_CreateIndexRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_firestore_admin_v1_ListIndexesRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_firestore_admin_v1_ListIndexesRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_firestore_admin_v1_ListIndexesResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_firestore_admin_v1_ListIndexesResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_firestore_admin_v1_GetIndexRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_firestore_admin_v1_GetIndexRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_firestore_admin_v1_DeleteIndexRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_firestore_admin_v1_DeleteIndexRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_firestore_admin_v1_UpdateFieldRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_firestore_admin_v1_UpdateFieldRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_firestore_admin_v1_GetFieldRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_firestore_admin_v1_GetFieldRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_firestore_admin_v1_ListFieldsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_firestore_admin_v1_ListFieldsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_firestore_admin_v1_ListFieldsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_firestore_admin_v1_ListFieldsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_firestore_admin_v1_ExportDocumentsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_firestore_admin_v1_ExportDocumentsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_firestore_admin_v1_ImportDocumentsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_firestore_admin_v1_ImportDocumentsRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n/google/firestore/admin/v1/firestore_ad"
+ + "min.proto\022\031google.firestore.admin.v1\032\034go"
+ + "ogle/api/annotations.proto\032%google/fires"
+ + "tore/admin/v1/field.proto\032%google/firest"
+ + "ore/admin/v1/index.proto\032#google/longrun"
+ + "ning/operations.proto\032\033google/protobuf/e"
+ + "mpty.proto\032 google/protobuf/field_mask.p"
+ + "roto\"U\n\022CreateIndexRequest\022\016\n\006parent\030\001 \001"
+ + "(\t\022/\n\005index\030\002 \001(\0132 .google.firestore.adm"
+ + "in.v1.Index\"[\n\022ListIndexesRequest\022\016\n\006par"
+ + "ent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003"
+ + " \001(\005\022\022\n\npage_token\030\004 \001(\t\"a\n\023ListIndexesR"
+ + "esponse\0221\n\007indexes\030\001 \003(\0132 .google.firest"
+ + "ore.admin.v1.Index\022\027\n\017next_page_token\030\002 "
+ + "\001(\t\"\037\n\017GetIndexRequest\022\014\n\004name\030\001 \001(\t\"\"\n\022"
+ + "DeleteIndexRequest\022\014\n\004name\030\001 \001(\t\"v\n\022Upda"
+ + "teFieldRequest\022/\n\005field\030\001 \001(\0132 .google.f"
+ + "irestore.admin.v1.Field\022/\n\013update_mask\030\002"
+ + " \001(\0132\032.google.protobuf.FieldMask\"\037\n\017GetF"
+ + "ieldRequest\022\014\n\004name\030\001 \001(\t\"Z\n\021ListFieldsR"
+ + "equest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021"
+ + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"_\n"
+ + "\022ListFieldsResponse\0220\n\006fields\030\001 \003(\0132 .go"
+ + "ogle.firestore.admin.v1.Field\022\027\n\017next_pa"
+ + "ge_token\030\002 \001(\t\"Y\n\026ExportDocumentsRequest"
+ + "\022\014\n\004name\030\001 \001(\t\022\026\n\016collection_ids\030\002 \003(\t\022\031"
+ + "\n\021output_uri_prefix\030\003 \001(\t\"X\n\026ImportDocum"
+ + "entsRequest\022\014\n\004name\030\001 \001(\t\022\026\n\016collection_"
+ + "ids\030\002 \003(\t\022\030\n\020input_uri_prefix\030\003 \001(\t2\205\014\n\016"
+ + "FirestoreAdmin\022\252\001\n\013CreateIndex\022-.google."
+ + "firestore.admin.v1.CreateIndexRequest\032\035."
+ + "google.longrunning.Operation\"M\202\323\344\223\002G\">/v"
+ + "1/{parent=projects/*/databases/*/collect"
+ + "ionGroups/*}/indexes:\005index\022\264\001\n\013ListInde"
+ + "xes\022-.google.firestore.admin.v1.ListInde"
+ + "xesRequest\032..google.firestore.admin.v1.L"
+ + "istIndexesResponse\"F\202\323\344\223\002@\022>/v1/{parent="
+ + "projects/*/databases/*/collectionGroups/"
+ + "*}/indexes\022\240\001\n\010GetIndex\022*.google.firesto"
+ + "re.admin.v1.GetIndexRequest\032 .google.fir"
+ + "estore.admin.v1.Index\"F\202\323\344\223\002@\022>/v1/{name"
+ + "=projects/*/databases/*/collectionGroups"
+ + "/*/indexes/*}\022\234\001\n\013DeleteIndex\022-.google.f"
+ + "irestore.admin.v1.DeleteIndexRequest\032\026.g"
+ + "oogle.protobuf.Empty\"F\202\323\344\223\002@*>/v1/{name="
+ + "projects/*/databases/*/collectionGroups/"
+ + "*/indexes/*}\022\237\001\n\010GetField\022*.google.fires"
+ + "tore.admin.v1.GetFieldRequest\032 .google.f"
+ + "irestore.admin.v1.Field\"E\202\323\344\223\002?\022=/v1/{na"
+ + "me=projects/*/databases/*/collectionGrou"
+ + "ps/*/fields/*}\022\257\001\n\013UpdateField\022-.google."
+ + "firestore.admin.v1.UpdateFieldRequest\032\035."
+ + "google.longrunning.Operation\"R\202\323\344\223\002L2C/v"
+ + "1/{field.name=projects/*/databases/*/col"
+ + "lectionGroups/*/fields/*}:\005field\022\260\001\n\nLis"
+ + "tFields\022,.google.firestore.admin.v1.List"
+ + "FieldsRequest\032-.google.firestore.admin.v"
+ + "1.ListFieldsResponse\"E\202\323\344\223\002?\022=/v1/{paren"
+ + "t=projects/*/databases/*/collectionGroup"
+ + "s/*}/fields\022\241\001\n\017ExportDocuments\0221.google"
+ + ".firestore.admin.v1.ExportDocumentsReque"
+ + "st\032\035.google.longrunning.Operation\"<\202\323\344\223\002"
+ + "6\"1/v1/{name=projects/*/databases/*}:exp"
+ + "ortDocuments:\001*\022\241\001\n\017ImportDocuments\0221.go"
+ + "ogle.firestore.admin.v1.ImportDocumentsR"
+ + "equest\032\035.google.longrunning.Operation\"<\202"
+ + "\323\344\223\0026\"1/v1/{name=projects/*/databases/*}"
+ + ":importDocuments:\001*B\301\001\n\035com.google.fires"
+ + "tore.admin.v1B\023FirestoreAdminProtoP\001Z>go"
+ + "ogle.golang.org/genproto/googleapis/fire"
+ + "store/admin/v1;admin\242\002\004GCFS\252\002\037Google.Clo"
+ + "ud.Firestore.Admin.V1\312\002\037Google\\Cloud\\Fir"
+ + "estore\\Admin\\V1b\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.firestore.admin.v1.FieldProto.getDescriptor(),
+ com.google.firestore.admin.v1.IndexProto.getDescriptor(),
+ com.google.longrunning.OperationsProto.getDescriptor(),
+ com.google.protobuf.EmptyProto.getDescriptor(),
+ com.google.protobuf.FieldMaskProto.getDescriptor(),
+ },
+ assigner);
+ internal_static_google_firestore_admin_v1_CreateIndexRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_firestore_admin_v1_CreateIndexRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_firestore_admin_v1_CreateIndexRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Index",
+ });
+ internal_static_google_firestore_admin_v1_ListIndexesRequest_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_firestore_admin_v1_ListIndexesRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_firestore_admin_v1_ListIndexesRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Filter", "PageSize", "PageToken",
+ });
+ internal_static_google_firestore_admin_v1_ListIndexesResponse_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_firestore_admin_v1_ListIndexesResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_firestore_admin_v1_ListIndexesResponse_descriptor,
+ new java.lang.String[] {
+ "Indexes", "NextPageToken",
+ });
+ internal_static_google_firestore_admin_v1_GetIndexRequest_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_firestore_admin_v1_GetIndexRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_firestore_admin_v1_GetIndexRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_firestore_admin_v1_DeleteIndexRequest_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_google_firestore_admin_v1_DeleteIndexRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_firestore_admin_v1_DeleteIndexRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_firestore_admin_v1_UpdateFieldRequest_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_google_firestore_admin_v1_UpdateFieldRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_firestore_admin_v1_UpdateFieldRequest_descriptor,
+ new java.lang.String[] {
+ "Field", "UpdateMask",
+ });
+ internal_static_google_firestore_admin_v1_GetFieldRequest_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_google_firestore_admin_v1_GetFieldRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_firestore_admin_v1_GetFieldRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_firestore_admin_v1_ListFieldsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_google_firestore_admin_v1_ListFieldsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_firestore_admin_v1_ListFieldsRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Filter", "PageSize", "PageToken",
+ });
+ internal_static_google_firestore_admin_v1_ListFieldsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_google_firestore_admin_v1_ListFieldsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_firestore_admin_v1_ListFieldsResponse_descriptor,
+ new java.lang.String[] {
+ "Fields", "NextPageToken",
+ });
+ internal_static_google_firestore_admin_v1_ExportDocumentsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_google_firestore_admin_v1_ExportDocumentsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_firestore_admin_v1_ExportDocumentsRequest_descriptor,
+ new java.lang.String[] {
+ "Name", "CollectionIds", "OutputUriPrefix",
+ });
+ internal_static_google_firestore_admin_v1_ImportDocumentsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_google_firestore_admin_v1_ImportDocumentsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_firestore_admin_v1_ImportDocumentsRequest_descriptor,
+ new java.lang.String[] {
+ "Name", "CollectionIds", "InputUriPrefix",
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.AnnotationsProto.http);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.AnnotationsProto.getDescriptor();
+ com.google.firestore.admin.v1.FieldProto.getDescriptor();
+ com.google.firestore.admin.v1.IndexProto.getDescriptor();
+ com.google.longrunning.OperationsProto.getDescriptor();
+ com.google.protobuf.EmptyProto.getDescriptor();
+ com.google.protobuf.FieldMaskProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequest.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequest.java
new file mode 100644
index 000000000000..22c24383e2b6
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetFieldRequest.java
@@ -0,0 +1,604 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/firestore_admin.proto
+
+package com.google.firestore.admin.v1;
+
+/**
+ *
+ *
+ * + * The request for [FirestoreAdmin.GetField][google.firestore.admin.v1.FirestoreAdmin.GetField]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.GetFieldRequest} + */ +public final class GetFieldRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.GetFieldRequest) + GetFieldRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetFieldRequest.newBuilder() to construct. + private GetFieldRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private GetFieldRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetFieldRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_GetFieldRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_GetFieldRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.GetFieldRequest.class, + com.google.firestore.admin.v1.GetFieldRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.GetFieldRequest)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.GetFieldRequest other =
+ (com.google.firestore.admin.v1.GetFieldRequest) obj;
+
+ boolean result = true;
+ result = result && getName().equals(other.getName());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.GetFieldRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.GetFieldRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.GetFieldRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.GetFieldRequest 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.firestore.admin.v1.GetFieldRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.GetFieldRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.GetFieldRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.GetFieldRequest 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.firestore.admin.v1.GetFieldRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.GetFieldRequest 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.firestore.admin.v1.GetFieldRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.GetFieldRequest 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.GetFieldRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The request for [FirestoreAdmin.GetField][google.firestore.admin.v1.FirestoreAdmin.GetField]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.GetFieldRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.GetFieldRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.GetFieldRequest)
+ private static final com.google.firestore.admin.v1.GetFieldRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.GetFieldRequest();
+ }
+
+ public static com.google.firestore.admin.v1.GetFieldRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequest.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequest.java
new file mode 100644
index 000000000000..2e318046789e
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/GetIndexRequest.java
@@ -0,0 +1,604 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/firestore_admin.proto
+
+package com.google.firestore.admin.v1;
+
+/**
+ *
+ *
+ * + * The request for [FirestoreAdmin.GetIndex][google.firestore.admin.v1.FirestoreAdmin.GetIndex]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.GetIndexRequest} + */ +public final class GetIndexRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.GetIndexRequest) + GetIndexRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetIndexRequest.newBuilder() to construct. + private GetIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private GetIndexRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetIndexRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_GetIndexRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_GetIndexRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.GetIndexRequest.class, + com.google.firestore.admin.v1.GetIndexRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.GetIndexRequest)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.GetIndexRequest other =
+ (com.google.firestore.admin.v1.GetIndexRequest) obj;
+
+ boolean result = true;
+ result = result && getName().equals(other.getName());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.GetIndexRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.GetIndexRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.GetIndexRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.GetIndexRequest 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.firestore.admin.v1.GetIndexRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.GetIndexRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.GetIndexRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.GetIndexRequest 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.firestore.admin.v1.GetIndexRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.GetIndexRequest 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.firestore.admin.v1.GetIndexRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.GetIndexRequest 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.GetIndexRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The request for [FirestoreAdmin.GetIndex][google.firestore.admin.v1.FirestoreAdmin.GetIndex]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.GetIndexRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.GetIndexRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.GetIndexRequest)
+ private static final com.google.firestore.admin.v1.GetIndexRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.GetIndexRequest();
+ }
+
+ public static com.google.firestore.admin.v1.GetIndexRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * A name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadata.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadata.java
new file mode 100644
index 000000000000..9df25955c345
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadata.java
@@ -0,0 +1,2040 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/operation.proto
+
+package com.google.firestore.admin.v1;
+
+/**
+ *
+ *
+ * + * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from + * [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ImportDocumentsMetadata} + */ +public final class ImportDocumentsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ImportDocumentsMetadata) + ImportDocumentsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportDocumentsMetadata.newBuilder() to construct. + private ImportDocumentsMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ImportDocumentsMetadata() { + operationState_ = 0; + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + inputUriPrefix_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ImportDocumentsMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + int rawValue = input.readEnum(); + + operationState_ = rawValue; + break; + } + case 34: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressDocuments_ != null) { + subBuilder = progressDocuments_.toBuilder(); + } + progressDocuments_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressDocuments_); + progressDocuments_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressBytes_ != null) { + subBuilder = progressBytes_.toBuilder(); + } + progressBytes_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressBytes_); + progressBytes_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + collectionIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + collectionIds_.add(s); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + inputUriPrefix_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + collectionIds_ = collectionIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ImportDocumentsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_ImportDocumentsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ImportDocumentsMetadata.class, + com.google.firestore.admin.v1.ImportDocumentsMetadata.Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+ * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public boolean hasStartTime() {
+ return startTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.Timestamp getStartTime() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ return getStartTime();
+ }
+
+ public static final int END_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp endTime_;
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public boolean hasEndTime() {
+ return endTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp getEndTime() {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ return getEndTime();
+ }
+
+ public static final int OPERATION_STATE_FIELD_NUMBER = 3;
+ private int operationState_;
+ /**
+ *
+ *
+ * + * The state of the import operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ public int getOperationStateValue() {
+ return operationState_;
+ }
+ /**
+ *
+ *
+ * + * The state of the import operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ public com.google.firestore.admin.v1.OperationState getOperationState() {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.OperationState result =
+ com.google.firestore.admin.v1.OperationState.valueOf(operationState_);
+ return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result;
+ }
+
+ public static final int PROGRESS_DOCUMENTS_FIELD_NUMBER = 4;
+ private com.google.firestore.admin.v1.Progress progressDocuments_;
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public boolean hasProgressDocuments() {
+ return progressDocuments_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressDocuments() {
+ return progressDocuments_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressDocuments_;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() {
+ return getProgressDocuments();
+ }
+
+ public static final int PROGRESS_BYTES_FIELD_NUMBER = 5;
+ private com.google.firestore.admin.v1.Progress progressBytes_;
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public boolean hasProgressBytes() {
+ return progressBytes_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressBytes() {
+ return progressBytes_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressBytes_;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() {
+ return getProgressBytes();
+ }
+
+ public static final int COLLECTION_IDS_FIELD_NUMBER = 6;
+ private com.google.protobuf.LazyStringList collectionIds_;
+ /**
+ *
+ *
+ * + * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public com.google.protobuf.ProtocolStringList getCollectionIdsList() {
+ return collectionIds_;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public int getCollectionIdsCount() {
+ return collectionIds_.size();
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public java.lang.String getCollectionIds(int index) {
+ return collectionIds_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public com.google.protobuf.ByteString getCollectionIdsBytes(int index) {
+ return collectionIds_.getByteString(index);
+ }
+
+ public static final int INPUT_URI_PREFIX_FIELD_NUMBER = 7;
+ private volatile java.lang.Object inputUriPrefix_;
+ /**
+ *
+ *
+ * + * The location of the documents being imported. + *+ * + *
string input_uri_prefix = 7;
+ */
+ public java.lang.String getInputUriPrefix() {
+ java.lang.Object ref = inputUriPrefix_;
+ 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();
+ inputUriPrefix_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The location of the documents being imported. + *+ * + *
string input_uri_prefix = 7;
+ */
+ public com.google.protobuf.ByteString getInputUriPrefixBytes() {
+ java.lang.Object ref = inputUriPrefix_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputUriPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (startTime_ != null) {
+ output.writeMessage(1, getStartTime());
+ }
+ if (endTime_ != null) {
+ output.writeMessage(2, getEndTime());
+ }
+ if (operationState_
+ != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(3, operationState_);
+ }
+ if (progressDocuments_ != null) {
+ output.writeMessage(4, getProgressDocuments());
+ }
+ if (progressBytes_ != null) {
+ output.writeMessage(5, getProgressBytes());
+ }
+ for (int i = 0; i < collectionIds_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, collectionIds_.getRaw(i));
+ }
+ if (!getInputUriPrefixBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, inputUriPrefix_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (startTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
+ }
+ if (endTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
+ }
+ if (operationState_
+ != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, operationState_);
+ }
+ if (progressDocuments_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProgressDocuments());
+ }
+ if (progressBytes_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProgressBytes());
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < collectionIds_.size(); i++) {
+ dataSize += computeStringSizeNoTag(collectionIds_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getCollectionIdsList().size();
+ }
+ if (!getInputUriPrefixBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, inputUriPrefix_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.ImportDocumentsMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.ImportDocumentsMetadata other =
+ (com.google.firestore.admin.v1.ImportDocumentsMetadata) obj;
+
+ boolean result = true;
+ result = result && (hasStartTime() == other.hasStartTime());
+ if (hasStartTime()) {
+ result = result && getStartTime().equals(other.getStartTime());
+ }
+ result = result && (hasEndTime() == other.hasEndTime());
+ if (hasEndTime()) {
+ result = result && getEndTime().equals(other.getEndTime());
+ }
+ result = result && operationState_ == other.operationState_;
+ result = result && (hasProgressDocuments() == other.hasProgressDocuments());
+ if (hasProgressDocuments()) {
+ result = result && getProgressDocuments().equals(other.getProgressDocuments());
+ }
+ result = result && (hasProgressBytes() == other.hasProgressBytes());
+ if (hasProgressBytes()) {
+ result = result && getProgressBytes().equals(other.getProgressBytes());
+ }
+ result = result && getCollectionIdsList().equals(other.getCollectionIdsList());
+ result = result && getInputUriPrefix().equals(other.getInputUriPrefix());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStartTime()) {
+ hash = (37 * hash) + START_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getStartTime().hashCode();
+ }
+ if (hasEndTime()) {
+ hash = (37 * hash) + END_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getEndTime().hashCode();
+ }
+ hash = (37 * hash) + OPERATION_STATE_FIELD_NUMBER;
+ hash = (53 * hash) + operationState_;
+ if (hasProgressDocuments()) {
+ hash = (37 * hash) + PROGRESS_DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getProgressDocuments().hashCode();
+ }
+ if (hasProgressBytes()) {
+ hash = (37 * hash) + PROGRESS_BYTES_FIELD_NUMBER;
+ hash = (53 * hash) + getProgressBytes().hashCode();
+ }
+ if (getCollectionIdsCount() > 0) {
+ hash = (37 * hash) + COLLECTION_IDS_FIELD_NUMBER;
+ hash = (53 * hash) + getCollectionIdsList().hashCode();
+ }
+ hash = (37 * hash) + INPUT_URI_PREFIX_FIELD_NUMBER;
+ hash = (53 * hash) + getInputUriPrefix().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsMetadata parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsMetadata 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.firestore.admin.v1.ImportDocumentsMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsMetadata 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.firestore.admin.v1.ImportDocumentsMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsMetadata 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.firestore.admin.v1.ImportDocumentsMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsMetadata 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.firestore.admin.v1.ImportDocumentsMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from + * [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ImportDocumentsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public boolean hasStartTime() {
+ return startTimeBuilder_ != null || startTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.Timestamp getStartTime() {
+ if (startTimeBuilder_ == null) {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ } else {
+ return startTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ startTime_ = value;
+ onChanged();
+ } else {
+ startTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (startTimeBuilder_ == null) {
+ startTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ startTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (startTime_ != null) {
+ startTime_ =
+ com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
+ } else {
+ startTime_ = value;
+ }
+ onChanged();
+ } else {
+ startTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder clearStartTime() {
+ if (startTimeBuilder_ == null) {
+ startTime_ = null;
+ onChanged();
+ } else {
+ startTime_ = null;
+ startTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
+
+ onChanged();
+ return getStartTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ if (startTimeBuilder_ != null) {
+ return startTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getStartTimeFieldBuilder() {
+ if (startTimeBuilder_ == null) {
+ startTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getStartTime(), getParentForChildren(), isClean());
+ startTime_ = null;
+ }
+ return startTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp endTime_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ endTimeBuilder_;
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public boolean hasEndTime() {
+ return endTimeBuilder_ != null || endTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp getEndTime() {
+ if (endTimeBuilder_ == null) {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ } else {
+ return endTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder setEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ endTime_ = value;
+ onChanged();
+ } else {
+ endTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (endTimeBuilder_ == null) {
+ endTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ endTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (endTime_ != null) {
+ endTime_ =
+ com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+ } else {
+ endTime_ = value;
+ }
+ onChanged();
+ } else {
+ endTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder clearEndTime() {
+ if (endTimeBuilder_ == null) {
+ endTime_ = null;
+ onChanged();
+ } else {
+ endTime_ = null;
+ endTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
+
+ onChanged();
+ return getEndTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ if (endTimeBuilder_ != null) {
+ return endTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getEndTimeFieldBuilder() {
+ if (endTimeBuilder_ == null) {
+ endTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getEndTime(), getParentForChildren(), isClean());
+ endTime_ = null;
+ }
+ return endTimeBuilder_;
+ }
+
+ private int operationState_ = 0;
+ /**
+ *
+ *
+ * + * The state of the import operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ public int getOperationStateValue() {
+ return operationState_;
+ }
+ /**
+ *
+ *
+ * + * The state of the import operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ public Builder setOperationStateValue(int value) {
+ operationState_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The state of the import operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ public com.google.firestore.admin.v1.OperationState getOperationState() {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.OperationState result =
+ com.google.firestore.admin.v1.OperationState.valueOf(operationState_);
+ return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * The state of the import operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ public Builder setOperationState(com.google.firestore.admin.v1.OperationState value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ operationState_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The state of the import operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ public Builder clearOperationState() {
+
+ operationState_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.firestore.admin.v1.Progress progressDocuments_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ progressDocumentsBuilder_;
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public boolean hasProgressDocuments() {
+ return progressDocumentsBuilder_ != null || progressDocuments_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressDocuments() {
+ if (progressDocumentsBuilder_ == null) {
+ return progressDocuments_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressDocuments_;
+ } else {
+ return progressDocumentsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public Builder setProgressDocuments(com.google.firestore.admin.v1.Progress value) {
+ if (progressDocumentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ progressDocuments_ = value;
+ onChanged();
+ } else {
+ progressDocumentsBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public Builder setProgressDocuments(
+ com.google.firestore.admin.v1.Progress.Builder builderForValue) {
+ if (progressDocumentsBuilder_ == null) {
+ progressDocuments_ = builderForValue.build();
+ onChanged();
+ } else {
+ progressDocumentsBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public Builder mergeProgressDocuments(com.google.firestore.admin.v1.Progress value) {
+ if (progressDocumentsBuilder_ == null) {
+ if (progressDocuments_ != null) {
+ progressDocuments_ =
+ com.google.firestore.admin.v1.Progress.newBuilder(progressDocuments_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ progressDocuments_ = value;
+ }
+ onChanged();
+ } else {
+ progressDocumentsBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public Builder clearProgressDocuments() {
+ if (progressDocumentsBuilder_ == null) {
+ progressDocuments_ = null;
+ onChanged();
+ } else {
+ progressDocuments_ = null;
+ progressDocumentsBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public com.google.firestore.admin.v1.Progress.Builder getProgressDocumentsBuilder() {
+
+ onChanged();
+ return getProgressDocumentsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() {
+ if (progressDocumentsBuilder_ != null) {
+ return progressDocumentsBuilder_.getMessageOrBuilder();
+ } else {
+ return progressDocuments_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressDocuments_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ getProgressDocumentsFieldBuilder() {
+ if (progressDocumentsBuilder_ == null) {
+ progressDocumentsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>(
+ getProgressDocuments(), getParentForChildren(), isClean());
+ progressDocuments_ = null;
+ }
+ return progressDocumentsBuilder_;
+ }
+
+ private com.google.firestore.admin.v1.Progress progressBytes_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ progressBytesBuilder_;
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public boolean hasProgressBytes() {
+ return progressBytesBuilder_ != null || progressBytes_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressBytes() {
+ if (progressBytesBuilder_ == null) {
+ return progressBytes_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressBytes_;
+ } else {
+ return progressBytesBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public Builder setProgressBytes(com.google.firestore.admin.v1.Progress value) {
+ if (progressBytesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ progressBytes_ = value;
+ onChanged();
+ } else {
+ progressBytesBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public Builder setProgressBytes(
+ com.google.firestore.admin.v1.Progress.Builder builderForValue) {
+ if (progressBytesBuilder_ == null) {
+ progressBytes_ = builderForValue.build();
+ onChanged();
+ } else {
+ progressBytesBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public Builder mergeProgressBytes(com.google.firestore.admin.v1.Progress value) {
+ if (progressBytesBuilder_ == null) {
+ if (progressBytes_ != null) {
+ progressBytes_ =
+ com.google.firestore.admin.v1.Progress.newBuilder(progressBytes_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ progressBytes_ = value;
+ }
+ onChanged();
+ } else {
+ progressBytesBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public Builder clearProgressBytes() {
+ if (progressBytesBuilder_ == null) {
+ progressBytes_ = null;
+ onChanged();
+ } else {
+ progressBytes_ = null;
+ progressBytesBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public com.google.firestore.admin.v1.Progress.Builder getProgressBytesBuilder() {
+
+ onChanged();
+ return getProgressBytesFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() {
+ if (progressBytesBuilder_ != null) {
+ return progressBytesBuilder_.getMessageOrBuilder();
+ } else {
+ return progressBytes_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressBytes_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ getProgressBytesFieldBuilder() {
+ if (progressBytesBuilder_ == null) {
+ progressBytesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>(
+ getProgressBytes(), getParentForChildren(), isClean());
+ progressBytes_ = null;
+ }
+ return progressBytesBuilder_;
+ }
+
+ private com.google.protobuf.LazyStringList collectionIds_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureCollectionIdsIsMutable() {
+ if (!((bitField0_ & 0x00000020) == 0x00000020)) {
+ collectionIds_ = new com.google.protobuf.LazyStringArrayList(collectionIds_);
+ bitField0_ |= 0x00000020;
+ }
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public com.google.protobuf.ProtocolStringList getCollectionIdsList() {
+ return collectionIds_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public int getCollectionIdsCount() {
+ return collectionIds_.size();
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public java.lang.String getCollectionIds(int index) {
+ return collectionIds_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public com.google.protobuf.ByteString getCollectionIdsBytes(int index) {
+ return collectionIds_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public Builder setCollectionIds(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCollectionIdsIsMutable();
+ collectionIds_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public Builder addCollectionIds(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCollectionIdsIsMutable();
+ collectionIds_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public Builder addAllCollectionIds(java.lang.Iterable+ * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public Builder clearCollectionIds() {
+ collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ public Builder addCollectionIdsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureCollectionIdsIsMutable();
+ collectionIds_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object inputUriPrefix_ = "";
+ /**
+ *
+ *
+ * + * The location of the documents being imported. + *+ * + *
string input_uri_prefix = 7;
+ */
+ public java.lang.String getInputUriPrefix() {
+ java.lang.Object ref = inputUriPrefix_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ inputUriPrefix_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The location of the documents being imported. + *+ * + *
string input_uri_prefix = 7;
+ */
+ public com.google.protobuf.ByteString getInputUriPrefixBytes() {
+ java.lang.Object ref = inputUriPrefix_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputUriPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The location of the documents being imported. + *+ * + *
string input_uri_prefix = 7;
+ */
+ public Builder setInputUriPrefix(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ inputUriPrefix_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The location of the documents being imported. + *+ * + *
string input_uri_prefix = 7;
+ */
+ public Builder clearInputUriPrefix() {
+
+ inputUriPrefix_ = getDefaultInstance().getInputUriPrefix();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The location of the documents being imported. + *+ * + *
string input_uri_prefix = 7;
+ */
+ public Builder setInputUriPrefixBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ inputUriPrefix_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.ImportDocumentsMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ImportDocumentsMetadata)
+ private static final com.google.firestore.admin.v1.ImportDocumentsMetadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ImportDocumentsMetadata();
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ boolean hasStartTime();
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ com.google.protobuf.Timestamp getStartTime();
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ boolean hasEndTime();
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ com.google.protobuf.Timestamp getEndTime();
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The state of the import operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ int getOperationStateValue();
+ /**
+ *
+ *
+ * + * The state of the import operation. + *+ * + *
.google.firestore.admin.v1.OperationState operation_state = 3;
+ */
+ com.google.firestore.admin.v1.OperationState getOperationState();
+
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ boolean hasProgressDocuments();
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ com.google.firestore.admin.v1.Progress getProgressDocuments();
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 4;
+ */
+ com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder();
+
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ boolean hasProgressBytes();
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ com.google.firestore.admin.v1.Progress getProgressBytes();
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 5;
+ */
+ com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder();
+
+ /**
+ *
+ *
+ * + * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ java.util.List+ * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ int getCollectionIdsCount();
+ /**
+ *
+ *
+ * + * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ java.lang.String getCollectionIds(int index);
+ /**
+ *
+ *
+ * + * Which collection ids are being imported. + *+ * + *
repeated string collection_ids = 6;
+ */
+ com.google.protobuf.ByteString getCollectionIdsBytes(int index);
+
+ /**
+ *
+ *
+ * + * The location of the documents being imported. + *+ * + *
string input_uri_prefix = 7;
+ */
+ java.lang.String getInputUriPrefix();
+ /**
+ *
+ *
+ * + * The location of the documents being imported. + *+ * + *
string input_uri_prefix = 7;
+ */
+ com.google.protobuf.ByteString getInputUriPrefixBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequest.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequest.java
new file mode 100644
index 000000000000..0b2bd2219716
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequest.java
@@ -0,0 +1,1055 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/firestore_admin.proto
+
+package com.google.firestore.admin.v1;
+
+/**
+ *
+ *
+ * + * The request for [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ImportDocumentsRequest} + */ +public final class ImportDocumentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ImportDocumentsRequest) + ImportDocumentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportDocumentsRequest.newBuilder() to construct. + private ImportDocumentsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ImportDocumentsRequest() { + name_ = ""; + collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + inputUriPrefix_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ImportDocumentsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + collectionIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + collectionIds_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + inputUriPrefix_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + collectionIds_ = collectionIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ImportDocumentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ImportDocumentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ImportDocumentsRequest.class, + com.google.firestore.admin.v1.ImportDocumentsRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Database to import into. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Database to import into. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COLLECTION_IDS_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList collectionIds_;
+ /**
+ *
+ *
+ * + * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public com.google.protobuf.ProtocolStringList getCollectionIdsList() {
+ return collectionIds_;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public int getCollectionIdsCount() {
+ return collectionIds_.size();
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public java.lang.String getCollectionIds(int index) {
+ return collectionIds_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public com.google.protobuf.ByteString getCollectionIdsBytes(int index) {
+ return collectionIds_.getByteString(index);
+ }
+
+ public static final int INPUT_URI_PREFIX_FIELD_NUMBER = 3;
+ private volatile java.lang.Object inputUriPrefix_;
+ /**
+ *
+ *
+ * + * Location of the exported files. + * This must match the output_uri_prefix of an ExportDocumentsResponse from + * an export that has completed successfully. + * See: + * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix]. + *+ * + *
string input_uri_prefix = 3;
+ */
+ public java.lang.String getInputUriPrefix() {
+ java.lang.Object ref = inputUriPrefix_;
+ 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();
+ inputUriPrefix_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location of the exported files. + * This must match the output_uri_prefix of an ExportDocumentsResponse from + * an export that has completed successfully. + * See: + * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix]. + *+ * + *
string input_uri_prefix = 3;
+ */
+ public com.google.protobuf.ByteString getInputUriPrefixBytes() {
+ java.lang.Object ref = inputUriPrefix_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputUriPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ for (int i = 0; i < collectionIds_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, collectionIds_.getRaw(i));
+ }
+ if (!getInputUriPrefixBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inputUriPrefix_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < collectionIds_.size(); i++) {
+ dataSize += computeStringSizeNoTag(collectionIds_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getCollectionIdsList().size();
+ }
+ if (!getInputUriPrefixBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inputUriPrefix_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.ImportDocumentsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.ImportDocumentsRequest other =
+ (com.google.firestore.admin.v1.ImportDocumentsRequest) obj;
+
+ boolean result = true;
+ result = result && getName().equals(other.getName());
+ result = result && getCollectionIdsList().equals(other.getCollectionIdsList());
+ result = result && getInputUriPrefix().equals(other.getInputUriPrefix());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ if (getCollectionIdsCount() > 0) {
+ hash = (37 * hash) + COLLECTION_IDS_FIELD_NUMBER;
+ hash = (53 * hash) + getCollectionIdsList().hashCode();
+ }
+ hash = (37 * hash) + INPUT_URI_PREFIX_FIELD_NUMBER;
+ hash = (53 * hash) + getInputUriPrefix().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsRequest 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.firestore.admin.v1.ImportDocumentsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsRequest 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.firestore.admin.v1.ImportDocumentsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsRequest 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.firestore.admin.v1.ImportDocumentsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsRequest 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.ImportDocumentsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The request for [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ImportDocumentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Database to import into. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Database to import into. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Database to import into. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Database to import into. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Database to import into. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList collectionIds_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureCollectionIdsIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ collectionIds_ = new com.google.protobuf.LazyStringArrayList(collectionIds_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public com.google.protobuf.ProtocolStringList getCollectionIdsList() {
+ return collectionIds_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public int getCollectionIdsCount() {
+ return collectionIds_.size();
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public java.lang.String getCollectionIds(int index) {
+ return collectionIds_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public com.google.protobuf.ByteString getCollectionIdsBytes(int index) {
+ return collectionIds_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public Builder setCollectionIds(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCollectionIdsIsMutable();
+ collectionIds_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public Builder addCollectionIds(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCollectionIdsIsMutable();
+ collectionIds_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public Builder addAllCollectionIds(java.lang.Iterable+ * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public Builder clearCollectionIds() {
+ collectionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ public Builder addCollectionIdsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureCollectionIdsIsMutable();
+ collectionIds_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object inputUriPrefix_ = "";
+ /**
+ *
+ *
+ * + * Location of the exported files. + * This must match the output_uri_prefix of an ExportDocumentsResponse from + * an export that has completed successfully. + * See: + * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix]. + *+ * + *
string input_uri_prefix = 3;
+ */
+ public java.lang.String getInputUriPrefix() {
+ java.lang.Object ref = inputUriPrefix_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ inputUriPrefix_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location of the exported files. + * This must match the output_uri_prefix of an ExportDocumentsResponse from + * an export that has completed successfully. + * See: + * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix]. + *+ * + *
string input_uri_prefix = 3;
+ */
+ public com.google.protobuf.ByteString getInputUriPrefixBytes() {
+ java.lang.Object ref = inputUriPrefix_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputUriPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Location of the exported files. + * This must match the output_uri_prefix of an ExportDocumentsResponse from + * an export that has completed successfully. + * See: + * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix]. + *+ * + *
string input_uri_prefix = 3;
+ */
+ public Builder setInputUriPrefix(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ inputUriPrefix_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Location of the exported files. + * This must match the output_uri_prefix of an ExportDocumentsResponse from + * an export that has completed successfully. + * See: + * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix]. + *+ * + *
string input_uri_prefix = 3;
+ */
+ public Builder clearInputUriPrefix() {
+
+ inputUriPrefix_ = getDefaultInstance().getInputUriPrefix();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Location of the exported files. + * This must match the output_uri_prefix of an ExportDocumentsResponse from + * an export that has completed successfully. + * See: + * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix]. + *+ * + *
string input_uri_prefix = 3;
+ */
+ public Builder setInputUriPrefixBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ inputUriPrefix_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.ImportDocumentsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ImportDocumentsRequest)
+ private static final com.google.firestore.admin.v1.ImportDocumentsRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ImportDocumentsRequest();
+ }
+
+ public static com.google.firestore.admin.v1.ImportDocumentsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Database to import into. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Database to import into. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ java.util.List+ * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ int getCollectionIdsCount();
+ /**
+ *
+ *
+ * + * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ java.lang.String getCollectionIds(int index);
+ /**
+ *
+ *
+ * + * Which collection ids to import. Unspecified means all collections included + * in the import. + *+ * + *
repeated string collection_ids = 2;
+ */
+ com.google.protobuf.ByteString getCollectionIdsBytes(int index);
+
+ /**
+ *
+ *
+ * + * Location of the exported files. + * This must match the output_uri_prefix of an ExportDocumentsResponse from + * an export that has completed successfully. + * See: + * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix]. + *+ * + *
string input_uri_prefix = 3;
+ */
+ java.lang.String getInputUriPrefix();
+ /**
+ *
+ *
+ * + * Location of the exported files. + * This must match the output_uri_prefix of an ExportDocumentsResponse from + * an export that has completed successfully. + * See: + * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix]. + *+ * + *
string input_uri_prefix = 3;
+ */
+ com.google.protobuf.ByteString getInputUriPrefixBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Index.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Index.java
new file mode 100644
index 000000000000..25f161687743
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Index.java
@@ -0,0 +1,3277 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/index.proto
+
+package com.google.firestore.admin.v1;
+
+/**
+ *
+ *
+ * + * Cloud Firestore indexes enable simple and complex queries against + * documents in a database. + *+ * + * Protobuf type {@code google.firestore.admin.v1.Index} + */ +public final class Index extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.Index) + IndexOrBuilder { + private static final long serialVersionUID = 0L; + // Use Index.newBuilder() to construct. + private Index(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Index() { + name_ = ""; + queryScope_ = 0; + fields_ = java.util.Collections.emptyList(); + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Index( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + queryScope_ = rawValue; + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + fields_ = new java.util.ArrayList
+ * Query Scope defines the scope at which a query is run. This is specified on + * a StructuredQuery's `from` field. + *+ * + * Protobuf enum {@code google.firestore.admin.v1.Index.QueryScope} + */ + public enum QueryScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * The query scope is unspecified. Not a valid option. + *+ * + *
QUERY_SCOPE_UNSPECIFIED = 0;
+ */
+ QUERY_SCOPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Indexes with a collection query scope specified allow queries + * against a collection that is the child of a specific document, specified + * at query time, and that has the collection id specified by the index. + *+ * + *
COLLECTION = 1;
+ */
+ COLLECTION(1),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * The query scope is unspecified. Not a valid option. + *+ * + *
QUERY_SCOPE_UNSPECIFIED = 0;
+ */
+ public static final int QUERY_SCOPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Indexes with a collection query scope specified allow queries + * against a collection that is the child of a specific document, specified + * at query time, and that has the collection id specified by the index. + *+ * + *
COLLECTION = 1;
+ */
+ public static final int COLLECTION_VALUE = 1;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static QueryScope valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static QueryScope forNumber(int value) {
+ switch (value) {
+ case 0:
+ return QUERY_SCOPE_UNSPECIFIED;
+ case 1:
+ return COLLECTION;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The state of an index. During index creation, an index will be in the + * `CREATING` state. If the index is created successfully, it will transition + * to the `READY` state. If the index creation encounters a problem, the index + * will transition to the `NEEDS_REPAIR` state. + *+ * + * Protobuf enum {@code google.firestore.admin.v1.Index.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * The state is unspecified. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ STATE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The index is being created. + * There is an active long-running operation for the index. + * The index is updated when writing a document. + * Some index data may exist. + *+ * + *
CREATING = 1;
+ */
+ CREATING(1),
+ /**
+ *
+ *
+ * + * The index is ready to be used. + * The index is updated when writing a document. + * The index is fully populated from all stored documents it applies to. + *+ * + *
READY = 2;
+ */
+ READY(2),
+ /**
+ *
+ *
+ * + * The index was being created, but something went wrong. + * There is no active long-running operation for the index, + * and the most recently finished long-running operation failed. + * The index is not updated when writing a document. + * Some index data may exist. + * Use the google.longrunning.Operations API to determine why the operation + * that last attempted to create this index failed, then re-create the + * index. + *+ * + *
NEEDS_REPAIR = 3;
+ */
+ NEEDS_REPAIR(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * The state is unspecified. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ public static final int STATE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * The index is being created. + * There is an active long-running operation for the index. + * The index is updated when writing a document. + * Some index data may exist. + *+ * + *
CREATING = 1;
+ */
+ public static final int CREATING_VALUE = 1;
+ /**
+ *
+ *
+ * + * The index is ready to be used. + * The index is updated when writing a document. + * The index is fully populated from all stored documents it applies to. + *+ * + *
READY = 2;
+ */
+ public static final int READY_VALUE = 2;
+ /**
+ *
+ *
+ * + * The index was being created, but something went wrong. + * There is no active long-running operation for the index, + * and the most recently finished long-running operation failed. + * The index is not updated when writing a document. + * Some index data may exist. + * Use the google.longrunning.Operations API to determine why the operation + * that last attempted to create this index failed, then re-create the + * index. + *+ * + *
NEEDS_REPAIR = 3;
+ */
+ public static final int NEEDS_REPAIR_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static State valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static State forNumber(int value) {
+ switch (value) {
+ case 0:
+ return STATE_UNSPECIFIED;
+ case 1:
+ return CREATING;
+ case 2:
+ return READY;
+ case 3:
+ return NEEDS_REPAIR;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Can be __name__. + * For single field indexes, this must match the name of the field or may + * be omitted. + *+ * + *
string field_path = 1;
+ */
+ java.lang.String getFieldPath();
+ /**
+ *
+ *
+ * + * Can be __name__. + * For single field indexes, this must match the name of the field or may + * be omitted. + *+ * + *
string field_path = 1;
+ */
+ com.google.protobuf.ByteString getFieldPathBytes();
+
+ /**
+ *
+ *
+ * + * Indicates that this field supports ordering by the specified order or + * comparing using =, <, <=, >, >=. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.Order order = 2;
+ */
+ int getOrderValue();
+ /**
+ *
+ *
+ * + * Indicates that this field supports ordering by the specified order or + * comparing using =, <, <=, >, >=. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.Order order = 2;
+ */
+ com.google.firestore.admin.v1.Index.IndexField.Order getOrder();
+
+ /**
+ *
+ *
+ * + * Indicates that this field supports operations on `array_value`s. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
+ */
+ int getArrayConfigValue();
+ /**
+ *
+ *
+ * + * Indicates that this field supports operations on `array_value`s. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
+ */
+ com.google.firestore.admin.v1.Index.IndexField.ArrayConfig getArrayConfig();
+
+ public com.google.firestore.admin.v1.Index.IndexField.ValueModeCase getValueModeCase();
+ }
+ /**
+ *
+ *
+ * + * A field in an index. + * The field_path describes which field is indexed, the value_mode describes + * how the field value is indexed. + *+ * + * Protobuf type {@code google.firestore.admin.v1.Index.IndexField} + */ + public static final class IndexField extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.Index.IndexField) + IndexFieldOrBuilder { + private static final long serialVersionUID = 0L; + // Use IndexField.newBuilder() to construct. + private IndexField(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private IndexField() { + fieldPath_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IndexField( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + fieldPath_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + valueModeCase_ = 2; + valueMode_ = rawValue; + break; + } + case 24: + { + int rawValue = input.readEnum(); + valueModeCase_ = 3; + valueMode_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.IndexProto + .internal_static_google_firestore_admin_v1_Index_IndexField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.IndexProto + .internal_static_google_firestore_admin_v1_Index_IndexField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.Index.IndexField.class, + com.google.firestore.admin.v1.Index.IndexField.Builder.class); + } + + /** + * + * + *
+ * The supported orderings. + *+ * + * Protobuf enum {@code google.firestore.admin.v1.Index.IndexField.Order} + */ + public enum Order implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * The ordering is unspecified. Not a valid option. + *+ * + *
ORDER_UNSPECIFIED = 0;
+ */
+ ORDER_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The field is ordered by ascending field value. + *+ * + *
ASCENDING = 1;
+ */
+ ASCENDING(1),
+ /**
+ *
+ *
+ * + * The field is ordered by descending field value. + *+ * + *
DESCENDING = 2;
+ */
+ DESCENDING(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * The ordering is unspecified. Not a valid option. + *+ * + *
ORDER_UNSPECIFIED = 0;
+ */
+ public static final int ORDER_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * The field is ordered by ascending field value. + *+ * + *
ASCENDING = 1;
+ */
+ public static final int ASCENDING_VALUE = 1;
+ /**
+ *
+ *
+ * + * The field is ordered by descending field value. + *+ * + *
DESCENDING = 2;
+ */
+ public static final int DESCENDING_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static Order valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static Order forNumber(int value) {
+ switch (value) {
+ case 0:
+ return ORDER_UNSPECIFIED;
+ case 1:
+ return ASCENDING;
+ case 2:
+ return DESCENDING;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The supported array value configurations. + *+ * + * Protobuf enum {@code google.firestore.admin.v1.Index.IndexField.ArrayConfig} + */ + public enum ArrayConfig implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * The index does not support additional array queries. + *+ * + *
ARRAY_CONFIG_UNSPECIFIED = 0;
+ */
+ ARRAY_CONFIG_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The index supports array containment queries. + *+ * + *
CONTAINS = 1;
+ */
+ CONTAINS(1),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * The index does not support additional array queries. + *+ * + *
ARRAY_CONFIG_UNSPECIFIED = 0;
+ */
+ public static final int ARRAY_CONFIG_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * The index supports array containment queries. + *+ * + *
CONTAINS = 1;
+ */
+ public static final int CONTAINS_VALUE = 1;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static ArrayConfig valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static ArrayConfig forNumber(int value) {
+ switch (value) {
+ case 0:
+ return ARRAY_CONFIG_UNSPECIFIED;
+ case 1:
+ return CONTAINS;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Can be __name__. + * For single field indexes, this must match the name of the field or may + * be omitted. + *+ * + *
string field_path = 1;
+ */
+ public java.lang.String getFieldPath() {
+ java.lang.Object ref = fieldPath_;
+ 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();
+ fieldPath_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Can be __name__. + * For single field indexes, this must match the name of the field or may + * be omitted. + *+ * + *
string field_path = 1;
+ */
+ public com.google.protobuf.ByteString getFieldPathBytes() {
+ java.lang.Object ref = fieldPath_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ fieldPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ORDER_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * Indicates that this field supports ordering by the specified order or + * comparing using =, <, <=, >, >=. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.Order order = 2;
+ */
+ public int getOrderValue() {
+ if (valueModeCase_ == 2) {
+ return (java.lang.Integer) valueMode_;
+ }
+ return 0;
+ }
+ /**
+ *
+ *
+ * + * Indicates that this field supports ordering by the specified order or + * comparing using =, <, <=, >, >=. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.Order order = 2;
+ */
+ public com.google.firestore.admin.v1.Index.IndexField.Order getOrder() {
+ if (valueModeCase_ == 2) {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.Index.IndexField.Order result =
+ com.google.firestore.admin.v1.Index.IndexField.Order.valueOf(
+ (java.lang.Integer) valueMode_);
+ return result == null
+ ? com.google.firestore.admin.v1.Index.IndexField.Order.UNRECOGNIZED
+ : result;
+ }
+ return com.google.firestore.admin.v1.Index.IndexField.Order.ORDER_UNSPECIFIED;
+ }
+
+ public static final int ARRAY_CONFIG_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * Indicates that this field supports operations on `array_value`s. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
+ */
+ public int getArrayConfigValue() {
+ if (valueModeCase_ == 3) {
+ return (java.lang.Integer) valueMode_;
+ }
+ return 0;
+ }
+ /**
+ *
+ *
+ * + * Indicates that this field supports operations on `array_value`s. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
+ */
+ public com.google.firestore.admin.v1.Index.IndexField.ArrayConfig getArrayConfig() {
+ if (valueModeCase_ == 3) {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.Index.IndexField.ArrayConfig result =
+ com.google.firestore.admin.v1.Index.IndexField.ArrayConfig.valueOf(
+ (java.lang.Integer) valueMode_);
+ return result == null
+ ? com.google.firestore.admin.v1.Index.IndexField.ArrayConfig.UNRECOGNIZED
+ : result;
+ }
+ return com.google.firestore.admin.v1.Index.IndexField.ArrayConfig.ARRAY_CONFIG_UNSPECIFIED;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getFieldPathBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPath_);
+ }
+ if (valueModeCase_ == 2) {
+ output.writeEnum(2, ((java.lang.Integer) valueMode_));
+ }
+ if (valueModeCase_ == 3) {
+ output.writeEnum(3, ((java.lang.Integer) valueMode_));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getFieldPathBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldPath_);
+ }
+ if (valueModeCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(
+ 2, ((java.lang.Integer) valueMode_));
+ }
+ if (valueModeCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(
+ 3, ((java.lang.Integer) valueMode_));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.Index.IndexField)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.Index.IndexField other =
+ (com.google.firestore.admin.v1.Index.IndexField) obj;
+
+ boolean result = true;
+ result = result && getFieldPath().equals(other.getFieldPath());
+ result = result && getValueModeCase().equals(other.getValueModeCase());
+ if (!result) return false;
+ switch (valueModeCase_) {
+ case 2:
+ result = result && getOrderValue() == other.getOrderValue();
+ break;
+ case 3:
+ result = result && getArrayConfigValue() == other.getArrayConfigValue();
+ break;
+ case 0:
+ default:
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getFieldPath().hashCode();
+ switch (valueModeCase_) {
+ case 2:
+ hash = (37 * hash) + ORDER_FIELD_NUMBER;
+ hash = (53 * hash) + getOrderValue();
+ break;
+ case 3:
+ hash = (37 * hash) + ARRAY_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getArrayConfigValue();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.Index.IndexField parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.Index.IndexField parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.Index.IndexField parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.Index.IndexField 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.firestore.admin.v1.Index.IndexField parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.Index.IndexField parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.Index.IndexField parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.Index.IndexField 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.firestore.admin.v1.Index.IndexField parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.Index.IndexField 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.firestore.admin.v1.Index.IndexField parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.Index.IndexField 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.Index.IndexField prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * A field in an index. + * The field_path describes which field is indexed, the value_mode describes + * how the field value is indexed. + *+ * + * Protobuf type {@code google.firestore.admin.v1.Index.IndexField} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Can be __name__. + * For single field indexes, this must match the name of the field or may + * be omitted. + *+ * + *
string field_path = 1;
+ */
+ public java.lang.String getFieldPath() {
+ java.lang.Object ref = fieldPath_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ fieldPath_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Can be __name__. + * For single field indexes, this must match the name of the field or may + * be omitted. + *+ * + *
string field_path = 1;
+ */
+ public com.google.protobuf.ByteString getFieldPathBytes() {
+ java.lang.Object ref = fieldPath_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ fieldPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Can be __name__. + * For single field indexes, this must match the name of the field or may + * be omitted. + *+ * + *
string field_path = 1;
+ */
+ public Builder setFieldPath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ fieldPath_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Can be __name__. + * For single field indexes, this must match the name of the field or may + * be omitted. + *+ * + *
string field_path = 1;
+ */
+ public Builder clearFieldPath() {
+
+ fieldPath_ = getDefaultInstance().getFieldPath();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Can be __name__. + * For single field indexes, this must match the name of the field or may + * be omitted. + *+ * + *
string field_path = 1;
+ */
+ public Builder setFieldPathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ fieldPath_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Indicates that this field supports ordering by the specified order or + * comparing using =, <, <=, >, >=. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.Order order = 2;
+ */
+ public int getOrderValue() {
+ if (valueModeCase_ == 2) {
+ return ((java.lang.Integer) valueMode_).intValue();
+ }
+ return 0;
+ }
+ /**
+ *
+ *
+ * + * Indicates that this field supports ordering by the specified order or + * comparing using =, <, <=, >, >=. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.Order order = 2;
+ */
+ public Builder setOrderValue(int value) {
+ valueModeCase_ = 2;
+ valueMode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates that this field supports ordering by the specified order or + * comparing using =, <, <=, >, >=. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.Order order = 2;
+ */
+ public com.google.firestore.admin.v1.Index.IndexField.Order getOrder() {
+ if (valueModeCase_ == 2) {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.Index.IndexField.Order result =
+ com.google.firestore.admin.v1.Index.IndexField.Order.valueOf(
+ (java.lang.Integer) valueMode_);
+ return result == null
+ ? com.google.firestore.admin.v1.Index.IndexField.Order.UNRECOGNIZED
+ : result;
+ }
+ return com.google.firestore.admin.v1.Index.IndexField.Order.ORDER_UNSPECIFIED;
+ }
+ /**
+ *
+ *
+ * + * Indicates that this field supports ordering by the specified order or + * comparing using =, <, <=, >, >=. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.Order order = 2;
+ */
+ public Builder setOrder(com.google.firestore.admin.v1.Index.IndexField.Order value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueModeCase_ = 2;
+ valueMode_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates that this field supports ordering by the specified order or + * comparing using =, <, <=, >, >=. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.Order order = 2;
+ */
+ public Builder clearOrder() {
+ if (valueModeCase_ == 2) {
+ valueModeCase_ = 0;
+ valueMode_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Indicates that this field supports operations on `array_value`s. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
+ */
+ public int getArrayConfigValue() {
+ if (valueModeCase_ == 3) {
+ return ((java.lang.Integer) valueMode_).intValue();
+ }
+ return 0;
+ }
+ /**
+ *
+ *
+ * + * Indicates that this field supports operations on `array_value`s. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
+ */
+ public Builder setArrayConfigValue(int value) {
+ valueModeCase_ = 3;
+ valueMode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates that this field supports operations on `array_value`s. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
+ */
+ public com.google.firestore.admin.v1.Index.IndexField.ArrayConfig getArrayConfig() {
+ if (valueModeCase_ == 3) {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.Index.IndexField.ArrayConfig result =
+ com.google.firestore.admin.v1.Index.IndexField.ArrayConfig.valueOf(
+ (java.lang.Integer) valueMode_);
+ return result == null
+ ? com.google.firestore.admin.v1.Index.IndexField.ArrayConfig.UNRECOGNIZED
+ : result;
+ }
+ return com.google.firestore.admin.v1.Index.IndexField.ArrayConfig.ARRAY_CONFIG_UNSPECIFIED;
+ }
+ /**
+ *
+ *
+ * + * Indicates that this field supports operations on `array_value`s. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
+ */
+ public Builder setArrayConfig(
+ com.google.firestore.admin.v1.Index.IndexField.ArrayConfig value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueModeCase_ = 3;
+ valueMode_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates that this field supports operations on `array_value`s. + *+ * + *
.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
+ */
+ public Builder clearArrayConfig() {
+ if (valueModeCase_ == 3) {
+ valueModeCase_ = 0;
+ valueMode_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.Index.IndexField)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.Index.IndexField)
+ private static final com.google.firestore.admin.v1.Index.IndexField DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.Index.IndexField();
+ }
+
+ public static com.google.firestore.admin.v1.Index.IndexField getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Output only. + * A server defined name for this index. + * The form of this name for composite indexes will be: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` + * For single field indexes, this field will be empty. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. + * A server defined name for this index. + * The form of this name for composite indexes will be: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` + * For single field indexes, this field will be empty. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int QUERY_SCOPE_FIELD_NUMBER = 2;
+ private int queryScope_;
+ /**
+ *
+ *
+ * + * Indexes with a collection query scope specified allow queries + * against a collection that is the child of a specific document, specified at + * query time, and that has the same collection id. + * Indexes with a collection group query scope specified allow queries against + * all collections descended from a specific document, specified at query + * time, and that have the same collection id as this index. + *+ * + *
.google.firestore.admin.v1.Index.QueryScope query_scope = 2;
+ */
+ public int getQueryScopeValue() {
+ return queryScope_;
+ }
+ /**
+ *
+ *
+ * + * Indexes with a collection query scope specified allow queries + * against a collection that is the child of a specific document, specified at + * query time, and that has the same collection id. + * Indexes with a collection group query scope specified allow queries against + * all collections descended from a specific document, specified at query + * time, and that have the same collection id as this index. + *+ * + *
.google.firestore.admin.v1.Index.QueryScope query_scope = 2;
+ */
+ public com.google.firestore.admin.v1.Index.QueryScope getQueryScope() {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.Index.QueryScope result =
+ com.google.firestore.admin.v1.Index.QueryScope.valueOf(queryScope_);
+ return result == null ? com.google.firestore.admin.v1.Index.QueryScope.UNRECOGNIZED : result;
+ }
+
+ public static final int FIELDS_FIELD_NUMBER = 3;
+ private java.util.List+ * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public java.util.List+ * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public java.util.List extends com.google.firestore.admin.v1.Index.IndexFieldOrBuilder>
+ getFieldsOrBuilderList() {
+ return fields_;
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public int getFieldsCount() {
+ return fields_.size();
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public com.google.firestore.admin.v1.Index.IndexField getFields(int index) {
+ return fields_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public com.google.firestore.admin.v1.Index.IndexFieldOrBuilder getFieldsOrBuilder(int index) {
+ return fields_.get(index);
+ }
+
+ public static final int STATE_FIELD_NUMBER = 4;
+ private int state_;
+ /**
+ *
+ *
+ * + * Output only. + * The serving state of the index. + *+ * + *
.google.firestore.admin.v1.Index.State state = 4;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * Output only. + * The serving state of the index. + *+ * + *
.google.firestore.admin.v1.Index.State state = 4;
+ */
+ public com.google.firestore.admin.v1.Index.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.Index.State result =
+ com.google.firestore.admin.v1.Index.State.valueOf(state_);
+ return result == null ? com.google.firestore.admin.v1.Index.State.UNRECOGNIZED : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (queryScope_
+ != com.google.firestore.admin.v1.Index.QueryScope.QUERY_SCOPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(2, queryScope_);
+ }
+ for (int i = 0; i < fields_.size(); i++) {
+ output.writeMessage(3, fields_.get(i));
+ }
+ if (state_ != com.google.firestore.admin.v1.Index.State.STATE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(4, state_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (queryScope_
+ != com.google.firestore.admin.v1.Index.QueryScope.QUERY_SCOPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, queryScope_);
+ }
+ for (int i = 0; i < fields_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, fields_.get(i));
+ }
+ if (state_ != com.google.firestore.admin.v1.Index.State.STATE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.Index)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.Index other = (com.google.firestore.admin.v1.Index) obj;
+
+ boolean result = true;
+ result = result && getName().equals(other.getName());
+ result = result && queryScope_ == other.queryScope_;
+ result = result && getFieldsList().equals(other.getFieldsList());
+ result = result && state_ == other.state_;
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + QUERY_SCOPE_FIELD_NUMBER;
+ hash = (53 * hash) + queryScope_;
+ if (getFieldsCount() > 0) {
+ hash = (37 * hash) + FIELDS_FIELD_NUMBER;
+ hash = (53 * hash) + getFieldsList().hashCode();
+ }
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.Index parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.Index parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.Index parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.Index 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.firestore.admin.v1.Index parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.Index parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.Index parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.Index 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.firestore.admin.v1.Index parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.Index 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.firestore.admin.v1.Index parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.Index 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.Index prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Cloud Firestore indexes enable simple and complex queries against + * documents in a database. + *+ * + * Protobuf type {@code google.firestore.admin.v1.Index} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Output only. + * A server defined name for this index. + * The form of this name for composite indexes will be: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` + * For single field indexes, this field will be empty. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. + * A server defined name for this index. + * The form of this name for composite indexes will be: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` + * For single field indexes, this field will be empty. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. + * A server defined name for this index. + * The form of this name for composite indexes will be: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` + * For single field indexes, this field will be empty. + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. + * A server defined name for this index. + * The form of this name for composite indexes will be: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` + * For single field indexes, this field will be empty. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. + * A server defined name for this index. + * The form of this name for composite indexes will be: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` + * For single field indexes, this field will be empty. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int queryScope_ = 0;
+ /**
+ *
+ *
+ * + * Indexes with a collection query scope specified allow queries + * against a collection that is the child of a specific document, specified at + * query time, and that has the same collection id. + * Indexes with a collection group query scope specified allow queries against + * all collections descended from a specific document, specified at query + * time, and that have the same collection id as this index. + *+ * + *
.google.firestore.admin.v1.Index.QueryScope query_scope = 2;
+ */
+ public int getQueryScopeValue() {
+ return queryScope_;
+ }
+ /**
+ *
+ *
+ * + * Indexes with a collection query scope specified allow queries + * against a collection that is the child of a specific document, specified at + * query time, and that has the same collection id. + * Indexes with a collection group query scope specified allow queries against + * all collections descended from a specific document, specified at query + * time, and that have the same collection id as this index. + *+ * + *
.google.firestore.admin.v1.Index.QueryScope query_scope = 2;
+ */
+ public Builder setQueryScopeValue(int value) {
+ queryScope_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indexes with a collection query scope specified allow queries + * against a collection that is the child of a specific document, specified at + * query time, and that has the same collection id. + * Indexes with a collection group query scope specified allow queries against + * all collections descended from a specific document, specified at query + * time, and that have the same collection id as this index. + *+ * + *
.google.firestore.admin.v1.Index.QueryScope query_scope = 2;
+ */
+ public com.google.firestore.admin.v1.Index.QueryScope getQueryScope() {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.Index.QueryScope result =
+ com.google.firestore.admin.v1.Index.QueryScope.valueOf(queryScope_);
+ return result == null ? com.google.firestore.admin.v1.Index.QueryScope.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * Indexes with a collection query scope specified allow queries + * against a collection that is the child of a specific document, specified at + * query time, and that has the same collection id. + * Indexes with a collection group query scope specified allow queries against + * all collections descended from a specific document, specified at query + * time, and that have the same collection id as this index. + *+ * + *
.google.firestore.admin.v1.Index.QueryScope query_scope = 2;
+ */
+ public Builder setQueryScope(com.google.firestore.admin.v1.Index.QueryScope value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ queryScope_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indexes with a collection query scope specified allow queries + * against a collection that is the child of a specific document, specified at + * query time, and that has the same collection id. + * Indexes with a collection group query scope specified allow queries against + * all collections descended from a specific document, specified at query + * time, and that have the same collection id as this index. + *+ * + *
.google.firestore.admin.v1.Index.QueryScope query_scope = 2;
+ */
+ public Builder clearQueryScope() {
+
+ queryScope_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public java.util.List+ * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public int getFieldsCount() {
+ if (fieldsBuilder_ == null) {
+ return fields_.size();
+ } else {
+ return fieldsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public com.google.firestore.admin.v1.Index.IndexField getFields(int index) {
+ if (fieldsBuilder_ == null) {
+ return fields_.get(index);
+ } else {
+ return fieldsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public Builder setFields(int index, com.google.firestore.admin.v1.Index.IndexField value) {
+ if (fieldsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFieldsIsMutable();
+ fields_.set(index, value);
+ onChanged();
+ } else {
+ fieldsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public Builder setFields(
+ int index, com.google.firestore.admin.v1.Index.IndexField.Builder builderForValue) {
+ if (fieldsBuilder_ == null) {
+ ensureFieldsIsMutable();
+ fields_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ fieldsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public Builder addFields(com.google.firestore.admin.v1.Index.IndexField value) {
+ if (fieldsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFieldsIsMutable();
+ fields_.add(value);
+ onChanged();
+ } else {
+ fieldsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public Builder addFields(int index, com.google.firestore.admin.v1.Index.IndexField value) {
+ if (fieldsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFieldsIsMutable();
+ fields_.add(index, value);
+ onChanged();
+ } else {
+ fieldsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public Builder addFields(
+ com.google.firestore.admin.v1.Index.IndexField.Builder builderForValue) {
+ if (fieldsBuilder_ == null) {
+ ensureFieldsIsMutable();
+ fields_.add(builderForValue.build());
+ onChanged();
+ } else {
+ fieldsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public Builder addFields(
+ int index, com.google.firestore.admin.v1.Index.IndexField.Builder builderForValue) {
+ if (fieldsBuilder_ == null) {
+ ensureFieldsIsMutable();
+ fields_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ fieldsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public Builder addAllFields(
+ java.lang.Iterable extends com.google.firestore.admin.v1.Index.IndexField> values) {
+ if (fieldsBuilder_ == null) {
+ ensureFieldsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_);
+ onChanged();
+ } else {
+ fieldsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public Builder clearFields() {
+ if (fieldsBuilder_ == null) {
+ fields_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ fieldsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public Builder removeFields(int index) {
+ if (fieldsBuilder_ == null) {
+ ensureFieldsIsMutable();
+ fields_.remove(index);
+ onChanged();
+ } else {
+ fieldsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public com.google.firestore.admin.v1.Index.IndexField.Builder getFieldsBuilder(int index) {
+ return getFieldsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public com.google.firestore.admin.v1.Index.IndexFieldOrBuilder getFieldsOrBuilder(int index) {
+ if (fieldsBuilder_ == null) {
+ return fields_.get(index);
+ } else {
+ return fieldsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public java.util.List extends com.google.firestore.admin.v1.Index.IndexFieldOrBuilder>
+ getFieldsOrBuilderList() {
+ if (fieldsBuilder_ != null) {
+ return fieldsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(fields_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public com.google.firestore.admin.v1.Index.IndexField.Builder addFieldsBuilder() {
+ return getFieldsFieldBuilder()
+ .addBuilder(com.google.firestore.admin.v1.Index.IndexField.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public com.google.firestore.admin.v1.Index.IndexField.Builder addFieldsBuilder(int index) {
+ return getFieldsFieldBuilder()
+ .addBuilder(index, com.google.firestore.admin.v1.Index.IndexField.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ public java.util.List+ * Output only. + * The serving state of the index. + *+ * + *
.google.firestore.admin.v1.Index.State state = 4;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * Output only. + * The serving state of the index. + *+ * + *
.google.firestore.admin.v1.Index.State state = 4;
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. + * The serving state of the index. + *+ * + *
.google.firestore.admin.v1.Index.State state = 4;
+ */
+ public com.google.firestore.admin.v1.Index.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.Index.State result =
+ com.google.firestore.admin.v1.Index.State.valueOf(state_);
+ return result == null ? com.google.firestore.admin.v1.Index.State.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * Output only. + * The serving state of the index. + *+ * + *
.google.firestore.admin.v1.Index.State state = 4;
+ */
+ public Builder setState(com.google.firestore.admin.v1.Index.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. + * The serving state of the index. + *+ * + *
.google.firestore.admin.v1.Index.State state = 4;
+ */
+ public Builder clearState() {
+
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.Index)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.Index)
+ private static final com.google.firestore.admin.v1.Index DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.Index();
+ }
+
+ public static com.google.firestore.admin.v1.Index getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from + * [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.IndexOperationMetadata} + */ +public final class IndexOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.IndexOperationMetadata) + IndexOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use IndexOperationMetadata.newBuilder() to construct. + private IndexOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private IndexOperationMetadata() { + index_ = ""; + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IndexOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + index_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 42: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressDocuments_ != null) { + subBuilder = progressDocuments_.toBuilder(); + } + progressDocuments_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressDocuments_); + progressDocuments_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.firestore.admin.v1.Progress.Builder subBuilder = null; + if (progressBytes_ != null) { + subBuilder = progressBytes_.toBuilder(); + } + progressBytes_ = + input.readMessage( + com.google.firestore.admin.v1.Progress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progressBytes_); + progressBytes_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_IndexOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.OperationProto + .internal_static_google_firestore_admin_v1_IndexOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.IndexOperationMetadata.class, + com.google.firestore.admin.v1.IndexOperationMetadata.Builder.class); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+ * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public boolean hasStartTime() {
+ return startTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.Timestamp getStartTime() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ return getStartTime();
+ }
+
+ public static final int END_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp endTime_;
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public boolean hasEndTime() {
+ return endTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp getEndTime() {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ return getEndTime();
+ }
+
+ public static final int INDEX_FIELD_NUMBER = 3;
+ private volatile java.lang.Object index_;
+ /**
+ *
+ *
+ * + * The index resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string index = 3;
+ */
+ public java.lang.String getIndex() {
+ java.lang.Object ref = index_;
+ 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();
+ index_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The index resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string index = 3;
+ */
+ public com.google.protobuf.ByteString getIndexBytes() {
+ java.lang.Object ref = index_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ index_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int STATE_FIELD_NUMBER = 4;
+ private int state_;
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 4;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 4;
+ */
+ public com.google.firestore.admin.v1.OperationState getState() {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.OperationState result =
+ com.google.firestore.admin.v1.OperationState.valueOf(state_);
+ return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result;
+ }
+
+ public static final int PROGRESS_DOCUMENTS_FIELD_NUMBER = 5;
+ private com.google.firestore.admin.v1.Progress progressDocuments_;
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 5;
+ */
+ public boolean hasProgressDocuments() {
+ return progressDocuments_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 5;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressDocuments() {
+ return progressDocuments_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressDocuments_;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 5;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() {
+ return getProgressDocuments();
+ }
+
+ public static final int PROGRESS_BYTES_FIELD_NUMBER = 6;
+ private com.google.firestore.admin.v1.Progress progressBytes_;
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 6;
+ */
+ public boolean hasProgressBytes() {
+ return progressBytes_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 6;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressBytes() {
+ return progressBytes_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressBytes_;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 6;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() {
+ return getProgressBytes();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (startTime_ != null) {
+ output.writeMessage(1, getStartTime());
+ }
+ if (endTime_ != null) {
+ output.writeMessage(2, getEndTime());
+ }
+ if (!getIndexBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, index_);
+ }
+ if (state_
+ != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(4, state_);
+ }
+ if (progressDocuments_ != null) {
+ output.writeMessage(5, getProgressDocuments());
+ }
+ if (progressBytes_ != null) {
+ output.writeMessage(6, getProgressBytes());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (startTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
+ }
+ if (endTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
+ }
+ if (!getIndexBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, index_);
+ }
+ if (state_
+ != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_);
+ }
+ if (progressDocuments_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProgressDocuments());
+ }
+ if (progressBytes_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getProgressBytes());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.IndexOperationMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.IndexOperationMetadata other =
+ (com.google.firestore.admin.v1.IndexOperationMetadata) obj;
+
+ boolean result = true;
+ result = result && (hasStartTime() == other.hasStartTime());
+ if (hasStartTime()) {
+ result = result && getStartTime().equals(other.getStartTime());
+ }
+ result = result && (hasEndTime() == other.hasEndTime());
+ if (hasEndTime()) {
+ result = result && getEndTime().equals(other.getEndTime());
+ }
+ result = result && getIndex().equals(other.getIndex());
+ result = result && state_ == other.state_;
+ result = result && (hasProgressDocuments() == other.hasProgressDocuments());
+ if (hasProgressDocuments()) {
+ result = result && getProgressDocuments().equals(other.getProgressDocuments());
+ }
+ result = result && (hasProgressBytes() == other.hasProgressBytes());
+ if (hasProgressBytes()) {
+ result = result && getProgressBytes().equals(other.getProgressBytes());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStartTime()) {
+ hash = (37 * hash) + START_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getStartTime().hashCode();
+ }
+ if (hasEndTime()) {
+ hash = (37 * hash) + END_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getEndTime().hashCode();
+ }
+ hash = (37 * hash) + INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + getIndex().hashCode();
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ if (hasProgressDocuments()) {
+ hash = (37 * hash) + PROGRESS_DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getProgressDocuments().hashCode();
+ }
+ if (hasProgressBytes()) {
+ hash = (37 * hash) + PROGRESS_BYTES_FIELD_NUMBER;
+ hash = (53 * hash) + getProgressBytes().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.IndexOperationMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.IndexOperationMetadata parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.IndexOperationMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.IndexOperationMetadata 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.firestore.admin.v1.IndexOperationMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.IndexOperationMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.IndexOperationMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.IndexOperationMetadata 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.firestore.admin.v1.IndexOperationMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.IndexOperationMetadata 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.firestore.admin.v1.IndexOperationMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.IndexOperationMetadata 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.IndexOperationMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from + * [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.IndexOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public boolean hasStartTime() {
+ return startTimeBuilder_ != null || startTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.Timestamp getStartTime() {
+ if (startTimeBuilder_ == null) {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ } else {
+ return startTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ startTime_ = value;
+ onChanged();
+ } else {
+ startTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (startTimeBuilder_ == null) {
+ startTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ startTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (startTime_ != null) {
+ startTime_ =
+ com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
+ } else {
+ startTime_ = value;
+ }
+ onChanged();
+ } else {
+ startTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder clearStartTime() {
+ if (startTimeBuilder_ == null) {
+ startTime_ = null;
+ onChanged();
+ } else {
+ startTime_ = null;
+ startTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
+
+ onChanged();
+ return getStartTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ if (startTimeBuilder_ != null) {
+ return startTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getStartTimeFieldBuilder() {
+ if (startTimeBuilder_ == null) {
+ startTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getStartTime(), getParentForChildren(), isClean());
+ startTime_ = null;
+ }
+ return startTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp endTime_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ endTimeBuilder_;
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public boolean hasEndTime() {
+ return endTimeBuilder_ != null || endTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp getEndTime() {
+ if (endTimeBuilder_ == null) {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ } else {
+ return endTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder setEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ endTime_ = value;
+ onChanged();
+ } else {
+ endTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (endTimeBuilder_ == null) {
+ endTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ endTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (endTime_ != null) {
+ endTime_ =
+ com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+ } else {
+ endTime_ = value;
+ }
+ onChanged();
+ } else {
+ endTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder clearEndTime() {
+ if (endTimeBuilder_ == null) {
+ endTime_ = null;
+ onChanged();
+ } else {
+ endTime_ = null;
+ endTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
+
+ onChanged();
+ return getEndTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ if (endTimeBuilder_ != null) {
+ return endTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getEndTimeFieldBuilder() {
+ if (endTimeBuilder_ == null) {
+ endTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getEndTime(), getParentForChildren(), isClean());
+ endTime_ = null;
+ }
+ return endTimeBuilder_;
+ }
+
+ private java.lang.Object index_ = "";
+ /**
+ *
+ *
+ * + * The index resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string index = 3;
+ */
+ public java.lang.String getIndex() {
+ java.lang.Object ref = index_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ index_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The index resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string index = 3;
+ */
+ public com.google.protobuf.ByteString getIndexBytes() {
+ java.lang.Object ref = index_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ index_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The index resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string index = 3;
+ */
+ public Builder setIndex(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ index_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The index resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string index = 3;
+ */
+ public Builder clearIndex() {
+
+ index_ = getDefaultInstance().getIndex();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The index resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string index = 3;
+ */
+ public Builder setIndexBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ index_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int state_ = 0;
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 4;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 4;
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 4;
+ */
+ public com.google.firestore.admin.v1.OperationState getState() {
+ @SuppressWarnings("deprecation")
+ com.google.firestore.admin.v1.OperationState result =
+ com.google.firestore.admin.v1.OperationState.valueOf(state_);
+ return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 4;
+ */
+ public Builder setState(com.google.firestore.admin.v1.OperationState value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 4;
+ */
+ public Builder clearState() {
+
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.firestore.admin.v1.Progress progressDocuments_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ progressDocumentsBuilder_;
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 5;
+ */
+ public boolean hasProgressDocuments() {
+ return progressDocumentsBuilder_ != null || progressDocuments_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 5;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressDocuments() {
+ if (progressDocumentsBuilder_ == null) {
+ return progressDocuments_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressDocuments_;
+ } else {
+ return progressDocumentsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 5;
+ */
+ public Builder setProgressDocuments(com.google.firestore.admin.v1.Progress value) {
+ if (progressDocumentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ progressDocuments_ = value;
+ onChanged();
+ } else {
+ progressDocumentsBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 5;
+ */
+ public Builder setProgressDocuments(
+ com.google.firestore.admin.v1.Progress.Builder builderForValue) {
+ if (progressDocumentsBuilder_ == null) {
+ progressDocuments_ = builderForValue.build();
+ onChanged();
+ } else {
+ progressDocumentsBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 5;
+ */
+ public Builder mergeProgressDocuments(com.google.firestore.admin.v1.Progress value) {
+ if (progressDocumentsBuilder_ == null) {
+ if (progressDocuments_ != null) {
+ progressDocuments_ =
+ com.google.firestore.admin.v1.Progress.newBuilder(progressDocuments_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ progressDocuments_ = value;
+ }
+ onChanged();
+ } else {
+ progressDocumentsBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 5;
+ */
+ public Builder clearProgressDocuments() {
+ if (progressDocumentsBuilder_ == null) {
+ progressDocuments_ = null;
+ onChanged();
+ } else {
+ progressDocuments_ = null;
+ progressDocumentsBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 5;
+ */
+ public com.google.firestore.admin.v1.Progress.Builder getProgressDocumentsBuilder() {
+
+ onChanged();
+ return getProgressDocumentsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 5;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() {
+ if (progressDocumentsBuilder_ != null) {
+ return progressDocumentsBuilder_.getMessageOrBuilder();
+ } else {
+ return progressDocuments_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressDocuments_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ getProgressDocumentsFieldBuilder() {
+ if (progressDocumentsBuilder_ == null) {
+ progressDocumentsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>(
+ getProgressDocuments(), getParentForChildren(), isClean());
+ progressDocuments_ = null;
+ }
+ return progressDocumentsBuilder_;
+ }
+
+ private com.google.firestore.admin.v1.Progress progressBytes_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ progressBytesBuilder_;
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 6;
+ */
+ public boolean hasProgressBytes() {
+ return progressBytesBuilder_ != null || progressBytes_ != null;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 6;
+ */
+ public com.google.firestore.admin.v1.Progress getProgressBytes() {
+ if (progressBytesBuilder_ == null) {
+ return progressBytes_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressBytes_;
+ } else {
+ return progressBytesBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 6;
+ */
+ public Builder setProgressBytes(com.google.firestore.admin.v1.Progress value) {
+ if (progressBytesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ progressBytes_ = value;
+ onChanged();
+ } else {
+ progressBytesBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 6;
+ */
+ public Builder setProgressBytes(
+ com.google.firestore.admin.v1.Progress.Builder builderForValue) {
+ if (progressBytesBuilder_ == null) {
+ progressBytes_ = builderForValue.build();
+ onChanged();
+ } else {
+ progressBytesBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 6;
+ */
+ public Builder mergeProgressBytes(com.google.firestore.admin.v1.Progress value) {
+ if (progressBytesBuilder_ == null) {
+ if (progressBytes_ != null) {
+ progressBytes_ =
+ com.google.firestore.admin.v1.Progress.newBuilder(progressBytes_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ progressBytes_ = value;
+ }
+ onChanged();
+ } else {
+ progressBytesBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 6;
+ */
+ public Builder clearProgressBytes() {
+ if (progressBytesBuilder_ == null) {
+ progressBytes_ = null;
+ onChanged();
+ } else {
+ progressBytes_ = null;
+ progressBytesBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 6;
+ */
+ public com.google.firestore.admin.v1.Progress.Builder getProgressBytesBuilder() {
+
+ onChanged();
+ return getProgressBytesFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 6;
+ */
+ public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() {
+ if (progressBytesBuilder_ != null) {
+ return progressBytesBuilder_.getMessageOrBuilder();
+ } else {
+ return progressBytes_ == null
+ ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
+ : progressBytes_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>
+ getProgressBytesFieldBuilder() {
+ if (progressBytesBuilder_ == null) {
+ progressBytesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.firestore.admin.v1.Progress,
+ com.google.firestore.admin.v1.Progress.Builder,
+ com.google.firestore.admin.v1.ProgressOrBuilder>(
+ getProgressBytes(), getParentForChildren(), isClean());
+ progressBytes_ = null;
+ }
+ return progressBytesBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.IndexOperationMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.IndexOperationMetadata)
+ private static final com.google.firestore.admin.v1.IndexOperationMetadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.IndexOperationMetadata();
+ }
+
+ public static com.google.firestore.admin.v1.IndexOperationMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ boolean hasStartTime();
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ com.google.protobuf.Timestamp getStartTime();
+ /**
+ *
+ *
+ * + * The time this operation started. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ boolean hasEndTime();
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ com.google.protobuf.Timestamp getEndTime();
+ /**
+ *
+ *
+ * + * The time this operation completed. Will be unset if operation still in + * progress. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The index resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string index = 3;
+ */
+ java.lang.String getIndex();
+ /**
+ *
+ *
+ * + * The index resource that this operation is acting on. For example: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` + *+ * + *
string index = 3;
+ */
+ com.google.protobuf.ByteString getIndexBytes();
+
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 4;
+ */
+ int getStateValue();
+ /**
+ *
+ *
+ * + * The state of the operation. + *+ * + *
.google.firestore.admin.v1.OperationState state = 4;
+ */
+ com.google.firestore.admin.v1.OperationState getState();
+
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 5;
+ */
+ boolean hasProgressDocuments();
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 5;
+ */
+ com.google.firestore.admin.v1.Progress getProgressDocuments();
+ /**
+ *
+ *
+ * + * The progress, in documents, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_documents = 5;
+ */
+ com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder();
+
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 6;
+ */
+ boolean hasProgressBytes();
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 6;
+ */
+ com.google.firestore.admin.v1.Progress getProgressBytes();
+ /**
+ *
+ *
+ * + * The progress, in bytes, of this operation. + *+ * + *
.google.firestore.admin.v1.Progress progress_bytes = 6;
+ */
+ com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOrBuilder.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOrBuilder.java
new file mode 100644
index 000000000000..ce495b677d7b
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOrBuilder.java
@@ -0,0 +1,185 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/index.proto
+
+package com.google.firestore.admin.v1;
+
+public interface IndexOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.Index)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * Output only. + * A server defined name for this index. + * The form of this name for composite indexes will be: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` + * For single field indexes, this field will be empty. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Output only. + * A server defined name for this index. + * The form of this name for composite indexes will be: + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` + * For single field indexes, this field will be empty. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Indexes with a collection query scope specified allow queries + * against a collection that is the child of a specific document, specified at + * query time, and that has the same collection id. + * Indexes with a collection group query scope specified allow queries against + * all collections descended from a specific document, specified at query + * time, and that have the same collection id as this index. + *+ * + *
.google.firestore.admin.v1.Index.QueryScope query_scope = 2;
+ */
+ int getQueryScopeValue();
+ /**
+ *
+ *
+ * + * Indexes with a collection query scope specified allow queries + * against a collection that is the child of a specific document, specified at + * query time, and that has the same collection id. + * Indexes with a collection group query scope specified allow queries against + * all collections descended from a specific document, specified at query + * time, and that have the same collection id as this index. + *+ * + *
.google.firestore.admin.v1.Index.QueryScope query_scope = 2;
+ */
+ com.google.firestore.admin.v1.Index.QueryScope getQueryScope();
+
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ java.util.List+ * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ com.google.firestore.admin.v1.Index.IndexField getFields(int index);
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ int getFieldsCount();
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ java.util.List extends com.google.firestore.admin.v1.Index.IndexFieldOrBuilder>
+ getFieldsOrBuilderList();
+ /**
+ *
+ *
+ * + * The fields supported by this index. + * For composite indexes, this is always 2 or more fields. + * The last field entry is always for the field path `__name__`. If, on + * creation, `__name__` was not specified as the last field, it will be added + * automatically with the same direction as that of the last field defined. If + * the final field in a composite index is not directional, the `__name__` + * will be ordered ASCENDING (unless explicitly specified). + * For single field indexes, this will always be exactly one entry with a + * field path equal to the field path of the associated field. + *+ * + *
repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
+ */
+ com.google.firestore.admin.v1.Index.IndexFieldOrBuilder getFieldsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Output only. + * The serving state of the index. + *+ * + *
.google.firestore.admin.v1.Index.State state = 4;
+ */
+ int getStateValue();
+ /**
+ *
+ *
+ * + * Output only. + * The serving state of the index. + *+ * + *
.google.firestore.admin.v1.Index.State state = 4;
+ */
+ com.google.firestore.admin.v1.Index.State getState();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexProto.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexProto.java
new file mode 100644
index 000000000000..ef5191e5fc23
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexProto.java
@@ -0,0 +1,91 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/index.proto
+
+package com.google.firestore.admin.v1;
+
+public final class IndexProto {
+ private IndexProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_firestore_admin_v1_Index_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_firestore_admin_v1_Index_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_firestore_admin_v1_Index_IndexField_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_firestore_admin_v1_Index_IndexField_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n%google/firestore/admin/v1/index.proto\022"
+ + "\031google.firestore.admin.v1\032\034google/api/a"
+ + "nnotations.proto\"\221\005\n\005Index\022\014\n\004name\030\001 \001(\t"
+ + "\022@\n\013query_scope\030\002 \001(\0162+.google.firestore"
+ + ".admin.v1.Index.QueryScope\022;\n\006fields\030\003 \003"
+ + "(\0132+.google.firestore.admin.v1.Index.Ind"
+ + "exField\0225\n\005state\030\004 \001(\0162&.google.firestor"
+ + "e.admin.v1.Index.State\032\275\002\n\nIndexField\022\022\n"
+ + "\nfield_path\030\001 \001(\t\022B\n\005order\030\002 \001(\01621.googl"
+ + "e.firestore.admin.v1.Index.IndexField.Or"
+ + "derH\000\022O\n\014array_config\030\003 \001(\01627.google.fir"
+ + "estore.admin.v1.Index.IndexField.ArrayCo"
+ + "nfigH\000\"=\n\005Order\022\025\n\021ORDER_UNSPECIFIED\020\000\022\r"
+ + "\n\tASCENDING\020\001\022\016\n\nDESCENDING\020\002\"9\n\013ArrayCo"
+ + "nfig\022\034\n\030ARRAY_CONFIG_UNSPECIFIED\020\000\022\014\n\010CO"
+ + "NTAINS\020\001B\014\n\nvalue_mode\"9\n\nQueryScope\022\033\n\027"
+ + "QUERY_SCOPE_UNSPECIFIED\020\000\022\016\n\nCOLLECTION\020"
+ + "\001\"I\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CRE"
+ + "ATING\020\001\022\t\n\005READY\020\002\022\020\n\014NEEDS_REPAIR\020\003B\270\001\n"
+ + "\035com.google.firestore.admin.v1B\nIndexPro"
+ + "toP\001Z>google.golang.org/genproto/googlea"
+ + "pis/firestore/admin/v1;admin\242\002\004GCFS\252\002\037Go"
+ + "ogle.Cloud.Firestore.Admin.V1\312\002\037Google\\C"
+ + "loud\\Firestore\\Admin\\V1b\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ },
+ assigner);
+ internal_static_google_firestore_admin_v1_Index_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_firestore_admin_v1_Index_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_firestore_admin_v1_Index_descriptor,
+ new java.lang.String[] {
+ "Name", "QueryScope", "Fields", "State",
+ });
+ internal_static_google_firestore_admin_v1_Index_IndexField_descriptor =
+ internal_static_google_firestore_admin_v1_Index_descriptor.getNestedTypes().get(0);
+ internal_static_google_firestore_admin_v1_Index_IndexField_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_firestore_admin_v1_Index_IndexField_descriptor,
+ new java.lang.String[] {
+ "FieldPath", "Order", "ArrayConfig", "ValueMode",
+ });
+ com.google.api.AnnotationsProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequest.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequest.java
new file mode 100644
index 000000000000..cc3e7dc8bde8
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsRequest.java
@@ -0,0 +1,1049 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/firestore_admin.proto
+
+package com.google.firestore.admin.v1;
+
+/**
+ *
+ *
+ * + * The request for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ListFieldsRequest} + */ +public final class ListFieldsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ListFieldsRequest) + ListFieldsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFieldsRequest.newBuilder() to construct. + private ListFieldsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListFieldsRequest() { + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListFieldsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListFieldsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListFieldsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ListFieldsRequest.class, + com.google.firestore.admin.v1.ListFieldsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+ * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ 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();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FILTER_FIELD_NUMBER = 2;
+ private volatile java.lang.Object filter_;
+ /**
+ *
+ *
+ * + * The filter to apply to list results. Currently, + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + * that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + * `indexConfig.usesAncestorConfig:false`. + *+ * + *
string filter = 2;
+ */
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ 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();
+ filter_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The filter to apply to list results. Currently, + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + * that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + * `indexConfig.usesAncestorConfig:false`. + *+ * + *
string filter = 2;
+ */
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PAGE_SIZE_FIELD_NUMBER = 3;
+ private int pageSize_;
+ /**
+ *
+ *
+ * + * The number of results to return. + *+ * + *
int32 page_size = 3;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+
+ public static final int PAGE_TOKEN_FIELD_NUMBER = 4;
+ private volatile java.lang.Object pageToken_;
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ 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();
+ pageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (!getFilterBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
+ }
+ if (pageSize_ != 0) {
+ output.writeInt32(3, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (!getFilterBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
+ }
+ if (pageSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.ListFieldsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.ListFieldsRequest other =
+ (com.google.firestore.admin.v1.ListFieldsRequest) obj;
+
+ boolean result = true;
+ result = result && getParent().equals(other.getParent());
+ result = result && getFilter().equals(other.getFilter());
+ result = result && (getPageSize() == other.getPageSize());
+ result = result && getPageToken().equals(other.getPageToken());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFilter().hashCode();
+ hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getPageSize();
+ hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsRequest 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.firestore.admin.v1.ListFieldsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsRequest 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.firestore.admin.v1.ListFieldsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsRequest 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.firestore.admin.v1.ListFieldsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsRequest 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.ListFieldsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The request for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ListFieldsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object filter_ = "";
+ /**
+ *
+ *
+ * + * The filter to apply to list results. Currently, + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + * that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + * `indexConfig.usesAncestorConfig:false`. + *+ * + *
string filter = 2;
+ */
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The filter to apply to list results. Currently, + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + * that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + * `indexConfig.usesAncestorConfig:false`. + *+ * + *
string filter = 2;
+ */
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The filter to apply to list results. Currently, + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + * that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + * `indexConfig.usesAncestorConfig:false`. + *+ * + *
string filter = 2;
+ */
+ public Builder setFilter(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ filter_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The filter to apply to list results. Currently, + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + * that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + * `indexConfig.usesAncestorConfig:false`. + *+ * + *
string filter = 2;
+ */
+ public Builder clearFilter() {
+
+ filter_ = getDefaultInstance().getFilter();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The filter to apply to list results. Currently, + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + * that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + * `indexConfig.usesAncestorConfig:false`. + *+ * + *
string filter = 2;
+ */
+ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ filter_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int pageSize_;
+ /**
+ *
+ *
+ * + * The number of results to return. + *+ * + *
int32 page_size = 3;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+ /**
+ *
+ *
+ * + * The number of results to return. + *+ * + *
int32 page_size = 3;
+ */
+ public Builder setPageSize(int value) {
+
+ pageSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The number of results to return. + *+ * + *
int32 page_size = 3;
+ */
+ public Builder clearPageSize() {
+
+ pageSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pageToken_ = "";
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ public Builder setPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ public Builder clearPageToken() {
+
+ pageToken_ = getDefaultInstance().getPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.ListFieldsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ListFieldsRequest)
+ private static final com.google.firestore.admin.v1.ListFieldsRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ListFieldsRequest();
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * The filter to apply to list results. Currently, + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + * that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + * `indexConfig.usesAncestorConfig:false`. + *+ * + *
string filter = 2;
+ */
+ java.lang.String getFilter();
+ /**
+ *
+ *
+ * + * The filter to apply to list results. Currently, + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields + * that have been explicitly overridden. To issue this query, call + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to + * `indexConfig.usesAncestorConfig:false`. + *+ * + *
string filter = 2;
+ */
+ com.google.protobuf.ByteString getFilterBytes();
+
+ /**
+ *
+ *
+ * + * The number of results to return. + *+ * + *
int32 page_size = 3;
+ */
+ int getPageSize();
+
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ java.lang.String getPageToken();
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ com.google.protobuf.ByteString getPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponse.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponse.java
new file mode 100644
index 000000000000..86c31d29d88d
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListFieldsResponse.java
@@ -0,0 +1,1096 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/firestore_admin.proto
+
+package com.google.firestore.admin.v1;
+
+/**
+ *
+ *
+ * + * The response for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ListFieldsResponse} + */ +public final class ListFieldsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ListFieldsResponse) + ListFieldsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFieldsResponse.newBuilder() to construct. + private ListFieldsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListFieldsResponse() { + fields_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListFieldsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + fields_ = new java.util.ArrayList
+ * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public java.util.List+ * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public java.util.List extends com.google.firestore.admin.v1.FieldOrBuilder>
+ getFieldsOrBuilderList() {
+ return fields_;
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public int getFieldsCount() {
+ return fields_.size();
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public com.google.firestore.admin.v1.Field getFields(int index) {
+ return fields_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public com.google.firestore.admin.v1.FieldOrBuilder getFieldsOrBuilder(int index) {
+ return fields_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object nextPageToken_;
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ 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();
+ nextPageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < fields_.size(); i++) {
+ output.writeMessage(1, fields_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < fields_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.ListFieldsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.ListFieldsResponse other =
+ (com.google.firestore.admin.v1.ListFieldsResponse) obj;
+
+ boolean result = true;
+ result = result && getFieldsList().equals(other.getFieldsList());
+ result = result && getNextPageToken().equals(other.getNextPageToken());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getFieldsCount() > 0) {
+ hash = (37 * hash) + FIELDS_FIELD_NUMBER;
+ hash = (53 * hash) + getFieldsList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsResponse parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsResponse 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.firestore.admin.v1.ListFieldsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsResponse 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.firestore.admin.v1.ListFieldsResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsResponse 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.firestore.admin.v1.ListFieldsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsResponse 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.ListFieldsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The response for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ListFieldsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public java.util.List+ * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public int getFieldsCount() {
+ if (fieldsBuilder_ == null) {
+ return fields_.size();
+ } else {
+ return fieldsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public com.google.firestore.admin.v1.Field getFields(int index) {
+ if (fieldsBuilder_ == null) {
+ return fields_.get(index);
+ } else {
+ return fieldsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public Builder setFields(int index, com.google.firestore.admin.v1.Field value) {
+ if (fieldsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFieldsIsMutable();
+ fields_.set(index, value);
+ onChanged();
+ } else {
+ fieldsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public Builder setFields(
+ int index, com.google.firestore.admin.v1.Field.Builder builderForValue) {
+ if (fieldsBuilder_ == null) {
+ ensureFieldsIsMutable();
+ fields_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ fieldsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public Builder addFields(com.google.firestore.admin.v1.Field value) {
+ if (fieldsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFieldsIsMutable();
+ fields_.add(value);
+ onChanged();
+ } else {
+ fieldsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public Builder addFields(int index, com.google.firestore.admin.v1.Field value) {
+ if (fieldsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFieldsIsMutable();
+ fields_.add(index, value);
+ onChanged();
+ } else {
+ fieldsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public Builder addFields(com.google.firestore.admin.v1.Field.Builder builderForValue) {
+ if (fieldsBuilder_ == null) {
+ ensureFieldsIsMutable();
+ fields_.add(builderForValue.build());
+ onChanged();
+ } else {
+ fieldsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public Builder addFields(
+ int index, com.google.firestore.admin.v1.Field.Builder builderForValue) {
+ if (fieldsBuilder_ == null) {
+ ensureFieldsIsMutable();
+ fields_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ fieldsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public Builder addAllFields(
+ java.lang.Iterable extends com.google.firestore.admin.v1.Field> values) {
+ if (fieldsBuilder_ == null) {
+ ensureFieldsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_);
+ onChanged();
+ } else {
+ fieldsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public Builder clearFields() {
+ if (fieldsBuilder_ == null) {
+ fields_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ fieldsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public Builder removeFields(int index) {
+ if (fieldsBuilder_ == null) {
+ ensureFieldsIsMutable();
+ fields_.remove(index);
+ onChanged();
+ } else {
+ fieldsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public com.google.firestore.admin.v1.Field.Builder getFieldsBuilder(int index) {
+ return getFieldsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public com.google.firestore.admin.v1.FieldOrBuilder getFieldsOrBuilder(int index) {
+ if (fieldsBuilder_ == null) {
+ return fields_.get(index);
+ } else {
+ return fieldsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public java.util.List extends com.google.firestore.admin.v1.FieldOrBuilder>
+ getFieldsOrBuilderList() {
+ if (fieldsBuilder_ != null) {
+ return fieldsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(fields_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public com.google.firestore.admin.v1.Field.Builder addFieldsBuilder() {
+ return getFieldsFieldBuilder()
+ .addBuilder(com.google.firestore.admin.v1.Field.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public com.google.firestore.admin.v1.Field.Builder addFieldsBuilder(int index) {
+ return getFieldsFieldBuilder()
+ .addBuilder(index, com.google.firestore.admin.v1.Field.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ public java.util.List+ * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder clearNextPageToken() {
+
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.ListFieldsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ListFieldsResponse)
+ private static final com.google.firestore.admin.v1.ListFieldsResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ListFieldsResponse();
+ }
+
+ public static com.google.firestore.admin.v1.ListFieldsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ java.util.List+ * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ com.google.firestore.admin.v1.Field getFields(int index);
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ int getFieldsCount();
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ java.util.List extends com.google.firestore.admin.v1.FieldOrBuilder> getFieldsOrBuilderList();
+ /**
+ *
+ *
+ * + * The requested fields. + *+ * + *
repeated .google.firestore.admin.v1.Field fields = 1;
+ */
+ com.google.firestore.admin.v1.FieldOrBuilder getFieldsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ java.lang.String getNextPageToken();
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ com.google.protobuf.ByteString getNextPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequest.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequest.java
new file mode 100644
index 000000000000..7ae03770204e
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesRequest.java
@@ -0,0 +1,1021 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/firestore_admin.proto
+
+package com.google.firestore.admin.v1;
+
+/**
+ *
+ *
+ * + * The request for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ListIndexesRequest} + */ +public final class ListIndexesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ListIndexesRequest) + ListIndexesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListIndexesRequest.newBuilder() to construct. + private ListIndexesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListIndexesRequest() { + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListIndexesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListIndexesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.FirestoreAdminProto + .internal_static_google_firestore_admin_v1_ListIndexesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.ListIndexesRequest.class, + com.google.firestore.admin.v1.ListIndexesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+ * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ 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();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FILTER_FIELD_NUMBER = 2;
+ private volatile java.lang.Object filter_;
+ /**
+ *
+ *
+ * + * The filter to apply to list results. + *+ * + *
string filter = 2;
+ */
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ 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();
+ filter_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The filter to apply to list results. + *+ * + *
string filter = 2;
+ */
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PAGE_SIZE_FIELD_NUMBER = 3;
+ private int pageSize_;
+ /**
+ *
+ *
+ * + * The number of results to return. + *+ * + *
int32 page_size = 3;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+
+ public static final int PAGE_TOKEN_FIELD_NUMBER = 4;
+ private volatile java.lang.Object pageToken_;
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ 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();
+ pageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (!getFilterBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
+ }
+ if (pageSize_ != 0) {
+ output.writeInt32(3, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (!getFilterBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
+ }
+ if (pageSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.ListIndexesRequest)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.ListIndexesRequest other =
+ (com.google.firestore.admin.v1.ListIndexesRequest) obj;
+
+ boolean result = true;
+ result = result && getParent().equals(other.getParent());
+ result = result && getFilter().equals(other.getFilter());
+ result = result && (getPageSize() == other.getPageSize());
+ result = result && getPageToken().equals(other.getPageToken());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFilter().hashCode();
+ hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getPageSize();
+ hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesRequest 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.firestore.admin.v1.ListIndexesRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesRequest 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.firestore.admin.v1.ListIndexesRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesRequest 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.firestore.admin.v1.ListIndexesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesRequest 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.ListIndexesRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The request for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ListIndexesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object filter_ = "";
+ /**
+ *
+ *
+ * + * The filter to apply to list results. + *+ * + *
string filter = 2;
+ */
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The filter to apply to list results. + *+ * + *
string filter = 2;
+ */
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The filter to apply to list results. + *+ * + *
string filter = 2;
+ */
+ public Builder setFilter(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ filter_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The filter to apply to list results. + *+ * + *
string filter = 2;
+ */
+ public Builder clearFilter() {
+
+ filter_ = getDefaultInstance().getFilter();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The filter to apply to list results. + *+ * + *
string filter = 2;
+ */
+ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ filter_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int pageSize_;
+ /**
+ *
+ *
+ * + * The number of results to return. + *+ * + *
int32 page_size = 3;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+ /**
+ *
+ *
+ * + * The number of results to return. + *+ * + *
int32 page_size = 3;
+ */
+ public Builder setPageSize(int value) {
+
+ pageSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The number of results to return. + *+ * + *
int32 page_size = 3;
+ */
+ public Builder clearPageSize() {
+
+ pageSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pageToken_ = "";
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ public Builder setPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ public Builder clearPageToken() {
+
+ pageToken_ = getDefaultInstance().getPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.ListIndexesRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ListIndexesRequest)
+ private static final com.google.firestore.admin.v1.ListIndexesRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ListIndexesRequest();
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * A parent name of the form + * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` + *+ * + *
string parent = 1;
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * The filter to apply to list results. + *+ * + *
string filter = 2;
+ */
+ java.lang.String getFilter();
+ /**
+ *
+ *
+ * + * The filter to apply to list results. + *+ * + *
string filter = 2;
+ */
+ com.google.protobuf.ByteString getFilterBytes();
+
+ /**
+ *
+ *
+ * + * The number of results to return. + *+ * + *
int32 page_size = 3;
+ */
+ int getPageSize();
+
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ java.lang.String getPageToken();
+ /**
+ *
+ *
+ * + * A page token, returned from a previous call to + * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next + * page of results. + *+ * + *
string page_token = 4;
+ */
+ com.google.protobuf.ByteString getPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponse.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponse.java
new file mode 100644
index 000000000000..f53c26194814
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ListIndexesResponse.java
@@ -0,0 +1,1097 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/firestore_admin.proto
+
+package com.google.firestore.admin.v1;
+
+/**
+ *
+ *
+ * + * The response for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ListIndexesResponse} + */ +public final class ListIndexesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.ListIndexesResponse) + ListIndexesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListIndexesResponse.newBuilder() to construct. + private ListIndexesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListIndexesResponse() { + indexes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListIndexesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + indexes_ = new java.util.ArrayList
+ * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public java.util.List+ * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public java.util.List extends com.google.firestore.admin.v1.IndexOrBuilder>
+ getIndexesOrBuilderList() {
+ return indexes_;
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public int getIndexesCount() {
+ return indexes_.size();
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public com.google.firestore.admin.v1.Index getIndexes(int index) {
+ return indexes_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public com.google.firestore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index) {
+ return indexes_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object nextPageToken_;
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ 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();
+ nextPageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < indexes_.size(); i++) {
+ output.writeMessage(1, indexes_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < indexes_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, indexes_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.firestore.admin.v1.ListIndexesResponse)) {
+ return super.equals(obj);
+ }
+ com.google.firestore.admin.v1.ListIndexesResponse other =
+ (com.google.firestore.admin.v1.ListIndexesResponse) obj;
+
+ boolean result = true;
+ result = result && getIndexesList().equals(other.getIndexesList());
+ result = result && getNextPageToken().equals(other.getNextPageToken());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getIndexesCount() > 0) {
+ hash = (37 * hash) + INDEXES_FIELD_NUMBER;
+ hash = (53 * hash) + getIndexesList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesResponse 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.firestore.admin.v1.ListIndexesResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesResponse 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.firestore.admin.v1.ListIndexesResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesResponse 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.firestore.admin.v1.ListIndexesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesResponse 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();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.firestore.admin.v1.ListIndexesResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The response for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.ListIndexesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public java.util.List+ * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public int getIndexesCount() {
+ if (indexesBuilder_ == null) {
+ return indexes_.size();
+ } else {
+ return indexesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public com.google.firestore.admin.v1.Index getIndexes(int index) {
+ if (indexesBuilder_ == null) {
+ return indexes_.get(index);
+ } else {
+ return indexesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder setIndexes(int index, com.google.firestore.admin.v1.Index value) {
+ if (indexesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIndexesIsMutable();
+ indexes_.set(index, value);
+ onChanged();
+ } else {
+ indexesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder setIndexes(
+ int index, com.google.firestore.admin.v1.Index.Builder builderForValue) {
+ if (indexesBuilder_ == null) {
+ ensureIndexesIsMutable();
+ indexes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ indexesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder addIndexes(com.google.firestore.admin.v1.Index value) {
+ if (indexesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIndexesIsMutable();
+ indexes_.add(value);
+ onChanged();
+ } else {
+ indexesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder addIndexes(int index, com.google.firestore.admin.v1.Index value) {
+ if (indexesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIndexesIsMutable();
+ indexes_.add(index, value);
+ onChanged();
+ } else {
+ indexesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder addIndexes(com.google.firestore.admin.v1.Index.Builder builderForValue) {
+ if (indexesBuilder_ == null) {
+ ensureIndexesIsMutable();
+ indexes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ indexesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder addIndexes(
+ int index, com.google.firestore.admin.v1.Index.Builder builderForValue) {
+ if (indexesBuilder_ == null) {
+ ensureIndexesIsMutable();
+ indexes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ indexesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder addAllIndexes(
+ java.lang.Iterable extends com.google.firestore.admin.v1.Index> values) {
+ if (indexesBuilder_ == null) {
+ ensureIndexesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indexes_);
+ onChanged();
+ } else {
+ indexesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder clearIndexes() {
+ if (indexesBuilder_ == null) {
+ indexes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ indexesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public Builder removeIndexes(int index) {
+ if (indexesBuilder_ == null) {
+ ensureIndexesIsMutable();
+ indexes_.remove(index);
+ onChanged();
+ } else {
+ indexesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public com.google.firestore.admin.v1.Index.Builder getIndexesBuilder(int index) {
+ return getIndexesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public com.google.firestore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index) {
+ if (indexesBuilder_ == null) {
+ return indexes_.get(index);
+ } else {
+ return indexesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public java.util.List extends com.google.firestore.admin.v1.IndexOrBuilder>
+ getIndexesOrBuilderList() {
+ if (indexesBuilder_ != null) {
+ return indexesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(indexes_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public com.google.firestore.admin.v1.Index.Builder addIndexesBuilder() {
+ return getIndexesFieldBuilder()
+ .addBuilder(com.google.firestore.admin.v1.Index.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public com.google.firestore.admin.v1.Index.Builder addIndexesBuilder(int index) {
+ return getIndexesFieldBuilder()
+ .addBuilder(index, com.google.firestore.admin.v1.Index.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ public java.util.List+ * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder clearNextPageToken() {
+
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.ListIndexesResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.ListIndexesResponse)
+ private static final com.google.firestore.admin.v1.ListIndexesResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.firestore.admin.v1.ListIndexesResponse();
+ }
+
+ public static com.google.firestore.admin.v1.ListIndexesResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ java.util.List+ * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ com.google.firestore.admin.v1.Index getIndexes(int index);
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ int getIndexesCount();
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ java.util.List extends com.google.firestore.admin.v1.IndexOrBuilder> getIndexesOrBuilderList();
+ /**
+ *
+ *
+ * + * The requested indexes. + *+ * + *
repeated .google.firestore.admin.v1.Index indexes = 1;
+ */
+ com.google.firestore.admin.v1.IndexOrBuilder getIndexesOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ java.lang.String getNextPageToken();
+ /**
+ *
+ *
+ * + * A page token that may be used to request another page of results. If blank, + * this is the last page. + *+ * + *
string next_page_token = 2;
+ */
+ com.google.protobuf.ByteString getNextPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadata.java b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadata.java
new file mode 100644
index 000000000000..8e609d46c228
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadata.java
@@ -0,0 +1,434 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/firestore/admin/v1/location.proto
+
+package com.google.firestore.admin.v1;
+
+/**
+ *
+ *
+ * + * The metadata message for [google.cloud.location.Location.metadata][google.cloud.location.Location.metadata]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.LocationMetadata} + */ +public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.LocationMetadata) + LocationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LocationMetadata.newBuilder() to construct. + private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private LocationMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LocationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.firestore.admin.v1.LocationProto + .internal_static_google_firestore_admin_v1_LocationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.firestore.admin.v1.LocationProto + .internal_static_google_firestore_admin_v1_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.firestore.admin.v1.LocationMetadata.class, + com.google.firestore.admin.v1.LocationMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.firestore.admin.v1.LocationMetadata)) { + return super.equals(obj); + } + com.google.firestore.admin.v1.LocationMetadata other = + (com.google.firestore.admin.v1.LocationMetadata) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.firestore.admin.v1.LocationMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.LocationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.LocationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.LocationMetadata 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.firestore.admin.v1.LocationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.firestore.admin.v1.LocationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.firestore.admin.v1.LocationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.LocationMetadata 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.firestore.admin.v1.LocationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.LocationMetadata 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.firestore.admin.v1.LocationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.firestore.admin.v1.LocationMetadata 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(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.firestore.admin.v1.LocationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+ * The metadata message for [google.cloud.location.Location.metadata][google.cloud.location.Location.metadata]. + *+ * + * Protobuf type {@code google.firestore.admin.v1.LocationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Describes the state of the operation. + *+ * + * Protobuf enum {@code google.firestore.admin.v1.OperationState} + */ +public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified. + *+ * + *
OPERATION_STATE_UNSPECIFIED = 0;
+ */
+ OPERATION_STATE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Request is being prepared for processing. + *+ * + *
INITIALIZING = 1;
+ */
+ INITIALIZING(1),
+ /**
+ *
+ *
+ * + * Request is actively being processed. + *+ * + *
PROCESSING = 2;
+ */
+ PROCESSING(2),
+ /**
+ *
+ *
+ * + * Request is in the process of being cancelled after user called + * google.longrunning.Operations.CancelOperation on the operation. + *+ * + *
CANCELLING = 3;
+ */
+ CANCELLING(3),
+ /**
+ *
+ *
+ * + * Request has been processed and is in its finalization stage. + *+ * + *
FINALIZING = 4;
+ */
+ FINALIZING(4),
+ /**
+ *
+ *
+ * + * Request has completed successfully. + *+ * + *
SUCCESSFUL = 5;
+ */
+ SUCCESSFUL(5),
+ /**
+ *
+ *
+ * + * Request has finished being processed, but encountered an error. + *+ * + *
FAILED = 6;
+ */
+ FAILED(6),
+ /**
+ *
+ *
+ * + * Request has finished being cancelled after user called + * google.longrunning.Operations.CancelOperation. + *+ * + *
CANCELLED = 7;
+ */
+ CANCELLED(7),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified. + *+ * + *
OPERATION_STATE_UNSPECIFIED = 0;
+ */
+ public static final int OPERATION_STATE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Request is being prepared for processing. + *+ * + *
INITIALIZING = 1;
+ */
+ public static final int INITIALIZING_VALUE = 1;
+ /**
+ *
+ *
+ * + * Request is actively being processed. + *+ * + *
PROCESSING = 2;
+ */
+ public static final int PROCESSING_VALUE = 2;
+ /**
+ *
+ *
+ * + * Request is in the process of being cancelled after user called + * google.longrunning.Operations.CancelOperation on the operation. + *+ * + *
CANCELLING = 3;
+ */
+ public static final int CANCELLING_VALUE = 3;
+ /**
+ *
+ *
+ * + * Request has been processed and is in its finalization stage. + *+ * + *
FINALIZING = 4;
+ */
+ public static final int FINALIZING_VALUE = 4;
+ /**
+ *
+ *
+ * + * Request has completed successfully. + *+ * + *
SUCCESSFUL = 5;
+ */
+ public static final int SUCCESSFUL_VALUE = 5;
+ /**
+ *
+ *
+ * + * Request has finished being processed, but encountered an error. + *+ * + *
FAILED = 6;
+ */
+ public static final int FAILED_VALUE = 6;
+ /**
+ *
+ *
+ * + * Request has finished being cancelled after user called + * google.longrunning.Operations.CancelOperation. + *+ * + *
CANCELLED = 7;
+ */
+ public static final int CANCELLED_VALUE = 7;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static OperationState valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static OperationState forNumber(int value) {
+ switch (value) {
+ case 0:
+ return OPERATION_STATE_UNSPECIFIED;
+ case 1:
+ return INITIALIZING;
+ case 2:
+ return PROCESSING;
+ case 3:
+ return CANCELLING;
+ case 4:
+ return FINALIZING;
+ case 5:
+ return SUCCESSFUL;
+ case 6:
+ return FAILED;
+ case 7:
+ return CANCELLED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap