public static final class Artifact.Builder extends GeneratedMessageV3.Builder<Artifact.Builder> implements ArtifactOrBuilder
Artifact describes a build product.
Protobuf type grafeas.v1.Artifact
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Artifact.BuilderImplements
ArtifactOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllNames(Iterable<String> values)
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;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The names to add. |
Returns | |
---|---|
Type | Description |
Artifact.Builder | This builder for chaining. |
addNames(String value)
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;
Parameter | |
---|---|
Name | Description |
value | String The names to add. |
Returns | |
---|---|
Type | Description |
Artifact.Builder | This builder for chaining. |
addNamesBytes(ByteString value)
public Artifact.Builder addNamesBytes(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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the names to add. |
Returns | |
---|---|
Type | Description |
Artifact.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Artifact.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Artifact.Builder |