Class ImageManifest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImageManifest.Builder>
com.google.devtools.artifactregistry.v1.ImageManifest.Builder
- All Implemented Interfaces:
ImageManifestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImageManifest
public static final class ImageManifest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ImageManifest.Builder>
implements ImageManifestOrBuilder
Details of a single image manifest within a multi-arch image.Protobuf type
google.devtools.artifactregistry.v1.ImageManifest-
Method Summary
Modifier and TypeMethodDescriptionaddAllOsFeatures(Iterable<String> values) Optional.addOsFeatures(String value) Optional.addOsFeaturesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Optional.clearOs()Optional.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.getOs()Optional.com.google.protobuf.ByteStringOptional.getOsFeatures(int index) Optional.com.google.protobuf.ByteStringgetOsFeaturesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ImageManifest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setArchitecture(String value) Optional.setArchitectureBytes(com.google.protobuf.ByteString value) Optional.Optional.setDigestBytes(com.google.protobuf.ByteString value) Optional.setMediaType(String value) Optional.setMediaTypeBytes(com.google.protobuf.ByteString value) Optional.Optional.setOsBytes(com.google.protobuf.ByteString value) Optional.setOsFeatures(int index, String value) Optional.setOsVersion(String value) Optional.setOsVersionBytes(com.google.protobuf.ByteString value) Optional.setVariant(String value) Optional.setVariantBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ImageManifest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ImageManifest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ImageManifest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImageManifest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ImageManifest.Builder>
-
mergeFrom
public ImageManifest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImageManifest.Builder>- Throws:
IOException
-
getArchitecture
Optional. The CPU architecture of the image. Values are provided by the Docker client and are not validated by Artifact Registry. Example values include "amd64", "arm64", "ppc64le", "s390x", "riscv64", "mips64le", etc.
string architecture = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArchitecturein interfaceImageManifestOrBuilder- Returns:
- The architecture.
-
getArchitectureBytes
public com.google.protobuf.ByteString getArchitectureBytes()Optional. The CPU architecture of the image. Values are provided by the Docker client and are not validated by Artifact Registry. Example values include "amd64", "arm64", "ppc64le", "s390x", "riscv64", "mips64le", etc.
string architecture = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArchitectureBytesin interfaceImageManifestOrBuilder- Returns:
- The bytes for architecture.
-
setArchitecture
Optional. The CPU architecture of the image. Values are provided by the Docker client and are not validated by Artifact Registry. Example values include "amd64", "arm64", "ppc64le", "s390x", "riscv64", "mips64le", etc.
string architecture = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The architecture to set.- Returns:
- This builder for chaining.
-
clearArchitecture
Optional. The CPU architecture of the image. Values are provided by the Docker client and are not validated by Artifact Registry. Example values include "amd64", "arm64", "ppc64le", "s390x", "riscv64", "mips64le", etc.
string architecture = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setArchitectureBytes
Optional. The CPU architecture of the image. Values are provided by the Docker client and are not validated by Artifact Registry. Example values include "amd64", "arm64", "ppc64le", "s390x", "riscv64", "mips64le", etc.
string architecture = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for architecture to set.- Returns:
- This builder for chaining.
-
getOs
Optional. The operating system of the image. Values are provided by the Docker client and are not validated by Artifact Registry. Example values include "linux", "windows", "darwin", "aix", etc.
string os = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOsin interfaceImageManifestOrBuilder- Returns:
- The os.
-
getOsBytes
public com.google.protobuf.ByteString getOsBytes()Optional. The operating system of the image. Values are provided by the Docker client and are not validated by Artifact Registry. Example values include "linux", "windows", "darwin", "aix", etc.
string os = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOsBytesin interfaceImageManifestOrBuilder- Returns:
- The bytes for os.
-
setOs
Optional. The operating system of the image. Values are provided by the Docker client and are not validated by Artifact Registry. Example values include "linux", "windows", "darwin", "aix", etc.
string os = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The os to set.- Returns:
- This builder for chaining.
-
clearOs
Optional. The operating system of the image. Values are provided by the Docker client and are not validated by Artifact Registry. Example values include "linux", "windows", "darwin", "aix", etc.
string os = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setOsBytes
Optional. The operating system of the image. Values are provided by the Docker client and are not validated by Artifact Registry. Example values include "linux", "windows", "darwin", "aix", etc.
string os = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for os to set.- Returns:
- This builder for chaining.
-
getDigest
Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
string digest = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDigestin interfaceImageManifestOrBuilder- Returns:
- The digest.
-
getDigestBytes
public com.google.protobuf.ByteString getDigestBytes()Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
string digest = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDigestBytesin interfaceImageManifestOrBuilder- Returns:
- The bytes for digest.
-
setDigest
Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
string digest = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The digest to set.- Returns:
- This builder for chaining.
-
clearDigest
Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
string digest = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDigestBytes
Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
string digest = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for digest to set.- Returns:
- This builder for chaining.
-
getMediaType
Optional. The media type of the manifest, e.g., "application/vnd.docker.distribution.manifest.v2+json"
string media_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMediaTypein interfaceImageManifestOrBuilder- Returns:
- The mediaType.
-
getMediaTypeBytes
public com.google.protobuf.ByteString getMediaTypeBytes()Optional. The media type of the manifest, e.g., "application/vnd.docker.distribution.manifest.v2+json"
string media_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMediaTypeBytesin interfaceImageManifestOrBuilder- Returns:
- The bytes for mediaType.
-
setMediaType
Optional. The media type of the manifest, e.g., "application/vnd.docker.distribution.manifest.v2+json"
string media_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The mediaType to set.- Returns:
- This builder for chaining.
-
clearMediaType
Optional. The media type of the manifest, e.g., "application/vnd.docker.distribution.manifest.v2+json"
string media_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setMediaTypeBytes
Optional. The media type of the manifest, e.g., "application/vnd.docker.distribution.manifest.v2+json"
string media_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for mediaType to set.- Returns:
- This builder for chaining.
-
getOsVersion
Optional. The OS version of the image, for example on Windows `10.0.14393.1066`.
string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOsVersionin interfaceImageManifestOrBuilder- Returns:
- The osVersion.
-
getOsVersionBytes
public com.google.protobuf.ByteString getOsVersionBytes()Optional. The OS version of the image, for example on Windows `10.0.14393.1066`.
string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOsVersionBytesin interfaceImageManifestOrBuilder- Returns:
- The bytes for osVersion.
-
setOsVersion
Optional. The OS version of the image, for example on Windows `10.0.14393.1066`.
string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The osVersion to set.- Returns:
- This builder for chaining.
-
clearOsVersion
Optional. The OS version of the image, for example on Windows `10.0.14393.1066`.
string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setOsVersionBytes
Optional. The OS version of the image, for example on Windows `10.0.14393.1066`.
string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for osVersion to set.- Returns:
- This builder for chaining.
-
getOsFeaturesList
public com.google.protobuf.ProtocolStringList getOsFeaturesList()Optional. The required OS features for the image, for example on Windows `win32k`.
repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOsFeaturesListin interfaceImageManifestOrBuilder- Returns:
- A list containing the osFeatures.
-
getOsFeaturesCount
public int getOsFeaturesCount()Optional. The required OS features for the image, for example on Windows `win32k`.
repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOsFeaturesCountin interfaceImageManifestOrBuilder- Returns:
- The count of osFeatures.
-
getOsFeatures
Optional. The required OS features for the image, for example on Windows `win32k`.
repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOsFeaturesin interfaceImageManifestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The osFeatures at the given index.
-
getOsFeaturesBytes
public com.google.protobuf.ByteString getOsFeaturesBytes(int index) Optional. The required OS features for the image, for example on Windows `win32k`.
repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOsFeaturesBytesin interfaceImageManifestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the osFeatures at the given index.
-
setOsFeatures
Optional. The required OS features for the image, for example on Windows `win32k`.
repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The osFeatures to set.- Returns:
- This builder for chaining.
-
addOsFeatures
Optional. The required OS features for the image, for example on Windows `win32k`.
repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The osFeatures to add.- Returns:
- This builder for chaining.
-
addAllOsFeatures
Optional. The required OS features for the image, for example on Windows `win32k`.
repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The osFeatures to add.- Returns:
- This builder for chaining.
-
clearOsFeatures
Optional. The required OS features for the image, for example on Windows `win32k`.
repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addOsFeaturesBytes
Optional. The required OS features for the image, for example on Windows `win32k`.
repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the osFeatures to add.- Returns:
- This builder for chaining.
-
getVariant
Optional. The variant of the CPU in the image, for example `v7` to specify ARMv7 when architecture is `arm`.
string variant = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVariantin interfaceImageManifestOrBuilder- Returns:
- The variant.
-
getVariantBytes
public com.google.protobuf.ByteString getVariantBytes()Optional. The variant of the CPU in the image, for example `v7` to specify ARMv7 when architecture is `arm`.
string variant = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVariantBytesin interfaceImageManifestOrBuilder- Returns:
- The bytes for variant.
-
setVariant
Optional. The variant of the CPU in the image, for example `v7` to specify ARMv7 when architecture is `arm`.
string variant = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The variant to set.- Returns:
- This builder for chaining.
-
clearVariant
Optional. The variant of the CPU in the image, for example `v7` to specify ARMv7 when architecture is `arm`.
string variant = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setVariantBytes
Optional. The variant of the CPU in the image, for example `v7` to specify ARMv7 when architecture is `arm`.
string variant = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for variant to set.- Returns:
- This builder for chaining.
-