diff --git a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java index d19ab1670..fff82a276 100644 --- a/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java +++ b/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java @@ -1390,6 +1390,8 @@ public final UnaryCallable listFieldsCall * .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) * .addAllCollectionIds(new ArrayList()) * .setOutputUriPrefix("outputUriPrefix499858205") + * .addAllNamespaceIds(new ArrayList()) + * .setSnapshotTime(Timestamp.newBuilder().build()) * .build(); * ExportDocumentsResponse response = firestoreAdminClient.exportDocumentsAsync(request).get(); * } @@ -1429,6 +1431,8 @@ public final UnaryCallable listFieldsCall * .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) * .addAllCollectionIds(new ArrayList()) * .setOutputUriPrefix("outputUriPrefix499858205") + * .addAllNamespaceIds(new ArrayList()) + * .setSnapshotTime(Timestamp.newBuilder().build()) * .build(); * OperationFuture future = * firestoreAdminClient.exportDocumentsOperationCallable().futureCall(request); @@ -1469,6 +1473,8 @@ public final UnaryCallable listFieldsCall * .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) * .addAllCollectionIds(new ArrayList()) * .setOutputUriPrefix("outputUriPrefix499858205") + * .addAllNamespaceIds(new ArrayList()) + * .setSnapshotTime(Timestamp.newBuilder().build()) * .build(); * ApiFuture future = * firestoreAdminClient.exportDocumentsCallable().futureCall(request); @@ -1564,6 +1570,7 @@ public final OperationFuture importDocumentsAsyn * .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) * .addAllCollectionIds(new ArrayList()) * .setInputUriPrefix("inputUriPrefix-97481100") + * .addAllNamespaceIds(new ArrayList()) * .build(); * firestoreAdminClient.importDocumentsAsync(request).get(); * } @@ -1598,6 +1605,7 @@ public final OperationFuture importDocumentsAsyn * .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) * .addAllCollectionIds(new ArrayList()) * .setInputUriPrefix("inputUriPrefix-97481100") + * .addAllNamespaceIds(new ArrayList()) * .build(); * OperationFuture future = * firestoreAdminClient.importDocumentsOperationCallable().futureCall(request); @@ -1632,6 +1640,7 @@ public final OperationFuture importDocumentsAsyn * .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) * .addAllCollectionIds(new ArrayList()) * .setInputUriPrefix("inputUriPrefix-97481100") + * .addAllNamespaceIds(new ArrayList()) * .build(); * ApiFuture future = * firestoreAdminClient.importDocumentsCallable().futureCall(request); diff --git a/google-cloud-firestore-admin/src/main/resources/META-INF/native-image/com.google.cloud.firestore.v1/reflect-config.json b/google-cloud-firestore-admin/src/main/resources/META-INF/native-image/com.google.cloud.firestore.v1/reflect-config.json index 7cf220dc5..48318b1b8 100644 --- a/google-cloud-firestore-admin/src/main/resources/META-INF/native-image/com.google.cloud.firestore.v1/reflect-config.json +++ b/google-cloud-firestore-admin/src/main/resources/META-INF/native-image/com.google.cloud.firestore.v1/reflect-config.json @@ -548,6 +548,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.firestore.admin.v1.Database$PointInTimeRecoveryEnablement", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.firestore.admin.v1.DeleteIndexRequest", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientHttpJsonTest.java b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientHttpJsonTest.java index d28441c58..6c912c39d 100644 --- a/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientHttpJsonTest.java +++ b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientHttpJsonTest.java @@ -44,8 +44,10 @@ import com.google.firestore.admin.v1.ProjectName; import com.google.longrunning.Operation; import com.google.protobuf.Any; +import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -927,6 +929,8 @@ public void createDatabaseTest() throws Exception { Database.newBuilder() .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) .setLocationId("locationId1541836720") + .setVersionRetentionPeriod(Duration.newBuilder().build()) + .setEarliestVersionTime(Timestamp.newBuilder().build()) .setKeyPrefix("keyPrefix-2076395055") .setEtag("etag3123477") .build(); @@ -983,6 +987,8 @@ public void createDatabaseTest2() throws Exception { Database.newBuilder() .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) .setLocationId("locationId1541836720") + .setVersionRetentionPeriod(Duration.newBuilder().build()) + .setEarliestVersionTime(Timestamp.newBuilder().build()) .setKeyPrefix("keyPrefix-2076395055") .setEtag("etag3123477") .build(); @@ -1039,6 +1045,8 @@ public void getDatabaseTest() throws Exception { Database.newBuilder() .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) .setLocationId("locationId1541836720") + .setVersionRetentionPeriod(Duration.newBuilder().build()) + .setEarliestVersionTime(Timestamp.newBuilder().build()) .setKeyPrefix("keyPrefix-2076395055") .setEtag("etag3123477") .build(); @@ -1086,6 +1094,8 @@ public void getDatabaseTest2() throws Exception { Database.newBuilder() .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) .setLocationId("locationId1541836720") + .setVersionRetentionPeriod(Duration.newBuilder().build()) + .setEarliestVersionTime(Timestamp.newBuilder().build()) .setKeyPrefix("keyPrefix-2076395055") .setEtag("etag3123477") .build(); @@ -1217,6 +1227,8 @@ public void updateDatabaseTest() throws Exception { Database.newBuilder() .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) .setLocationId("locationId1541836720") + .setVersionRetentionPeriod(Duration.newBuilder().build()) + .setEarliestVersionTime(Timestamp.newBuilder().build()) .setKeyPrefix("keyPrefix-2076395055") .setEtag("etag3123477") .build(); @@ -1232,6 +1244,8 @@ public void updateDatabaseTest() throws Exception { Database.newBuilder() .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) .setLocationId("locationId1541836720") + .setVersionRetentionPeriod(Duration.newBuilder().build()) + .setEarliestVersionTime(Timestamp.newBuilder().build()) .setKeyPrefix("keyPrefix-2076395055") .setEtag("etag3123477") .build(); @@ -1267,6 +1281,8 @@ public void updateDatabaseExceptionTest() throws Exception { Database.newBuilder() .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) .setLocationId("locationId1541836720") + .setVersionRetentionPeriod(Duration.newBuilder().build()) + .setEarliestVersionTime(Timestamp.newBuilder().build()) .setKeyPrefix("keyPrefix-2076395055") .setEtag("etag3123477") .build(); diff --git a/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientTest.java b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientTest.java index e6f31ed91..eb1b90719 100644 --- a/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientTest.java +++ b/google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/FirestoreAdminClientTest.java @@ -56,8 +56,10 @@ import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; import io.grpc.StatusRuntimeException; import java.io.IOException; import java.util.ArrayList; @@ -845,6 +847,8 @@ public void createDatabaseTest() throws Exception { Database.newBuilder() .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) .setLocationId("locationId1541836720") + .setVersionRetentionPeriod(Duration.newBuilder().build()) + .setEarliestVersionTime(Timestamp.newBuilder().build()) .setKeyPrefix("keyPrefix-2076395055") .setEtag("etag3123477") .build(); @@ -900,6 +904,8 @@ public void createDatabaseTest2() throws Exception { Database.newBuilder() .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) .setLocationId("locationId1541836720") + .setVersionRetentionPeriod(Duration.newBuilder().build()) + .setEarliestVersionTime(Timestamp.newBuilder().build()) .setKeyPrefix("keyPrefix-2076395055") .setEtag("etag3123477") .build(); @@ -955,6 +961,8 @@ public void getDatabaseTest() throws Exception { Database.newBuilder() .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) .setLocationId("locationId1541836720") + .setVersionRetentionPeriod(Duration.newBuilder().build()) + .setEarliestVersionTime(Timestamp.newBuilder().build()) .setKeyPrefix("keyPrefix-2076395055") .setEtag("etag3123477") .build(); @@ -996,6 +1004,8 @@ public void getDatabaseTest2() throws Exception { Database.newBuilder() .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) .setLocationId("locationId1541836720") + .setVersionRetentionPeriod(Duration.newBuilder().build()) + .setEarliestVersionTime(Timestamp.newBuilder().build()) .setKeyPrefix("keyPrefix-2076395055") .setEtag("etag3123477") .build(); @@ -1109,6 +1119,8 @@ public void updateDatabaseTest() throws Exception { Database.newBuilder() .setName(DatabaseName.of("[PROJECT]", "[DATABASE]").toString()) .setLocationId("locationId1541836720") + .setVersionRetentionPeriod(Duration.newBuilder().build()) + .setEarliestVersionTime(Timestamp.newBuilder().build()) .setKeyPrefix("keyPrefix-2076395055") .setEtag("etag3123477") .build(); diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Database.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Database.java index 9cb562e2a..b32be221e 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Database.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Database.java @@ -44,6 +44,7 @@ private Database() { locationId_ = ""; type_ = 0; concurrencyMode_ = 0; + pointInTimeRecoveryEnablement_ = 0; appEngineIntegrationMode_ = 0; keyPrefix_ = ""; etag_ = ""; @@ -430,6 +431,182 @@ private ConcurrencyMode(int value) { // @@protoc_insertion_point(enum_scope:google.firestore.admin.v1.Database.ConcurrencyMode) } + /** + * + * + *
+   * Point In Time Recovery feature enablement.
+   * 
+ * + * Protobuf enum {@code google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement} + */ + public enum PointInTimeRecoveryEnablement implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not used.
+     * 
+ * + * POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED = 0; + */ + POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED(0), + /** + * + * + *
+     * Reads are supported on selected versions of the data from within the past
+     * 7 days:
+     *
+     * * Reads against any timestamp within the past hour
+     * * Reads against 1-minute snapshots beyond 1 hour and within 7 days
+     *
+     * `version_retention_period` and `earliest_version_time` can be
+     * used to determine the supported versions.
+     * 
+ * + * POINT_IN_TIME_RECOVERY_ENABLED = 1; + */ + POINT_IN_TIME_RECOVERY_ENABLED(1), + /** + * + * + *
+     * Reads are supported on any version of the data from within the past 1
+     * hour.
+     * 
+ * + * POINT_IN_TIME_RECOVERY_DISABLED = 2; + */ + POINT_IN_TIME_RECOVERY_DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not used.
+     * 
+ * + * POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED = 0; + */ + public static final int POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Reads are supported on selected versions of the data from within the past
+     * 7 days:
+     *
+     * * Reads against any timestamp within the past hour
+     * * Reads against 1-minute snapshots beyond 1 hour and within 7 days
+     *
+     * `version_retention_period` and `earliest_version_time` can be
+     * used to determine the supported versions.
+     * 
+ * + * POINT_IN_TIME_RECOVERY_ENABLED = 1; + */ + public static final int POINT_IN_TIME_RECOVERY_ENABLED_VALUE = 1; + /** + * + * + *
+     * Reads are supported on any version of the data from within the past 1
+     * hour.
+     * 
+ * + * POINT_IN_TIME_RECOVERY_DISABLED = 2; + */ + public static final int POINT_IN_TIME_RECOVERY_DISABLED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PointInTimeRecoveryEnablement valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PointInTimeRecoveryEnablement forNumber(int value) { + switch (value) { + case 0: + return POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED; + case 1: + return POINT_IN_TIME_RECOVERY_ENABLED; + case 2: + return POINT_IN_TIME_RECOVERY_DISABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PointInTimeRecoveryEnablement findValueByNumber(int number) { + return PointInTimeRecoveryEnablement.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.firestore.admin.v1.Database.getDescriptor().getEnumTypes().get(2); + } + + private static final PointInTimeRecoveryEnablement[] VALUES = values(); + + public static PointInTimeRecoveryEnablement valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PointInTimeRecoveryEnablement(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement) + } + /** * * @@ -467,8 +644,10 @@ public enum AppEngineIntegrationMode implements com.google.protobuf.ProtocolMess * * *
-     * Appengine has no affect on the ability of this database to serve
+     * App Engine has no effect on the ability of this database to serve
      * requests.
+     *
+     * This is the default setting for databases created with the Firestore API.
      * 
* * DISABLED = 2; @@ -504,8 +683,10 @@ public enum AppEngineIntegrationMode implements com.google.protobuf.ProtocolMess * * *
-     * Appengine has no affect on the ability of this database to serve
+     * App Engine has no effect on the ability of this database to serve
      * requests.
+     *
+     * This is the default setting for databases created with the Firestore API.
      * 
* * DISABLED = 2; @@ -573,7 +754,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.firestore.admin.v1.Database.getDescriptor().getEnumTypes().get(2); + return com.google.firestore.admin.v1.Database.getDescriptor().getEnumTypes().get(3); } private static final AppEngineIntegrationMode[] VALUES = values(); @@ -659,7 +840,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The location of the database. Available databases are listed at
+   * The location of the database. Available locations are listed at
    * https://cloud.google.com/firestore/docs/locations.
    * 
* @@ -683,7 +864,7 @@ public java.lang.String getLocationId() { * * *
-   * The location of the database. Available databases are listed at
+   * The location of the database. Available locations are listed at
    * https://cloud.google.com/firestore/docs/locations.
    * 
* @@ -782,6 +963,209 @@ public com.google.firestore.admin.v1.Database.ConcurrencyMode getConcurrencyMode : result; } + public static final int VERSION_RETENTION_PERIOD_FIELD_NUMBER = 17; + private com.google.protobuf.Duration versionRetentionPeriod_; + /** + * + * + *
+   * Output only. The period during which past versions of data are retained in
+   * the database.
+   *
+   * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+   * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+   * a `read_time` within this window, and will read the state of the database
+   * at that time.
+   *
+   * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+   * the retention period is 1 hour.
+   * 
+ * + * + * .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the versionRetentionPeriod field is set. + */ + @java.lang.Override + public boolean hasVersionRetentionPeriod() { + return versionRetentionPeriod_ != null; + } + /** + * + * + *
+   * Output only. The period during which past versions of data are retained in
+   * the database.
+   *
+   * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+   * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+   * a `read_time` within this window, and will read the state of the database
+   * at that time.
+   *
+   * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+   * the retention period is 1 hour.
+   * 
+ * + * + * .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionRetentionPeriod. + */ + @java.lang.Override + public com.google.protobuf.Duration getVersionRetentionPeriod() { + return versionRetentionPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : versionRetentionPeriod_; + } + /** + * + * + *
+   * Output only. The period during which past versions of data are retained in
+   * the database.
+   *
+   * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+   * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+   * a `read_time` within this window, and will read the state of the database
+   * at that time.
+   *
+   * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+   * the retention period is 1 hour.
+   * 
+ * + * + * .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getVersionRetentionPeriodOrBuilder() { + return versionRetentionPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : versionRetentionPeriod_; + } + + public static final int EARLIEST_VERSION_TIME_FIELD_NUMBER = 18; + private com.google.protobuf.Timestamp earliestVersionTime_; + /** + * + * + *
+   * Output only. The earliest timestamp at which older versions of the data can
+   * be read from the database. See [version_retention_period] above; this field
+   * is populated with `now - version_retention_period`.
+   *
+   * This value is continuously updated, and becomes stale the moment it is
+   * queried. If you are using this value to recover data, make sure to account
+   * for the time from the moment when the value is queried to the moment when
+   * you initiate the recovery.
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the earliestVersionTime field is set. + */ + @java.lang.Override + public boolean hasEarliestVersionTime() { + return earliestVersionTime_ != null; + } + /** + * + * + *
+   * Output only. The earliest timestamp at which older versions of the data can
+   * be read from the database. See [version_retention_period] above; this field
+   * is populated with `now - version_retention_period`.
+   *
+   * This value is continuously updated, and becomes stale the moment it is
+   * queried. If you are using this value to recover data, make sure to account
+   * for the time from the moment when the value is queried to the moment when
+   * you initiate the recovery.
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The earliestVersionTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEarliestVersionTime() { + return earliestVersionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestVersionTime_; + } + /** + * + * + *
+   * Output only. The earliest timestamp at which older versions of the data can
+   * be read from the database. See [version_retention_period] above; this field
+   * is populated with `now - version_retention_period`.
+   *
+   * This value is continuously updated, and becomes stale the moment it is
+   * queried. If you are using this value to recover data, make sure to account
+   * for the time from the moment when the value is queried to the moment when
+   * you initiate the recovery.
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEarliestVersionTimeOrBuilder() { + return earliestVersionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestVersionTime_; + } + + public static final int POINT_IN_TIME_RECOVERY_ENABLEMENT_FIELD_NUMBER = 21; + private int pointInTimeRecoveryEnablement_ = 0; + /** + * + * + *
+   * Whether to enable the PITR feature on this database.
+   * 
+ * + * + * .google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21; + * + * + * @return The enum numeric value on the wire for pointInTimeRecoveryEnablement. + */ + @java.lang.Override + public int getPointInTimeRecoveryEnablementValue() { + return pointInTimeRecoveryEnablement_; + } + /** + * + * + *
+   * Whether to enable the PITR feature on this database.
+   * 
+ * + * + * .google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21; + * + * + * @return The pointInTimeRecoveryEnablement. + */ + @java.lang.Override + public com.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement + getPointInTimeRecoveryEnablement() { + com.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement result = + com.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement.forNumber( + pointInTimeRecoveryEnablement_); + return result == null + ? com.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement.UNRECOGNIZED + : result; + } + public static final int APP_ENGINE_INTEGRATION_MODE_FIELD_NUMBER = 19; private int appEngineIntegrationMode_ = 0; /** @@ -833,10 +1217,10 @@ public int getAppEngineIntegrationModeValue() { * * *
-   * Output only. The key_prefix for this database. This key_prefix is used, in combination
-   * with the project id ("<key prefix>~<project id>") to construct the
-   * application id that is returned from the Cloud Datastore APIs in Google App
-   * Engine first generation runtimes.
+   * Output only. The key_prefix for this database. This key_prefix is used, in
+   * combination with the project id ("<key prefix>~<project id>") to construct
+   * the application id that is returned from the Cloud Datastore APIs in Google
+   * App Engine first generation runtimes.
    *
    * This value may be empty in which case the appid to use for URL-encoded keys
    * is the project_id (eg: foo instead of v~foo).
@@ -862,10 +1246,10 @@ public java.lang.String getKeyPrefix() {
    *
    *
    * 
-   * Output only. The key_prefix for this database. This key_prefix is used, in combination
-   * with the project id ("<key prefix>~<project id>") to construct the
-   * application id that is returned from the Cloud Datastore APIs in Google App
-   * Engine first generation runtimes.
+   * Output only. The key_prefix for this database. This key_prefix is used, in
+   * combination with the project id ("<key prefix>~<project id>") to construct
+   * the application id that is returned from the Cloud Datastore APIs in Google
+   * App Engine first generation runtimes.
    *
    * This value may be empty in which case the appid to use for URL-encoded keys
    * is the project_id (eg: foo instead of v~foo).
@@ -973,6 +1357,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
             .getNumber()) {
       output.writeEnum(15, concurrencyMode_);
     }
+    if (versionRetentionPeriod_ != null) {
+      output.writeMessage(17, getVersionRetentionPeriod());
+    }
+    if (earliestVersionTime_ != null) {
+      output.writeMessage(18, getEarliestVersionTime());
+    }
     if (appEngineIntegrationMode_
         != com.google.firestore.admin.v1.Database.AppEngineIntegrationMode
             .APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED
@@ -982,6 +1372,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyPrefix_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 20, keyPrefix_);
     }
+    if (pointInTimeRecoveryEnablement_
+        != com.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement
+            .POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED
+            .getNumber()) {
+      output.writeEnum(21, pointInTimeRecoveryEnablement_);
+    }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 99, etag_);
     }
@@ -1010,6 +1406,14 @@ public int getSerializedSize() {
             .getNumber()) {
       size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, concurrencyMode_);
     }
+    if (versionRetentionPeriod_ != null) {
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(17, getVersionRetentionPeriod());
+    }
+    if (earliestVersionTime_ != null) {
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(18, getEarliestVersionTime());
+    }
     if (appEngineIntegrationMode_
         != com.google.firestore.admin.v1.Database.AppEngineIntegrationMode
             .APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED
@@ -1019,6 +1423,13 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyPrefix_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, keyPrefix_);
     }
+    if (pointInTimeRecoveryEnablement_
+        != com.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement
+            .POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED
+            .getNumber()) {
+      size +=
+          com.google.protobuf.CodedOutputStream.computeEnumSize(21, pointInTimeRecoveryEnablement_);
+    }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_);
     }
@@ -1041,6 +1452,15 @@ public boolean equals(final java.lang.Object obj) {
     if (!getLocationId().equals(other.getLocationId())) return false;
     if (type_ != other.type_) return false;
     if (concurrencyMode_ != other.concurrencyMode_) return false;
+    if (hasVersionRetentionPeriod() != other.hasVersionRetentionPeriod()) return false;
+    if (hasVersionRetentionPeriod()) {
+      if (!getVersionRetentionPeriod().equals(other.getVersionRetentionPeriod())) return false;
+    }
+    if (hasEarliestVersionTime() != other.hasEarliestVersionTime()) return false;
+    if (hasEarliestVersionTime()) {
+      if (!getEarliestVersionTime().equals(other.getEarliestVersionTime())) return false;
+    }
+    if (pointInTimeRecoveryEnablement_ != other.pointInTimeRecoveryEnablement_) return false;
     if (appEngineIntegrationMode_ != other.appEngineIntegrationMode_) return false;
     if (!getKeyPrefix().equals(other.getKeyPrefix())) return false;
     if (!getEtag().equals(other.getEtag())) return false;
@@ -1063,6 +1483,16 @@ public int hashCode() {
     hash = (53 * hash) + type_;
     hash = (37 * hash) + CONCURRENCY_MODE_FIELD_NUMBER;
     hash = (53 * hash) + concurrencyMode_;
+    if (hasVersionRetentionPeriod()) {
+      hash = (37 * hash) + VERSION_RETENTION_PERIOD_FIELD_NUMBER;
+      hash = (53 * hash) + getVersionRetentionPeriod().hashCode();
+    }
+    if (hasEarliestVersionTime()) {
+      hash = (37 * hash) + EARLIEST_VERSION_TIME_FIELD_NUMBER;
+      hash = (53 * hash) + getEarliestVersionTime().hashCode();
+    }
+    hash = (37 * hash) + POINT_IN_TIME_RECOVERY_ENABLEMENT_FIELD_NUMBER;
+    hash = (53 * hash) + pointInTimeRecoveryEnablement_;
     hash = (37 * hash) + APP_ENGINE_INTEGRATION_MODE_FIELD_NUMBER;
     hash = (53 * hash) + appEngineIntegrationMode_;
     hash = (37 * hash) + KEY_PREFIX_FIELD_NUMBER;
@@ -1214,6 +1644,17 @@ public Builder clear() {
       locationId_ = "";
       type_ = 0;
       concurrencyMode_ = 0;
+      versionRetentionPeriod_ = null;
+      if (versionRetentionPeriodBuilder_ != null) {
+        versionRetentionPeriodBuilder_.dispose();
+        versionRetentionPeriodBuilder_ = null;
+      }
+      earliestVersionTime_ = null;
+      if (earliestVersionTimeBuilder_ != null) {
+        earliestVersionTimeBuilder_.dispose();
+        earliestVersionTimeBuilder_ = null;
+      }
+      pointInTimeRecoveryEnablement_ = 0;
       appEngineIntegrationMode_ = 0;
       keyPrefix_ = "";
       etag_ = "";
@@ -1266,13 +1707,28 @@ private void buildPartial0(com.google.firestore.admin.v1.Database result) {
         result.concurrencyMode_ = concurrencyMode_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.appEngineIntegrationMode_ = appEngineIntegrationMode_;
+        result.versionRetentionPeriod_ =
+            versionRetentionPeriodBuilder_ == null
+                ? versionRetentionPeriod_
+                : versionRetentionPeriodBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.keyPrefix_ = keyPrefix_;
+        result.earliestVersionTime_ =
+            earliestVersionTimeBuilder_ == null
+                ? earliestVersionTime_
+                : earliestVersionTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.etag_ = etag_;
+        result.pointInTimeRecoveryEnablement_ = pointInTimeRecoveryEnablement_;
+      }
+      if (((from_bitField0_ & 0x00000080) != 0)) {
+        result.appEngineIntegrationMode_ = appEngineIntegrationMode_;
+      }
+      if (((from_bitField0_ & 0x00000100) != 0)) {
+        result.keyPrefix_ = keyPrefix_;
+      }
+      if (((from_bitField0_ & 0x00000200) != 0)) {
+        result.etag_ = etag_;
       }
     }
 
@@ -1337,17 +1793,26 @@ public Builder mergeFrom(com.google.firestore.admin.v1.Database other) {
       if (other.concurrencyMode_ != 0) {
         setConcurrencyModeValue(other.getConcurrencyModeValue());
       }
+      if (other.hasVersionRetentionPeriod()) {
+        mergeVersionRetentionPeriod(other.getVersionRetentionPeriod());
+      }
+      if (other.hasEarliestVersionTime()) {
+        mergeEarliestVersionTime(other.getEarliestVersionTime());
+      }
+      if (other.pointInTimeRecoveryEnablement_ != 0) {
+        setPointInTimeRecoveryEnablementValue(other.getPointInTimeRecoveryEnablementValue());
+      }
       if (other.appEngineIntegrationMode_ != 0) {
         setAppEngineIntegrationModeValue(other.getAppEngineIntegrationModeValue());
       }
       if (!other.getKeyPrefix().isEmpty()) {
         keyPrefix_ = other.keyPrefix_;
-        bitField0_ |= 0x00000020;
+        bitField0_ |= 0x00000100;
         onChanged();
       }
       if (!other.getEtag().isEmpty()) {
         etag_ = other.etag_;
-        bitField0_ |= 0x00000040;
+        bitField0_ |= 0x00000200;
         onChanged();
       }
       this.mergeUnknownFields(other.getUnknownFields());
@@ -1400,22 +1865,42 @@ public Builder mergeFrom(
                 bitField0_ |= 0x00000008;
                 break;
               } // case 120
+            case 138:
+              {
+                input.readMessage(
+                    getVersionRetentionPeriodFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 138
+            case 146:
+              {
+                input.readMessage(
+                    getEarliestVersionTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 146
             case 152:
               {
                 appEngineIntegrationMode_ = input.readEnum();
-                bitField0_ |= 0x00000010;
+                bitField0_ |= 0x00000080;
                 break;
               } // case 152
             case 162:
               {
                 keyPrefix_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
+                bitField0_ |= 0x00000100;
                 break;
               } // case 162
+            case 168:
+              {
+                pointInTimeRecoveryEnablement_ = input.readEnum();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 168
             case 794:
               {
                 etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
+                bitField0_ |= 0x00000200;
                 break;
               } // case 794
             default:
@@ -1553,7 +2038,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * The location of the database. Available databases are listed at
+     * The location of the database. Available locations are listed at
      * https://cloud.google.com/firestore/docs/locations.
      * 
* @@ -1576,7 +2061,7 @@ public java.lang.String getLocationId() { * * *
-     * The location of the database. Available databases are listed at
+     * The location of the database. Available locations are listed at
      * https://cloud.google.com/firestore/docs/locations.
      * 
* @@ -1599,7 +2084,7 @@ public com.google.protobuf.ByteString getLocationIdBytes() { * * *
-     * The location of the database. Available databases are listed at
+     * The location of the database. Available locations are listed at
      * https://cloud.google.com/firestore/docs/locations.
      * 
* @@ -1621,7 +2106,7 @@ public Builder setLocationId(java.lang.String value) { * * *
-     * The location of the database. Available databases are listed at
+     * The location of the database. Available locations are listed at
      * https://cloud.google.com/firestore/docs/locations.
      * 
* @@ -1639,7 +2124,7 @@ public Builder clearLocationId() { * * *
-     * The location of the database. Available databases are listed at
+     * The location of the database. Available locations are listed at
      * https://cloud.google.com/firestore/docs/locations.
      * 
* @@ -1854,6 +2339,657 @@ public Builder clearConcurrencyMode() { return this; } + private com.google.protobuf.Duration versionRetentionPeriod_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + versionRetentionPeriodBuilder_; + /** + * + * + *
+     * Output only. The period during which past versions of data are retained in
+     * the database.
+     *
+     * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+     * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+     * a `read_time` within this window, and will read the state of the database
+     * at that time.
+     *
+     * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+     * the retention period is 1 hour.
+     * 
+ * + * + * .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the versionRetentionPeriod field is set. + */ + public boolean hasVersionRetentionPeriod() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Output only. The period during which past versions of data are retained in
+     * the database.
+     *
+     * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+     * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+     * a `read_time` within this window, and will read the state of the database
+     * at that time.
+     *
+     * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+     * the retention period is 1 hour.
+     * 
+ * + * + * .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionRetentionPeriod. + */ + public com.google.protobuf.Duration getVersionRetentionPeriod() { + if (versionRetentionPeriodBuilder_ == null) { + return versionRetentionPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : versionRetentionPeriod_; + } else { + return versionRetentionPeriodBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The period during which past versions of data are retained in
+     * the database.
+     *
+     * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+     * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+     * a `read_time` within this window, and will read the state of the database
+     * at that time.
+     *
+     * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+     * the retention period is 1 hour.
+     * 
+ * + * + * .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVersionRetentionPeriod(com.google.protobuf.Duration value) { + if (versionRetentionPeriodBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + versionRetentionPeriod_ = value; + } else { + versionRetentionPeriodBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The period during which past versions of data are retained in
+     * the database.
+     *
+     * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+     * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+     * a `read_time` within this window, and will read the state of the database
+     * at that time.
+     *
+     * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+     * the retention period is 1 hour.
+     * 
+ * + * + * .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVersionRetentionPeriod(com.google.protobuf.Duration.Builder builderForValue) { + if (versionRetentionPeriodBuilder_ == null) { + versionRetentionPeriod_ = builderForValue.build(); + } else { + versionRetentionPeriodBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The period during which past versions of data are retained in
+     * the database.
+     *
+     * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+     * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+     * a `read_time` within this window, and will read the state of the database
+     * at that time.
+     *
+     * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+     * the retention period is 1 hour.
+     * 
+ * + * + * .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeVersionRetentionPeriod(com.google.protobuf.Duration value) { + if (versionRetentionPeriodBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && versionRetentionPeriod_ != null + && versionRetentionPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { + getVersionRetentionPeriodBuilder().mergeFrom(value); + } else { + versionRetentionPeriod_ = value; + } + } else { + versionRetentionPeriodBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The period during which past versions of data are retained in
+     * the database.
+     *
+     * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+     * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+     * a `read_time` within this window, and will read the state of the database
+     * at that time.
+     *
+     * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+     * the retention period is 1 hour.
+     * 
+ * + * + * .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearVersionRetentionPeriod() { + bitField0_ = (bitField0_ & ~0x00000010); + versionRetentionPeriod_ = null; + if (versionRetentionPeriodBuilder_ != null) { + versionRetentionPeriodBuilder_.dispose(); + versionRetentionPeriodBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The period during which past versions of data are retained in
+     * the database.
+     *
+     * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+     * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+     * a `read_time` within this window, and will read the state of the database
+     * at that time.
+     *
+     * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+     * the retention period is 1 hour.
+     * 
+ * + * + * .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Duration.Builder getVersionRetentionPeriodBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getVersionRetentionPeriodFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The period during which past versions of data are retained in
+     * the database.
+     *
+     * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+     * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+     * a `read_time` within this window, and will read the state of the database
+     * at that time.
+     *
+     * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+     * the retention period is 1 hour.
+     * 
+ * + * + * .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.DurationOrBuilder getVersionRetentionPeriodOrBuilder() { + if (versionRetentionPeriodBuilder_ != null) { + return versionRetentionPeriodBuilder_.getMessageOrBuilder(); + } else { + return versionRetentionPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : versionRetentionPeriod_; + } + } + /** + * + * + *
+     * Output only. The period during which past versions of data are retained in
+     * the database.
+     *
+     * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+     * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+     * a `read_time` within this window, and will read the state of the database
+     * at that time.
+     *
+     * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+     * the retention period is 1 hour.
+     * 
+ * + * + * .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getVersionRetentionPeriodFieldBuilder() { + if (versionRetentionPeriodBuilder_ == null) { + versionRetentionPeriodBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getVersionRetentionPeriod(), getParentForChildren(), isClean()); + versionRetentionPeriod_ = null; + } + return versionRetentionPeriodBuilder_; + } + + private com.google.protobuf.Timestamp earliestVersionTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + earliestVersionTimeBuilder_; + /** + * + * + *
+     * Output only. The earliest timestamp at which older versions of the data can
+     * be read from the database. See [version_retention_period] above; this field
+     * is populated with `now - version_retention_period`.
+     *
+     * This value is continuously updated, and becomes stale the moment it is
+     * queried. If you are using this value to recover data, make sure to account
+     * for the time from the moment when the value is queried to the moment when
+     * you initiate the recovery.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the earliestVersionTime field is set. + */ + public boolean hasEarliestVersionTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Output only. The earliest timestamp at which older versions of the data can
+     * be read from the database. See [version_retention_period] above; this field
+     * is populated with `now - version_retention_period`.
+     *
+     * This value is continuously updated, and becomes stale the moment it is
+     * queried. If you are using this value to recover data, make sure to account
+     * for the time from the moment when the value is queried to the moment when
+     * you initiate the recovery.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The earliestVersionTime. + */ + public com.google.protobuf.Timestamp getEarliestVersionTime() { + if (earliestVersionTimeBuilder_ == null) { + return earliestVersionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestVersionTime_; + } else { + return earliestVersionTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The earliest timestamp at which older versions of the data can
+     * be read from the database. See [version_retention_period] above; this field
+     * is populated with `now - version_retention_period`.
+     *
+     * This value is continuously updated, and becomes stale the moment it is
+     * queried. If you are using this value to recover data, make sure to account
+     * for the time from the moment when the value is queried to the moment when
+     * you initiate the recovery.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEarliestVersionTime(com.google.protobuf.Timestamp value) { + if (earliestVersionTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + earliestVersionTime_ = value; + } else { + earliestVersionTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The earliest timestamp at which older versions of the data can
+     * be read from the database. See [version_retention_period] above; this field
+     * is populated with `now - version_retention_period`.
+     *
+     * This value is continuously updated, and becomes stale the moment it is
+     * queried. If you are using this value to recover data, make sure to account
+     * for the time from the moment when the value is queried to the moment when
+     * you initiate the recovery.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEarliestVersionTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (earliestVersionTimeBuilder_ == null) { + earliestVersionTime_ = builderForValue.build(); + } else { + earliestVersionTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The earliest timestamp at which older versions of the data can
+     * be read from the database. See [version_retention_period] above; this field
+     * is populated with `now - version_retention_period`.
+     *
+     * This value is continuously updated, and becomes stale the moment it is
+     * queried. If you are using this value to recover data, make sure to account
+     * for the time from the moment when the value is queried to the moment when
+     * you initiate the recovery.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEarliestVersionTime(com.google.protobuf.Timestamp value) { + if (earliestVersionTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && earliestVersionTime_ != null + && earliestVersionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEarliestVersionTimeBuilder().mergeFrom(value); + } else { + earliestVersionTime_ = value; + } + } else { + earliestVersionTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The earliest timestamp at which older versions of the data can
+     * be read from the database. See [version_retention_period] above; this field
+     * is populated with `now - version_retention_period`.
+     *
+     * This value is continuously updated, and becomes stale the moment it is
+     * queried. If you are using this value to recover data, make sure to account
+     * for the time from the moment when the value is queried to the moment when
+     * you initiate the recovery.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEarliestVersionTime() { + bitField0_ = (bitField0_ & ~0x00000020); + earliestVersionTime_ = null; + if (earliestVersionTimeBuilder_ != null) { + earliestVersionTimeBuilder_.dispose(); + earliestVersionTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The earliest timestamp at which older versions of the data can
+     * be read from the database. See [version_retention_period] above; this field
+     * is populated with `now - version_retention_period`.
+     *
+     * This value is continuously updated, and becomes stale the moment it is
+     * queried. If you are using this value to recover data, make sure to account
+     * for the time from the moment when the value is queried to the moment when
+     * you initiate the recovery.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEarliestVersionTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getEarliestVersionTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The earliest timestamp at which older versions of the data can
+     * be read from the database. See [version_retention_period] above; this field
+     * is populated with `now - version_retention_period`.
+     *
+     * This value is continuously updated, and becomes stale the moment it is
+     * queried. If you are using this value to recover data, make sure to account
+     * for the time from the moment when the value is queried to the moment when
+     * you initiate the recovery.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEarliestVersionTimeOrBuilder() { + if (earliestVersionTimeBuilder_ != null) { + return earliestVersionTimeBuilder_.getMessageOrBuilder(); + } else { + return earliestVersionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestVersionTime_; + } + } + /** + * + * + *
+     * Output only. The earliest timestamp at which older versions of the data can
+     * be read from the database. See [version_retention_period] above; this field
+     * is populated with `now - version_retention_period`.
+     *
+     * This value is continuously updated, and becomes stale the moment it is
+     * queried. If you are using this value to recover data, make sure to account
+     * for the time from the moment when the value is queried to the moment when
+     * you initiate the recovery.
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEarliestVersionTimeFieldBuilder() { + if (earliestVersionTimeBuilder_ == null) { + earliestVersionTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEarliestVersionTime(), getParentForChildren(), isClean()); + earliestVersionTime_ = null; + } + return earliestVersionTimeBuilder_; + } + + private int pointInTimeRecoveryEnablement_ = 0; + /** + * + * + *
+     * Whether to enable the PITR feature on this database.
+     * 
+ * + * + * .google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21; + * + * + * @return The enum numeric value on the wire for pointInTimeRecoveryEnablement. + */ + @java.lang.Override + public int getPointInTimeRecoveryEnablementValue() { + return pointInTimeRecoveryEnablement_; + } + /** + * + * + *
+     * Whether to enable the PITR feature on this database.
+     * 
+ * + * + * .google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21; + * + * + * @param value The enum numeric value on the wire for pointInTimeRecoveryEnablement to set. + * @return This builder for chaining. + */ + public Builder setPointInTimeRecoveryEnablementValue(int value) { + pointInTimeRecoveryEnablement_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to enable the PITR feature on this database.
+     * 
+ * + * + * .google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21; + * + * + * @return The pointInTimeRecoveryEnablement. + */ + @java.lang.Override + public com.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement + getPointInTimeRecoveryEnablement() { + com.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement result = + com.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement.forNumber( + pointInTimeRecoveryEnablement_); + return result == null + ? com.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Whether to enable the PITR feature on this database.
+     * 
+ * + * + * .google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21; + * + * + * @param value The pointInTimeRecoveryEnablement to set. + * @return This builder for chaining. + */ + public Builder setPointInTimeRecoveryEnablement( + com.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + pointInTimeRecoveryEnablement_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to enable the PITR feature on this database.
+     * 
+ * + * + * .google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21; + * + * + * @return This builder for chaining. + */ + public Builder clearPointInTimeRecoveryEnablement() { + bitField0_ = (bitField0_ & ~0x00000040); + pointInTimeRecoveryEnablement_ = 0; + onChanged(); + return this; + } + private int appEngineIntegrationMode_ = 0; /** * @@ -1888,7 +3024,7 @@ public int getAppEngineIntegrationModeValue() { */ public Builder setAppEngineIntegrationModeValue(int value) { appEngineIntegrationMode_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1934,7 +3070,7 @@ public Builder setAppEngineIntegrationMode( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; appEngineIntegrationMode_ = value.getNumber(); onChanged(); return this; @@ -1953,7 +3089,7 @@ public Builder setAppEngineIntegrationMode( * @return This builder for chaining. */ public Builder clearAppEngineIntegrationMode() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000080); appEngineIntegrationMode_ = 0; onChanged(); return this; @@ -1964,10 +3100,10 @@ public Builder clearAppEngineIntegrationMode() { * * *
-     * Output only. The key_prefix for this database. This key_prefix is used, in combination
-     * with the project id ("<key prefix>~<project id>") to construct the
-     * application id that is returned from the Cloud Datastore APIs in Google App
-     * Engine first generation runtimes.
+     * Output only. The key_prefix for this database. This key_prefix is used, in
+     * combination with the project id ("<key prefix>~<project id>") to construct
+     * the application id that is returned from the Cloud Datastore APIs in Google
+     * App Engine first generation runtimes.
      *
      * This value may be empty in which case the appid to use for URL-encoded keys
      * is the project_id (eg: foo instead of v~foo).
@@ -1992,10 +3128,10 @@ public java.lang.String getKeyPrefix() {
      *
      *
      * 
-     * Output only. The key_prefix for this database. This key_prefix is used, in combination
-     * with the project id ("<key prefix>~<project id>") to construct the
-     * application id that is returned from the Cloud Datastore APIs in Google App
-     * Engine first generation runtimes.
+     * Output only. The key_prefix for this database. This key_prefix is used, in
+     * combination with the project id ("<key prefix>~<project id>") to construct
+     * the application id that is returned from the Cloud Datastore APIs in Google
+     * App Engine first generation runtimes.
      *
      * This value may be empty in which case the appid to use for URL-encoded keys
      * is the project_id (eg: foo instead of v~foo).
@@ -2020,10 +3156,10 @@ public com.google.protobuf.ByteString getKeyPrefixBytes() {
      *
      *
      * 
-     * Output only. The key_prefix for this database. This key_prefix is used, in combination
-     * with the project id ("<key prefix>~<project id>") to construct the
-     * application id that is returned from the Cloud Datastore APIs in Google App
-     * Engine first generation runtimes.
+     * Output only. The key_prefix for this database. This key_prefix is used, in
+     * combination with the project id ("<key prefix>~<project id>") to construct
+     * the application id that is returned from the Cloud Datastore APIs in Google
+     * App Engine first generation runtimes.
      *
      * This value may be empty in which case the appid to use for URL-encoded keys
      * is the project_id (eg: foo instead of v~foo).
@@ -2039,7 +3175,7 @@ public Builder setKeyPrefix(java.lang.String value) {
         throw new NullPointerException();
       }
       keyPrefix_ = value;
-      bitField0_ |= 0x00000020;
+      bitField0_ |= 0x00000100;
       onChanged();
       return this;
     }
@@ -2047,10 +3183,10 @@ public Builder setKeyPrefix(java.lang.String value) {
      *
      *
      * 
-     * Output only. The key_prefix for this database. This key_prefix is used, in combination
-     * with the project id ("<key prefix>~<project id>") to construct the
-     * application id that is returned from the Cloud Datastore APIs in Google App
-     * Engine first generation runtimes.
+     * Output only. The key_prefix for this database. This key_prefix is used, in
+     * combination with the project id ("<key prefix>~<project id>") to construct
+     * the application id that is returned from the Cloud Datastore APIs in Google
+     * App Engine first generation runtimes.
      *
      * This value may be empty in which case the appid to use for URL-encoded keys
      * is the project_id (eg: foo instead of v~foo).
@@ -2062,7 +3198,7 @@ public Builder setKeyPrefix(java.lang.String value) {
      */
     public Builder clearKeyPrefix() {
       keyPrefix_ = getDefaultInstance().getKeyPrefix();
-      bitField0_ = (bitField0_ & ~0x00000020);
+      bitField0_ = (bitField0_ & ~0x00000100);
       onChanged();
       return this;
     }
@@ -2070,10 +3206,10 @@ public Builder clearKeyPrefix() {
      *
      *
      * 
-     * Output only. The key_prefix for this database. This key_prefix is used, in combination
-     * with the project id ("<key prefix>~<project id>") to construct the
-     * application id that is returned from the Cloud Datastore APIs in Google App
-     * Engine first generation runtimes.
+     * Output only. The key_prefix for this database. This key_prefix is used, in
+     * combination with the project id ("<key prefix>~<project id>") to construct
+     * the application id that is returned from the Cloud Datastore APIs in Google
+     * App Engine first generation runtimes.
      *
      * This value may be empty in which case the appid to use for URL-encoded keys
      * is the project_id (eg: foo instead of v~foo).
@@ -2090,7 +3226,7 @@ public Builder setKeyPrefixBytes(com.google.protobuf.ByteString value) {
       }
       checkByteStringIsUtf8(value);
       keyPrefix_ = value;
-      bitField0_ |= 0x00000020;
+      bitField0_ |= 0x00000100;
       onChanged();
       return this;
     }
@@ -2163,7 +3299,7 @@ public Builder setEtag(java.lang.String value) {
         throw new NullPointerException();
       }
       etag_ = value;
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000200;
       onChanged();
       return this;
     }
@@ -2182,7 +3318,7 @@ public Builder setEtag(java.lang.String value) {
      */
     public Builder clearEtag() {
       etag_ = getDefaultInstance().getEtag();
-      bitField0_ = (bitField0_ & ~0x00000040);
+      bitField0_ = (bitField0_ & ~0x00000200);
       onChanged();
       return this;
     }
@@ -2206,7 +3342,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
       }
       checkByteStringIsUtf8(value);
       etag_ = value;
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000200;
       onChanged();
       return this;
     }
diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseOrBuilder.java
index c0f2053eb..efedea652 100644
--- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseOrBuilder.java
+++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseOrBuilder.java
@@ -54,7 +54,7 @@ public interface DatabaseOrBuilder
    *
    *
    * 
-   * The location of the database. Available databases are listed at
+   * The location of the database. Available locations are listed at
    * https://cloud.google.com/firestore/docs/locations.
    * 
* @@ -67,7 +67,7 @@ public interface DatabaseOrBuilder * * *
-   * The location of the database. Available databases are listed at
+   * The location of the database. Available locations are listed at
    * https://cloud.google.com/firestore/docs/locations.
    * 
* @@ -131,6 +131,166 @@ public interface DatabaseOrBuilder */ com.google.firestore.admin.v1.Database.ConcurrencyMode getConcurrencyMode(); + /** + * + * + *
+   * Output only. The period during which past versions of data are retained in
+   * the database.
+   *
+   * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+   * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+   * a `read_time` within this window, and will read the state of the database
+   * at that time.
+   *
+   * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+   * the retention period is 1 hour.
+   * 
+ * + * + * .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the versionRetentionPeriod field is set. + */ + boolean hasVersionRetentionPeriod(); + /** + * + * + *
+   * Output only. The period during which past versions of data are retained in
+   * the database.
+   *
+   * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+   * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+   * a `read_time` within this window, and will read the state of the database
+   * at that time.
+   *
+   * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+   * the retention period is 1 hour.
+   * 
+ * + * + * .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionRetentionPeriod. + */ + com.google.protobuf.Duration getVersionRetentionPeriod(); + /** + * + * + *
+   * Output only. The period during which past versions of data are retained in
+   * the database.
+   *
+   * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
+   * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
+   * a `read_time` within this window, and will read the state of the database
+   * at that time.
+   *
+   * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
+   * the retention period is 1 hour.
+   * 
+ * + * + * .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.DurationOrBuilder getVersionRetentionPeriodOrBuilder(); + + /** + * + * + *
+   * Output only. The earliest timestamp at which older versions of the data can
+   * be read from the database. See [version_retention_period] above; this field
+   * is populated with `now - version_retention_period`.
+   *
+   * This value is continuously updated, and becomes stale the moment it is
+   * queried. If you are using this value to recover data, make sure to account
+   * for the time from the moment when the value is queried to the moment when
+   * you initiate the recovery.
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the earliestVersionTime field is set. + */ + boolean hasEarliestVersionTime(); + /** + * + * + *
+   * Output only. The earliest timestamp at which older versions of the data can
+   * be read from the database. See [version_retention_period] above; this field
+   * is populated with `now - version_retention_period`.
+   *
+   * This value is continuously updated, and becomes stale the moment it is
+   * queried. If you are using this value to recover data, make sure to account
+   * for the time from the moment when the value is queried to the moment when
+   * you initiate the recovery.
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The earliestVersionTime. + */ + com.google.protobuf.Timestamp getEarliestVersionTime(); + /** + * + * + *
+   * Output only. The earliest timestamp at which older versions of the data can
+   * be read from the database. See [version_retention_period] above; this field
+   * is populated with `now - version_retention_period`.
+   *
+   * This value is continuously updated, and becomes stale the moment it is
+   * queried. If you are using this value to recover data, make sure to account
+   * for the time from the moment when the value is queried to the moment when
+   * you initiate the recovery.
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEarliestVersionTimeOrBuilder(); + + /** + * + * + *
+   * Whether to enable the PITR feature on this database.
+   * 
+ * + * + * .google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21; + * + * + * @return The enum numeric value on the wire for pointInTimeRecoveryEnablement. + */ + int getPointInTimeRecoveryEnablementValue(); + /** + * + * + *
+   * Whether to enable the PITR feature on this database.
+   * 
+ * + * + * .google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21; + * + * + * @return The pointInTimeRecoveryEnablement. + */ + com.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement + getPointInTimeRecoveryEnablement(); + /** * * @@ -164,10 +324,10 @@ public interface DatabaseOrBuilder * * *
-   * Output only. The key_prefix for this database. This key_prefix is used, in combination
-   * with the project id ("<key prefix>~<project id>") to construct the
-   * application id that is returned from the Cloud Datastore APIs in Google App
-   * Engine first generation runtimes.
+   * Output only. The key_prefix for this database. This key_prefix is used, in
+   * combination with the project id ("<key prefix>~<project id>") to construct
+   * the application id that is returned from the Cloud Datastore APIs in Google
+   * App Engine first generation runtimes.
    *
    * This value may be empty in which case the appid to use for URL-encoded keys
    * is the project_id (eg: foo instead of v~foo).
@@ -182,10 +342,10 @@ public interface DatabaseOrBuilder
    *
    *
    * 
-   * Output only. The key_prefix for this database. This key_prefix is used, in combination
-   * with the project id ("<key prefix>~<project id>") to construct the
-   * application id that is returned from the Cloud Datastore APIs in Google App
-   * Engine first generation runtimes.
+   * Output only. The key_prefix for this database. This key_prefix is used, in
+   * combination with the project id ("<key prefix>~<project id>") to construct
+   * the application id that is returned from the Cloud Datastore APIs in Google
+   * App Engine first generation runtimes.
    *
    * This value may be empty in which case the appid to use for URL-encoded keys
    * is the project_id (eg: foo instead of v~foo).
diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseProto.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseProto.java
index a1148fa65..ab7e066ab 100644
--- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseProto.java
+++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseProto.java
@@ -43,31 +43,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
       "\n(google/firestore/admin/v1/database.pro"
           + "to\022\031google.firestore.admin.v1\032\037google/ap"
           + "i/field_behavior.proto\032\031google/api/resou"
-          + "rce.proto\"\321\005\n\010Database\022\014\n\004name\030\001 \001(\t\022\023\n\013"
-          + "location_id\030\t \001(\t\022>\n\004type\030\n \001(\01620.google"
-          + ".firestore.admin.v1.Database.DatabaseTyp"
-          + "e\022M\n\020concurrency_mode\030\017 \001(\01623.google.fir"
-          + "estore.admin.v1.Database.ConcurrencyMode"
-          + "\022a\n\033app_engine_integration_mode\030\023 \001(\0162<."
-          + "google.firestore.admin.v1.Database.AppEn"
-          + "gineIntegrationMode\022\030\n\nkey_prefix\030\024 \001(\tB"
-          + "\004\342A\001\003\022\014\n\004etag\030c \001(\t\"W\n\014DatabaseType\022\035\n\031D"
-          + "ATABASE_TYPE_UNSPECIFIED\020\000\022\024\n\020FIRESTORE_"
-          + "NATIVE\020\001\022\022\n\016DATASTORE_MODE\020\002\"w\n\017Concurre"
-          + "ncyMode\022 \n\034CONCURRENCY_MODE_UNSPECIFIED\020"
-          + "\000\022\016\n\nOPTIMISTIC\020\001\022\017\n\013PESSIMISTIC\020\002\022!\n\035OP"
-          + "TIMISTIC_WITH_ENTITY_GROUPS\020\003\"b\n\030AppEngi"
-          + "neIntegrationMode\022+\n\'APP_ENGINE_INTEGRAT"
-          + "ION_MODE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010D"
-          + "ISABLED\020\002:R\352AO\n!firestore.googleapis.com"
-          + "/Database\022\'projects/{project}/databases/"
-          + "{database}R\001\001B\334\001\n\035com.google.firestore.a"
-          + "dmin.v1B\rDatabaseProtoP\001Z9cloud.google.c"
-          + "om/go/firestore/apiv1/admin/adminpb;admi"
-          + "npb\242\002\004GCFS\252\002\037Google.Cloud.Firestore.Admi"
-          + "n.V1\312\002\037Google\\Cloud\\Firestore\\Admin\\V1\352\002"
-          + "#Google::Cloud::Firestore::Admin::V1b\006pr"
-          + "oto3"
+          + "rce.proto\032\036google/protobuf/duration.prot"
+          + "o\032\037google/protobuf/timestamp.proto\"\341\010\n\010D"
+          + "atabase\022\014\n\004name\030\001 \001(\t\022\023\n\013location_id\030\t \001"
+          + "(\t\022>\n\004type\030\n \001(\01620.google.firestore.admi"
+          + "n.v1.Database.DatabaseType\022M\n\020concurrenc"
+          + "y_mode\030\017 \001(\01623.google.firestore.admin.v1"
+          + ".Database.ConcurrencyMode\022A\n\030version_ret"
+          + "ention_period\030\021 \001(\0132\031.google.protobuf.Du"
+          + "rationB\004\342A\001\003\022?\n\025earliest_version_time\030\022 "
+          + "\001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022l\n"
+          + "!point_in_time_recovery_enablement\030\025 \001(\016"
+          + "2A.google.firestore.admin.v1.Database.Po"
+          + "intInTimeRecoveryEnablement\022a\n\033app_engin"
+          + "e_integration_mode\030\023 \001(\0162<.google.firest"
+          + "ore.admin.v1.Database.AppEngineIntegrati"
+          + "onMode\022\030\n\nkey_prefix\030\024 \001(\tB\004\342A\001\003\022\014\n\004etag"
+          + "\030c \001(\t\"W\n\014DatabaseType\022\035\n\031DATABASE_TYPE_"
+          + "UNSPECIFIED\020\000\022\024\n\020FIRESTORE_NATIVE\020\001\022\022\n\016D"
+          + "ATASTORE_MODE\020\002\"w\n\017ConcurrencyMode\022 \n\034CO"
+          + "NCURRENCY_MODE_UNSPECIFIED\020\000\022\016\n\nOPTIMIST"
+          + "IC\020\001\022\017\n\013PESSIMISTIC\020\002\022!\n\035OPTIMISTIC_WITH"
+          + "_ENTITY_GROUPS\020\003\"\233\001\n\035PointInTimeRecovery"
+          + "Enablement\0221\n-POINT_IN_TIME_RECOVERY_ENA"
+          + "BLEMENT_UNSPECIFIED\020\000\022\"\n\036POINT_IN_TIME_R"
+          + "ECOVERY_ENABLED\020\001\022#\n\037POINT_IN_TIME_RECOV"
+          + "ERY_DISABLED\020\002\"b\n\030AppEngineIntegrationMo"
+          + "de\022+\n\'APP_ENGINE_INTEGRATION_MODE_UNSPEC"
+          + "IFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002:R\352AO\n"
+          + "!firestore.googleapis.com/Database\022\'proj"
+          + "ects/{project}/databases/{database}R\001\001B\334"
+          + "\001\n\035com.google.firestore.admin.v1B\rDataba"
+          + "seProtoP\001Z9cloud.google.com/go/firestore"
+          + "/apiv1/admin/adminpb;adminpb\242\002\004GCFS\252\002\037Go"
+          + "ogle.Cloud.Firestore.Admin.V1\312\002\037Google\\C"
+          + "loud\\Firestore\\Admin\\V1\352\002#Google::Cloud:"
+          + ":Firestore::Admin::V1b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -75,6 +86,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
             new com.google.protobuf.Descriptors.FileDescriptor[] {
               com.google.api.FieldBehaviorProto.getDescriptor(),
               com.google.api.ResourceProto.getDescriptor(),
+              com.google.protobuf.DurationProto.getDescriptor(),
+              com.google.protobuf.TimestampProto.getDescriptor(),
             });
     internal_static_google_firestore_admin_v1_Database_descriptor =
         getDescriptor().getMessageTypes().get(0);
@@ -86,6 +99,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "LocationId",
               "Type",
               "ConcurrencyMode",
+              "VersionRetentionPeriod",
+              "EarliestVersionTime",
+              "PointInTimeRecoveryEnablement",
               "AppEngineIntegrationMode",
               "KeyPrefix",
               "Etag",
@@ -98,6 +114,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
         descriptor, registry);
     com.google.api.FieldBehaviorProto.getDescriptor();
     com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.DurationProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadata.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadata.java
index 3f993c875..f87737ff0 100644
--- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadata.java
+++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadata.java
@@ -22,7 +22,8 @@
  *
  *
  * 
- * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+ * Metadata for [google.longrunning.Operation][google.longrunning.Operation]
+ * results from
  * [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
  * 
* @@ -42,6 +43,7 @@ private ExportDocumentsMetadata() { operationState_ = 0; collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); outputUriPrefix_ = ""; + namespaceIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -367,7 +369,7 @@ public com.google.protobuf.ByteString getCollectionIdsBytes(int index) { * * *
-   * Where the entities are being exported to.
+   * Where the documents are being exported to.
    * 
* * string output_uri_prefix = 7; @@ -390,7 +392,7 @@ public java.lang.String getOutputUriPrefix() { * * *
-   * Where the entities are being exported to.
+   * Where the documents are being exported to.
    * 
* * string output_uri_prefix = 7; @@ -410,6 +412,126 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } } + public static final int NAMESPACE_IDS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList namespaceIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Which namespace ids are being exported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @return A list containing the namespaceIds. + */ + public com.google.protobuf.ProtocolStringList getNamespaceIdsList() { + return namespaceIds_; + } + /** + * + * + *
+   * Which namespace ids are being exported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @return The count of namespaceIds. + */ + public int getNamespaceIdsCount() { + return namespaceIds_.size(); + } + /** + * + * + *
+   * Which namespace ids are being exported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @param index The index of the element to return. + * @return The namespaceIds at the given index. + */ + public java.lang.String getNamespaceIds(int index) { + return namespaceIds_.get(index); + } + /** + * + * + *
+   * Which namespace ids are being exported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @param index The index of the value to return. + * @return The bytes of the namespaceIds at the given index. + */ + public com.google.protobuf.ByteString getNamespaceIdsBytes(int index) { + return namespaceIds_.getByteString(index); + } + + public static final int SNAPSHOT_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp snapshotTime_; + /** + * + * + *
+   * The timestamp that corresponds to the version of the database that is being
+   * exported. If unspecified, there are no guarantees about the consistency of
+   * the documents being exported.
+   * 
+ * + * .google.protobuf.Timestamp snapshot_time = 9; + * + * @return Whether the snapshotTime field is set. + */ + @java.lang.Override + public boolean hasSnapshotTime() { + return snapshotTime_ != null; + } + /** + * + * + *
+   * The timestamp that corresponds to the version of the database that is being
+   * exported. If unspecified, there are no guarantees about the consistency of
+   * the documents being exported.
+   * 
+ * + * .google.protobuf.Timestamp snapshot_time = 9; + * + * @return The snapshotTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getSnapshotTime() { + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; + } + /** + * + * + *
+   * The timestamp that corresponds to the version of the database that is being
+   * exported. If unspecified, there are no guarantees about the consistency of
+   * the documents being exported.
+   * 
+ * + * .google.protobuf.Timestamp snapshot_time = 9; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -446,6 +568,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, outputUriPrefix_); } + for (int i = 0; i < namespaceIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, namespaceIds_.getRaw(i)); + } + if (snapshotTime_ != null) { + output.writeMessage(9, getSnapshotTime()); + } getUnknownFields().writeTo(output); } @@ -482,6 +610,17 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, outputUriPrefix_); } + { + int dataSize = 0; + for (int i = 0; i < namespaceIds_.size(); i++) { + dataSize += computeStringSizeNoTag(namespaceIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamespaceIdsList().size(); + } + if (snapshotTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSnapshotTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -517,6 +656,11 @@ public boolean equals(final java.lang.Object obj) { } if (!getCollectionIdsList().equals(other.getCollectionIdsList())) return false; if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; + if (!getNamespaceIdsList().equals(other.getNamespaceIdsList())) return false; + if (hasSnapshotTime() != other.hasSnapshotTime()) return false; + if (hasSnapshotTime()) { + if (!getSnapshotTime().equals(other.getSnapshotTime())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -552,6 +696,14 @@ public int hashCode() { } hash = (37 * hash) + OUTPUT_URI_PREFIX_FIELD_NUMBER; hash = (53 * hash) + getOutputUriPrefix().hashCode(); + if (getNamespaceIdsCount() > 0) { + hash = (37 * hash) + NAMESPACE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getNamespaceIdsList().hashCode(); + } + if (hasSnapshotTime()) { + hash = (37 * hash) + SNAPSHOT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotTime().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -657,7 +809,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+   * Metadata for [google.longrunning.Operation][google.longrunning.Operation]
+   * results from
    * [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
    * 
* @@ -716,6 +869,12 @@ public Builder clear() { } collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); outputUriPrefix_ = ""; + namespaceIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + snapshotTime_ = null; + if (snapshotTimeBuilder_ != null) { + snapshotTimeBuilder_.dispose(); + snapshotTimeBuilder_ = null; + } return this; } @@ -778,6 +937,14 @@ private void buildPartial0(com.google.firestore.admin.v1.ExportDocumentsMetadata if (((from_bitField0_ & 0x00000040) != 0)) { result.outputUriPrefix_ = outputUriPrefix_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + namespaceIds_.makeImmutable(); + result.namespaceIds_ = namespaceIds_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.snapshotTime_ = + snapshotTimeBuilder_ == null ? snapshotTime_ : snapshotTimeBuilder_.build(); + } } @java.lang.Override @@ -856,6 +1023,19 @@ public Builder mergeFrom(com.google.firestore.admin.v1.ExportDocumentsMetadata o bitField0_ |= 0x00000040; onChanged(); } + if (!other.namespaceIds_.isEmpty()) { + if (namespaceIds_.isEmpty()) { + namespaceIds_ = other.namespaceIds_; + bitField0_ |= 0x00000080; + } else { + ensureNamespaceIdsIsMutable(); + namespaceIds_.addAll(other.namespaceIds_); + } + onChanged(); + } + if (other.hasSnapshotTime()) { + mergeSnapshotTime(other.getSnapshotTime()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -926,6 +1106,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamespaceIdsIsMutable(); + namespaceIds_.add(s); + break; + } // case 66 + case 74: + { + input.readMessage(getSnapshotTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1949,7 +2142,7 @@ public Builder addCollectionIdsBytes(com.google.protobuf.ByteString value) { * * *
-     * Where the entities are being exported to.
+     * Where the documents are being exported to.
      * 
* * string output_uri_prefix = 7; @@ -1971,7 +2164,7 @@ public java.lang.String getOutputUriPrefix() { * * *
-     * Where the entities are being exported to.
+     * Where the documents are being exported to.
      * 
* * string output_uri_prefix = 7; @@ -1993,7 +2186,7 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { * * *
-     * Where the entities are being exported to.
+     * Where the documents are being exported to.
      * 
* * string output_uri_prefix = 7; @@ -2014,7 +2207,7 @@ public Builder setOutputUriPrefix(java.lang.String value) { * * *
-     * Where the entities are being exported to.
+     * Where the documents are being exported to.
      * 
* * string output_uri_prefix = 7; @@ -2031,7 +2224,7 @@ public Builder clearOutputUriPrefix() { * * *
-     * Where the entities are being exported to.
+     * Where the documents are being exported to.
      * 
* * string output_uri_prefix = 7; @@ -2050,6 +2243,381 @@ public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList namespaceIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamespaceIdsIsMutable() { + if (!namespaceIds_.isModifiable()) { + namespaceIds_ = new com.google.protobuf.LazyStringArrayList(namespaceIds_); + } + bitField0_ |= 0x00000080; + } + /** + * + * + *
+     * Which namespace ids are being exported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @return A list containing the namespaceIds. + */ + public com.google.protobuf.ProtocolStringList getNamespaceIdsList() { + namespaceIds_.makeImmutable(); + return namespaceIds_; + } + /** + * + * + *
+     * Which namespace ids are being exported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @return The count of namespaceIds. + */ + public int getNamespaceIdsCount() { + return namespaceIds_.size(); + } + /** + * + * + *
+     * Which namespace ids are being exported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @param index The index of the element to return. + * @return The namespaceIds at the given index. + */ + public java.lang.String getNamespaceIds(int index) { + return namespaceIds_.get(index); + } + /** + * + * + *
+     * Which namespace ids are being exported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @param index The index of the value to return. + * @return The bytes of the namespaceIds at the given index. + */ + public com.google.protobuf.ByteString getNamespaceIdsBytes(int index) { + return namespaceIds_.getByteString(index); + } + /** + * + * + *
+     * Which namespace ids are being exported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @param index The index to set the value at. + * @param value The namespaceIds to set. + * @return This builder for chaining. + */ + public Builder setNamespaceIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespaceIdsIsMutable(); + namespaceIds_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Which namespace ids are being exported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @param value The namespaceIds to add. + * @return This builder for chaining. + */ + public Builder addNamespaceIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespaceIdsIsMutable(); + namespaceIds_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Which namespace ids are being exported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @param values The namespaceIds to add. + * @return This builder for chaining. + */ + public Builder addAllNamespaceIds(java.lang.Iterable values) { + ensureNamespaceIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, namespaceIds_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Which namespace ids are being exported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @return This builder for chaining. + */ + public Builder clearNamespaceIds() { + namespaceIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Which namespace ids are being exported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @param value The bytes of the namespaceIds to add. + * @return This builder for chaining. + */ + public Builder addNamespaceIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamespaceIdsIsMutable(); + namespaceIds_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp snapshotTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + snapshotTimeBuilder_; + /** + * + * + *
+     * The timestamp that corresponds to the version of the database that is being
+     * exported. If unspecified, there are no guarantees about the consistency of
+     * the documents being exported.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 9; + * + * @return Whether the snapshotTime field is set. + */ + public boolean hasSnapshotTime() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database that is being
+     * exported. If unspecified, there are no guarantees about the consistency of
+     * the documents being exported.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 9; + * + * @return The snapshotTime. + */ + public com.google.protobuf.Timestamp getSnapshotTime() { + if (snapshotTimeBuilder_ == null) { + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; + } else { + return snapshotTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database that is being
+     * exported. If unspecified, there are no guarantees about the consistency of
+     * the documents being exported.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 9; + */ + public Builder setSnapshotTime(com.google.protobuf.Timestamp value) { + if (snapshotTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshotTime_ = value; + } else { + snapshotTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database that is being
+     * exported. If unspecified, there are no guarantees about the consistency of
+     * the documents being exported.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 9; + */ + public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (snapshotTimeBuilder_ == null) { + snapshotTime_ = builderForValue.build(); + } else { + snapshotTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database that is being
+     * exported. If unspecified, there are no guarantees about the consistency of
+     * the documents being exported.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 9; + */ + public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { + if (snapshotTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && snapshotTime_ != null + && snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getSnapshotTimeBuilder().mergeFrom(value); + } else { + snapshotTime_ = value; + } + } else { + snapshotTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database that is being
+     * exported. If unspecified, there are no guarantees about the consistency of
+     * the documents being exported.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 9; + */ + public Builder clearSnapshotTime() { + bitField0_ = (bitField0_ & ~0x00000100); + snapshotTime_ = null; + if (snapshotTimeBuilder_ != null) { + snapshotTimeBuilder_.dispose(); + snapshotTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database that is being
+     * exported. If unspecified, there are no guarantees about the consistency of
+     * the documents being exported.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 9; + */ + public com.google.protobuf.Timestamp.Builder getSnapshotTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getSnapshotTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database that is being
+     * exported. If unspecified, there are no guarantees about the consistency of
+     * the documents being exported.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 9; + */ + public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { + if (snapshotTimeBuilder_ != null) { + return snapshotTimeBuilder_.getMessageOrBuilder(); + } else { + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; + } + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database that is being
+     * exported. If unspecified, there are no guarantees about the consistency of
+     * the documents being exported.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getSnapshotTimeFieldBuilder() { + if (snapshotTimeBuilder_ == null) { + snapshotTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSnapshotTime(), getParentForChildren(), isClean()); + snapshotTime_ = null; + } + return snapshotTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadataOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadataOrBuilder.java index d115722cd..2d473b8fe 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadataOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsMetadataOrBuilder.java @@ -246,7 +246,7 @@ public interface ExportDocumentsMetadataOrBuilder * * *
-   * Where the entities are being exported to.
+   * Where the documents are being exported to.
    * 
* * string output_uri_prefix = 7; @@ -258,7 +258,7 @@ public interface ExportDocumentsMetadataOrBuilder * * *
-   * Where the entities are being exported to.
+   * Where the documents are being exported to.
    * 
* * string output_uri_prefix = 7; @@ -266,4 +266,96 @@ public interface ExportDocumentsMetadataOrBuilder * @return The bytes for outputUriPrefix. */ com.google.protobuf.ByteString getOutputUriPrefixBytes(); + + /** + * + * + *
+   * Which namespace ids are being exported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @return A list containing the namespaceIds. + */ + java.util.List getNamespaceIdsList(); + /** + * + * + *
+   * Which namespace ids are being exported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @return The count of namespaceIds. + */ + int getNamespaceIdsCount(); + /** + * + * + *
+   * Which namespace ids are being exported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @param index The index of the element to return. + * @return The namespaceIds at the given index. + */ + java.lang.String getNamespaceIds(int index); + /** + * + * + *
+   * Which namespace ids are being exported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @param index The index of the value to return. + * @return The bytes of the namespaceIds at the given index. + */ + com.google.protobuf.ByteString getNamespaceIdsBytes(int index); + + /** + * + * + *
+   * The timestamp that corresponds to the version of the database that is being
+   * exported. If unspecified, there are no guarantees about the consistency of
+   * the documents being exported.
+   * 
+ * + * .google.protobuf.Timestamp snapshot_time = 9; + * + * @return Whether the snapshotTime field is set. + */ + boolean hasSnapshotTime(); + /** + * + * + *
+   * The timestamp that corresponds to the version of the database that is being
+   * exported. If unspecified, there are no guarantees about the consistency of
+   * the documents being exported.
+   * 
+ * + * .google.protobuf.Timestamp snapshot_time = 9; + * + * @return The snapshotTime. + */ + com.google.protobuf.Timestamp getSnapshotTime(); + /** + * + * + *
+   * The timestamp that corresponds to the version of the database that is being
+   * exported. If unspecified, there are no guarantees about the consistency of
+   * the documents being exported.
+   * 
+ * + * .google.protobuf.Timestamp snapshot_time = 9; + */ + com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder(); } diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequest.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequest.java index d9b2954b7..df9cdbdd8 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequest.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequest.java @@ -42,6 +42,7 @@ private ExportDocumentsRequest() { name_ = ""; collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); outputUriPrefix_ = ""; + namespaceIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -251,6 +252,158 @@ public com.google.protobuf.ByteString getOutputUriPrefixBytes() { } } + public static final int NAMESPACE_IDS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList namespaceIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @return A list containing the namespaceIds. + */ + public com.google.protobuf.ProtocolStringList getNamespaceIdsList() { + return namespaceIds_; + } + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @return The count of namespaceIds. + */ + public int getNamespaceIdsCount() { + return namespaceIds_.size(); + } + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @param index The index of the element to return. + * @return The namespaceIds at the given index. + */ + public java.lang.String getNamespaceIds(int index) { + return namespaceIds_.get(index); + } + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @param index The index of the value to return. + * @return The bytes of the namespaceIds at the given index. + */ + public com.google.protobuf.ByteString getNamespaceIdsBytes(int index) { + return namespaceIds_.getByteString(index); + } + + public static final int SNAPSHOT_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp snapshotTime_; + /** + * + * + *
+   * The timestamp that corresponds to the version of the database to be
+   * exported. The timestamp must be in the past, rounded to the minute and not
+   * older than
+   * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+   * If specified, then the exported documents will represent a consistent view
+   * of the database at the provided time. Otherwise, there are no guarantees
+   * about the consistency of the exported documents.
+   * 
+ * + * .google.protobuf.Timestamp snapshot_time = 5; + * + * @return Whether the snapshotTime field is set. + */ + @java.lang.Override + public boolean hasSnapshotTime() { + return snapshotTime_ != null; + } + /** + * + * + *
+   * The timestamp that corresponds to the version of the database to be
+   * exported. The timestamp must be in the past, rounded to the minute and not
+   * older than
+   * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+   * If specified, then the exported documents will represent a consistent view
+   * of the database at the provided time. Otherwise, there are no guarantees
+   * about the consistency of the exported documents.
+   * 
+ * + * .google.protobuf.Timestamp snapshot_time = 5; + * + * @return The snapshotTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getSnapshotTime() { + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; + } + /** + * + * + *
+   * The timestamp that corresponds to the version of the database to be
+   * exported. The timestamp must be in the past, rounded to the minute and not
+   * older than
+   * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+   * If specified, then the exported documents will represent a consistent view
+   * of the database at the provided time. Otherwise, there are no guarantees
+   * about the consistency of the exported documents.
+   * 
+ * + * .google.protobuf.Timestamp snapshot_time = 5; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -274,6 +427,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputUriPrefix_); } + for (int i = 0; i < namespaceIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, namespaceIds_.getRaw(i)); + } + if (snapshotTime_ != null) { + output.writeMessage(5, getSnapshotTime()); + } getUnknownFields().writeTo(output); } @@ -297,6 +456,17 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputUriPrefix_); } + { + int dataSize = 0; + for (int i = 0; i < namespaceIds_.size(); i++) { + dataSize += computeStringSizeNoTag(namespaceIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamespaceIdsList().size(); + } + if (snapshotTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSnapshotTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -316,6 +486,11 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getCollectionIdsList().equals(other.getCollectionIdsList())) return false; if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; + if (!getNamespaceIdsList().equals(other.getNamespaceIdsList())) return false; + if (hasSnapshotTime() != other.hasSnapshotTime()) return false; + if (hasSnapshotTime()) { + if (!getSnapshotTime().equals(other.getSnapshotTime())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -335,6 +510,14 @@ public int hashCode() { } hash = (37 * hash) + OUTPUT_URI_PREFIX_FIELD_NUMBER; hash = (53 * hash) + getOutputUriPrefix().hashCode(); + if (getNamespaceIdsCount() > 0) { + hash = (37 * hash) + NAMESPACE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getNamespaceIdsList().hashCode(); + } + if (hasSnapshotTime()) { + hash = (37 * hash) + SNAPSHOT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotTime().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -478,6 +661,12 @@ public Builder clear() { name_ = ""; collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); outputUriPrefix_ = ""; + namespaceIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + snapshotTime_ = null; + if (snapshotTimeBuilder_ != null) { + snapshotTimeBuilder_.dispose(); + snapshotTimeBuilder_ = null; + } return this; } @@ -524,6 +713,14 @@ private void buildPartial0(com.google.firestore.admin.v1.ExportDocumentsRequest if (((from_bitField0_ & 0x00000004) != 0)) { result.outputUriPrefix_ = outputUriPrefix_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + namespaceIds_.makeImmutable(); + result.namespaceIds_ = namespaceIds_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.snapshotTime_ = + snapshotTimeBuilder_ == null ? snapshotTime_ : snapshotTimeBuilder_.build(); + } } @java.lang.Override @@ -592,6 +789,19 @@ public Builder mergeFrom(com.google.firestore.admin.v1.ExportDocumentsRequest ot bitField0_ |= 0x00000004; onChanged(); } + if (!other.namespaceIds_.isEmpty()) { + if (namespaceIds_.isEmpty()) { + namespaceIds_ = other.namespaceIds_; + bitField0_ |= 0x00000008; + } else { + ensureNamespaceIdsIsMutable(); + namespaceIds_.addAll(other.namespaceIds_); + } + onChanged(); + } + if (other.hasSnapshotTime()) { + mergeSnapshotTime(other.getSnapshotTime()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -637,6 +847,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamespaceIdsIsMutable(); + namespaceIds_.add(s); + break; + } // case 34 + case 42: + { + input.readMessage(getSnapshotTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1092,6 +1315,462 @@ public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList namespaceIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamespaceIdsIsMutable() { + if (!namespaceIds_.isModifiable()) { + namespaceIds_ = new com.google.protobuf.LazyStringArrayList(namespaceIds_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @return A list containing the namespaceIds. + */ + public com.google.protobuf.ProtocolStringList getNamespaceIdsList() { + namespaceIds_.makeImmutable(); + return namespaceIds_; + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @return The count of namespaceIds. + */ + public int getNamespaceIdsCount() { + return namespaceIds_.size(); + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @param index The index of the element to return. + * @return The namespaceIds at the given index. + */ + public java.lang.String getNamespaceIds(int index) { + return namespaceIds_.get(index); + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @param index The index of the value to return. + * @return The bytes of the namespaceIds at the given index. + */ + public com.google.protobuf.ByteString getNamespaceIdsBytes(int index) { + return namespaceIds_.getByteString(index); + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @param index The index to set the value at. + * @param value The namespaceIds to set. + * @return This builder for chaining. + */ + public Builder setNamespaceIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespaceIdsIsMutable(); + namespaceIds_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @param value The namespaceIds to add. + * @return This builder for chaining. + */ + public Builder addNamespaceIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespaceIdsIsMutable(); + namespaceIds_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @param values The namespaceIds to add. + * @return This builder for chaining. + */ + public Builder addAllNamespaceIds(java.lang.Iterable values) { + ensureNamespaceIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, namespaceIds_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @return This builder for chaining. + */ + public Builder clearNamespaceIds() { + namespaceIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @param value The bytes of the namespaceIds to add. + * @return This builder for chaining. + */ + public Builder addNamespaceIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamespaceIdsIsMutable(); + namespaceIds_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp snapshotTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + snapshotTimeBuilder_; + /** + * + * + *
+     * The timestamp that corresponds to the version of the database to be
+     * exported. The timestamp must be in the past, rounded to the minute and not
+     * older than
+     * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+     * If specified, then the exported documents will represent a consistent view
+     * of the database at the provided time. Otherwise, there are no guarantees
+     * about the consistency of the exported documents.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 5; + * + * @return Whether the snapshotTime field is set. + */ + public boolean hasSnapshotTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database to be
+     * exported. The timestamp must be in the past, rounded to the minute and not
+     * older than
+     * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+     * If specified, then the exported documents will represent a consistent view
+     * of the database at the provided time. Otherwise, there are no guarantees
+     * about the consistency of the exported documents.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 5; + * + * @return The snapshotTime. + */ + public com.google.protobuf.Timestamp getSnapshotTime() { + if (snapshotTimeBuilder_ == null) { + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; + } else { + return snapshotTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database to be
+     * exported. The timestamp must be in the past, rounded to the minute and not
+     * older than
+     * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+     * If specified, then the exported documents will represent a consistent view
+     * of the database at the provided time. Otherwise, there are no guarantees
+     * about the consistency of the exported documents.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 5; + */ + public Builder setSnapshotTime(com.google.protobuf.Timestamp value) { + if (snapshotTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshotTime_ = value; + } else { + snapshotTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database to be
+     * exported. The timestamp must be in the past, rounded to the minute and not
+     * older than
+     * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+     * If specified, then the exported documents will represent a consistent view
+     * of the database at the provided time. Otherwise, there are no guarantees
+     * about the consistency of the exported documents.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 5; + */ + public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (snapshotTimeBuilder_ == null) { + snapshotTime_ = builderForValue.build(); + } else { + snapshotTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database to be
+     * exported. The timestamp must be in the past, rounded to the minute and not
+     * older than
+     * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+     * If specified, then the exported documents will represent a consistent view
+     * of the database at the provided time. Otherwise, there are no guarantees
+     * about the consistency of the exported documents.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 5; + */ + public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { + if (snapshotTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && snapshotTime_ != null + && snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getSnapshotTimeBuilder().mergeFrom(value); + } else { + snapshotTime_ = value; + } + } else { + snapshotTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database to be
+     * exported. The timestamp must be in the past, rounded to the minute and not
+     * older than
+     * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+     * If specified, then the exported documents will represent a consistent view
+     * of the database at the provided time. Otherwise, there are no guarantees
+     * about the consistency of the exported documents.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 5; + */ + public Builder clearSnapshotTime() { + bitField0_ = (bitField0_ & ~0x00000010); + snapshotTime_ = null; + if (snapshotTimeBuilder_ != null) { + snapshotTimeBuilder_.dispose(); + snapshotTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database to be
+     * exported. The timestamp must be in the past, rounded to the minute and not
+     * older than
+     * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+     * If specified, then the exported documents will represent a consistent view
+     * of the database at the provided time. Otherwise, there are no guarantees
+     * about the consistency of the exported documents.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 5; + */ + public com.google.protobuf.Timestamp.Builder getSnapshotTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getSnapshotTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database to be
+     * exported. The timestamp must be in the past, rounded to the minute and not
+     * older than
+     * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+     * If specified, then the exported documents will represent a consistent view
+     * of the database at the provided time. Otherwise, there are no guarantees
+     * about the consistency of the exported documents.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { + if (snapshotTimeBuilder_ != null) { + return snapshotTimeBuilder_.getMessageOrBuilder(); + } else { + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; + } + } + /** + * + * + *
+     * The timestamp that corresponds to the version of the database to be
+     * exported. The timestamp must be in the past, rounded to the minute and not
+     * older than
+     * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+     * If specified, then the exported documents will represent a consistent view
+     * of the database at the provided time. Otherwise, there are no guarantees
+     * about the consistency of the exported documents.
+     * 
+ * + * .google.protobuf.Timestamp snapshot_time = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getSnapshotTimeFieldBuilder() { + if (snapshotTimeBuilder_ == null) { + snapshotTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSnapshotTime(), getParentForChildren(), isClean()); + snapshotTime_ = null; + } + return snapshotTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequestOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequestOrBuilder.java index 1da200a0d..310a4f4a5 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequestOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsRequestOrBuilder.java @@ -143,4 +143,128 @@ public interface ExportDocumentsRequestOrBuilder * @return The bytes for outputUriPrefix. */ com.google.protobuf.ByteString getOutputUriPrefixBytes(); + + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @return A list containing the namespaceIds. + */ + java.util.List getNamespaceIdsList(); + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @return The count of namespaceIds. + */ + int getNamespaceIdsCount(); + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @param index The index of the element to return. + * @return The namespaceIds at the given index. + */ + java.lang.String getNamespaceIds(int index); + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @param index The index of the value to return. + * @return The bytes of the namespaceIds at the given index. + */ + com.google.protobuf.ByteString getNamespaceIdsBytes(int index); + + /** + * + * + *
+   * The timestamp that corresponds to the version of the database to be
+   * exported. The timestamp must be in the past, rounded to the minute and not
+   * older than
+   * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+   * If specified, then the exported documents will represent a consistent view
+   * of the database at the provided time. Otherwise, there are no guarantees
+   * about the consistency of the exported documents.
+   * 
+ * + * .google.protobuf.Timestamp snapshot_time = 5; + * + * @return Whether the snapshotTime field is set. + */ + boolean hasSnapshotTime(); + /** + * + * + *
+   * The timestamp that corresponds to the version of the database to be
+   * exported. The timestamp must be in the past, rounded to the minute and not
+   * older than
+   * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+   * If specified, then the exported documents will represent a consistent view
+   * of the database at the provided time. Otherwise, there are no guarantees
+   * about the consistency of the exported documents.
+   * 
+ * + * .google.protobuf.Timestamp snapshot_time = 5; + * + * @return The snapshotTime. + */ + com.google.protobuf.Timestamp getSnapshotTime(); + /** + * + * + *
+   * The timestamp that corresponds to the version of the database to be
+   * exported. The timestamp must be in the past, rounded to the minute and not
+   * older than
+   * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
+   * If specified, then the exported documents will represent a consistent view
+   * of the database at the provided time. Otherwise, there are no guarantees
+   * about the consistency of the exported documents.
+   * 
+ * + * .google.protobuf.Timestamp snapshot_time = 5; + */ + com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder(); } diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponse.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponse.java index fb3e0f8ad..d71eb0a00 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponse.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ExportDocumentsResponse.java @@ -22,7 +22,8 @@ * * *
- * Returned in the [google.longrunning.Operation][google.longrunning.Operation] response field.
+ * Returned in the [google.longrunning.Operation][google.longrunning.Operation]
+ * response field.
  * 
* * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsResponse} @@ -281,7 +282,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Returned in the [google.longrunning.Operation][google.longrunning.Operation] response field.
+   * Returned in the [google.longrunning.Operation][google.longrunning.Operation]
+   * response field.
    * 
* * Protobuf type {@code google.firestore.admin.v1.ExportDocumentsResponse} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadata.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadata.java index bde0ef058..30ce174ec 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadata.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadata.java @@ -22,7 +22,8 @@ * * *
- * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+ * Metadata for [google.longrunning.Operation][google.longrunning.Operation]
+ * results from
  * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
  * 
* @@ -1213,7 +1214,7 @@ public interface TtlConfigDeltaOrBuilder * * *
-   * Information about an TTL configuration change.
+   * Information about a TTL configuration change.
    * 
* * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta} @@ -1629,7 +1630,7 @@ protected Builder newBuilderForType( * * *
-     * Information about an TTL configuration change.
+     * Information about a TTL configuration change.
      * 
* * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta} @@ -2146,8 +2147,9 @@ public com.google.protobuf.ByteString getFieldBytes() { * * *
-   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-   * operation.
+   * A list of
+   * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+   * which describe the intent of this operation.
    * 
* * @@ -2163,8 +2165,9 @@ public com.google.protobuf.ByteString getFieldBytes() { * * *
-   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-   * operation.
+   * A list of
+   * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+   * which describe the intent of this operation.
    * 
* * @@ -2181,8 +2184,9 @@ public com.google.protobuf.ByteString getFieldBytes() { * * *
-   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-   * operation.
+   * A list of
+   * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+   * which describe the intent of this operation.
    * 
* * @@ -2197,8 +2201,9 @@ public int getIndexConfigDeltasCount() { * * *
-   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-   * operation.
+   * A list of
+   * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+   * which describe the intent of this operation.
    * 
* * @@ -2214,8 +2219,9 @@ public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta get * * *
-   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-   * operation.
+   * A list of
+   * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+   * which describe the intent of this operation.
    * 
* * @@ -2673,7 +2679,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+   * Metadata for [google.longrunning.Operation][google.longrunning.Operation]
+   * results from
    * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
    * 
* @@ -3521,8 +3528,9 @@ private void ensureIndexConfigDeltasIsMutable() { * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3541,8 +3549,9 @@ private void ensureIndexConfigDeltasIsMutable() { * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3560,8 +3569,9 @@ public int getIndexConfigDeltasCount() { * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3580,8 +3590,9 @@ public int getIndexConfigDeltasCount() { * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3606,8 +3617,9 @@ public Builder setIndexConfigDeltas( * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3631,8 +3643,9 @@ public Builder setIndexConfigDeltas( * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3657,8 +3670,9 @@ public Builder addIndexConfigDeltas( * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3683,8 +3697,9 @@ public Builder addIndexConfigDeltas( * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3707,8 +3722,9 @@ public Builder addIndexConfigDeltas( * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3732,8 +3748,9 @@ public Builder addIndexConfigDeltas( * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3757,8 +3774,9 @@ public Builder addAllIndexConfigDeltas( * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3779,8 +3797,9 @@ public Builder clearIndexConfigDeltas() { * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3801,8 +3820,9 @@ public Builder removeIndexConfigDeltas(int index) { * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3817,8 +3837,9 @@ public Builder removeIndexConfigDeltas(int index) { * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3837,8 +3858,9 @@ public Builder removeIndexConfigDeltas(int index) { * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3859,8 +3881,9 @@ public Builder removeIndexConfigDeltas(int index) { * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3878,8 +3901,9 @@ public Builder removeIndexConfigDeltas(int index) { * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * @@ -3898,8 +3922,9 @@ public Builder removeIndexConfigDeltas(int index) { * * *
-     * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-     * operation.
+     * A list of
+     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+     * which describe the intent of this operation.
      * 
* * diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadataOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadataOrBuilder.java index af5cb824d..12e02284f 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadataOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldOperationMetadataOrBuilder.java @@ -127,8 +127,9 @@ public interface FieldOperationMetadataOrBuilder * * *
-   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-   * operation.
+   * A list of
+   * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+   * which describe the intent of this operation.
    * 
* * @@ -141,8 +142,9 @@ public interface FieldOperationMetadataOrBuilder * * *
-   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-   * operation.
+   * A list of
+   * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+   * which describe the intent of this operation.
    * 
* * @@ -155,8 +157,9 @@ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta getIndexCo * * *
-   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-   * operation.
+   * A list of
+   * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+   * which describe the intent of this operation.
    * 
* * @@ -168,8 +171,9 @@ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta getIndexCo * * *
-   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-   * operation.
+   * A list of
+   * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+   * which describe the intent of this operation.
    * 
* * @@ -183,8 +187,9 @@ com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta getIndexCo * * *
-   * A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this
-   * operation.
+   * A list of
+   * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
+   * which describe the intent of this operation.
    * 
* * diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminProto.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminProto.java index 50e4a25dc..2ec314615 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminProto.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FirestoreAdminProto.java @@ -115,134 +115,138 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "roto\032\031google/api/resource.proto\032(google/" + "firestore/admin/v1/database.proto\032%googl" + "e/firestore/admin/v1/field.proto\032%google" - + "/firestore/admin/v1/index.proto\032#google/" - + "longrunning/operations.proto\032\033google/pro" - + "tobuf/empty.proto\032 google/protobuf/field" - + "_mask.proto\"R\n\024ListDatabasesRequest\022:\n\006p" - + "arent\030\001 \001(\tB*\342A\001\002\372A#\022!firestore.googleap" - + "is.com/Database\"\253\001\n\025CreateDatabaseReques" - + "t\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\022!firestore.go" - + "ogleapis.com/Database\022;\n\010database\030\002 \001(\0132" - + "#.google.firestore.admin.v1.DatabaseB\004\342A" - + "\001\002\022\031\n\013database_id\030\003 \001(\tB\004\342A\001\002\"\030\n\026CreateD" - + "atabaseMetadata\"O\n\025ListDatabasesResponse" - + "\0226\n\tdatabases\030\001 \003(\0132#.google.firestore.a" - + "dmin.v1.Database\"N\n\022GetDatabaseRequest\0228" - + "\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!firestore.googlea" - + "pis.com/Database\"\205\001\n\025UpdateDatabaseReque" - + "st\022;\n\010database\030\001 \001(\0132#.google.firestore." - + "admin.v1.DatabaseB\004\342A\001\002\022/\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMask\"\030\n\026Upda" - + "teDatabaseMetadata\"\216\001\n\022CreateIndexReques" - + "t\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(firestore.go" - + "ogleapis.com/CollectionGroup\0225\n\005index\030\002 " - + "\001(\0132 .google.firestore.admin.v1.IndexB\004\342" - + "A\001\002\"\216\001\n\022ListIndexesRequest\022A\n\006parent\030\001 \001" - + "(\tB1\342A\001\002\372A*\n(firestore.googleapis.com/Co" - + "llectionGroup\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_si" - + "ze\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"a\n\023ListInde" - + "xesResponse\0221\n\007indexes\030\001 \003(\0132 .google.fi" - + "restore.admin.v1.Index\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"H\n\017GetIndexRequest\0225\n\004name\030\001 \001(\t" - + "B\'\342A\001\002\372A \n\036firestore.googleapis.com/Inde" - + "x\"K\n\022DeleteIndexRequest\0225\n\004name\030\001 \001(\tB\'\342" - + "A\001\002\372A \n\036firestore.googleapis.com/Index\"|" - + "\n\022UpdateFieldRequest\0225\n\005field\030\001 \001(\0132 .go" - + "ogle.firestore.admin.v1.FieldB\004\342A\001\002\022/\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "Mask\"H\n\017GetFieldRequest\0225\n\004name\030\001 \001(\tB\'\342" - + "A\001\002\372A \n\036firestore.googleapis.com/Field\"\215" - + "\001\n\021ListFieldsRequest\022A\n\006parent\030\001 \001(\tB1\342A" - + "\001\002\372A*\n(firestore.googleapis.com/Collecti" - + "onGroup\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\022ListFieldsResp" - + "onse\0220\n\006fields\030\001 \003(\0132 .google.firestore." - + "admin.v1.Field\022\027\n\017next_page_token\030\002 \001(\t\"" - + "\205\001\n\026ExportDocumentsRequest\0228\n\004name\030\001 \001(\t" - + "B*\342A\001\002\372A#\n!firestore.googleapis.com/Data" - + "base\022\026\n\016collection_ids\030\002 \003(\t\022\031\n\021output_u" - + "ri_prefix\030\003 \001(\t\"\204\001\n\026ImportDocumentsReque" - + "st\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!firestore.goo" - + "gleapis.com/Database\022\026\n\016collection_ids\030\002" - + " \003(\t\022\030\n\020input_uri_prefix\030\003 \001(\t2\356\024\n\016Fires" - + "toreAdmin\022\333\001\n\013CreateIndex\022-.google.fires" - + "tore.admin.v1.CreateIndexRequest\032\035.googl" - + "e.longrunning.Operation\"~\312A\037\n\005Index\022\026Ind" - + "exOperationMetadata\332A\014parent,index\202\323\344\223\002G" - + "\">/v1/{parent=projects/*/databases/*/col" - + "lectionGroups/*}/indexes:\005index\022\275\001\n\013List" - + "Indexes\022-.google.firestore.admin.v1.List" - + "IndexesRequest\032..google.firestore.admin." - + "v1.ListIndexesResponse\"O\332A\006parent\202\323\344\223\002@\022" - + ">/v1/{parent=projects/*/databases/*/coll" - + "ectionGroups/*}/indexes\022\247\001\n\010GetIndex\022*.g" - + "oogle.firestore.admin.v1.GetIndexRequest" - + "\032 .google.firestore.admin.v1.Index\"M\332A\004n" - + "ame\202\323\344\223\002@\022>/v1/{name=projects/*/database" - + "s/*/collectionGroups/*/indexes/*}\022\243\001\n\013De" - + "leteIndex\022-.google.firestore.admin.v1.De" - + "leteIndexRequest\032\026.google.protobuf.Empty" - + "\"M\332A\004name\202\323\344\223\002@*>/v1/{name=projects/*/da" - + "tabases/*/collectionGroups/*/indexes/*}\022" - + "\246\001\n\010GetField\022*.google.firestore.admin.v1" - + ".GetFieldRequest\032 .google.firestore.admi" - + "n.v1.Field\"L\332A\004name\202\323\344\223\002?\022=/v1/{name=pro" - + "jects/*/databases/*/collectionGroups/*/f" - + "ields/*}\022\331\001\n\013UpdateField\022-.google.firest" - + "ore.admin.v1.UpdateFieldRequest\032\035.google" - + ".longrunning.Operation\"|\312A\037\n\005Field\022\026Fiel" - + "dOperationMetadata\332A\005field\202\323\344\223\002L2C/v1/{f" - + "ield.name=projects/*/databases/*/collect" - + "ionGroups/*/fields/*}:\005field\022\271\001\n\nListFie" - + "lds\022,.google.firestore.admin.v1.ListFiel" - + "dsRequest\032-.google.firestore.admin.v1.Li" - + "stFieldsResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{" - + "parent=projects/*/databases/*/collection" - + "Groups/*}/fields\022\335\001\n\017ExportDocuments\0221.g" - + "oogle.firestore.admin.v1.ExportDocuments" - + "Request\032\035.google.longrunning.Operation\"x" - + "\312A2\n\027ExportDocumentsResponse\022\027ExportDocu" - + "mentsMetadata\332A\004name\202\323\344\223\0026\"1/v1/{name=pr" - + "ojects/*/databases/*}:exportDocuments:\001*" - + "\022\333\001\n\017ImportDocuments\0221.google.firestore." - + "admin.v1.ImportDocumentsRequest\032\035.google" - + ".longrunning.Operation\"v\312A0\n\025google.prot" - + "obuf.Empty\022\027ImportDocumentsMetadata\332A\004na" - + "me\202\323\344\223\0026\"1/v1/{name=projects/*/databases" - + "/*}:importDocuments:\001*\022\331\001\n\016CreateDatabas" - + "e\0220.google.firestore.admin.v1.CreateData" - + "baseRequest\032\035.google.longrunning.Operati" - + "on\"v\312A\"\n\010Database\022\026CreateDatabaseMetadat" - + "a\332A\033parent,database,database_id\202\323\344\223\002-\"!/" - + "v1/{parent=projects/*}/databases:\010databa" - + "se\022\223\001\n\013GetDatabase\022-.google.firestore.ad" - + "min.v1.GetDatabaseRequest\032#.google.fires" - + "tore.admin.v1.Database\"0\332A\004name\202\323\344\223\002#\022!/" - + "v1/{name=projects/*/databases/*}\022\246\001\n\rLis" - + "tDatabases\022/.google.firestore.admin.v1.L" - + "istDatabasesRequest\0320.google.firestore.a" - + "dmin.v1.ListDatabasesResponse\"2\332A\006parent" - + "\202\323\344\223\002#\022!/v1/{parent=projects/*}/database" - + "s\022\333\001\n\016UpdateDatabase\0220.google.firestore." - + "admin.v1.UpdateDatabaseRequest\032\035.google." - + "longrunning.Operation\"x\312A\"\n\010Database\022\026Up" - + "dateDatabaseMetadata\332A\024database,update_m" - + "ask\202\323\344\223\00262*/v1/{database.name=projects/*" - + "/databases/*}:\010database\032v\312A\030firestore.go" - + "ogleapis.com\322AXhttps://www.googleapis.co" - + "m/auth/cloud-platform,https://www.google" - + "apis.com/auth/datastoreB\245\003\n\035com.google.f" - + "irestore.admin.v1B\023FirestoreAdminProtoP\001" - + "Z9cloud.google.com/go/firestore/apiv1/ad" - + "min/adminpb;adminpb\242\002\004GCFS\252\002\037Google.Clou" - + "d.Firestore.Admin.V1\312\002\037Google\\Cloud\\Fire" - + "store\\Admin\\V1\352\002#Google::Cloud::Firestor" - + "e::Admin::V1\352AL\n!firestore.googleapis.co" - + "m/Location\022\'projects/{project}/locations" - + "/{location}\352Aq\n(firestore.googleapis.com" - + "/CollectionGroup\022Eprojects/{project}/dat" - + "abases/{database}/collectionGroups/{coll" - + "ection}b\006proto3" + + "/firestore/admin/v1/index.proto\032)google/" + + "firestore/admin/v1/operation.proto\032#goog" + + "le/longrunning/operations.proto\032\033google/" + + "protobuf/empty.proto\032 google/protobuf/fi" + + "eld_mask.proto\032\037google/protobuf/timestam" + + "p.proto\"R\n\024ListDatabasesRequest\022:\n\006paren" + + "t\030\001 \001(\tB*\342A\001\002\372A#\022!firestore.googleapis.c" + + "om/Database\"\253\001\n\025CreateDatabaseRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\022!firestore.google" + + "apis.com/Database\022;\n\010database\030\002 \001(\0132#.go" + + "ogle.firestore.admin.v1.DatabaseB\004\342A\001\002\022\031" + + "\n\013database_id\030\003 \001(\tB\004\342A\001\002\"\030\n\026CreateDatab" + + "aseMetadata\"O\n\025ListDatabasesResponse\0226\n\t" + + "databases\030\001 \003(\0132#.google.firestore.admin" + + ".v1.Database\"N\n\022GetDatabaseRequest\0228\n\004na" + + "me\030\001 \001(\tB*\342A\001\002\372A#\n!firestore.googleapis." + + "com/Database\"\205\001\n\025UpdateDatabaseRequest\022;" + + "\n\010database\030\001 \001(\0132#.google.firestore.admi" + + "n.v1.DatabaseB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMask\"\030\n\026UpdateDa" + + "tabaseMetadata\"\216\001\n\022CreateIndexRequest\022A\n" + + "\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(firestore.google" + + "apis.com/CollectionGroup\0225\n\005index\030\002 \001(\0132" + + " .google.firestore.admin.v1.IndexB\004\342A\001\002\"" + + "\216\001\n\022ListIndexesRequest\022A\n\006parent\030\001 \001(\tB1" + + "\342A\001\002\372A*\n(firestore.googleapis.com/Collec" + + "tionGroup\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\"H\n\017GetIndexRequest\0225\n\004name\030\001 \001(\tB\'\342A" + + "\001\002\372A \n\036firestore.googleapis.com/Index\"K\n" + + "\022DeleteIndexRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372" + + "A \n\036firestore.googleapis.com/Index\"|\n\022Up" + + "dateFieldRequest\0225\n\005field\030\001 \001(\0132 .google" + + ".firestore.admin.v1.FieldB\004\342A\001\002\022/\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "\"H\n\017GetFieldRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372" + + "A \n\036firestore.googleapis.com/Field\"\215\001\n\021L" + + "istFieldsRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A" + + "*\n(firestore.googleapis.com/CollectionGr" + + "oup\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 .google.firestore.admi" + + "n.v1.Field\022\027\n\017next_page_token\030\002 \001(\t\"\317\001\n\026" + + "ExportDocumentsRequest\0228\n\004name\030\001 \001(\tB*\342A" + + "\001\002\372A#\n!firestore.googleapis.com/Database" + + "\022\026\n\016collection_ids\030\002 \003(\t\022\031\n\021output_uri_p" + + "refix\030\003 \001(\t\022\025\n\rnamespace_ids\030\004 \003(\t\0221\n\rsn" + + "apshot_time\030\005 \001(\0132\032.google.protobuf.Time" + + "stamp\"\233\001\n\026ImportDocumentsRequest\0228\n\004name" + + "\030\001 \001(\tB*\342A\001\002\372A#\n!firestore.googleapis.co" + + "m/Database\022\026\n\016collection_ids\030\002 \003(\t\022\030\n\020in" + + "put_uri_prefix\030\003 \001(\t\022\025\n\rnamespace_ids\030\004 " + + "\003(\t2\356\024\n\016FirestoreAdmin\022\333\001\n\013CreateIndex\022-" + + ".google.firestore.admin.v1.CreateIndexRe" + + "quest\032\035.google.longrunning.Operation\"~\312A" + + "\037\n\005Index\022\026IndexOperationMetadata\332A\014paren" + + "t,index\202\323\344\223\002G\">/v1/{parent=projects/*/da" + + "tabases/*/collectionGroups/*}/indexes:\005i" + + "ndex\022\275\001\n\013ListIndexes\022-.google.firestore." + + "admin.v1.ListIndexesRequest\032..google.fir" + + "estore.admin.v1.ListIndexesResponse\"O\332A\006" + + "parent\202\323\344\223\002@\022>/v1/{parent=projects/*/dat" + + "abases/*/collectionGroups/*}/indexes\022\247\001\n" + + "\010GetIndex\022*.google.firestore.admin.v1.Ge" + + "tIndexRequest\032 .google.firestore.admin.v" + + "1.Index\"M\332A\004name\202\323\344\223\002@\022>/v1/{name=projec" + + "ts/*/databases/*/collectionGroups/*/inde" + + "xes/*}\022\243\001\n\013DeleteIndex\022-.google.firestor" + + "e.admin.v1.DeleteIndexRequest\032\026.google.p" + + "rotobuf.Empty\"M\332A\004name\202\323\344\223\002@*>/v1/{name=" + + "projects/*/databases/*/collectionGroups/" + + "*/indexes/*}\022\246\001\n\010GetField\022*.google.fires" + + "tore.admin.v1.GetFieldRequest\032 .google.f" + + "irestore.admin.v1.Field\"L\332A\004name\202\323\344\223\002?\022=" + + "/v1/{name=projects/*/databases/*/collect" + + "ionGroups/*/fields/*}\022\331\001\n\013UpdateField\022-." + + "google.firestore.admin.v1.UpdateFieldReq" + + "uest\032\035.google.longrunning.Operation\"|\312A\037" + + "\n\005Field\022\026FieldOperationMetadata\332A\005field\202" + + "\323\344\223\002L2C/v1/{field.name=projects/*/databa" + + "ses/*/collectionGroups/*/fields/*}:\005fiel" + + "d\022\271\001\n\nListFields\022,.google.firestore.admi" + + "n.v1.ListFieldsRequest\032-.google.firestor" + + "e.admin.v1.ListFieldsResponse\"N\332A\006parent" + + "\202\323\344\223\002?\022=/v1/{parent=projects/*/databases" + + "/*/collectionGroups/*}/fields\022\335\001\n\017Export" + + "Documents\0221.google.firestore.admin.v1.Ex" + + "portDocumentsRequest\032\035.google.longrunnin" + + "g.Operation\"x\312A2\n\027ExportDocumentsRespons" + + "e\022\027ExportDocumentsMetadata\332A\004name\202\323\344\223\0026\"" + + "1/v1/{name=projects/*/databases/*}:expor" + + "tDocuments:\001*\022\333\001\n\017ImportDocuments\0221.goog" + + "le.firestore.admin.v1.ImportDocumentsReq" + + "uest\032\035.google.longrunning.Operation\"v\312A0" + + "\n\025google.protobuf.Empty\022\027ImportDocuments" + + "Metadata\332A\004name\202\323\344\223\0026\"1/v1/{name=project" + + "s/*/databases/*}:importDocuments:\001*\022\331\001\n\016" + + "CreateDatabase\0220.google.firestore.admin." + + "v1.CreateDatabaseRequest\032\035.google.longru" + + "nning.Operation\"v\312A\"\n\010Database\022\026CreateDa" + + "tabaseMetadata\332A\033parent,database,databas" + + "e_id\202\323\344\223\002-\"!/v1/{parent=projects/*}/data" + + "bases:\010database\022\223\001\n\013GetDatabase\022-.google" + + ".firestore.admin.v1.GetDatabaseRequest\032#" + + ".google.firestore.admin.v1.Database\"0\332A\004" + + "name\202\323\344\223\002#\022!/v1/{name=projects/*/databas" + + "es/*}\022\246\001\n\rListDatabases\022/.google.firesto" + + "re.admin.v1.ListDatabasesRequest\0320.googl" + + "e.firestore.admin.v1.ListDatabasesRespon" + + "se\"2\332A\006parent\202\323\344\223\002#\022!/v1/{parent=project" + + "s/*}/databases\022\333\001\n\016UpdateDatabase\0220.goog" + + "le.firestore.admin.v1.UpdateDatabaseRequ" + + "est\032\035.google.longrunning.Operation\"x\312A\"\n" + + "\010Database\022\026UpdateDatabaseMetadata\332A\024data" + + "base,update_mask\202\323\344\223\00262*/v1/{database.na" + + "me=projects/*/databases/*}:\010database\032v\312A" + + "\030firestore.googleapis.com\322AXhttps://www." + + "googleapis.com/auth/cloud-platform,https" + + "://www.googleapis.com/auth/datastoreB\245\003\n" + + "\035com.google.firestore.admin.v1B\023Firestor" + + "eAdminProtoP\001Z9cloud.google.com/go/fires" + + "tore/apiv1/admin/adminpb;adminpb\242\002\004GCFS\252" + + "\002\037Google.Cloud.Firestore.Admin.V1\312\002\037Goog" + + "le\\Cloud\\Firestore\\Admin\\V1\352\002#Google::Cl" + + "oud::Firestore::Admin::V1\352AL\n!firestore." + + "googleapis.com/Location\022\'projects/{proje" + + "ct}/locations/{location}\352Aq\n(firestore.g" + + "oogleapis.com/CollectionGroup\022Eprojects/" + + "{project}/databases/{database}/collectio" + + "nGroups/{collection}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -255,9 +259,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.firestore.admin.v1.DatabaseProto.getDescriptor(), com.google.firestore.admin.v1.FieldProto.getDescriptor(), com.google.firestore.admin.v1.IndexProto.getDescriptor(), + com.google.firestore.admin.v1.OperationProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_firestore_admin_v1_ListDatabasesRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -389,7 +395,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_firestore_admin_v1_ExportDocumentsRequest_descriptor, new java.lang.String[] { - "Name", "CollectionIds", "OutputUriPrefix", + "Name", "CollectionIds", "OutputUriPrefix", "NamespaceIds", "SnapshotTime", }); internal_static_google_firestore_admin_v1_ImportDocumentsRequest_descriptor = getDescriptor().getMessageTypes().get(17); @@ -397,7 +403,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_firestore_admin_v1_ImportDocumentsRequest_descriptor, new java.lang.String[] { - "Name", "CollectionIds", "InputUriPrefix", + "Name", "CollectionIds", "InputUriPrefix", "NamespaceIds", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -418,9 +424,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.firestore.admin.v1.DatabaseProto.getDescriptor(); com.google.firestore.admin.v1.FieldProto.getDescriptor(); com.google.firestore.admin.v1.IndexProto.getDescriptor(); + com.google.firestore.admin.v1.OperationProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadata.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadata.java index a8d70740c..d1490d46a 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadata.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadata.java @@ -22,7 +22,8 @@ * * *
- * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+ * Metadata for [google.longrunning.Operation][google.longrunning.Operation]
+ * results from
  * [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
  * 
* @@ -42,6 +43,7 @@ private ImportDocumentsMetadata() { operationState_ = 0; collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); inputUriPrefix_ = ""; + namespaceIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -410,6 +412,70 @@ public com.google.protobuf.ByteString getInputUriPrefixBytes() { } } + public static final int NAMESPACE_IDS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList namespaceIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Which namespace ids are being imported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @return A list containing the namespaceIds. + */ + public com.google.protobuf.ProtocolStringList getNamespaceIdsList() { + return namespaceIds_; + } + /** + * + * + *
+   * Which namespace ids are being imported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @return The count of namespaceIds. + */ + public int getNamespaceIdsCount() { + return namespaceIds_.size(); + } + /** + * + * + *
+   * Which namespace ids are being imported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @param index The index of the element to return. + * @return The namespaceIds at the given index. + */ + public java.lang.String getNamespaceIds(int index) { + return namespaceIds_.get(index); + } + /** + * + * + *
+   * Which namespace ids are being imported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @param index The index of the value to return. + * @return The bytes of the namespaceIds at the given index. + */ + public com.google.protobuf.ByteString getNamespaceIdsBytes(int index) { + return namespaceIds_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -446,6 +512,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, inputUriPrefix_); } + for (int i = 0; i < namespaceIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, namespaceIds_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -482,6 +551,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUriPrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, inputUriPrefix_); } + { + int dataSize = 0; + for (int i = 0; i < namespaceIds_.size(); i++) { + dataSize += computeStringSizeNoTag(namespaceIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamespaceIdsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -517,6 +594,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getCollectionIdsList().equals(other.getCollectionIdsList())) return false; if (!getInputUriPrefix().equals(other.getInputUriPrefix())) return false; + if (!getNamespaceIdsList().equals(other.getNamespaceIdsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -552,6 +630,10 @@ public int hashCode() { } hash = (37 * hash) + INPUT_URI_PREFIX_FIELD_NUMBER; hash = (53 * hash) + getInputUriPrefix().hashCode(); + if (getNamespaceIdsCount() > 0) { + hash = (37 * hash) + NAMESPACE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getNamespaceIdsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -657,7 +739,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+   * Metadata for [google.longrunning.Operation][google.longrunning.Operation]
+   * results from
    * [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
    * 
* @@ -716,6 +799,7 @@ public Builder clear() { } collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); inputUriPrefix_ = ""; + namespaceIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -778,6 +862,10 @@ private void buildPartial0(com.google.firestore.admin.v1.ImportDocumentsMetadata if (((from_bitField0_ & 0x00000040) != 0)) { result.inputUriPrefix_ = inputUriPrefix_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + namespaceIds_.makeImmutable(); + result.namespaceIds_ = namespaceIds_; + } } @java.lang.Override @@ -856,6 +944,16 @@ public Builder mergeFrom(com.google.firestore.admin.v1.ImportDocumentsMetadata o bitField0_ |= 0x00000040; onChanged(); } + if (!other.namespaceIds_.isEmpty()) { + if (namespaceIds_.isEmpty()) { + namespaceIds_ = other.namespaceIds_; + bitField0_ |= 0x00000080; + } else { + ensureNamespaceIdsIsMutable(); + namespaceIds_.addAll(other.namespaceIds_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -926,6 +1024,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamespaceIdsIsMutable(); + namespaceIds_.add(s); + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2050,6 +2155,180 @@ public Builder setInputUriPrefixBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList namespaceIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamespaceIdsIsMutable() { + if (!namespaceIds_.isModifiable()) { + namespaceIds_ = new com.google.protobuf.LazyStringArrayList(namespaceIds_); + } + bitField0_ |= 0x00000080; + } + /** + * + * + *
+     * Which namespace ids are being imported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @return A list containing the namespaceIds. + */ + public com.google.protobuf.ProtocolStringList getNamespaceIdsList() { + namespaceIds_.makeImmutable(); + return namespaceIds_; + } + /** + * + * + *
+     * Which namespace ids are being imported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @return The count of namespaceIds. + */ + public int getNamespaceIdsCount() { + return namespaceIds_.size(); + } + /** + * + * + *
+     * Which namespace ids are being imported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @param index The index of the element to return. + * @return The namespaceIds at the given index. + */ + public java.lang.String getNamespaceIds(int index) { + return namespaceIds_.get(index); + } + /** + * + * + *
+     * Which namespace ids are being imported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @param index The index of the value to return. + * @return The bytes of the namespaceIds at the given index. + */ + public com.google.protobuf.ByteString getNamespaceIdsBytes(int index) { + return namespaceIds_.getByteString(index); + } + /** + * + * + *
+     * Which namespace ids are being imported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @param index The index to set the value at. + * @param value The namespaceIds to set. + * @return This builder for chaining. + */ + public Builder setNamespaceIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespaceIdsIsMutable(); + namespaceIds_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Which namespace ids are being imported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @param value The namespaceIds to add. + * @return This builder for chaining. + */ + public Builder addNamespaceIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespaceIdsIsMutable(); + namespaceIds_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Which namespace ids are being imported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @param values The namespaceIds to add. + * @return This builder for chaining. + */ + public Builder addAllNamespaceIds(java.lang.Iterable values) { + ensureNamespaceIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, namespaceIds_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Which namespace ids are being imported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @return This builder for chaining. + */ + public Builder clearNamespaceIds() { + namespaceIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Which namespace ids are being imported.
+     * 
+ * + * repeated string namespace_ids = 8; + * + * @param value The bytes of the namespaceIds to add. + * @return This builder for chaining. + */ + public Builder addNamespaceIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamespaceIdsIsMutable(); + namespaceIds_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadataOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadataOrBuilder.java index ff895c647..132b0e4c1 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadataOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsMetadataOrBuilder.java @@ -266,4 +266,55 @@ public interface ImportDocumentsMetadataOrBuilder * @return The bytes for inputUriPrefix. */ com.google.protobuf.ByteString getInputUriPrefixBytes(); + + /** + * + * + *
+   * Which namespace ids are being imported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @return A list containing the namespaceIds. + */ + java.util.List getNamespaceIdsList(); + /** + * + * + *
+   * Which namespace ids are being imported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @return The count of namespaceIds. + */ + int getNamespaceIdsCount(); + /** + * + * + *
+   * Which namespace ids are being imported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @param index The index of the element to return. + * @return The namespaceIds at the given index. + */ + java.lang.String getNamespaceIds(int index); + /** + * + * + *
+   * Which namespace ids are being imported.
+   * 
+ * + * repeated string namespace_ids = 8; + * + * @param index The index of the value to return. + * @return The bytes of the namespaceIds at the given index. + */ + com.google.protobuf.ByteString getNamespaceIdsBytes(int index); } diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequest.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequest.java index 044b01f7e..5efd896ed 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequest.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequest.java @@ -42,6 +42,7 @@ private ImportDocumentsRequest() { name_ = ""; collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); inputUriPrefix_ = ""; + namespaceIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -249,6 +250,90 @@ public com.google.protobuf.ByteString getInputUriPrefixBytes() { } } + public static final int NAMESPACE_IDS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList namespaceIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @return A list containing the namespaceIds. + */ + public com.google.protobuf.ProtocolStringList getNamespaceIdsList() { + return namespaceIds_; + } + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @return The count of namespaceIds. + */ + public int getNamespaceIdsCount() { + return namespaceIds_.size(); + } + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @param index The index of the element to return. + * @return The namespaceIds at the given index. + */ + public java.lang.String getNamespaceIds(int index) { + return namespaceIds_.get(index); + } + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @param index The index of the value to return. + * @return The bytes of the namespaceIds at the given index. + */ + public com.google.protobuf.ByteString getNamespaceIdsBytes(int index) { + return namespaceIds_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -272,6 +357,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUriPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inputUriPrefix_); } + for (int i = 0; i < namespaceIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, namespaceIds_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -295,6 +383,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputUriPrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inputUriPrefix_); } + { + int dataSize = 0; + for (int i = 0; i < namespaceIds_.size(); i++) { + dataSize += computeStringSizeNoTag(namespaceIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamespaceIdsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -314,6 +410,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getCollectionIdsList().equals(other.getCollectionIdsList())) return false; if (!getInputUriPrefix().equals(other.getInputUriPrefix())) return false; + if (!getNamespaceIdsList().equals(other.getNamespaceIdsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -333,6 +430,10 @@ public int hashCode() { } hash = (37 * hash) + INPUT_URI_PREFIX_FIELD_NUMBER; hash = (53 * hash) + getInputUriPrefix().hashCode(); + if (getNamespaceIdsCount() > 0) { + hash = (37 * hash) + NAMESPACE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getNamespaceIdsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -476,6 +577,7 @@ public Builder clear() { name_ = ""; collectionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); inputUriPrefix_ = ""; + namespaceIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -522,6 +624,10 @@ private void buildPartial0(com.google.firestore.admin.v1.ImportDocumentsRequest if (((from_bitField0_ & 0x00000004) != 0)) { result.inputUriPrefix_ = inputUriPrefix_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + namespaceIds_.makeImmutable(); + result.namespaceIds_ = namespaceIds_; + } } @java.lang.Override @@ -590,6 +696,16 @@ public Builder mergeFrom(com.google.firestore.admin.v1.ImportDocumentsRequest ot bitField0_ |= 0x00000004; onChanged(); } + if (!other.namespaceIds_.isEmpty()) { + if (namespaceIds_.isEmpty()) { + namespaceIds_ = other.namespaceIds_; + bitField0_ |= 0x00000008; + } else { + ensureNamespaceIdsIsMutable(); + namespaceIds_.addAll(other.namespaceIds_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -635,6 +751,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamespaceIdsIsMutable(); + namespaceIds_.add(s); + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1084,6 +1207,225 @@ public Builder setInputUriPrefixBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList namespaceIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamespaceIdsIsMutable() { + if (!namespaceIds_.isModifiable()) { + namespaceIds_ = new com.google.protobuf.LazyStringArrayList(namespaceIds_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @return A list containing the namespaceIds. + */ + public com.google.protobuf.ProtocolStringList getNamespaceIdsList() { + namespaceIds_.makeImmutable(); + return namespaceIds_; + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @return The count of namespaceIds. + */ + public int getNamespaceIdsCount() { + return namespaceIds_.size(); + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @param index The index of the element to return. + * @return The namespaceIds at the given index. + */ + public java.lang.String getNamespaceIds(int index) { + return namespaceIds_.get(index); + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @param index The index of the value to return. + * @return The bytes of the namespaceIds at the given index. + */ + public com.google.protobuf.ByteString getNamespaceIdsBytes(int index) { + return namespaceIds_.getByteString(index); + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @param index The index to set the value at. + * @param value The namespaceIds to set. + * @return This builder for chaining. + */ + public Builder setNamespaceIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespaceIdsIsMutable(); + namespaceIds_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @param value The namespaceIds to add. + * @return This builder for chaining. + */ + public Builder addNamespaceIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespaceIdsIsMutable(); + namespaceIds_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @param values The namespaceIds to add. + * @return This builder for chaining. + */ + public Builder addAllNamespaceIds(java.lang.Iterable values) { + ensureNamespaceIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, namespaceIds_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @return This builder for chaining. + */ + public Builder clearNamespaceIds() { + namespaceIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Unspecified means all namespaces. This is the preferred
+     * usage for databases that don't use namespaces.
+     *
+     * An empty string element represents the default namespace. This should be
+     * used if the database has data in non-default namespaces, but doesn't want
+     * to include them. Each namespace in this list must be unique.
+     * 
+ * + * repeated string namespace_ids = 4; + * + * @param value The bytes of the namespaceIds to add. + * @return This builder for chaining. + */ + public Builder addNamespaceIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamespaceIdsIsMutable(); + namespaceIds_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequestOrBuilder.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequestOrBuilder.java index b0c764fea..8773dc4d0 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequestOrBuilder.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ImportDocumentsRequestOrBuilder.java @@ -141,4 +141,75 @@ public interface ImportDocumentsRequestOrBuilder * @return The bytes for inputUriPrefix. */ com.google.protobuf.ByteString getInputUriPrefixBytes(); + + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @return A list containing the namespaceIds. + */ + java.util.List getNamespaceIdsList(); + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @return The count of namespaceIds. + */ + int getNamespaceIdsCount(); + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @param index The index of the element to return. + * @return The namespaceIds at the given index. + */ + java.lang.String getNamespaceIds(int index); + /** + * + * + *
+   * Unspecified means all namespaces. This is the preferred
+   * usage for databases that don't use namespaces.
+   *
+   * An empty string element represents the default namespace. This should be
+   * used if the database has data in non-default namespaces, but doesn't want
+   * to include them. Each namespace in this list must be unique.
+   * 
+ * + * repeated string namespace_ids = 4; + * + * @param index The index of the value to return. + * @return The bytes of the namespaceIds at the given index. + */ + com.google.protobuf.ByteString getNamespaceIdsBytes(int index); } diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadata.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadata.java index 7867340fa..4864b97aa 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadata.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexOperationMetadata.java @@ -22,7 +22,8 @@ * * *
- * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+ * Metadata for [google.longrunning.Operation][google.longrunning.Operation]
+ * results from
  * [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
  * 
* @@ -577,7 +578,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from
+   * Metadata for [google.longrunning.Operation][google.longrunning.Operation]
+   * results from
    * [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
    * 
* diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadata.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadata.java index bdaaa2aac..b9fa4c060 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadata.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationMetadata.java @@ -22,7 +22,8 @@ * * *
- * The metadata message for [google.cloud.location.Location.metadata][google.cloud.location.Location.metadata].
+ * The metadata message for
+ * [google.cloud.location.Location.metadata][google.cloud.location.Location.metadata].
  * 
* * Protobuf type {@code google.firestore.admin.v1.LocationMetadata} @@ -214,7 +215,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The metadata message for [google.cloud.location.Location.metadata][google.cloud.location.Location.metadata].
+   * The metadata message for
+   * [google.cloud.location.Location.metadata][google.cloud.location.Location.metadata].
    * 
* * Protobuf type {@code google.firestore.admin.v1.LocationMetadata} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationProto.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationProto.java index 2c27cc928..c0a42a473 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationProto.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/OperationProto.java @@ -69,76 +69,80 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n)google/firestore/admin/v1/operation.pr" - + "oto\022\031google.firestore.admin.v1\032%google/f" - + "irestore/admin/v1/index.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\275\002\n\026IndexOperatio" - + "nMetadata\022.\n\nstart_time\030\001 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022\r\n\005index\030\003 \001(\t\0228" - + "\n\005state\030\004 \001(\0162).google.firestore.admin.v" - + "1.OperationState\022?\n\022progress_documents\030\005" - + " \001(\0132#.google.firestore.admin.v1.Progres" - + "s\022;\n\016progress_bytes\030\006 \001(\0132#.google.fires" - + "tore.admin.v1.Progress\"\231\007\n\026FieldOperatio" - + "nMetadata\022.\n\nstart_time\030\001 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022\r\n\005field\030\003 \001(\t\022_" - + "\n\023index_config_deltas\030\004 \003(\0132B.google.fir" - + "estore.admin.v1.FieldOperationMetadata.I" - + "ndexConfigDelta\0228\n\005state\030\005 \001(\0162).google." - + "firestore.admin.v1.OperationState\022?\n\022pro" - + "gress_documents\030\006 \001(\0132#.google.firestore" - + ".admin.v1.Progress\022;\n\016progress_bytes\030\007 \001" - + "(\0132#.google.firestore.admin.v1.Progress\022" - + "Z\n\020ttl_config_delta\030\010 \001(\0132@.google.fires" - + "tore.admin.v1.FieldOperationMetadata.Ttl" - + "ConfigDelta\032\347\001\n\020IndexConfigDelta\022b\n\013chan" - + "ge_type\030\001 \001(\0162M.google.firestore.admin.v" - + "1.FieldOperationMetadata.IndexConfigDelt" - + "a.ChangeType\022/\n\005index\030\002 \001(\0132 .google.fir" - + "estore.admin.v1.Index\">\n\nChangeType\022\033\n\027C" - + "HANGE_TYPE_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REM" - + "OVE\020\002\032\262\001\n\016TtlConfigDelta\022`\n\013change_type\030" - + "\001 \001(\0162K.google.firestore.admin.v1.FieldO" - + "perationMetadata.TtlConfigDelta.ChangeTy" - + "pe\">\n\nChangeType\022\033\n\027CHANGE_TYPE_UNSPECIF" - + "IED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002\"\354\002\n\027ExportDoc" - + "umentsMetadata\022.\n\nstart_time\030\001 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\022,\n\010end_time\030\002 \001(\013" - + "2\032.google.protobuf.Timestamp\022B\n\017operatio" - + "n_state\030\003 \001(\0162).google.firestore.admin.v" - + "1.OperationState\022?\n\022progress_documents\030\004" - + " \001(\0132#.google.firestore.admin.v1.Progres" - + "s\022;\n\016progress_bytes\030\005 \001(\0132#.google.fires" - + "tore.admin.v1.Progress\022\026\n\016collection_ids" - + "\030\006 \003(\t\022\031\n\021output_uri_prefix\030\007 \001(\t\"\353\002\n\027Im" - + "portDocumentsMetadata\022.\n\nstart_time\030\001 \001(" - + "\0132\032.google.protobuf.Timestamp\022,\n\010end_tim" - + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022B\n\017o" - + "peration_state\030\003 \001(\0162).google.firestore." - + "admin.v1.OperationState\022?\n\022progress_docu" - + "ments\030\004 \001(\0132#.google.firestore.admin.v1." - + "Progress\022;\n\016progress_bytes\030\005 \001(\0132#.googl" - + "e.firestore.admin.v1.Progress\022\026\n\016collect" - + "ion_ids\030\006 \003(\t\022\030\n\020input_uri_prefix\030\007 \001(\t\"" - + "4\n\027ExportDocumentsResponse\022\031\n\021output_uri" - + "_prefix\030\001 \001(\t\":\n\010Progress\022\026\n\016estimated_w" - + "ork\030\001 \001(\003\022\026\n\016completed_work\030\002 \001(\003*\236\001\n\016Op" - + "erationState\022\037\n\033OPERATION_STATE_UNSPECIF" - + "IED\020\000\022\020\n\014INITIALIZING\020\001\022\016\n\nPROCESSING\020\002\022" - + "\016\n\nCANCELLING\020\003\022\016\n\nFINALIZING\020\004\022\016\n\nSUCCE" - + "SSFUL\020\005\022\n\n\006FAILED\020\006\022\r\n\tCANCELLED\020\007B\335\001\n\035c" - + "om.google.firestore.admin.v1B\016OperationP" - + "rotoP\001Z9cloud.google.com/go/firestore/ap" - + "iv1/admin/adminpb;adminpb\242\002\004GCFS\252\002\037Googl" - + "e.Cloud.Firestore.Admin.V1\312\002\037Google\\Clou" - + "d\\Firestore\\Admin\\V1\352\002#Google::Cloud::Fi" - + "restore::Admin::V1b\006proto3" + + "oto\022\031google.firestore.admin.v1\032\031google/a" + + "pi/resource.proto\032%google/firestore/admi" + + "n/v1/index.proto\032\037google/protobuf/timest" + + "amp.proto\"\275\002\n\026IndexOperationMetadata\022.\n\n" + + "start_time\030\001 \001(\0132\032.google.protobuf.Times" + + "tamp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf" + + ".Timestamp\022\r\n\005index\030\003 \001(\t\0228\n\005state\030\004 \001(\016" + + "2).google.firestore.admin.v1.OperationSt" + + "ate\022?\n\022progress_documents\030\005 \001(\0132#.google" + + ".firestore.admin.v1.Progress\022;\n\016progress" + + "_bytes\030\006 \001(\0132#.google.firestore.admin.v1" + + ".Progress\"\231\007\n\026FieldOperationMetadata\022.\n\n" + + "start_time\030\001 \001(\0132\032.google.protobuf.Times" + + "tamp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf" + + ".Timestamp\022\r\n\005field\030\003 \001(\t\022_\n\023index_confi" + + "g_deltas\030\004 \003(\0132B.google.firestore.admin." + + "v1.FieldOperationMetadata.IndexConfigDel" + + "ta\0228\n\005state\030\005 \001(\0162).google.firestore.adm" + + "in.v1.OperationState\022?\n\022progress_documen" + + "ts\030\006 \001(\0132#.google.firestore.admin.v1.Pro" + + "gress\022;\n\016progress_bytes\030\007 \001(\0132#.google.f" + + "irestore.admin.v1.Progress\022Z\n\020ttl_config" + + "_delta\030\010 \001(\0132@.google.firestore.admin.v1" + + ".FieldOperationMetadata.TtlConfigDelta\032\347" + + "\001\n\020IndexConfigDelta\022b\n\013change_type\030\001 \001(\016" + + "2M.google.firestore.admin.v1.FieldOperat" + + "ionMetadata.IndexConfigDelta.ChangeType\022" + + "/\n\005index\030\002 \001(\0132 .google.firestore.admin." + + "v1.Index\">\n\nChangeType\022\033\n\027CHANGE_TYPE_UN" + + "SPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002\032\262\001\n\016Ttl" + + "ConfigDelta\022`\n\013change_type\030\001 \001(\0162K.googl" + + "e.firestore.admin.v1.FieldOperationMetad" + + "ata.TtlConfigDelta.ChangeType\">\n\nChangeT" + + "ype\022\033\n\027CHANGE_TYPE_UNSPECIFIED\020\000\022\007\n\003ADD\020" + + "\001\022\n\n\006REMOVE\020\002\"\266\003\n\027ExportDocumentsMetadat" + + "a\022.\n\nstart_time\030\001 \001(\0132\032.google.protobuf." + + "Timestamp\022,\n\010end_time\030\002 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022B\n\017operation_state\030\003 \001(\016" + + "2).google.firestore.admin.v1.OperationSt" + + "ate\022?\n\022progress_documents\030\004 \001(\0132#.google" + + ".firestore.admin.v1.Progress\022;\n\016progress" + + "_bytes\030\005 \001(\0132#.google.firestore.admin.v1" + + ".Progress\022\026\n\016collection_ids\030\006 \003(\t\022\031\n\021out" + + "put_uri_prefix\030\007 \001(\t\022\025\n\rnamespace_ids\030\010 " + + "\003(\t\0221\n\rsnapshot_time\030\t \001(\0132\032.google.prot" + + "obuf.Timestamp\"\202\003\n\027ImportDocumentsMetada" + + "ta\022.\n\nstart_time\030\001 \001(\0132\032.google.protobuf" + + ".Timestamp\022,\n\010end_time\030\002 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022B\n\017operation_state\030\003 \001(" + + "\0162).google.firestore.admin.v1.OperationS" + + "tate\022?\n\022progress_documents\030\004 \001(\0132#.googl" + + "e.firestore.admin.v1.Progress\022;\n\016progres" + + "s_bytes\030\005 \001(\0132#.google.firestore.admin.v" + + "1.Progress\022\026\n\016collection_ids\030\006 \003(\t\022\030\n\020in" + + "put_uri_prefix\030\007 \001(\t\022\025\n\rnamespace_ids\030\010 " + + "\003(\t\"4\n\027ExportDocumentsResponse\022\031\n\021output" + + "_uri_prefix\030\001 \001(\t\":\n\010Progress\022\026\n\016estimat" + + "ed_work\030\001 \001(\003\022\026\n\016completed_work\030\002 \001(\003*\236\001" + + "\n\016OperationState\022\037\n\033OPERATION_STATE_UNSP" + + "ECIFIED\020\000\022\020\n\014INITIALIZING\020\001\022\016\n\nPROCESSIN" + + "G\020\002\022\016\n\nCANCELLING\020\003\022\016\n\nFINALIZING\020\004\022\016\n\nS" + + "UCCESSFUL\020\005\022\n\n\006FAILED\020\006\022\r\n\tCANCELLED\020\007B\335" + + "\001\n\035com.google.firestore.admin.v1B\016Operat" + + "ionProtoP\001Z9cloud.google.com/go/firestor" + + "e/apiv1/admin/adminpb;adminpb\242\002\004GCFS\252\002\037G" + + "oogle.Cloud.Firestore.Admin.V1\312\002\037Google\\" + + "Cloud\\Firestore\\Admin\\V1\352\002#Google::Cloud" + + "::Firestore::Admin::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), com.google.firestore.admin.v1.IndexProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -198,6 +202,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProgressBytes", "CollectionIds", "OutputUriPrefix", + "NamespaceIds", + "SnapshotTime", }); internal_static_google_firestore_admin_v1_ImportDocumentsMetadata_descriptor = getDescriptor().getMessageTypes().get(3); @@ -212,6 +218,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProgressBytes", "CollectionIds", "InputUriPrefix", + "NamespaceIds", }); internal_static_google_firestore_admin_v1_ExportDocumentsResponse_descriptor = getDescriptor().getMessageTypes().get(4); @@ -229,6 +236,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "EstimatedWork", "CompletedWork", }); + com.google.api.ResourceProto.getDescriptor(); com.google.firestore.admin.v1.IndexProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Progress.java b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Progress.java index 93a484d12..422b5b1b6 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Progress.java +++ b/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/Progress.java @@ -23,8 +23,8 @@ * *
  * Describes the progress of the operation.
- * Unit of work is generic and must be interpreted based on where [Progress][google.firestore.admin.v1.Progress]
- * is used.
+ * Unit of work is generic and must be interpreted based on where
+ * [Progress][google.firestore.admin.v1.Progress] is used.
  * 
* * Protobuf type {@code google.firestore.admin.v1.Progress} @@ -270,8 +270,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Describes the progress of the operation.
-   * Unit of work is generic and must be interpreted based on where [Progress][google.firestore.admin.v1.Progress]
-   * is used.
+   * Unit of work is generic and must be interpreted based on where
+   * [Progress][google.firestore.admin.v1.Progress] is used.
    * 
* * Protobuf type {@code google.firestore.admin.v1.Progress} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/database.proto b/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/database.proto index 5d9b762a1..0ac0332b8 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/database.proto +++ b/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/database.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,8 @@ package google.firestore.admin.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Firestore.Admin.V1"; option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb"; @@ -78,6 +80,26 @@ message Database { OPTIMISTIC_WITH_ENTITY_GROUPS = 3; } + // Point In Time Recovery feature enablement. + enum PointInTimeRecoveryEnablement { + // Not used. + POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED = 0; + + // Reads are supported on selected versions of the data from within the past + // 7 days: + // + // * Reads against any timestamp within the past hour + // * Reads against 1-minute snapshots beyond 1 hour and within 7 days + // + // `version_retention_period` and `earliest_version_time` can be + // used to determine the supported versions. + POINT_IN_TIME_RECOVERY_ENABLED = 1; + + // Reads are supported on any version of the data from within the past 1 + // hour. + POINT_IN_TIME_RECOVERY_DISABLED = 2; + } + // The type of App Engine integration mode. enum AppEngineIntegrationMode { // Not used. @@ -89,8 +111,10 @@ message Database { // the database. ENABLED = 1; - // Appengine has no affect on the ability of this database to serve + // App Engine has no effect on the ability of this database to serve // requests. + // + // This is the default setting for databases created with the Firestore API. DISABLED = 2; } @@ -98,7 +122,7 @@ message Database { // Format: `projects/{project}/databases/{database}` string name = 1; - // The location of the database. Available databases are listed at + // The location of the database. Available locations are listed at // https://cloud.google.com/firestore/docs/locations. string location_id = 9; @@ -110,13 +134,40 @@ message Database { // The concurrency control mode to use for this database. ConcurrencyMode concurrency_mode = 15; + // Output only. The period during which past versions of data are retained in + // the database. + // + // Any [read][google.firestore.v1.GetDocumentRequest.read_time] + // or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify + // a `read_time` within this window, and will read the state of the database + // at that time. + // + // If the PITR feature is enabled, the retention period is 7 days. Otherwise, + // the retention period is 1 hour. + google.protobuf.Duration version_retention_period = 17 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The earliest timestamp at which older versions of the data can + // be read from the database. See [version_retention_period] above; this field + // is populated with `now - version_retention_period`. + // + // This value is continuously updated, and becomes stale the moment it is + // queried. If you are using this value to recover data, make sure to account + // for the time from the moment when the value is queried to the moment when + // you initiate the recovery. + google.protobuf.Timestamp earliest_version_time = 18 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Whether to enable the PITR feature on this database. + PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21; + // The App Engine integration mode to use for this database. AppEngineIntegrationMode app_engine_integration_mode = 19; - // Output only. The key_prefix for this database. This key_prefix is used, in combination - // with the project id ("~") to construct the - // application id that is returned from the Cloud Datastore APIs in Google App - // Engine first generation runtimes. + // Output only. The key_prefix for this database. This key_prefix is used, in + // combination with the project id ("~") to construct + // the application id that is returned from the Cloud Datastore APIs in Google + // App Engine first generation runtimes. // // This value may be empty in which case the appid to use for URL-encoded keys // is the project_id (eg: foo instead of v~foo). diff --git a/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/firestore_admin.proto b/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/firestore_admin.proto index e1faa4dcf..37110ebe0 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/firestore_admin.proto +++ b/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/firestore_admin.proto @@ -23,9 +23,11 @@ import "google/api/resource.proto"; import "google/firestore/admin/v1/database.proto"; import "google/firestore/admin/v1/field.proto"; import "google/firestore/admin/v1/index.proto"; +import "google/firestore/admin/v1/operation.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Firestore.Admin.V1"; option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb"; @@ -485,6 +487,23 @@ message ExportDocumentsRequest { // 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; + + // Unspecified means all namespaces. This is the preferred + // usage for databases that don't use namespaces. + // + // An empty string element represents the default namespace. This should be + // used if the database has data in non-default namespaces, but doesn't want + // to include them. Each namespace in this list must be unique. + repeated string namespace_ids = 4; + + // The timestamp that corresponds to the version of the database to be + // exported. The timestamp must be in the past, rounded to the minute and not + // older than + // [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time]. + // If specified, then the exported documents will represent a consistent view + // of the database at the provided time. Otherwise, there are no guarantees + // about the consistency of the exported documents. + google.protobuf.Timestamp snapshot_time = 5; } // The request for @@ -509,4 +528,12 @@ message ImportDocumentsRequest { // See: // [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix]. string input_uri_prefix = 3; + + // Unspecified means all namespaces. This is the preferred + // usage for databases that don't use namespaces. + // + // An empty string element represents the default namespace. This should be + // used if the database has data in non-default namespaces, but doesn't want + // to include them. Each namespace in this list must be unique. + repeated string namespace_ids = 4; } diff --git a/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/location.proto b/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/location.proto index abf836d92..71f4247ae 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/location.proto +++ b/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/location.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -25,7 +25,6 @@ option objc_class_prefix = "GCFS"; option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1"; option ruby_package = "Google::Cloud::Firestore::Admin::V1"; -// The metadata message for [google.cloud.location.Location.metadata][google.cloud.location.Location.metadata]. -message LocationMetadata { - -} +// The metadata message for +// [google.cloud.location.Location.metadata][google.cloud.location.Location.metadata]. +message LocationMetadata {} diff --git a/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/operation.proto b/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/operation.proto index 6b0562293..31f63af37 100644 --- a/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/operation.proto +++ b/proto-google-cloud-firestore-admin-v1/src/main/proto/google/firestore/admin/v1/operation.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ syntax = "proto3"; package google.firestore.admin.v1; +import "google/api/resource.proto"; import "google/firestore/admin/v1/index.proto"; import "google/protobuf/timestamp.proto"; @@ -28,7 +29,8 @@ option objc_class_prefix = "GCFS"; option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1"; option ruby_package = "Google::Cloud::Firestore::Admin::V1"; -// Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from +// Metadata for [google.longrunning.Operation][google.longrunning.Operation] +// results from // [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex]. message IndexOperationMetadata { // The time this operation started. @@ -52,7 +54,8 @@ message IndexOperationMetadata { Progress progress_bytes = 6; } -// Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from +// Metadata for [google.longrunning.Operation][google.longrunning.Operation] +// results from // [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]. message FieldOperationMetadata { // Information about an index configuration change. @@ -76,7 +79,7 @@ message FieldOperationMetadata { Index index = 2; } - // Information about an TTL configuration change. + // Information about a TTL configuration change. message TtlConfigDelta { // Specifies how the TTL config is changing. enum ChangeType { @@ -105,8 +108,9 @@ message FieldOperationMetadata { // `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` string field = 3; - // A list of [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], which describe the intent of this - // operation. + // A list of + // [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta], + // which describe the intent of this operation. repeated IndexConfigDelta index_config_deltas = 4; // The state of the operation. @@ -122,7 +126,8 @@ message FieldOperationMetadata { TtlConfigDelta ttl_config_delta = 8; } -// Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from +// Metadata for [google.longrunning.Operation][google.longrunning.Operation] +// results from // [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments]. message ExportDocumentsMetadata { // The time this operation started. @@ -144,11 +149,20 @@ message ExportDocumentsMetadata { // Which collection ids are being exported. repeated string collection_ids = 6; - // Where the entities are being exported to. + // Where the documents are being exported to. string output_uri_prefix = 7; + + // Which namespace ids are being exported. + repeated string namespace_ids = 8; + + // The timestamp that corresponds to the version of the database that is being + // exported. If unspecified, there are no guarantees about the consistency of + // the documents being exported. + google.protobuf.Timestamp snapshot_time = 9; } -// Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from +// Metadata for [google.longrunning.Operation][google.longrunning.Operation] +// results from // [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments]. message ImportDocumentsMetadata { // The time this operation started. @@ -172,9 +186,13 @@ message ImportDocumentsMetadata { // The location of the documents being imported. string input_uri_prefix = 7; + + // Which namespace ids are being imported. + repeated string namespace_ids = 8; } -// Returned in the [google.longrunning.Operation][google.longrunning.Operation] response field. +// Returned in the [google.longrunning.Operation][google.longrunning.Operation] +// response field. message ExportDocumentsResponse { // Location of the output files. This can be used to begin an import // into Cloud Firestore (this project or another project) after the operation @@ -212,8 +230,8 @@ enum OperationState { } // Describes the progress of the operation. -// Unit of work is generic and must be interpreted based on where [Progress][google.firestore.admin.v1.Progress] -// is used. +// Unit of work is generic and must be interpreted based on where +// [Progress][google.firestore.admin.v1.Progress] is used. message Progress { // The amount of work estimated. int64 estimated_work = 1;