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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ImageManifest.Builder>
    • clear

      public ImageManifest.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ImageManifest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ImageManifest.Builder>
    • getDefaultInstanceForType

      public ImageManifest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ImageManifest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ImageManifest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ImageManifest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageManifest.Builder>
    • mergeFrom

      public ImageManifest.Builder mergeFrom(ImageManifest other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageManifest.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getArchitecture in interface ImageManifestOrBuilder
      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:
      getArchitectureBytes in interface ImageManifestOrBuilder
      Returns:
      The bytes for architecture.
    • setArchitecture

      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];
      Parameters:
      value - The architecture to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setArchitectureBytes

      public ImageManifest.Builder setArchitectureBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for architecture to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getOs in interface ImageManifestOrBuilder
      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:
      getOsBytes in interface ImageManifestOrBuilder
      Returns:
      The bytes for os.
    • setOs

      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];
      Parameters:
      value - The os to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setOsBytes

      public ImageManifest.Builder setOsBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for os to set.
      Returns:
      This builder for chaining.
    • getDigest

      public String getDigest()
       Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
       
      string digest = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDigest in interface ImageManifestOrBuilder
      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:
      getDigestBytes in interface ImageManifestOrBuilder
      Returns:
      The bytes for digest.
    • setDigest

      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];
      Parameters:
      value - The digest to set.
      Returns:
      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:
      This builder for chaining.
    • setDigestBytes

      public ImageManifest.Builder setDigestBytes(com.google.protobuf.ByteString value)
       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

      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];
      Specified by:
      getMediaType in interface ImageManifestOrBuilder
      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:
      getMediaTypeBytes in interface ImageManifestOrBuilder
      Returns:
      The bytes for mediaType.
    • setMediaType

      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];
      Parameters:
      value - The mediaType to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setMediaTypeBytes

      public ImageManifest.Builder setMediaTypeBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for mediaType to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getOsVersion in interface ImageManifestOrBuilder
      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:
      getOsVersionBytes in interface ImageManifestOrBuilder
      Returns:
      The bytes for osVersion.
    • setOsVersion

      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];
      Parameters:
      value - The osVersion to set.
      Returns:
      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:
      This builder for chaining.
    • setOsVersionBytes

      public ImageManifest.Builder setOsVersionBytes(com.google.protobuf.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];
      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:
      getOsFeaturesList in interface ImageManifestOrBuilder
      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:
      getOsFeaturesCount in interface ImageManifestOrBuilder
      Returns:
      The count of osFeatures.
    • getOsFeatures

      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];
      Specified by:
      getOsFeatures in interface ImageManifestOrBuilder
      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:
      getOsFeaturesBytes in interface ImageManifestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the osFeatures at the given index.
    • setOsFeatures

      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:
      index - The index to set the value at.
      value - The osFeatures to set.
      Returns:
      This builder for chaining.
    • addOsFeatures

      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];
      Parameters:
      value - The osFeatures to add.
      Returns:
      This builder for chaining.
    • addAllOsFeatures

      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];
      Parameters:
      values - The osFeatures to add.
      Returns:
      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:
      This builder for chaining.
    • addOsFeaturesBytes

      public ImageManifest.Builder addOsFeaturesBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes of the osFeatures to add.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getVariant in interface ImageManifestOrBuilder
      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:
      getVariantBytes in interface ImageManifestOrBuilder
      Returns:
      The bytes for variant.
    • setVariant

      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];
      Parameters:
      value - The variant to set.
      Returns:
      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:
      This builder for chaining.
    • setVariantBytes

      public ImageManifest.Builder setVariantBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for variant to set.
      Returns:
      This builder for chaining.