Class MavenArtifact (1.40.0)

public final class MavenArtifact extends GeneratedMessageV3 implements MavenArtifactOrBuilder

MavenArtifact represents a maven artifact.

Protobuf type google.devtools.artifactregistry.v1.MavenArtifact

Static Fields

ARTIFACT_ID_FIELD_NUMBER

public static final int ARTIFACT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

GROUP_ID_FIELD_NUMBER

public static final int GROUP_ID_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

POM_URI_FIELD_NUMBER

public static final int POM_URI_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MavenArtifact getDefaultInstance()
Returns
TypeDescription
MavenArtifact

getDescriptor()

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

newBuilder()

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

newBuilder(MavenArtifact prototype)

public static MavenArtifact.Builder newBuilder(MavenArtifact prototype)
Parameter
NameDescription
prototypeMavenArtifact
Returns
TypeDescription
MavenArtifact.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getArtifactId()

public String getArtifactId()

Artifact ID for the artifact.

string artifact_id = 4;

Returns
TypeDescription
String

The artifactId.

getArtifactIdBytes()

public ByteString getArtifactIdBytes()

Artifact ID for the artifact.

string artifact_id = 4;

Returns
TypeDescription
ByteString

The bytes for artifactId.

getCreateTime()

public Timestamp getCreateTime()

Output only. Time the artifact was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time the artifact was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public MavenArtifact getDefaultInstanceForType()
Returns
TypeDescription
MavenArtifact

getGroupId()

public String getGroupId()

Group ID for the artifact. Example: com.google.guava

string group_id = 3;

Returns
TypeDescription
String

The groupId.

getGroupIdBytes()

public ByteString getGroupIdBytes()

Group ID for the artifact. Example: com.google.guava

string group_id = 3;

Returns
TypeDescription
ByteString

The bytes for groupId.

getName()

public String getName()

Required. registry_location, project_id, repository_name and maven_artifact forms a unique artifact For example, "projects/test-project/locations/us-west4/repositories/test-repo/mavenArtifacts/ com.google.guava:guava:31.0-jre", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and "com.google.guava:guava:31.0-jre" is the maven artifact.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. registry_location, project_id, repository_name and maven_artifact forms a unique artifact For example, "projects/test-project/locations/us-west4/repositories/test-repo/mavenArtifacts/ com.google.guava:guava:31.0-jre", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and "com.google.guava:guava:31.0-jre" is the maven artifact.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getPomUri()

public String getPomUri()

Required. URL to access the pom file of the artifact. Example: us-west4-maven.pkg.dev/test-project/test-repo/com/google/guava/guava/31.0/guava-31.0.pom

string pom_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The pomUri.

getPomUriBytes()

public ByteString getPomUriBytes()

Required. URL to access the pom file of the artifact. Example: us-west4-maven.pkg.dev/test-project/test-repo/com/google/guava/guava/31.0/guava-31.0.pom

string pom_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for pomUri.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time the artifact was updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time the artifact was updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getVersion()

public String getVersion()

Version of this artifact.

string version = 5;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Version of this artifact.

string version = 5;

Returns
TypeDescription
ByteString

The bytes for version.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time the artifact was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time the artifact was updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime 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 MavenArtifact.Builder newBuilderForType()
Returns
TypeDescription
MavenArtifact.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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