|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.firestore.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Metadata for the long-running operation from the CloneDatabase request. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Cloud Firestore API. For a detailed explanation see: |
| 24 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 25 | + * </p> |
| 26 | + * |
| 27 | + * @author Google, Inc. |
| 28 | + */ |
| 29 | +@SuppressWarnings("javadoc") |
| 30 | +public final class GoogleFirestoreAdminV1CloneDatabaseMetadata extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * The name of the database being cloned to. |
| 34 | + * The value may be {@code null}. |
| 35 | + */ |
| 36 | + @com.google.api.client.util.Key |
| 37 | + private java.lang.String database; |
| 38 | + |
| 39 | + /** |
| 40 | + * The time the clone finished, unset for ongoing clones. |
| 41 | + * The value may be {@code null}. |
| 42 | + */ |
| 43 | + @com.google.api.client.util.Key |
| 44 | + private String endTime; |
| 45 | + |
| 46 | + /** |
| 47 | + * The operation state of the clone. |
| 48 | + * The value may be {@code null}. |
| 49 | + */ |
| 50 | + @com.google.api.client.util.Key |
| 51 | + private java.lang.String operationState; |
| 52 | + |
| 53 | + /** |
| 54 | + * The snapshot from which this database was cloned. |
| 55 | + * The value may be {@code null}. |
| 56 | + */ |
| 57 | + @com.google.api.client.util.Key |
| 58 | + private GoogleFirestoreAdminV1PitrSnapshot pitrSnapshot; |
| 59 | + |
| 60 | + /** |
| 61 | + * How far along the clone is as an estimated percentage of remaining time. |
| 62 | + * The value may be {@code null}. |
| 63 | + */ |
| 64 | + @com.google.api.client.util.Key |
| 65 | + private GoogleFirestoreAdminV1Progress progressPercentage; |
| 66 | + |
| 67 | + /** |
| 68 | + * The time the clone was started. |
| 69 | + * The value may be {@code null}. |
| 70 | + */ |
| 71 | + @com.google.api.client.util.Key |
| 72 | + private String startTime; |
| 73 | + |
| 74 | + /** |
| 75 | + * The name of the database being cloned to. |
| 76 | + * @return value or {@code null} for none |
| 77 | + */ |
| 78 | + public java.lang.String getDatabase() { |
| 79 | + return database; |
| 80 | + } |
| 81 | + |
| 82 | + /** |
| 83 | + * The name of the database being cloned to. |
| 84 | + * @param database database or {@code null} for none |
| 85 | + */ |
| 86 | + public GoogleFirestoreAdminV1CloneDatabaseMetadata setDatabase(java.lang.String database) { |
| 87 | + this.database = database; |
| 88 | + return this; |
| 89 | + } |
| 90 | + |
| 91 | + /** |
| 92 | + * The time the clone finished, unset for ongoing clones. |
| 93 | + * @return value or {@code null} for none |
| 94 | + */ |
| 95 | + public String getEndTime() { |
| 96 | + return endTime; |
| 97 | + } |
| 98 | + |
| 99 | + /** |
| 100 | + * The time the clone finished, unset for ongoing clones. |
| 101 | + * @param endTime endTime or {@code null} for none |
| 102 | + */ |
| 103 | + public GoogleFirestoreAdminV1CloneDatabaseMetadata setEndTime(String endTime) { |
| 104 | + this.endTime = endTime; |
| 105 | + return this; |
| 106 | + } |
| 107 | + |
| 108 | + /** |
| 109 | + * The operation state of the clone. |
| 110 | + * @return value or {@code null} for none |
| 111 | + */ |
| 112 | + public java.lang.String getOperationState() { |
| 113 | + return operationState; |
| 114 | + } |
| 115 | + |
| 116 | + /** |
| 117 | + * The operation state of the clone. |
| 118 | + * @param operationState operationState or {@code null} for none |
| 119 | + */ |
| 120 | + public GoogleFirestoreAdminV1CloneDatabaseMetadata setOperationState(java.lang.String operationState) { |
| 121 | + this.operationState = operationState; |
| 122 | + return this; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * The snapshot from which this database was cloned. |
| 127 | + * @return value or {@code null} for none |
| 128 | + */ |
| 129 | + public GoogleFirestoreAdminV1PitrSnapshot getPitrSnapshot() { |
| 130 | + return pitrSnapshot; |
| 131 | + } |
| 132 | + |
| 133 | + /** |
| 134 | + * The snapshot from which this database was cloned. |
| 135 | + * @param pitrSnapshot pitrSnapshot or {@code null} for none |
| 136 | + */ |
| 137 | + public GoogleFirestoreAdminV1CloneDatabaseMetadata setPitrSnapshot(GoogleFirestoreAdminV1PitrSnapshot pitrSnapshot) { |
| 138 | + this.pitrSnapshot = pitrSnapshot; |
| 139 | + return this; |
| 140 | + } |
| 141 | + |
| 142 | + /** |
| 143 | + * How far along the clone is as an estimated percentage of remaining time. |
| 144 | + * @return value or {@code null} for none |
| 145 | + */ |
| 146 | + public GoogleFirestoreAdminV1Progress getProgressPercentage() { |
| 147 | + return progressPercentage; |
| 148 | + } |
| 149 | + |
| 150 | + /** |
| 151 | + * How far along the clone is as an estimated percentage of remaining time. |
| 152 | + * @param progressPercentage progressPercentage or {@code null} for none |
| 153 | + */ |
| 154 | + public GoogleFirestoreAdminV1CloneDatabaseMetadata setProgressPercentage(GoogleFirestoreAdminV1Progress progressPercentage) { |
| 155 | + this.progressPercentage = progressPercentage; |
| 156 | + return this; |
| 157 | + } |
| 158 | + |
| 159 | + /** |
| 160 | + * The time the clone was started. |
| 161 | + * @return value or {@code null} for none |
| 162 | + */ |
| 163 | + public String getStartTime() { |
| 164 | + return startTime; |
| 165 | + } |
| 166 | + |
| 167 | + /** |
| 168 | + * The time the clone was started. |
| 169 | + * @param startTime startTime or {@code null} for none |
| 170 | + */ |
| 171 | + public GoogleFirestoreAdminV1CloneDatabaseMetadata setStartTime(String startTime) { |
| 172 | + this.startTime = startTime; |
| 173 | + return this; |
| 174 | + } |
| 175 | + |
| 176 | + @Override |
| 177 | + public GoogleFirestoreAdminV1CloneDatabaseMetadata set(String fieldName, Object value) { |
| 178 | + return (GoogleFirestoreAdminV1CloneDatabaseMetadata) super.set(fieldName, value); |
| 179 | + } |
| 180 | + |
| 181 | + @Override |
| 182 | + public GoogleFirestoreAdminV1CloneDatabaseMetadata clone() { |
| 183 | + return (GoogleFirestoreAdminV1CloneDatabaseMetadata) super.clone(); |
| 184 | + } |
| 185 | + |
| 186 | +} |
0 commit comments