Class Artifacts (0.14.1)

public final class Artifacts extends GeneratedMessageV3 implements ArtifactsOrBuilder

Artifacts produced by a build that should be uploaded upon successful completion of all build steps.

Protobuf type google.events.cloud.cloudbuild.v1.Artifacts

Implements

ArtifactsOrBuilder

Static Fields

IMAGES_FIELD_NUMBER

public static final int IMAGES_FIELD_NUMBER
Field Value
TypeDescription
int

OBJECTS_FIELD_NUMBER

public static final int OBJECTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Artifacts getDefaultInstance()
Returns
TypeDescription
Artifacts

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Artifacts.Builder newBuilder()
Returns
TypeDescription
Artifacts.Builder

newBuilder(Artifacts prototype)

public static Artifacts.Builder newBuilder(Artifacts prototype)
Parameter
NameDescription
prototypeArtifacts
Returns
TypeDescription
Artifacts.Builder

parseDelimitedFrom(InputStream input)

public static Artifacts parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Artifacts
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Artifacts parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Artifacts
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Artifacts parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Artifacts
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Artifacts parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Artifacts
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Artifacts parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Artifacts
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Artifacts parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Artifacts
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Artifacts parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Artifacts
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Artifacts parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Artifacts
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Artifacts parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Artifacts
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Artifacts parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Artifacts
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Artifacts parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Artifacts
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Artifacts parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Artifacts
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Artifacts> parser()
Returns
TypeDescription
Parser<Artifacts>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Artifacts getDefaultInstanceForType()
Returns
TypeDescription
Artifacts

getImages(int index)

public String getImages(int index)

A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE.

repeated string images = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The images at the given index.

getImagesBytes(int index)

public ByteString getImagesBytes(int index)

A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE.

repeated string images = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the images at the given index.

getImagesCount()

public int getImagesCount()

A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE.

repeated string images = 1;

Returns
TypeDescription
int

The count of images.

getImagesList()

public ProtocolStringList getImagesList()

A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE.

repeated string images = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the images.

getObjects()

public Artifacts.ArtifactObjects getObjects()

A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE.

.google.events.cloud.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;

Returns
TypeDescription
Artifacts.ArtifactObjects

The objects.

getObjectsOrBuilder()

public Artifacts.ArtifactObjectsOrBuilder getObjectsOrBuilder()

A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE.

.google.events.cloud.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;

Returns
TypeDescription
Artifacts.ArtifactObjectsOrBuilder

getParserForType()

public Parser<Artifacts> getParserForType()
Returns
TypeDescription
Parser<Artifacts>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasObjects()

public boolean hasObjects()

A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE.

.google.events.cloud.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;

Returns
TypeDescription
boolean

Whether the objects field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Artifacts.Builder newBuilderForType()
Returns
TypeDescription
Artifacts.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Artifacts.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Artifacts.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Artifacts.Builder toBuilder()
Returns
TypeDescription
Artifacts.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException