Class 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.GeneratedMessageV3.Builder<Artifact.Builder>
    implements ArtifactOrBuilder
     Artifact describes a build product.
     
    Protobuf type grafeas.v1beta1.provenance.Artifact
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Artifact.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Artifact.Builder>
      • setField

        public Artifact.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Artifact.Builder>
      • clearField

        public Artifact.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Artifact.Builder>
      • clearOneof

        public Artifact.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Artifact.Builder>
      • setRepeatedField

        public Artifact.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Artifact.Builder>
      • addRepeatedField

        public Artifact.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Artifact.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

        public final Artifact.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Artifact.Builder>
      • mergeUnknownFields

        public final Artifact.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Artifact.Builder>