Class NpmPackage.Builder

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

public static final class NpmPackage.Builder extends com.google.protobuf.GeneratedMessage.Builder<NpmPackage.Builder> implements NpmPackageOrBuilder
 NpmPackage represents an npm artifact.
 
Protobuf type google.devtools.artifactregistry.v1.NpmPackage
  • Method Summary

    Modifier and Type
    Method
    Description
    Tags attached to this package.
    addTags(String value)
    Tags attached to this package.
    addTagsBytes(com.google.protobuf.ByteString value)
    Tags attached to this package.
     
     
     
    Output only.
    Required. registry_location, project_id, repository_name and npm_package forms a unique package For example, "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ npm_test:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and npm_test:1.0.0" is the npm package.
    Package for the artifact.
    Tags attached to this package.
    Output only.
    Version of this package.
    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
     
    Required. registry_location, project_id, repository_name and npm_package forms a unique package For example, "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ npm_test:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and npm_test:1.0.0" is the npm package.
    com.google.protobuf.ByteString
    Required. registry_location, project_id, repository_name and npm_package forms a unique package For example, "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ npm_test:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and npm_test:1.0.0" is the npm package.
    Package for the artifact.
    com.google.protobuf.ByteString
    Package for the artifact.
    getTags(int index)
    Tags attached to this package.
    com.google.protobuf.ByteString
    getTagsBytes(int index)
    Tags attached to this package.
    int
    Tags attached to this package.
    com.google.protobuf.ProtocolStringList
    Tags attached to this package.
    com.google.protobuf.Timestamp
    Output only.
    com.google.protobuf.Timestamp.Builder
    Output only.
    com.google.protobuf.TimestampOrBuilder
    Output only.
    Version of this package.
    com.google.protobuf.ByteString
    Version of this package.
    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.
    setCreateTime(com.google.protobuf.Timestamp value)
    Output only.
    setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
    Output only.
    setName(String value)
    Required. registry_location, project_id, repository_name and npm_package forms a unique package For example, "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ npm_test:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and npm_test:1.0.0" is the npm package.
    setNameBytes(com.google.protobuf.ByteString value)
    Required. registry_location, project_id, repository_name and npm_package forms a unique package For example, "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ npm_test:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and npm_test:1.0.0" is the npm package.
    Package for the artifact.
    setPackageNameBytes(com.google.protobuf.ByteString value)
    Package for the artifact.
    setTags(int index, String value)
    Tags attached to this package.
    setUpdateTime(com.google.protobuf.Timestamp value)
    Output only.
    setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
    Output only.
    Version of this package.
    setVersionBytes(com.google.protobuf.ByteString value)
    Version of this package.

    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<NpmPackage.Builder>
    • clear

      public NpmPackage.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<NpmPackage.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<NpmPackage.Builder>
    • getDefaultInstanceForType

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

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

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

      public NpmPackage.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<NpmPackage.Builder>
    • mergeFrom

      public NpmPackage.Builder mergeFrom(NpmPackage other)
    • isInitialized

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

      public NpmPackage.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<NpmPackage.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. registry_location, project_id, repository_name and npm_package
       forms a unique package For example,
       "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/
       npm_test:1.0.0",
       where "us-west4" is the registry_location, "test-project" is the
       project_id, "test-repo" is the repository_name and
       npm_test:1.0.0" is the npm package.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface NpmPackageOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. registry_location, project_id, repository_name and npm_package
       forms a unique package For example,
       "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/
       npm_test:1.0.0",
       where "us-west4" is the registry_location, "test-project" is the
       project_id, "test-repo" is the repository_name and
       npm_test:1.0.0" is the npm package.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface NpmPackageOrBuilder
      Returns:
      The bytes for name.
    • setName

      public NpmPackage.Builder setName(String value)
       Required. registry_location, project_id, repository_name and npm_package
       forms a unique package For example,
       "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/
       npm_test:1.0.0",
       where "us-west4" is the registry_location, "test-project" is the
       project_id, "test-repo" is the repository_name and
       npm_test:1.0.0" is the npm package.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public NpmPackage.Builder clearName()
       Required. registry_location, project_id, repository_name and npm_package
       forms a unique package For example,
       "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/
       npm_test:1.0.0",
       where "us-west4" is the registry_location, "test-project" is the
       project_id, "test-repo" is the repository_name and
       npm_test:1.0.0" is the npm package.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public NpmPackage.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. registry_location, project_id, repository_name and npm_package
       forms a unique package For example,
       "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/
       npm_test:1.0.0",
       where "us-west4" is the registry_location, "test-project" is the
       project_id, "test-repo" is the repository_name and
       npm_test:1.0.0" is the npm package.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getPackageName

      public String getPackageName()
       Package for the artifact.
       
      string package_name = 3;
      Specified by:
      getPackageName in interface NpmPackageOrBuilder
      Returns:
      The packageName.
    • getPackageNameBytes

      public com.google.protobuf.ByteString getPackageNameBytes()
       Package for the artifact.
       
      string package_name = 3;
      Specified by:
      getPackageNameBytes in interface NpmPackageOrBuilder
      Returns:
      The bytes for packageName.
    • setPackageName

      public NpmPackage.Builder setPackageName(String value)
       Package for the artifact.
       
      string package_name = 3;
      Parameters:
      value - The packageName to set.
      Returns:
      This builder for chaining.
    • clearPackageName

      public NpmPackage.Builder clearPackageName()
       Package for the artifact.
       
      string package_name = 3;
      Returns:
      This builder for chaining.
    • setPackageNameBytes

      public NpmPackage.Builder setPackageNameBytes(com.google.protobuf.ByteString value)
       Package for the artifact.
       
      string package_name = 3;
      Parameters:
      value - The bytes for packageName to set.
      Returns:
      This builder for chaining.
    • getVersion

      public String getVersion()
       Version of this package.
       
      string version = 4;
      Specified by:
      getVersion in interface NpmPackageOrBuilder
      Returns:
      The version.
    • getVersionBytes

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

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

      public NpmPackage.Builder clearVersion()
       Version of this package.
       
      string version = 4;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public NpmPackage.Builder setVersionBytes(com.google.protobuf.ByteString value)
       Version of this package.
       
      string version = 4;
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
       Tags attached to this package.
       
      repeated string tags = 5;
      Specified by:
      getTagsList in interface NpmPackageOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
       Tags attached to this package.
       
      repeated string tags = 5;
      Specified by:
      getTagsCount in interface NpmPackageOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
       Tags attached to this package.
       
      repeated string tags = 5;
      Specified by:
      getTags in interface NpmPackageOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tags at the given index.
    • getTagsBytes

      public com.google.protobuf.ByteString getTagsBytes(int index)
       Tags attached to this package.
       
      repeated string tags = 5;
      Specified by:
      getTagsBytes in interface NpmPackageOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • setTags

      public NpmPackage.Builder setTags(int index, String value)
       Tags attached to this package.
       
      repeated string tags = 5;
      Parameters:
      index - The index to set the value at.
      value - The tags to set.
      Returns:
      This builder for chaining.
    • addTags

      public NpmPackage.Builder addTags(String value)
       Tags attached to this package.
       
      repeated string tags = 5;
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

      public NpmPackage.Builder addAllTags(Iterable<String> values)
       Tags attached to this package.
       
      repeated string tags = 5;
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

      public NpmPackage.Builder clearTags()
       Tags attached to this package.
       
      repeated string tags = 5;
      Returns:
      This builder for chaining.
    • addTagsBytes

      public NpmPackage.Builder addTagsBytes(com.google.protobuf.ByteString value)
       Tags attached to this package.
       
      repeated string tags = 5;
      Parameters:
      value - The bytes of the tags to add.
      Returns:
      This builder for chaining.
    • hasCreateTime

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

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

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

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

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

      public NpmPackage.Builder clearCreateTime()
       Output only. Time the package 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 package 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 package was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface NpmPackageOrBuilder
    • hasUpdateTime

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

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

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

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

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

      public NpmPackage.Builder clearUpdateTime()
       Output only. Time the package 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 package 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 package was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface NpmPackageOrBuilder