Class ImageManifest.Builder (1.80.0)

public static final class ImageManifest.Builder extends GeneratedMessageV3.Builder<ImageManifest.Builder> implements ImageManifestOrBuilder

Details of a single image manifest within a multi-arch image.

Protobuf type google.devtools.artifactregistry.v1.ImageManifest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllOsFeatures(Iterable<String> values)

public ImageManifest.Builder addAllOsFeatures(Iterable<String> values)

Optional. The required OS features for the image, for example on Windows win32k.

repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The osFeatures to add.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

addOsFeatures(String value)

public ImageManifest.Builder addOsFeatures(String value)

Optional. The required OS features for the image, for example on Windows win32k.

repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The osFeatures to add.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

addOsFeaturesBytes(ByteString value)

public ImageManifest.Builder addOsFeaturesBytes(ByteString value)

Optional. The required OS features for the image, for example on Windows win32k.

repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the osFeatures to add.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImageManifest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImageManifest.Builder
Overrides

build()

public ImageManifest build()
Returns
Type Description
ImageManifest

buildPartial()

public ImageManifest buildPartial()
Returns
Type Description
ImageManifest

clear()

public ImageManifest.Builder clear()
Returns
Type Description
ImageManifest.Builder
Overrides

clearArchitecture()

public ImageManifest.Builder 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
Type Description
ImageManifest.Builder

This builder for chaining.

clearDigest()

public ImageManifest.Builder clearDigest()

Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".

string digest = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ImageManifest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ImageManifest.Builder
Overrides

clearMediaType()

public ImageManifest.Builder 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
Type Description
ImageManifest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImageManifest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ImageManifest.Builder
Overrides

clearOs()

public ImageManifest.Builder 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
Type Description
ImageManifest.Builder

This builder for chaining.

clearOsFeatures()

public ImageManifest.Builder 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
Type Description
ImageManifest.Builder

This builder for chaining.

clearOsVersion()

public ImageManifest.Builder 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
Type Description
ImageManifest.Builder

This builder for chaining.

clearVariant()

public ImageManifest.Builder 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
Type Description
ImageManifest.Builder

This builder for chaining.

clone()

public ImageManifest.Builder clone()
Returns
Type Description
ImageManifest.Builder
Overrides

getArchitecture()

public String 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];

Returns
Type Description
String

The architecture.

getArchitectureBytes()

public 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];

Returns
Type Description
ByteString

The bytes for architecture.

getDefaultInstanceForType()

public ImageManifest getDefaultInstanceForType()
Returns
Type Description
ImageManifest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDigest()

public String getDigest()

Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".

string digest = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The digest.

getDigestBytes()

public ByteString getDigestBytes()

Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".

string digest = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for digest.

getMediaType()

public String 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];

Returns
Type Description
String

The mediaType.

getMediaTypeBytes()

public 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];

Returns
Type Description
ByteString

The bytes for mediaType.

getOs()

public String 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];

Returns
Type Description
String

The os.

getOsBytes()

public 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];

Returns
Type Description
ByteString

The bytes for os.

getOsFeatures(int index)

public String getOsFeatures(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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The osFeatures at the given index.

getOsFeaturesBytes(int index)

public 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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the osFeatures at the given index.

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];

Returns
Type Description
int

The count of osFeatures.

getOsFeaturesList()

public 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];

Returns
Type Description
ProtocolStringList

A list containing the osFeatures.

getOsVersion()

public String 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];

Returns
Type Description
String

The osVersion.

getOsVersionBytes()

public 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];

Returns
Type Description
ByteString

The bytes for osVersion.

getVariant()

public String 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];

Returns
Type Description
String

The variant.

getVariantBytes()

public 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];

Returns
Type Description
ByteString

The bytes for variant.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImageManifest other)

public ImageManifest.Builder mergeFrom(ImageManifest other)
Parameter
Name Description
other ImageManifest
Returns
Type Description
ImageManifest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImageManifest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageManifest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ImageManifest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ImageManifest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImageManifest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImageManifest.Builder
Overrides

setArchitecture(String value)

public ImageManifest.Builder setArchitecture(String value)

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];

Parameter
Name Description
value String

The architecture to set.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

setArchitectureBytes(ByteString value)

public ImageManifest.Builder setArchitectureBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for architecture to set.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

setDigest(String value)

public ImageManifest.Builder setDigest(String value)

Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".

string digest = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The digest to set.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

setDigestBytes(ByteString value)

public ImageManifest.Builder setDigestBytes(ByteString value)

Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".

string digest = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for digest to set.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ImageManifest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImageManifest.Builder
Overrides

setMediaType(String value)

public ImageManifest.Builder setMediaType(String value)

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];

Parameter
Name Description
value String

The mediaType to set.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

setMediaTypeBytes(ByteString value)

public ImageManifest.Builder setMediaTypeBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for mediaType to set.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

setOs(String value)

public ImageManifest.Builder setOs(String value)

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];

Parameter
Name Description
value String

The os to set.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

setOsBytes(ByteString value)

public ImageManifest.Builder setOsBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for os to set.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

setOsFeatures(int index, String value)

public ImageManifest.Builder setOsFeatures(int index, String value)

Optional. The required OS features for the image, for example on Windows win32k.

repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The osFeatures to set.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

setOsVersion(String value)

public ImageManifest.Builder setOsVersion(String value)

Optional. The OS version of the image, for example on Windows 10.0.14393.1066.

string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The osVersion to set.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

setOsVersionBytes(ByteString value)

public ImageManifest.Builder setOsVersionBytes(ByteString value)

Optional. The OS version of the image, for example on Windows 10.0.14393.1066.

string os_version = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for osVersion to set.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImageManifest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImageManifest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImageManifest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImageManifest.Builder
Overrides

setVariant(String value)

public ImageManifest.Builder setVariant(String value)

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];

Parameter
Name Description
value String

The variant to set.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.

setVariantBytes(ByteString value)

public ImageManifest.Builder setVariantBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for variant to set.

Returns
Type Description
ImageManifest.Builder

This builder for chaining.