Class Artifacts.MavenArtifact.Builder (3.85.0)

public static final class Artifacts.MavenArtifact.Builder extends GeneratedMessage.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

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.

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.

clearPath()

public Artifacts.MavenArtifact.Builder clearPath()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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.

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()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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 GeneratedMessage.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

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.

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)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
Artifacts.MavenArtifact.Builder

This builder for chaining.

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.

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.