Package io.grafeas.v1beta1.provenance
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 TypeMethodDescriptionaddAllNames(Iterable<String> values) Related artifact names.Related artifact names.addNamesBytes(com.google.protobuf.ByteString value) Related artifact names.build()clear()Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.clearId()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.ByteStringHash or checksum value of a binary, or Docker Registry 2.0 digest of a container.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`.com.google.protobuf.ByteStringArtifact 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.ByteStringgetNamesBytes(int index) Related artifact names.intRelated artifact names.com.google.protobuf.ProtocolStringListRelated artifact names.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setChecksum(String value) 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.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`.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, 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<Artifact.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<Artifact.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<Artifact.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<Artifact.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Artifact.Builder>- Throws:
IOException
-
getChecksum
Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
string checksum = 1;- Specified by:
getChecksumin interfaceArtifactOrBuilder- 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:
getChecksumBytesin interfaceArtifactOrBuilder- Returns:
- The bytes for checksum.
-
setChecksum
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
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
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
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:
getIdin interfaceArtifactOrBuilder- 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:
getIdBytesin interfaceArtifactOrBuilder- Returns:
- The bytes for id.
-
setId
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
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
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:
getNamesListin interfaceArtifactOrBuilder- 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:
getNamesCountin interfaceArtifactOrBuilder- Returns:
- The count of names.
-
getNames
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:
getNamesin interfaceArtifactOrBuilder- 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:
getNamesBytesin interfaceArtifactOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the names at the given index.
-
setNames
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
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
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
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
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.
-