Class Artifacts.PythonPackage.Builder

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

public static final class Artifacts.PythonPackage.Builder extends com.google.protobuf.GeneratedMessage.Builder<Artifacts.PythonPackage.Builder> implements Artifacts.PythonPackageOrBuilder
 Python package to upload to Artifact Registry upon successful completion
 of all build steps. A package can encapsulate multiple objects to be
 uploaded to a single repository.
 
Protobuf type google.devtools.cloudbuild.v1.Artifacts.PythonPackage
  • Method Summary

    Modifier and Type
    Method
    Description
    Path globs used to match files in the build's workspace.
    Path globs used to match files in the build's workspace.
    addPathsBytes(com.google.protobuf.ByteString value)
    Path globs used to match files in the build's workspace.
     
     
     
    Path globs used to match files in the build's workspace.
    Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    getPaths(int index)
    Path globs used to match files in the build's workspace.
    com.google.protobuf.ByteString
    getPathsBytes(int index)
    Path globs used to match files in the build's workspace.
    int
    Path globs used to match files in the build's workspace.
    com.google.protobuf.ProtocolStringList
    Path globs used to match files in the build's workspace.
    Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.
    com.google.protobuf.ByteString
    Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be 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)
     
    setPaths(int index, String value)
    Path globs used to match files in the build's workspace.
    Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.
    setRepositoryBytes(com.google.protobuf.ByteString value)
    Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be 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.PythonPackage.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.PythonPackage.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.PythonPackage.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getRepository()
       Artifact Registry repository, in the form
       "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
      
       Files in the workspace matching any path pattern will be uploaded to
       Artifact Registry with this location as a prefix.
       
      string repository = 1;
      Specified by:
      getRepository in interface Artifacts.PythonPackageOrBuilder
      Returns:
      The repository.
    • getRepositoryBytes

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

      public Artifacts.PythonPackage.Builder setRepository(String value)
       Artifact Registry repository, in the form
       "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
      
       Files in the workspace matching any path pattern will be 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.PythonPackage.Builder clearRepository()
       Artifact Registry repository, in the form
       "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
      
       Files in the workspace matching any path pattern will be uploaded to
       Artifact Registry with this location as a prefix.
       
      string repository = 1;
      Returns:
      This builder for chaining.
    • setRepositoryBytes

      public Artifacts.PythonPackage.Builder setRepositoryBytes(com.google.protobuf.ByteString value)
       Artifact Registry repository, in the form
       "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
      
       Files in the workspace matching any path pattern will be 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.
    • getPathsList

      public com.google.protobuf.ProtocolStringList getPathsList()
       Path globs used to match files in the build's workspace. For Python/
       Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
       file.
       
      repeated string paths = 2;
      Specified by:
      getPathsList in interface Artifacts.PythonPackageOrBuilder
      Returns:
      A list containing the paths.
    • getPathsCount

      public int getPathsCount()
       Path globs used to match files in the build's workspace. For Python/
       Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
       file.
       
      repeated string paths = 2;
      Specified by:
      getPathsCount in interface Artifacts.PythonPackageOrBuilder
      Returns:
      The count of paths.
    • getPaths

      public String getPaths(int index)
       Path globs used to match files in the build's workspace. For Python/
       Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
       file.
       
      repeated string paths = 2;
      Specified by:
      getPaths in interface Artifacts.PythonPackageOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The paths at the given index.
    • getPathsBytes

      public com.google.protobuf.ByteString getPathsBytes(int index)
       Path globs used to match files in the build's workspace. For Python/
       Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
       file.
       
      repeated string paths = 2;
      Specified by:
      getPathsBytes in interface Artifacts.PythonPackageOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the paths at the given index.
    • setPaths

      public Artifacts.PythonPackage.Builder setPaths(int index, String value)
       Path globs used to match files in the build's workspace. For Python/
       Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
       file.
       
      repeated string paths = 2;
      Parameters:
      index - The index to set the value at.
      value - The paths to set.
      Returns:
      This builder for chaining.
    • addPaths

      public Artifacts.PythonPackage.Builder addPaths(String value)
       Path globs used to match files in the build's workspace. For Python/
       Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
       file.
       
      repeated string paths = 2;
      Parameters:
      value - The paths to add.
      Returns:
      This builder for chaining.
    • addAllPaths

      public Artifacts.PythonPackage.Builder addAllPaths(Iterable<String> values)
       Path globs used to match files in the build's workspace. For Python/
       Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
       file.
       
      repeated string paths = 2;
      Parameters:
      values - The paths to add.
      Returns:
      This builder for chaining.
    • clearPaths

      public Artifacts.PythonPackage.Builder clearPaths()
       Path globs used to match files in the build's workspace. For Python/
       Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
       file.
       
      repeated string paths = 2;
      Returns:
      This builder for chaining.
    • addPathsBytes

      public Artifacts.PythonPackage.Builder addPathsBytes(com.google.protobuf.ByteString value)
       Path globs used to match files in the build's workspace. For Python/
       Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
       file.
       
      repeated string paths = 2;
      Parameters:
      value - The bytes of the paths to add.
      Returns:
      This builder for chaining.