Class Artifact.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Artifact.Builder>
io.grafeas.v1beta1.provenance.Artifact.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ArtifactOrBuilder, Cloneable
Enclosing class:
Artifact

public static final class Artifact.Builder extends com.google.protobuf.GeneratedMessage.Builder<Artifact.Builder> implements ArtifactOrBuilder
 Artifact describes a build product.
 
Protobuf type grafeas.v1beta1.provenance.Artifact
  • Method Summary

    Modifier and Type
    Method
    Description
    Related artifact names.
    Related artifact names.
    addNamesBytes(com.google.protobuf.ByteString value)
    Related artifact names.
     
     
     
    Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
    Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`.
    Related artifact names.
    Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
    com.google.protobuf.ByteString
    Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`.
    com.google.protobuf.ByteString
    Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`.
    getNames(int index)
    Related artifact names.
    com.google.protobuf.ByteString
    getNamesBytes(int index)
    Related artifact names.
    int
    Related artifact names.
    com.google.protobuf.ProtocolStringList
    Related artifact names.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
    setChecksumBytes(com.google.protobuf.ByteString value)
    Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
    setId(String value)
    Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`.
    setIdBytes(com.google.protobuf.ByteString value)
    Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`.
    setNames(int index, String value)
    Related artifact names.

    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Artifact.Builder>
    • clear

      public Artifact.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<Artifact.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<Artifact.Builder>
    • getDefaultInstanceForType

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

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

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

      public Artifact.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<Artifact.Builder>
    • mergeFrom

      public Artifact.Builder mergeFrom(Artifact other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Artifact.Builder>
    • mergeFrom

      public Artifact.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<Artifact.Builder>
      Throws:
      IOException
    • getChecksum

      public String getChecksum()
       Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
       container.
       
      string checksum = 1;
      Specified by:
      getChecksum in interface ArtifactOrBuilder
      Returns:
      The checksum.
    • getChecksumBytes

      public com.google.protobuf.ByteString getChecksumBytes()
       Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
       container.
       
      string checksum = 1;
      Specified by:
      getChecksumBytes in interface ArtifactOrBuilder
      Returns:
      The bytes for checksum.
    • setChecksum

      public Artifact.Builder setChecksum(String value)
       Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
       container.
       
      string checksum = 1;
      Parameters:
      value - The checksum to set.
      Returns:
      This builder for chaining.
    • clearChecksum

      public Artifact.Builder clearChecksum()
       Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
       container.
       
      string checksum = 1;
      Returns:
      This builder for chaining.
    • setChecksumBytes

      public Artifact.Builder setChecksumBytes(com.google.protobuf.ByteString value)
       Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
       container.
       
      string checksum = 1;
      Parameters:
      value - The bytes for checksum to set.
      Returns:
      This builder for chaining.
    • getId

      public String getId()
       Artifact ID, if any; for container images, this will be a URL by digest
       like `gcr.io/projectID/imagename@sha256:123456`.
       
      string id = 2;
      Specified by:
      getId in interface ArtifactOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Artifact ID, if any; for container images, this will be a URL by digest
       like `gcr.io/projectID/imagename@sha256:123456`.
       
      string id = 2;
      Specified by:
      getIdBytes in interface ArtifactOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Artifact.Builder setId(String value)
       Artifact ID, if any; for container images, this will be a URL by digest
       like `gcr.io/projectID/imagename@sha256:123456`.
       
      string id = 2;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Artifact.Builder clearId()
       Artifact ID, if any; for container images, this will be a URL by digest
       like `gcr.io/projectID/imagename@sha256:123456`.
       
      string id = 2;
      Returns:
      This builder for chaining.
    • setIdBytes

      public Artifact.Builder setIdBytes(com.google.protobuf.ByteString value)
       Artifact ID, if any; for container images, this will be a URL by digest
       like `gcr.io/projectID/imagename@sha256:123456`.
       
      string id = 2;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getNamesList

      public com.google.protobuf.ProtocolStringList getNamesList()
       Related artifact names. This may be the path to a binary or jar file, or in
       the case of a container build, the name used to push the container image to
       Google Container Registry, as presented to `docker push`. Note that a
       single Artifact ID can have multiple names, for example if two tags are
       applied to one image.
       
      repeated string names = 3;
      Specified by:
      getNamesList in interface ArtifactOrBuilder
      Returns:
      A list containing the names.
    • getNamesCount

      public int getNamesCount()
       Related artifact names. This may be the path to a binary or jar file, or in
       the case of a container build, the name used to push the container image to
       Google Container Registry, as presented to `docker push`. Note that a
       single Artifact ID can have multiple names, for example if two tags are
       applied to one image.
       
      repeated string names = 3;
      Specified by:
      getNamesCount in interface ArtifactOrBuilder
      Returns:
      The count of names.
    • getNames

      public String getNames(int index)
       Related artifact names. This may be the path to a binary or jar file, or in
       the case of a container build, the name used to push the container image to
       Google Container Registry, as presented to `docker push`. Note that a
       single Artifact ID can have multiple names, for example if two tags are
       applied to one image.
       
      repeated string names = 3;
      Specified by:
      getNames in interface ArtifactOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The names at the given index.
    • getNamesBytes

      public com.google.protobuf.ByteString getNamesBytes(int index)
       Related artifact names. This may be the path to a binary or jar file, or in
       the case of a container build, the name used to push the container image to
       Google Container Registry, as presented to `docker push`. Note that a
       single Artifact ID can have multiple names, for example if two tags are
       applied to one image.
       
      repeated string names = 3;
      Specified by:
      getNamesBytes in interface ArtifactOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the names at the given index.
    • setNames

      public Artifact.Builder setNames(int index, String value)
       Related artifact names. This may be the path to a binary or jar file, or in
       the case of a container build, the name used to push the container image to
       Google Container Registry, as presented to `docker push`. Note that a
       single Artifact ID can have multiple names, for example if two tags are
       applied to one image.
       
      repeated string names = 3;
      Parameters:
      index - The index to set the value at.
      value - The names to set.
      Returns:
      This builder for chaining.
    • addNames

      public Artifact.Builder addNames(String value)
       Related artifact names. This may be the path to a binary or jar file, or in
       the case of a container build, the name used to push the container image to
       Google Container Registry, as presented to `docker push`. Note that a
       single Artifact ID can have multiple names, for example if two tags are
       applied to one image.
       
      repeated string names = 3;
      Parameters:
      value - The names to add.
      Returns:
      This builder for chaining.
    • addAllNames

      public Artifact.Builder addAllNames(Iterable<String> values)
       Related artifact names. This may be the path to a binary or jar file, or in
       the case of a container build, the name used to push the container image to
       Google Container Registry, as presented to `docker push`. Note that a
       single Artifact ID can have multiple names, for example if two tags are
       applied to one image.
       
      repeated string names = 3;
      Parameters:
      values - The names to add.
      Returns:
      This builder for chaining.
    • clearNames

      public Artifact.Builder clearNames()
       Related artifact names. This may be the path to a binary or jar file, or in
       the case of a container build, the name used to push the container image to
       Google Container Registry, as presented to `docker push`. Note that a
       single Artifact ID can have multiple names, for example if two tags are
       applied to one image.
       
      repeated string names = 3;
      Returns:
      This builder for chaining.
    • addNamesBytes

      public Artifact.Builder addNamesBytes(com.google.protobuf.ByteString value)
       Related artifact names. This may be the path to a binary or jar file, or in
       the case of a container build, the name used to push the container image to
       Google Container Registry, as presented to `docker push`. Note that a
       single Artifact ID can have multiple names, for example if two tags are
       applied to one image.
       
      repeated string names = 3;
      Parameters:
      value - The bytes of the names to add.
      Returns:
      This builder for chaining.