Class Artifacts.MavenArtifact.Builder (3.46.0)

public static final class Artifacts.MavenArtifact.Builder extends GeneratedMessageV3.Builder<Artifacts.MavenArtifact.Builder> implements Artifacts.MavenArtifactOrBuilder

A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.

Protobuf type google.devtools.cloudbuild.v1.Artifacts.MavenArtifact

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Artifacts.MavenArtifact.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Artifacts.MavenArtifact.Builder
Overrides

build()

public Artifacts.MavenArtifact build()
Returns
Type Description
Artifacts.MavenArtifact

buildPartial()

public Artifacts.MavenArtifact buildPartial()
Returns
Type Description
Artifacts.MavenArtifact

clear()

public Artifacts.MavenArtifact.Builder clear()
Returns
Type Description
Artifacts.MavenArtifact.Builder
Overrides

clearArtifactId()

public Artifacts.MavenArtifact.Builder clearArtifactId()

Maven artifactId value used when uploading the artifact to Artifact Registry.

string artifact_id = 3;

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Artifacts.MavenArtifact.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Artifacts.MavenArtifact.Builder
Overrides

clearGroupId()

public Artifacts.MavenArtifact.Builder clearGroupId()

Maven groupId value used when uploading the artifact to Artifact Registry.

string group_id = 4;

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Artifacts.MavenArtifact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Artifacts.MavenArtifact.Builder
Overrides

clearPath()

public Artifacts.MavenArtifact.Builder clearPath()

Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.

string path = 2;

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.

clearRepository()

public Artifacts.MavenArtifact.Builder clearRepository()

Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"

Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.

string repository = 1;

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.

clearVersion()

public Artifacts.MavenArtifact.Builder clearVersion()

Maven version value used when uploading the artifact to Artifact Registry.

string version = 5;

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.

clone()

public Artifacts.MavenArtifact.Builder clone()
Returns
Type Description
Artifacts.MavenArtifact.Builder
Overrides

getArtifactId()

public String getArtifactId()

Maven artifactId value used when uploading the artifact to Artifact Registry.

string artifact_id = 3;

Returns
Type Description
String

The artifactId.

getArtifactIdBytes()

public ByteString getArtifactIdBytes()

Maven artifactId value used when uploading the artifact to Artifact Registry.

string artifact_id = 3;

Returns
Type Description
ByteString

The bytes for artifactId.

getDefaultInstanceForType()

public Artifacts.MavenArtifact getDefaultInstanceForType()
Returns
Type Description
Artifacts.MavenArtifact

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGroupId()

public String getGroupId()

Maven groupId value used when uploading the artifact to Artifact Registry.

string group_id = 4;

Returns
Type Description
String

The groupId.

getGroupIdBytes()

public ByteString getGroupIdBytes()

Maven groupId value used when uploading the artifact to Artifact Registry.

string group_id = 4;

Returns
Type Description
ByteString

The bytes for groupId.

getPath()

public String getPath()

Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.

string path = 2;

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.

string path = 2;

Returns
Type Description
ByteString

The bytes for path.

getRepository()

public String getRepository()

Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"

Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.

string repository = 1;

Returns
Type Description
String

The repository.

getRepositoryBytes()

public ByteString getRepositoryBytes()

Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"

Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.

string repository = 1;

Returns
Type Description
ByteString

The bytes for repository.

getVersion()

public String getVersion()

Maven version value used when uploading the artifact to Artifact Registry.

string version = 5;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Maven version value used when uploading the artifact to Artifact Registry.

string version = 5;

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Artifacts.MavenArtifact other)

public Artifacts.MavenArtifact.Builder mergeFrom(Artifacts.MavenArtifact other)
Parameter
Name Description
other Artifacts.MavenArtifact
Returns
Type Description
Artifacts.MavenArtifact.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Artifacts.MavenArtifact.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Artifacts.MavenArtifact.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Artifacts.MavenArtifact.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Artifacts.MavenArtifact.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Artifacts.MavenArtifact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Artifacts.MavenArtifact.Builder
Overrides

setArtifactId(String value)

public Artifacts.MavenArtifact.Builder setArtifactId(String value)

Maven artifactId value used when uploading the artifact to Artifact Registry.

string artifact_id = 3;

Parameter
Name Description
value String

The artifactId to set.

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.

setArtifactIdBytes(ByteString value)

public Artifacts.MavenArtifact.Builder setArtifactIdBytes(ByteString value)

Maven artifactId value used when uploading the artifact to Artifact Registry.

string artifact_id = 3;

Parameter
Name Description
value ByteString

The bytes for artifactId to set.

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Artifacts.MavenArtifact.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Artifacts.MavenArtifact.Builder
Overrides

setGroupId(String value)

public Artifacts.MavenArtifact.Builder setGroupId(String value)

Maven groupId value used when uploading the artifact to Artifact Registry.

string group_id = 4;

Parameter
Name Description
value String

The groupId to set.

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.

setGroupIdBytes(ByteString value)

public Artifacts.MavenArtifact.Builder setGroupIdBytes(ByteString value)

Maven groupId value used when uploading the artifact to Artifact Registry.

string group_id = 4;

Parameter
Name Description
value ByteString

The bytes for groupId to set.

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.

setPath(String value)

public Artifacts.MavenArtifact.Builder setPath(String value)

Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.

string path = 2;

Parameter
Name Description
value String

The path to set.

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.

setPathBytes(ByteString value)

public Artifacts.MavenArtifact.Builder setPathBytes(ByteString value)

Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.

string path = 2;

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Artifacts.MavenArtifact.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Artifacts.MavenArtifact.Builder
Overrides

setRepository(String value)

public Artifacts.MavenArtifact.Builder setRepository(String value)

Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"

Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.

string repository = 1;

Parameter
Name Description
value String

The repository to set.

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.

setRepositoryBytes(ByteString value)

public Artifacts.MavenArtifact.Builder setRepositoryBytes(ByteString value)

Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"

Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.

string repository = 1;

Parameter
Name Description
value ByteString

The bytes for repository to set.

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Artifacts.MavenArtifact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Artifacts.MavenArtifact.Builder
Overrides

setVersion(String value)

public Artifacts.MavenArtifact.Builder setVersion(String value)

Maven version value used when uploading the artifact to Artifact Registry.

string version = 5;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public Artifacts.MavenArtifact.Builder setVersionBytes(ByteString value)

Maven version value used when uploading the artifact to Artifact Registry.

string version = 5;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.