|
| 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.firebaseapphosting.v1beta.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * The URI of an storage archive to use as the build source. |
| 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 Firebase App Hosting API. For a detailed explanation |
| 24 | + * see: |
| 25 | + * <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> |
| 26 | + * </p> |
| 27 | + * |
| 28 | + * @author Google, Inc. |
| 29 | + */ |
| 30 | +@SuppressWarnings("javadoc") |
| 31 | +public final class LocallyBuiltSource extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Optional. An optional message that describes the uploaded version of the source code. |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private java.lang.String description; |
| 39 | + |
| 40 | + /** |
| 41 | + * Optional. Supplied runtime environment variables for a specific build. Provided at Build |
| 42 | + * creation time and immutable afterwards. |
| 43 | + * The value may be {@code null}. |
| 44 | + */ |
| 45 | + @com.google.api.client.util.Key |
| 46 | + private java.util.List<EnvironmentVariable> env; |
| 47 | + |
| 48 | + static { |
| 49 | + // hack to force ProGuard to consider EnvironmentVariable used, since otherwise it would be stripped out |
| 50 | + // see https://github.com/google/google-api-java-client/issues/543 |
| 51 | + com.google.api.client.util.Data.nullOf(EnvironmentVariable.class); |
| 52 | + } |
| 53 | + |
| 54 | + /** |
| 55 | + * Optional. The directory relative to the root of the archive to use as the root for the deployed |
| 56 | + * web app. Defaults to use the root of the repository if not provided. If deploying a |
| 57 | + * [monorepo](https://firebase.google.com/docs/app-hosting/monorepos), this should be the |
| 58 | + * directory that contains the built source of the app. |
| 59 | + * The value may be {@code null}. |
| 60 | + */ |
| 61 | + @com.google.api.client.util.Key |
| 62 | + private java.lang.String rootDirectory; |
| 63 | + |
| 64 | + /** |
| 65 | + * Optional. The command to run to start the app. If provided, it will override apphosting's |
| 66 | + * default run commands. See [`Override build and run |
| 67 | + * scripts`](https://firebase.google.com/docs/app-hosting/configure#override-scripts) |
| 68 | + * The value may be {@code null}. |
| 69 | + */ |
| 70 | + @com.google.api.client.util.Key |
| 71 | + private java.lang.String runCommand; |
| 72 | + |
| 73 | + /** |
| 74 | + * Optional. Additional configuration of the Cloud Run [`service`](https://cloud.google.com/run/do |
| 75 | + * cs/reference/rest/v2/projects.locations.services#resource:-service). |
| 76 | + * The value may be {@code null}. |
| 77 | + */ |
| 78 | + @com.google.api.client.util.Key |
| 79 | + private RunConfig runConfig; |
| 80 | + |
| 81 | + /** |
| 82 | + * URI to an archive in Cloud Storage. The object must be a gzipped archive file (.tar.gz) |
| 83 | + * containing source to deploy. |
| 84 | + * The value may be {@code null}. |
| 85 | + */ |
| 86 | + @com.google.api.client.util.Key |
| 87 | + private java.lang.String userStorageUri; |
| 88 | + |
| 89 | + /** |
| 90 | + * Optional. An optional message that describes the uploaded version of the source code. |
| 91 | + * @return value or {@code null} for none |
| 92 | + */ |
| 93 | + public java.lang.String getDescription() { |
| 94 | + return description; |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * Optional. An optional message that describes the uploaded version of the source code. |
| 99 | + * @param description description or {@code null} for none |
| 100 | + */ |
| 101 | + public LocallyBuiltSource setDescription(java.lang.String description) { |
| 102 | + this.description = description; |
| 103 | + return this; |
| 104 | + } |
| 105 | + |
| 106 | + /** |
| 107 | + * Optional. Supplied runtime environment variables for a specific build. Provided at Build |
| 108 | + * creation time and immutable afterwards. |
| 109 | + * @return value or {@code null} for none |
| 110 | + */ |
| 111 | + public java.util.List<EnvironmentVariable> getEnv() { |
| 112 | + return env; |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * Optional. Supplied runtime environment variables for a specific build. Provided at Build |
| 117 | + * creation time and immutable afterwards. |
| 118 | + * @param env env or {@code null} for none |
| 119 | + */ |
| 120 | + public LocallyBuiltSource setEnv(java.util.List<EnvironmentVariable> env) { |
| 121 | + this.env = env; |
| 122 | + return this; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Optional. The directory relative to the root of the archive to use as the root for the deployed |
| 127 | + * web app. Defaults to use the root of the repository if not provided. If deploying a |
| 128 | + * [monorepo](https://firebase.google.com/docs/app-hosting/monorepos), this should be the |
| 129 | + * directory that contains the built source of the app. |
| 130 | + * @return value or {@code null} for none |
| 131 | + */ |
| 132 | + public java.lang.String getRootDirectory() { |
| 133 | + return rootDirectory; |
| 134 | + } |
| 135 | + |
| 136 | + /** |
| 137 | + * Optional. The directory relative to the root of the archive to use as the root for the deployed |
| 138 | + * web app. Defaults to use the root of the repository if not provided. If deploying a |
| 139 | + * [monorepo](https://firebase.google.com/docs/app-hosting/monorepos), this should be the |
| 140 | + * directory that contains the built source of the app. |
| 141 | + * @param rootDirectory rootDirectory or {@code null} for none |
| 142 | + */ |
| 143 | + public LocallyBuiltSource setRootDirectory(java.lang.String rootDirectory) { |
| 144 | + this.rootDirectory = rootDirectory; |
| 145 | + return this; |
| 146 | + } |
| 147 | + |
| 148 | + /** |
| 149 | + * Optional. The command to run to start the app. If provided, it will override apphosting's |
| 150 | + * default run commands. See [`Override build and run |
| 151 | + * scripts`](https://firebase.google.com/docs/app-hosting/configure#override-scripts) |
| 152 | + * @return value or {@code null} for none |
| 153 | + */ |
| 154 | + public java.lang.String getRunCommand() { |
| 155 | + return runCommand; |
| 156 | + } |
| 157 | + |
| 158 | + /** |
| 159 | + * Optional. The command to run to start the app. If provided, it will override apphosting's |
| 160 | + * default run commands. See [`Override build and run |
| 161 | + * scripts`](https://firebase.google.com/docs/app-hosting/configure#override-scripts) |
| 162 | + * @param runCommand runCommand or {@code null} for none |
| 163 | + */ |
| 164 | + public LocallyBuiltSource setRunCommand(java.lang.String runCommand) { |
| 165 | + this.runCommand = runCommand; |
| 166 | + return this; |
| 167 | + } |
| 168 | + |
| 169 | + /** |
| 170 | + * Optional. Additional configuration of the Cloud Run [`service`](https://cloud.google.com/run/do |
| 171 | + * cs/reference/rest/v2/projects.locations.services#resource:-service). |
| 172 | + * @return value or {@code null} for none |
| 173 | + */ |
| 174 | + public RunConfig getRunConfig() { |
| 175 | + return runConfig; |
| 176 | + } |
| 177 | + |
| 178 | + /** |
| 179 | + * Optional. Additional configuration of the Cloud Run [`service`](https://cloud.google.com/run/do |
| 180 | + * cs/reference/rest/v2/projects.locations.services#resource:-service). |
| 181 | + * @param runConfig runConfig or {@code null} for none |
| 182 | + */ |
| 183 | + public LocallyBuiltSource setRunConfig(RunConfig runConfig) { |
| 184 | + this.runConfig = runConfig; |
| 185 | + return this; |
| 186 | + } |
| 187 | + |
| 188 | + /** |
| 189 | + * URI to an archive in Cloud Storage. The object must be a gzipped archive file (.tar.gz) |
| 190 | + * containing source to deploy. |
| 191 | + * @return value or {@code null} for none |
| 192 | + */ |
| 193 | + public java.lang.String getUserStorageUri() { |
| 194 | + return userStorageUri; |
| 195 | + } |
| 196 | + |
| 197 | + /** |
| 198 | + * URI to an archive in Cloud Storage. The object must be a gzipped archive file (.tar.gz) |
| 199 | + * containing source to deploy. |
| 200 | + * @param userStorageUri userStorageUri or {@code null} for none |
| 201 | + */ |
| 202 | + public LocallyBuiltSource setUserStorageUri(java.lang.String userStorageUri) { |
| 203 | + this.userStorageUri = userStorageUri; |
| 204 | + return this; |
| 205 | + } |
| 206 | + |
| 207 | + @Override |
| 208 | + public LocallyBuiltSource set(String fieldName, Object value) { |
| 209 | + return (LocallyBuiltSource) super.set(fieldName, value); |
| 210 | + } |
| 211 | + |
| 212 | + @Override |
| 213 | + public LocallyBuiltSource clone() { |
| 214 | + return (LocallyBuiltSource) super.clone(); |
| 215 | + } |
| 216 | + |
| 217 | +} |
0 commit comments