Class Artifacts.MavenArtifact.Builder (3.43.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Artifacts.MavenArtifact.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Artifacts.MavenArtifact.Builder
Overrides

build()

public Artifacts.MavenArtifact build()
Returns
TypeDescription
Artifacts.MavenArtifact

buildPartial()

public Artifacts.MavenArtifact buildPartial()
Returns
TypeDescription
Artifacts.MavenArtifact

clear()

public Artifacts.MavenArtifact.Builder clear()
Returns
TypeDescription
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
TypeDescription
Artifacts.MavenArtifact.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Artifacts.MavenArtifact.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Artifacts.MavenArtifact.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Artifacts.MavenArtifact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Artifacts.MavenArtifact.Builder

This builder for chaining.

clone()

public Artifacts.MavenArtifact.Builder clone()
Returns
TypeDescription
Artifacts.MavenArtifact.Builder
Overrides

getArtifactId()

public String getArtifactId()

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

string artifact_id = 3;

Returns
TypeDescription
String

The artifactId.

getArtifactIdBytes()

public ByteString getArtifactIdBytes()

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

string artifact_id = 3;

Returns
TypeDescription
ByteString

The bytes for artifactId.

getDefaultInstanceForType()

public Artifacts.MavenArtifact getDefaultInstanceForType()
Returns
TypeDescription
Artifacts.MavenArtifact

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGroupId()

public String getGroupId()

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

string group_id = 4;

Returns
TypeDescription
String

The groupId.

getGroupIdBytes()

public ByteString getGroupIdBytes()

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

string group_id = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for repository.

getVersion()

public String getVersion()

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

string version = 5;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

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

string version = 5;

Returns
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Artifacts.MavenArtifact other)

public Artifacts.MavenArtifact.Builder mergeFrom(Artifacts.MavenArtifact other)
Parameter
NameDescription
otherArtifacts.MavenArtifact
Returns
TypeDescription
Artifacts.MavenArtifact.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Artifacts.MavenArtifact.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Artifacts.MavenArtifact.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Artifacts.MavenArtifact.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Artifacts.MavenArtifact.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Artifacts.MavenArtifact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The artifactId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for artifactId to set.

Returns
TypeDescription
Artifacts.MavenArtifact.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Artifacts.MavenArtifact.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The groupId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for groupId to set.

Returns
TypeDescription
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
NameDescription
valueString

The path to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The repository to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for repository to set.

Returns
TypeDescription
Artifacts.MavenArtifact.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Artifacts.MavenArtifact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The version to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
Artifacts.MavenArtifact.Builder

This builder for chaining.