Class MavenArtifact.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MavenArtifact.Builder>
com.google.devtools.artifactregistry.v1.MavenArtifact.Builder
All Implemented Interfaces:
MavenArtifactOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MavenArtifact

public static final class MavenArtifact.Builder extends com.google.protobuf.GeneratedMessage.Builder<MavenArtifact.Builder> implements MavenArtifactOrBuilder
 MavenArtifact represents a maven artifact.
 
Protobuf type google.devtools.artifactregistry.v1.MavenArtifact
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Artifact ID for the artifact.
    Output only.
    Group ID for the artifact.
    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.
    Required.
    Output only.
    Version of this artifact.
    Artifact ID for the artifact.
    com.google.protobuf.ByteString
    Artifact ID for the artifact.
    com.google.protobuf.Timestamp
    Output only.
    com.google.protobuf.Timestamp.Builder
    Output only.
    com.google.protobuf.TimestampOrBuilder
    Output only.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Group ID for the artifact.
    com.google.protobuf.ByteString
    Group ID for the artifact.
    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.
    com.google.protobuf.ByteString
    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.
    Required.
    com.google.protobuf.ByteString
    Required.
    com.google.protobuf.Timestamp
    Output only.
    com.google.protobuf.Timestamp.Builder
    Output only.
    com.google.protobuf.TimestampOrBuilder
    Output only.
    Version of this artifact.
    com.google.protobuf.ByteString
    Version of this artifact.
    boolean
    Output only.
    boolean
    Output only.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeCreateTime(com.google.protobuf.Timestamp value)
    Output only.
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeUpdateTime(com.google.protobuf.Timestamp value)
    Output only.
    Artifact ID for the artifact.
    setArtifactIdBytes(com.google.protobuf.ByteString value)
    Artifact ID for the artifact.
    setCreateTime(com.google.protobuf.Timestamp value)
    Output only.
    setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
    Output only.
    Group ID for the artifact.
    setGroupIdBytes(com.google.protobuf.ByteString value)
    Group ID for the artifact.
    setName(String value)
    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.
    setNameBytes(com.google.protobuf.ByteString value)
    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.
    Required.
    setPomUriBytes(com.google.protobuf.ByteString value)
    Required.
    setUpdateTime(com.google.protobuf.Timestamp value)
    Output only.
    setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
    Output only.
    Version of this artifact.
    setVersionBytes(com.google.protobuf.ByteString value)
    Version of this artifact.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MavenArtifact.Builder>
    • clear

      public MavenArtifact.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<MavenArtifact.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MavenArtifact.Builder>
    • getDefaultInstanceForType

      public MavenArtifact getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public MavenArtifact build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public MavenArtifact buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public MavenArtifact.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MavenArtifact.Builder>
    • mergeFrom

      public MavenArtifact.Builder mergeFrom(MavenArtifact other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<MavenArtifact.Builder>
    • mergeFrom

      public MavenArtifact.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MavenArtifact.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getName in interface MavenArtifactOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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];
      Specified by:
      getNameBytes in interface MavenArtifactOrBuilder
      Returns:
      The bytes for name.
    • setName

      public MavenArtifact.Builder setName(String value)
       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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public MavenArtifact.Builder clearName()
       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:
      This builder for chaining.
    • setNameBytes

      public MavenArtifact.Builder setNameBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getPomUri in interface MavenArtifactOrBuilder
      Returns:
      The pomUri.
    • getPomUriBytes

      public com.google.protobuf.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];
      Specified by:
      getPomUriBytes in interface MavenArtifactOrBuilder
      Returns:
      The bytes for pomUri.
    • setPomUri

      public MavenArtifact.Builder setPomUri(String value)
       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];
      Parameters:
      value - The pomUri to set.
      Returns:
      This builder for chaining.
    • clearPomUri

      public MavenArtifact.Builder clearPomUri()
       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:
      This builder for chaining.
    • setPomUriBytes

      public MavenArtifact.Builder setPomUriBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for pomUri to set.
      Returns:
      This builder for chaining.
    • getGroupId

      public String getGroupId()
       Group ID for the artifact.
       Example:
       com.google.guava
       
      string group_id = 3;
      Specified by:
      getGroupId in interface MavenArtifactOrBuilder
      Returns:
      The groupId.
    • getGroupIdBytes

      public com.google.protobuf.ByteString getGroupIdBytes()
       Group ID for the artifact.
       Example:
       com.google.guava
       
      string group_id = 3;
      Specified by:
      getGroupIdBytes in interface MavenArtifactOrBuilder
      Returns:
      The bytes for groupId.
    • setGroupId

      public MavenArtifact.Builder setGroupId(String value)
       Group ID for the artifact.
       Example:
       com.google.guava
       
      string group_id = 3;
      Parameters:
      value - The groupId to set.
      Returns:
      This builder for chaining.
    • clearGroupId

      public MavenArtifact.Builder clearGroupId()
       Group ID for the artifact.
       Example:
       com.google.guava
       
      string group_id = 3;
      Returns:
      This builder for chaining.
    • setGroupIdBytes

      public MavenArtifact.Builder setGroupIdBytes(com.google.protobuf.ByteString value)
       Group ID for the artifact.
       Example:
       com.google.guava
       
      string group_id = 3;
      Parameters:
      value - The bytes for groupId to set.
      Returns:
      This builder for chaining.
    • getArtifactId

      public String getArtifactId()
       Artifact ID for the artifact.
       
      string artifact_id = 4;
      Specified by:
      getArtifactId in interface MavenArtifactOrBuilder
      Returns:
      The artifactId.
    • getArtifactIdBytes

      public com.google.protobuf.ByteString getArtifactIdBytes()
       Artifact ID for the artifact.
       
      string artifact_id = 4;
      Specified by:
      getArtifactIdBytes in interface MavenArtifactOrBuilder
      Returns:
      The bytes for artifactId.
    • setArtifactId

      public MavenArtifact.Builder setArtifactId(String value)
       Artifact ID for the artifact.
       
      string artifact_id = 4;
      Parameters:
      value - The artifactId to set.
      Returns:
      This builder for chaining.
    • clearArtifactId

      public MavenArtifact.Builder clearArtifactId()
       Artifact ID for the artifact.
       
      string artifact_id = 4;
      Returns:
      This builder for chaining.
    • setArtifactIdBytes

      public MavenArtifact.Builder setArtifactIdBytes(com.google.protobuf.ByteString value)
       Artifact ID for the artifact.
       
      string artifact_id = 4;
      Parameters:
      value - The bytes for artifactId to set.
      Returns:
      This builder for chaining.
    • getVersion

      public String getVersion()
       Version of this artifact.
       
      string version = 5;
      Specified by:
      getVersion in interface MavenArtifactOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       Version of this artifact.
       
      string version = 5;
      Specified by:
      getVersionBytes in interface MavenArtifactOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public MavenArtifact.Builder setVersion(String value)
       Version of this artifact.
       
      string version = 5;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public MavenArtifact.Builder clearVersion()
       Version of this artifact.
       
      string version = 5;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public MavenArtifact.Builder setVersionBytes(com.google.protobuf.ByteString value)
       Version of this artifact.
       
      string version = 5;
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time the artifact was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface MavenArtifactOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time the artifact was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface MavenArtifactOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public MavenArtifact.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time the artifact was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public MavenArtifact.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time the artifact was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public MavenArtifact.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time the artifact was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public MavenArtifact.Builder clearCreateTime()
       Output only. Time the artifact was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Time the artifact was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time the artifact was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface MavenArtifactOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Time the artifact was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface MavenArtifactOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Time the artifact was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface MavenArtifactOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public MavenArtifact.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Time the artifact was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public MavenArtifact.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time the artifact was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public MavenArtifact.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Time the artifact was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public MavenArtifact.Builder clearUpdateTime()
       Output only. Time the artifact was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Time the artifact was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Time the artifact was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface MavenArtifactOrBuilder