Send feedback
Class MavenArtifact (1.14.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.14.0keyboard_arrow_down
public final class MavenArtifact extends GeneratedMessageV3 implements MavenArtifactOrBuilder
MavenArtifact represents a maven artifact.
Protobuf type google.devtools.artifactregistry.v1.MavenArtifact
Static Fields
public static final int ARTIFACT_ID_FIELD_NUMBER
Field Value
Type
Description
int
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int GROUP_ID_FIELD_NUMBER
Field Value
Type
Description
int
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int POM_URI_FIELD_NUMBER
Field Value
Type
Description
int
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int VERSION_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static MavenArtifact getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static MavenArtifact . Builder newBuilder ()
public static MavenArtifact . Builder newBuilder ( MavenArtifact prototype )
public static MavenArtifact parseDelimitedFrom ( InputStream input )
public static MavenArtifact parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static MavenArtifact parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static MavenArtifact parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static MavenArtifact parseFrom ( ByteString data )
public static MavenArtifact parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static MavenArtifact parseFrom ( CodedInputStream input )
public static MavenArtifact parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static MavenArtifact parseFrom ( InputStream input )
public static MavenArtifact parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static MavenArtifact parseFrom ( ByteBuffer data )
public static MavenArtifact parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<MavenArtifact> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public String getArtifactId ()
Artifact ID for the artifact.
string artifact_id = 4;
Returns
Type
Description
String
The artifactId.
public ByteString getArtifactIdBytes ()
Artifact ID for the artifact.
string artifact_id = 4;
Returns
Type
Description
ByteString
The bytes for artifactId.
public Timestamp getCreateTime ()
Output only. Time the artifact was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
Timestamp
The createTime.
public TimestampOrBuilder getCreateTimeOrBuilder ()
Output only. Time the artifact was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public MavenArtifact getDefaultInstanceForType ()
public String getGroupId ()
Group ID for the artifact.
Example:
com.google.guava
string group_id = 3;
Returns
Type
Description
String
The groupId.
public ByteString getGroupIdBytes ()
Group ID for the artifact.
Example:
com.google.guava
string group_id = 3;
Returns
Type
Description
ByteString
The bytes for groupId.
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
Type
Description
String
The name.
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
Type
Description
ByteString
The bytes for name.
public Parser<MavenArtifact> getParserForType ()
Overrides
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
Type
Description
String
The pomUri.
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
Type
Description
ByteString
The bytes for pomUri.
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public final UnknownFieldSet getUnknownFields ()
Overrides
public Timestamp getUpdateTime ()
Output only. Time the artifact was updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
Timestamp
The updateTime.
public TimestampOrBuilder getUpdateTimeOrBuilder ()
Output only. Time the artifact was updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public String getVersion ()
Version of this artifact.
string version = 5;
Returns
Type
Description
String
The version.
public ByteString getVersionBytes ()
Version of this artifact.
string version = 5;
Returns
Type
Description
ByteString
The bytes for version.
public boolean hasCreateTime ()
Output only. Time the artifact was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the createTime field is set.
public boolean hasUpdateTime ()
Output only. Time the artifact was updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the updateTime field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public MavenArtifact . Builder newBuilderForType ()
protected MavenArtifact . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public MavenArtifact . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-14 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-14 UTC."],[],[]]