Class Artifacts.NpmPackage.Builder

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

public static final class Artifacts.NpmPackage.Builder extends com.google.protobuf.GeneratedMessage.Builder<Artifacts.NpmPackage.Builder> implements Artifacts.NpmPackageOrBuilder
 Npm package to upload to Artifact Registry upon successful completion
 of all build steps.
 
Protobuf type google.devtools.cloudbuild.v1.Artifacts.NpmPackage
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Optional.
    Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Optional.
    com.google.protobuf.ByteString
    Optional.
    Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
    com.google.protobuf.ByteString
    Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    Optional.
    setPackagePathBytes(com.google.protobuf.ByteString value)
    Optional.
    Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
    setRepositoryBytes(com.google.protobuf.ByteString value)
    Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.

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

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

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

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

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

    • isInitialized

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

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

      public String getRepository()
       Artifact Registry repository, in the form
       "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY"
      
       Npm package in the workspace specified by path will be zipped and
       uploaded to Artifact Registry with this location as a prefix.
       
      string repository = 1;
      Specified by:
      getRepository in interface Artifacts.NpmPackageOrBuilder
      Returns:
      The repository.
    • getRepositoryBytes

      public com.google.protobuf.ByteString getRepositoryBytes()
       Artifact Registry repository, in the form
       "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY"
      
       Npm package in the workspace specified by path will be zipped and
       uploaded to Artifact Registry with this location as a prefix.
       
      string repository = 1;
      Specified by:
      getRepositoryBytes in interface Artifacts.NpmPackageOrBuilder
      Returns:
      The bytes for repository.
    • setRepository

      public Artifacts.NpmPackage.Builder setRepository(String value)
       Artifact Registry repository, in the form
       "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY"
      
       Npm package in the workspace specified by path will be zipped and
       uploaded to Artifact Registry with this location as a prefix.
       
      string repository = 1;
      Parameters:
      value - The repository to set.
      Returns:
      This builder for chaining.
    • clearRepository

      public Artifacts.NpmPackage.Builder clearRepository()
       Artifact Registry repository, in the form
       "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY"
      
       Npm package in the workspace specified by path will be zipped and
       uploaded to Artifact Registry with this location as a prefix.
       
      string repository = 1;
      Returns:
      This builder for chaining.
    • setRepositoryBytes

      public Artifacts.NpmPackage.Builder setRepositoryBytes(com.google.protobuf.ByteString value)
       Artifact Registry repository, in the form
       "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY"
      
       Npm package in the workspace specified by path will be zipped and
       uploaded to Artifact Registry with this location as a prefix.
       
      string repository = 1;
      Parameters:
      value - The bytes for repository to set.
      Returns:
      This builder for chaining.
    • getPackagePath

      public String getPackagePath()
       Optional. Path to the package.json.
       e.g. workspace/path/to/package
      
       Only one of `archive` or `package_path` can be specified.
       
      string package_path = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPackagePath in interface Artifacts.NpmPackageOrBuilder
      Returns:
      The packagePath.
    • getPackagePathBytes

      public com.google.protobuf.ByteString getPackagePathBytes()
       Optional. Path to the package.json.
       e.g. workspace/path/to/package
      
       Only one of `archive` or `package_path` can be specified.
       
      string package_path = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPackagePathBytes in interface Artifacts.NpmPackageOrBuilder
      Returns:
      The bytes for packagePath.
    • setPackagePath

      public Artifacts.NpmPackage.Builder setPackagePath(String value)
       Optional. Path to the package.json.
       e.g. workspace/path/to/package
      
       Only one of `archive` or `package_path` can be specified.
       
      string package_path = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The packagePath to set.
      Returns:
      This builder for chaining.
    • clearPackagePath

      public Artifacts.NpmPackage.Builder clearPackagePath()
       Optional. Path to the package.json.
       e.g. workspace/path/to/package
      
       Only one of `archive` or `package_path` can be specified.
       
      string package_path = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPackagePathBytes

      public Artifacts.NpmPackage.Builder setPackagePathBytes(com.google.protobuf.ByteString value)
       Optional. Path to the package.json.
       e.g. workspace/path/to/package
      
       Only one of `archive` or `package_path` can be specified.
       
      string package_path = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for packagePath to set.
      Returns:
      This builder for chaining.