This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Cloud Firestore API. For a detailed explanation see: diff --git a/clients/google-api-services-firestore/v1/2.0.0/com/google/api/services/firestore/v1/model/GoogleFirestoreAdminV1CreateDatabaseMetadata.java b/clients/google-api-services-firestore/v1/2.0.0/com/google/api/services/firestore/v1/model/GoogleFirestoreAdminV1CreateDatabaseMetadata.java new file mode 100644 index 00000000000..5ae72dcd007 --- /dev/null +++ b/clients/google-api-services-firestore/v1/2.0.0/com/google/api/services/firestore/v1/model/GoogleFirestoreAdminV1CreateDatabaseMetadata.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.firestore.v1.model; + +/** + * Metadata related to the create database operation. + * + *
This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud Firestore API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleFirestoreAdminV1CreateDatabaseMetadata extends com.google.api.client.json.GenericJson { + + @Override + public GoogleFirestoreAdminV1CreateDatabaseMetadata set(String fieldName, Object value) { + return (GoogleFirestoreAdminV1CreateDatabaseMetadata) super.set(fieldName, value); + } + + @Override + public GoogleFirestoreAdminV1CreateDatabaseMetadata clone() { + return (GoogleFirestoreAdminV1CreateDatabaseMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-firestore/v1/2.0.0/com/google/api/services/firestore/v1/model/GoogleFirestoreAdminV1Database.java b/clients/google-api-services-firestore/v1/2.0.0/com/google/api/services/firestore/v1/model/GoogleFirestoreAdminV1Database.java index e7be79b8fc6..0c0cbb7eab9 100644 --- a/clients/google-api-services-firestore/v1/2.0.0/com/google/api/services/firestore/v1/model/GoogleFirestoreAdminV1Database.java +++ b/clients/google-api-services-firestore/v1/2.0.0/com/google/api/services/firestore/v1/model/GoogleFirestoreAdminV1Database.java @@ -17,8 +17,7 @@ package com.google.api.services.firestore.v1.model; /** - * A Cloud Firestore Database. Currently only one database is allowed per cloud project; this - * database must have a `database_id` of '(default)'. + * A Cloud Firestore Database. * *This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Cloud Firestore API. For a detailed explanation see: diff --git a/clients/google-api-services-firestore/v1/2.0.0/com/google/api/services/firestore/v1/model/GoogleFirestoreAdminV1DeleteDatabaseMetadata.java b/clients/google-api-services-firestore/v1/2.0.0/com/google/api/services/firestore/v1/model/GoogleFirestoreAdminV1DeleteDatabaseMetadata.java new file mode 100644 index 00000000000..89e1885913d --- /dev/null +++ b/clients/google-api-services-firestore/v1/2.0.0/com/google/api/services/firestore/v1/model/GoogleFirestoreAdminV1DeleteDatabaseMetadata.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.firestore.v1.model; + +/** + * Metadata related to the delete database operation. + * + *
This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud Firestore API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleFirestoreAdminV1DeleteDatabaseMetadata extends com.google.api.client.json.GenericJson { + + @Override + public GoogleFirestoreAdminV1DeleteDatabaseMetadata set(String fieldName, Object value) { + return (GoogleFirestoreAdminV1DeleteDatabaseMetadata) super.set(fieldName, value); + } + + @Override + public GoogleFirestoreAdminV1DeleteDatabaseMetadata clone() { + return (GoogleFirestoreAdminV1DeleteDatabaseMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-firestore/v1/2.0.0/com/google/api/services/firestore/v1/model/Target.java b/clients/google-api-services-firestore/v1/2.0.0/com/google/api/services/firestore/v1/model/Target.java index 8a9b31f2e2d..a62ee3f168f 100644 --- a/clients/google-api-services-firestore/v1/2.0.0/com/google/api/services/firestore/v1/model/Target.java +++ b/clients/google-api-services-firestore/v1/2.0.0/com/google/api/services/firestore/v1/model/Target.java @@ -78,6 +78,15 @@ public final class Target extends com.google.api.client.json.GenericJson { /** * The target ID that identifies the target on the stream. Must be a positive number and non-zero. + * If `target_id` is 0 (or unspecified), the server will assign an ID for this target and return + * that in a `TargetChange::ADD` event. Once a target with `target_id=0` is added, all subsequent + * targets must also have `target_id=0`. If an `AddTarget` request with `target_id != 0` is sent + * to the server after a target with `target_id=0` is added, the server will immediately send a + * response with a `TargetChange::Remove` event. Note that if the client sends multiple + * `AddTarget` requests without an ID, the order of IDs returned in `TargetChage.target_ids` are + * undefined. Therefore, clients should provide a target ID instead of relying on the server to + * assign one. If `target_id` is non-zero, there must not be an existing active target on this + * stream with the same ID. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -227,6 +236,15 @@ public Target encodeResumeToken(byte[] resumeToken) { /** * The target ID that identifies the target on the stream. Must be a positive number and non-zero. + * If `target_id` is 0 (or unspecified), the server will assign an ID for this target and return + * that in a `TargetChange::ADD` event. Once a target with `target_id=0` is added, all subsequent + * targets must also have `target_id=0`. If an `AddTarget` request with `target_id != 0` is sent + * to the server after a target with `target_id=0` is added, the server will immediately send a + * response with a `TargetChange::Remove` event. Note that if the client sends multiple + * `AddTarget` requests without an ID, the order of IDs returned in `TargetChage.target_ids` are + * undefined. Therefore, clients should provide a target ID instead of relying on the server to + * assign one. If `target_id` is non-zero, there must not be an existing active target on this + * stream with the same ID. * @return value or {@code null} for none */ public java.lang.Integer getTargetId() { @@ -235,6 +253,15 @@ public java.lang.Integer getTargetId() { /** * The target ID that identifies the target on the stream. Must be a positive number and non-zero. + * If `target_id` is 0 (or unspecified), the server will assign an ID for this target and return + * that in a `TargetChange::ADD` event. Once a target with `target_id=0` is added, all subsequent + * targets must also have `target_id=0`. If an `AddTarget` request with `target_id != 0` is sent + * to the server after a target with `target_id=0` is added, the server will immediately send a + * response with a `TargetChange::Remove` event. Note that if the client sends multiple + * `AddTarget` requests without an ID, the order of IDs returned in `TargetChage.target_ids` are + * undefined. Therefore, clients should provide a target ID instead of relying on the server to + * assign one. If `target_id` is non-zero, there must not be an existing active target on this + * stream with the same ID. * @param targetId targetId or {@code null} for none */ public Target setTargetId(java.lang.Integer targetId) { diff --git a/clients/google-api-services-firestore/v1/2.0.0/pom.xml b/clients/google-api-services-firestore/v1/2.0.0/pom.xml index 65848cffbba..c22d1f0c806 100644 --- a/clients/google-api-services-firestore/v1/2.0.0/pom.xml +++ b/clients/google-api-services-firestore/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud Firestore API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleFirestoreAdminV1CreateDatabaseMetadata extends com.google.api.client.json.GenericJson { + + @Override + public GoogleFirestoreAdminV1CreateDatabaseMetadata set(String fieldName, Object value) { + return (GoogleFirestoreAdminV1CreateDatabaseMetadata) super.set(fieldName, value); + } + + @Override + public GoogleFirestoreAdminV1CreateDatabaseMetadata clone() { + return (GoogleFirestoreAdminV1CreateDatabaseMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-firestore/v1beta1/2.0.0/com/google/api/services/firestore/v1beta1/model/GoogleFirestoreAdminV1DeleteDatabaseMetadata.java b/clients/google-api-services-firestore/v1beta1/2.0.0/com/google/api/services/firestore/v1beta1/model/GoogleFirestoreAdminV1DeleteDatabaseMetadata.java new file mode 100644 index 00000000000..c6f19b9aade --- /dev/null +++ b/clients/google-api-services-firestore/v1beta1/2.0.0/com/google/api/services/firestore/v1beta1/model/GoogleFirestoreAdminV1DeleteDatabaseMetadata.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.firestore.v1beta1.model; + +/** + * Metadata related to the delete database operation. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud Firestore API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleFirestoreAdminV1DeleteDatabaseMetadata extends com.google.api.client.json.GenericJson { + + @Override + public GoogleFirestoreAdminV1DeleteDatabaseMetadata set(String fieldName, Object value) { + return (GoogleFirestoreAdminV1DeleteDatabaseMetadata) super.set(fieldName, value); + } + + @Override + public GoogleFirestoreAdminV1DeleteDatabaseMetadata clone() { + return (GoogleFirestoreAdminV1DeleteDatabaseMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-firestore/v1beta1/2.0.0/com/google/api/services/firestore/v1beta1/model/Target.java b/clients/google-api-services-firestore/v1beta1/2.0.0/com/google/api/services/firestore/v1beta1/model/Target.java index 7307e6aeb66..cff198ab772 100644 --- a/clients/google-api-services-firestore/v1beta1/2.0.0/com/google/api/services/firestore/v1beta1/model/Target.java +++ b/clients/google-api-services-firestore/v1beta1/2.0.0/com/google/api/services/firestore/v1beta1/model/Target.java @@ -78,6 +78,15 @@ public final class Target extends com.google.api.client.json.GenericJson { /** * The target ID that identifies the target on the stream. Must be a positive number and non-zero. + * If `target_id` is 0 (or unspecified), the server will assign an ID for this target and return + * that in a `TargetChange::ADD` event. Once a target with `target_id=0` is added, all subsequent + * targets must also have `target_id=0`. If an `AddTarget` request with `target_id != 0` is sent + * to the server after a target with `target_id=0` is added, the server will immediately send a + * response with a `TargetChange::Remove` event. Note that if the client sends multiple + * `AddTarget` requests without an ID, the order of IDs returned in `TargetChage.target_ids` are + * undefined. Therefore, clients should provide a target ID instead of relying on the server to + * assign one. If `target_id` is non-zero, there must not be an existing active target on this + * stream with the same ID. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -227,6 +236,15 @@ public Target encodeResumeToken(byte[] resumeToken) { /** * The target ID that identifies the target on the stream. Must be a positive number and non-zero. + * If `target_id` is 0 (or unspecified), the server will assign an ID for this target and return + * that in a `TargetChange::ADD` event. Once a target with `target_id=0` is added, all subsequent + * targets must also have `target_id=0`. If an `AddTarget` request with `target_id != 0` is sent + * to the server after a target with `target_id=0` is added, the server will immediately send a + * response with a `TargetChange::Remove` event. Note that if the client sends multiple + * `AddTarget` requests without an ID, the order of IDs returned in `TargetChage.target_ids` are + * undefined. Therefore, clients should provide a target ID instead of relying on the server to + * assign one. If `target_id` is non-zero, there must not be an existing active target on this + * stream with the same ID. * @return value or {@code null} for none */ public java.lang.Integer getTargetId() { @@ -235,6 +253,15 @@ public java.lang.Integer getTargetId() { /** * The target ID that identifies the target on the stream. Must be a positive number and non-zero. + * If `target_id` is 0 (or unspecified), the server will assign an ID for this target and return + * that in a `TargetChange::ADD` event. Once a target with `target_id=0` is added, all subsequent + * targets must also have `target_id=0`. If an `AddTarget` request with `target_id != 0` is sent + * to the server after a target with `target_id=0` is added, the server will immediately send a + * response with a `TargetChange::Remove` event. Note that if the client sends multiple + * `AddTarget` requests without an ID, the order of IDs returned in `TargetChage.target_ids` are + * undefined. Therefore, clients should provide a target ID instead of relying on the server to + * assign one. If `target_id` is non-zero, there must not be an existing active target on this + * stream with the same ID. * @param targetId targetId or {@code null} for none */ public Target setTargetId(java.lang.Integer targetId) { diff --git a/clients/google-api-services-firestore/v1beta1/2.0.0/pom.xml b/clients/google-api-services-firestore/v1beta1/2.0.0/pom.xml index 057c9381bd0..b21820c514b 100644 --- a/clients/google-api-services-firestore/v1beta1/2.0.0/pom.xml +++ b/clients/google-api-services-firestore/v1beta1/2.0.0/pom.xml @@ -8,8 +8,8 @@This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud Firestore API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleFirestoreAdminV1CreateDatabaseMetadata extends com.google.api.client.json.GenericJson { + + @Override + public GoogleFirestoreAdminV1CreateDatabaseMetadata set(String fieldName, Object value) { + return (GoogleFirestoreAdminV1CreateDatabaseMetadata) super.set(fieldName, value); + } + + @Override + public GoogleFirestoreAdminV1CreateDatabaseMetadata clone() { + return (GoogleFirestoreAdminV1CreateDatabaseMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-firestore/v1beta2/2.0.0/com/google/api/services/firestore/v1beta2/model/GoogleFirestoreAdminV1DeleteDatabaseMetadata.java b/clients/google-api-services-firestore/v1beta2/2.0.0/com/google/api/services/firestore/v1beta2/model/GoogleFirestoreAdminV1DeleteDatabaseMetadata.java new file mode 100644 index 00000000000..30578ad1156 --- /dev/null +++ b/clients/google-api-services-firestore/v1beta2/2.0.0/com/google/api/services/firestore/v1beta2/model/GoogleFirestoreAdminV1DeleteDatabaseMetadata.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.firestore.v1beta2.model; + +/** + * Metadata related to the delete database operation. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud Firestore API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleFirestoreAdminV1DeleteDatabaseMetadata extends com.google.api.client.json.GenericJson { + + @Override + public GoogleFirestoreAdminV1DeleteDatabaseMetadata set(String fieldName, Object value) { + return (GoogleFirestoreAdminV1DeleteDatabaseMetadata) super.set(fieldName, value); + } + + @Override + public GoogleFirestoreAdminV1DeleteDatabaseMetadata clone() { + return (GoogleFirestoreAdminV1DeleteDatabaseMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-firestore/v1beta2/2.0.0/pom.xml b/clients/google-api-services-firestore/v1beta2/2.0.0/pom.xml index 9354ca262e6..21609f36255 100644 --- a/clients/google-api-services-firestore/v1beta2/2.0.0/pom.xml +++ b/clients/google-api-services-firestore/v1beta2/2.0.0/pom.xml @@ -8,8 +8,8 @@