|
| 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.artifactregistry.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Details of a single image manifest within a multi-arch image. |
| 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 Artifact Registry 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 ImageManifest extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Optional. The CPU architecture of the image. Values are provided by the Docker client and are |
| 35 | + * not validated by Artifact Registry. Example values include "amd64", "arm64", "ppc64le", |
| 36 | + * "s390x", "riscv64", "mips64le", etc. |
| 37 | + * The value may be {@code null}. |
| 38 | + */ |
| 39 | + @com.google.api.client.util.Key |
| 40 | + private java.lang.String architecture; |
| 41 | + |
| 42 | + /** |
| 43 | + * Optional. The manifest digest, in the format "sha256:". |
| 44 | + * The value may be {@code null}. |
| 45 | + */ |
| 46 | + @com.google.api.client.util.Key |
| 47 | + private java.lang.String digest; |
| 48 | + |
| 49 | + /** |
| 50 | + * Optional. The media type of the manifest, e.g., |
| 51 | + * "application/vnd.docker.distribution.manifest.v2+json" |
| 52 | + * The value may be {@code null}. |
| 53 | + */ |
| 54 | + @com.google.api.client.util.Key |
| 55 | + private java.lang.String mediaType; |
| 56 | + |
| 57 | + /** |
| 58 | + * Optional. The operating system of the image. Values are provided by the Docker client and are |
| 59 | + * not validated by Artifact Registry. Example values include "linux", "windows", "darwin", "aix", |
| 60 | + * etc. |
| 61 | + * The value may be {@code null}. |
| 62 | + */ |
| 63 | + @com.google.api.client.util.Key |
| 64 | + private java.lang.String os; |
| 65 | + |
| 66 | + /** |
| 67 | + * Optional. The required OS features for the image, for example on Windows `win32k`. |
| 68 | + * The value may be {@code null}. |
| 69 | + */ |
| 70 | + @com.google.api.client.util.Key |
| 71 | + private java.util.List<java.lang.String> osFeatures; |
| 72 | + |
| 73 | + /** |
| 74 | + * Optional. The OS version of the image, for example on Windows `10.0.14393.1066`. |
| 75 | + * The value may be {@code null}. |
| 76 | + */ |
| 77 | + @com.google.api.client.util.Key |
| 78 | + private java.lang.String osVersion; |
| 79 | + |
| 80 | + /** |
| 81 | + * Optional. The variant of the CPU in the image, for example `v7` to specify ARMv7 when |
| 82 | + * architecture is `arm`. |
| 83 | + * The value may be {@code null}. |
| 84 | + */ |
| 85 | + @com.google.api.client.util.Key |
| 86 | + private java.lang.String variant; |
| 87 | + |
| 88 | + /** |
| 89 | + * Optional. The CPU architecture of the image. Values are provided by the Docker client and are |
| 90 | + * not validated by Artifact Registry. Example values include "amd64", "arm64", "ppc64le", |
| 91 | + * "s390x", "riscv64", "mips64le", etc. |
| 92 | + * @return value or {@code null} for none |
| 93 | + */ |
| 94 | + public java.lang.String getArchitecture() { |
| 95 | + return architecture; |
| 96 | + } |
| 97 | + |
| 98 | + /** |
| 99 | + * Optional. The CPU architecture of the image. Values are provided by the Docker client and are |
| 100 | + * not validated by Artifact Registry. Example values include "amd64", "arm64", "ppc64le", |
| 101 | + * "s390x", "riscv64", "mips64le", etc. |
| 102 | + * @param architecture architecture or {@code null} for none |
| 103 | + */ |
| 104 | + public ImageManifest setArchitecture(java.lang.String architecture) { |
| 105 | + this.architecture = architecture; |
| 106 | + return this; |
| 107 | + } |
| 108 | + |
| 109 | + /** |
| 110 | + * Optional. The manifest digest, in the format "sha256:". |
| 111 | + * @return value or {@code null} for none |
| 112 | + */ |
| 113 | + public java.lang.String getDigest() { |
| 114 | + return digest; |
| 115 | + } |
| 116 | + |
| 117 | + /** |
| 118 | + * Optional. The manifest digest, in the format "sha256:". |
| 119 | + * @param digest digest or {@code null} for none |
| 120 | + */ |
| 121 | + public ImageManifest setDigest(java.lang.String digest) { |
| 122 | + this.digest = digest; |
| 123 | + return this; |
| 124 | + } |
| 125 | + |
| 126 | + /** |
| 127 | + * Optional. The media type of the manifest, e.g., |
| 128 | + * "application/vnd.docker.distribution.manifest.v2+json" |
| 129 | + * @return value or {@code null} for none |
| 130 | + */ |
| 131 | + public java.lang.String getMediaType() { |
| 132 | + return mediaType; |
| 133 | + } |
| 134 | + |
| 135 | + /** |
| 136 | + * Optional. The media type of the manifest, e.g., |
| 137 | + * "application/vnd.docker.distribution.manifest.v2+json" |
| 138 | + * @param mediaType mediaType or {@code null} for none |
| 139 | + */ |
| 140 | + public ImageManifest setMediaType(java.lang.String mediaType) { |
| 141 | + this.mediaType = mediaType; |
| 142 | + return this; |
| 143 | + } |
| 144 | + |
| 145 | + /** |
| 146 | + * Optional. The operating system of the image. Values are provided by the Docker client and are |
| 147 | + * not validated by Artifact Registry. Example values include "linux", "windows", "darwin", "aix", |
| 148 | + * etc. |
| 149 | + * @return value or {@code null} for none |
| 150 | + */ |
| 151 | + public java.lang.String getOs() { |
| 152 | + return os; |
| 153 | + } |
| 154 | + |
| 155 | + /** |
| 156 | + * Optional. The operating system of the image. Values are provided by the Docker client and are |
| 157 | + * not validated by Artifact Registry. Example values include "linux", "windows", "darwin", "aix", |
| 158 | + * etc. |
| 159 | + * @param os os or {@code null} for none |
| 160 | + */ |
| 161 | + public ImageManifest setOs(java.lang.String os) { |
| 162 | + this.os = os; |
| 163 | + return this; |
| 164 | + } |
| 165 | + |
| 166 | + /** |
| 167 | + * Optional. The required OS features for the image, for example on Windows `win32k`. |
| 168 | + * @return value or {@code null} for none |
| 169 | + */ |
| 170 | + public java.util.List<java.lang.String> getOsFeatures() { |
| 171 | + return osFeatures; |
| 172 | + } |
| 173 | + |
| 174 | + /** |
| 175 | + * Optional. The required OS features for the image, for example on Windows `win32k`. |
| 176 | + * @param osFeatures osFeatures or {@code null} for none |
| 177 | + */ |
| 178 | + public ImageManifest setOsFeatures(java.util.List<java.lang.String> osFeatures) { |
| 179 | + this.osFeatures = osFeatures; |
| 180 | + return this; |
| 181 | + } |
| 182 | + |
| 183 | + /** |
| 184 | + * Optional. The OS version of the image, for example on Windows `10.0.14393.1066`. |
| 185 | + * @return value or {@code null} for none |
| 186 | + */ |
| 187 | + public java.lang.String getOsVersion() { |
| 188 | + return osVersion; |
| 189 | + } |
| 190 | + |
| 191 | + /** |
| 192 | + * Optional. The OS version of the image, for example on Windows `10.0.14393.1066`. |
| 193 | + * @param osVersion osVersion or {@code null} for none |
| 194 | + */ |
| 195 | + public ImageManifest setOsVersion(java.lang.String osVersion) { |
| 196 | + this.osVersion = osVersion; |
| 197 | + return this; |
| 198 | + } |
| 199 | + |
| 200 | + /** |
| 201 | + * Optional. The variant of the CPU in the image, for example `v7` to specify ARMv7 when |
| 202 | + * architecture is `arm`. |
| 203 | + * @return value or {@code null} for none |
| 204 | + */ |
| 205 | + public java.lang.String getVariant() { |
| 206 | + return variant; |
| 207 | + } |
| 208 | + |
| 209 | + /** |
| 210 | + * Optional. The variant of the CPU in the image, for example `v7` to specify ARMv7 when |
| 211 | + * architecture is `arm`. |
| 212 | + * @param variant variant or {@code null} for none |
| 213 | + */ |
| 214 | + public ImageManifest setVariant(java.lang.String variant) { |
| 215 | + this.variant = variant; |
| 216 | + return this; |
| 217 | + } |
| 218 | + |
| 219 | + @Override |
| 220 | + public ImageManifest set(String fieldName, Object value) { |
| 221 | + return (ImageManifest) super.set(fieldName, value); |
| 222 | + } |
| 223 | + |
| 224 | + @Override |
| 225 | + public ImageManifest clone() { |
| 226 | + return (ImageManifest) super.clone(); |
| 227 | + } |
| 228 | + |
| 229 | +} |
0 commit comments