|
| 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.run.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Go module to upload to Artifact Registry upon successful completion of all build steps. A module |
| 21 | + * refers to all dependencies in a go.mod file. |
| 22 | + * |
| 23 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 24 | + * transmitted over HTTP when working with the Cloud Run Admin API. For a detailed explanation 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 GoogleDevtoolsCloudbuildV1GoModule extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Optional. The Go module's "module path". e.g. example.com/foo/v2 |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private java.lang.String modulePath; |
| 39 | + |
| 40 | + /** |
| 41 | + * Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release |
| 42 | + * identifiers can also be added by appending a dash and dot separated ASCII alphanumeric |
| 43 | + * characters and hyphens. e.g. v0.2.3-alpha.x.12m.5 |
| 44 | + * The value may be {@code null}. |
| 45 | + */ |
| 46 | + @com.google.api.client.util.Key |
| 47 | + private java.lang.String moduleVersion; |
| 48 | + |
| 49 | + /** |
| 50 | + * Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s |
| 51 | + * location. |
| 52 | + * The value may be {@code null}. |
| 53 | + */ |
| 54 | + @com.google.api.client.util.Key |
| 55 | + private java.lang.String repositoryLocation; |
| 56 | + |
| 57 | + /** |
| 58 | + * Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded |
| 59 | + * to Artifact Registry with this location as a prefix. e.g. my-go-repo |
| 60 | + * The value may be {@code null}. |
| 61 | + */ |
| 62 | + @com.google.api.client.util.Key |
| 63 | + private java.lang.String repositoryName; |
| 64 | + |
| 65 | + /** |
| 66 | + * Optional. Project ID of the Artifact Registry repository. Defaults to the build project. |
| 67 | + * The value may be {@code null}. |
| 68 | + */ |
| 69 | + @com.google.api.client.util.Key |
| 70 | + private java.lang.String repositoryProjectId; |
| 71 | + |
| 72 | + /** |
| 73 | + * Optional. Source path of the go.mod file in the build's workspace. If not specified, this will |
| 74 | + * default to the current directory. e.g. ~/code/go/mypackage |
| 75 | + * The value may be {@code null}. |
| 76 | + */ |
| 77 | + @com.google.api.client.util.Key |
| 78 | + private java.lang.String sourcePath; |
| 79 | + |
| 80 | + /** |
| 81 | + * Optional. The Go module's "module path". e.g. example.com/foo/v2 |
| 82 | + * @return value or {@code null} for none |
| 83 | + */ |
| 84 | + public java.lang.String getModulePath() { |
| 85 | + return modulePath; |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * Optional. The Go module's "module path". e.g. example.com/foo/v2 |
| 90 | + * @param modulePath modulePath or {@code null} for none |
| 91 | + */ |
| 92 | + public GoogleDevtoolsCloudbuildV1GoModule setModulePath(java.lang.String modulePath) { |
| 93 | + this.modulePath = modulePath; |
| 94 | + return this; |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release |
| 99 | + * identifiers can also be added by appending a dash and dot separated ASCII alphanumeric |
| 100 | + * characters and hyphens. e.g. v0.2.3-alpha.x.12m.5 |
| 101 | + * @return value or {@code null} for none |
| 102 | + */ |
| 103 | + public java.lang.String getModuleVersion() { |
| 104 | + return moduleVersion; |
| 105 | + } |
| 106 | + |
| 107 | + /** |
| 108 | + * Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release |
| 109 | + * identifiers can also be added by appending a dash and dot separated ASCII alphanumeric |
| 110 | + * characters and hyphens. e.g. v0.2.3-alpha.x.12m.5 |
| 111 | + * @param moduleVersion moduleVersion or {@code null} for none |
| 112 | + */ |
| 113 | + public GoogleDevtoolsCloudbuildV1GoModule setModuleVersion(java.lang.String moduleVersion) { |
| 114 | + this.moduleVersion = moduleVersion; |
| 115 | + return this; |
| 116 | + } |
| 117 | + |
| 118 | + /** |
| 119 | + * Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s |
| 120 | + * location. |
| 121 | + * @return value or {@code null} for none |
| 122 | + */ |
| 123 | + public java.lang.String getRepositoryLocation() { |
| 124 | + return repositoryLocation; |
| 125 | + } |
| 126 | + |
| 127 | + /** |
| 128 | + * Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s |
| 129 | + * location. |
| 130 | + * @param repositoryLocation repositoryLocation or {@code null} for none |
| 131 | + */ |
| 132 | + public GoogleDevtoolsCloudbuildV1GoModule setRepositoryLocation(java.lang.String repositoryLocation) { |
| 133 | + this.repositoryLocation = repositoryLocation; |
| 134 | + return this; |
| 135 | + } |
| 136 | + |
| 137 | + /** |
| 138 | + * Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded |
| 139 | + * to Artifact Registry with this location as a prefix. e.g. my-go-repo |
| 140 | + * @return value or {@code null} for none |
| 141 | + */ |
| 142 | + public java.lang.String getRepositoryName() { |
| 143 | + return repositoryName; |
| 144 | + } |
| 145 | + |
| 146 | + /** |
| 147 | + * Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded |
| 148 | + * to Artifact Registry with this location as a prefix. e.g. my-go-repo |
| 149 | + * @param repositoryName repositoryName or {@code null} for none |
| 150 | + */ |
| 151 | + public GoogleDevtoolsCloudbuildV1GoModule setRepositoryName(java.lang.String repositoryName) { |
| 152 | + this.repositoryName = repositoryName; |
| 153 | + return this; |
| 154 | + } |
| 155 | + |
| 156 | + /** |
| 157 | + * Optional. Project ID of the Artifact Registry repository. Defaults to the build project. |
| 158 | + * @return value or {@code null} for none |
| 159 | + */ |
| 160 | + public java.lang.String getRepositoryProjectId() { |
| 161 | + return repositoryProjectId; |
| 162 | + } |
| 163 | + |
| 164 | + /** |
| 165 | + * Optional. Project ID of the Artifact Registry repository. Defaults to the build project. |
| 166 | + * @param repositoryProjectId repositoryProjectId or {@code null} for none |
| 167 | + */ |
| 168 | + public GoogleDevtoolsCloudbuildV1GoModule setRepositoryProjectId(java.lang.String repositoryProjectId) { |
| 169 | + this.repositoryProjectId = repositoryProjectId; |
| 170 | + return this; |
| 171 | + } |
| 172 | + |
| 173 | + /** |
| 174 | + * Optional. Source path of the go.mod file in the build's workspace. If not specified, this will |
| 175 | + * default to the current directory. e.g. ~/code/go/mypackage |
| 176 | + * @return value or {@code null} for none |
| 177 | + */ |
| 178 | + public java.lang.String getSourcePath() { |
| 179 | + return sourcePath; |
| 180 | + } |
| 181 | + |
| 182 | + /** |
| 183 | + * Optional. Source path of the go.mod file in the build's workspace. If not specified, this will |
| 184 | + * default to the current directory. e.g. ~/code/go/mypackage |
| 185 | + * @param sourcePath sourcePath or {@code null} for none |
| 186 | + */ |
| 187 | + public GoogleDevtoolsCloudbuildV1GoModule setSourcePath(java.lang.String sourcePath) { |
| 188 | + this.sourcePath = sourcePath; |
| 189 | + return this; |
| 190 | + } |
| 191 | + |
| 192 | + @Override |
| 193 | + public GoogleDevtoolsCloudbuildV1GoModule set(String fieldName, Object value) { |
| 194 | + return (GoogleDevtoolsCloudbuildV1GoModule) super.set(fieldName, value); |
| 195 | + } |
| 196 | + |
| 197 | + @Override |
| 198 | + public GoogleDevtoolsCloudbuildV1GoModule clone() { |
| 199 | + return (GoogleDevtoolsCloudbuildV1GoModule) super.clone(); |
| 200 | + } |
| 201 | + |
| 202 | +} |
0 commit comments