Class Artifacts

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloudbuild.v1.Artifacts
All Implemented Interfaces:
ArtifactsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Artifacts extends com.google.protobuf.GeneratedMessage implements ArtifactsOrBuilder
 Artifacts produced by a build that should be uploaded upon
 successful completion of all build steps.
 
Protobuf type google.devtools.cloudbuild.v1.Artifacts
See Also:
  • Field Details

    • IMAGES_FIELD_NUMBER

      public static final int IMAGES_FIELD_NUMBER
      See Also:
    • OBJECTS_FIELD_NUMBER

      public static final int OBJECTS_FIELD_NUMBER
      See Also:
    • MAVEN_ARTIFACTS_FIELD_NUMBER

      public static final int MAVEN_ARTIFACTS_FIELD_NUMBER
      See Also:
    • GO_MODULES_FIELD_NUMBER

      public static final int GO_MODULES_FIELD_NUMBER
      See Also:
    • PYTHON_PACKAGES_FIELD_NUMBER

      public static final int PYTHON_PACKAGES_FIELD_NUMBER
      See Also:
    • NPM_PACKAGES_FIELD_NUMBER

      public static final int NPM_PACKAGES_FIELD_NUMBER
      See Also:
  • 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
    • getImagesList

      public com.google.protobuf.ProtocolStringList getImagesList()
       A list of images to be pushed upon the successful completion of all build
       steps.
      
       The images will be pushed using the builder service account's credentials.
      
       The digests of the pushed images will be stored in the Build resource's
       results field.
      
       If any of the images fail to be pushed, the build is marked FAILURE.
       
      repeated string images = 1;
      Specified by:
      getImagesList in interface ArtifactsOrBuilder
      Returns:
      A list containing the images.
    • getImagesCount

      public int getImagesCount()
       A list of images to be pushed upon the successful completion of all build
       steps.
      
       The images will be pushed using the builder service account's credentials.
      
       The digests of the pushed images will be stored in the Build resource's
       results field.
      
       If any of the images fail to be pushed, the build is marked FAILURE.
       
      repeated string images = 1;
      Specified by:
      getImagesCount in interface ArtifactsOrBuilder
      Returns:
      The count of images.
    • getImages

      public String getImages(int index)
       A list of images to be pushed upon the successful completion of all build
       steps.
      
       The images will be pushed using the builder service account's credentials.
      
       The digests of the pushed images will be stored in the Build resource's
       results field.
      
       If any of the images fail to be pushed, the build is marked FAILURE.
       
      repeated string images = 1;
      Specified by:
      getImages in interface ArtifactsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The images at the given index.
    • getImagesBytes

      public com.google.protobuf.ByteString getImagesBytes(int index)
       A list of images to be pushed upon the successful completion of all build
       steps.
      
       The images will be pushed using the builder service account's credentials.
      
       The digests of the pushed images will be stored in the Build resource's
       results field.
      
       If any of the images fail to be pushed, the build is marked FAILURE.
       
      repeated string images = 1;
      Specified by:
      getImagesBytes in interface ArtifactsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the images at the given index.
    • hasObjects

      public boolean hasObjects()
       A list of objects to be uploaded to Cloud Storage upon successful
       completion of all build steps.
      
       Files in the workspace matching specified paths globs will be uploaded to
       the specified Cloud Storage location using the builder service account's
       credentials.
      
       The location and generation of the uploaded objects will be stored in the
       Build resource's results field.
      
       If any objects fail to be pushed, the build is marked FAILURE.
       
      .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;
      Specified by:
      hasObjects in interface ArtifactsOrBuilder
      Returns:
      Whether the objects field is set.
    • getObjects

      public Artifacts.ArtifactObjects getObjects()
       A list of objects to be uploaded to Cloud Storage upon successful
       completion of all build steps.
      
       Files in the workspace matching specified paths globs will be uploaded to
       the specified Cloud Storage location using the builder service account's
       credentials.
      
       The location and generation of the uploaded objects will be stored in the
       Build resource's results field.
      
       If any objects fail to be pushed, the build is marked FAILURE.
       
      .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;
      Specified by:
      getObjects in interface ArtifactsOrBuilder
      Returns:
      The objects.
    • getObjectsOrBuilder

      public Artifacts.ArtifactObjectsOrBuilder getObjectsOrBuilder()
       A list of objects to be uploaded to Cloud Storage upon successful
       completion of all build steps.
      
       Files in the workspace matching specified paths globs will be uploaded to
       the specified Cloud Storage location using the builder service account's
       credentials.
      
       The location and generation of the uploaded objects will be stored in the
       Build resource's results field.
      
       If any objects fail to be pushed, the build is marked FAILURE.
       
      .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2;
      Specified by:
      getObjectsOrBuilder in interface ArtifactsOrBuilder
    • getMavenArtifactsList

      public List<Artifacts.MavenArtifact> getMavenArtifactsList()
       A list of Maven artifacts to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       Artifacts in the workspace matching specified paths globs will be uploaded
       to the specified Artifact Registry repository using the builder service
       account's credentials.
      
       If any artifacts fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;
      Specified by:
      getMavenArtifactsList in interface ArtifactsOrBuilder
    • getMavenArtifactsOrBuilderList

      public List<? extends Artifacts.MavenArtifactOrBuilder> getMavenArtifactsOrBuilderList()
       A list of Maven artifacts to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       Artifacts in the workspace matching specified paths globs will be uploaded
       to the specified Artifact Registry repository using the builder service
       account's credentials.
      
       If any artifacts fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;
      Specified by:
      getMavenArtifactsOrBuilderList in interface ArtifactsOrBuilder
    • getMavenArtifactsCount

      public int getMavenArtifactsCount()
       A list of Maven artifacts to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       Artifacts in the workspace matching specified paths globs will be uploaded
       to the specified Artifact Registry repository using the builder service
       account's credentials.
      
       If any artifacts fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;
      Specified by:
      getMavenArtifactsCount in interface ArtifactsOrBuilder
    • getMavenArtifacts

      public Artifacts.MavenArtifact getMavenArtifacts(int index)
       A list of Maven artifacts to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       Artifacts in the workspace matching specified paths globs will be uploaded
       to the specified Artifact Registry repository using the builder service
       account's credentials.
      
       If any artifacts fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;
      Specified by:
      getMavenArtifacts in interface ArtifactsOrBuilder
    • getMavenArtifactsOrBuilder

      public Artifacts.MavenArtifactOrBuilder getMavenArtifactsOrBuilder(int index)
       A list of Maven artifacts to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       Artifacts in the workspace matching specified paths globs will be uploaded
       to the specified Artifact Registry repository using the builder service
       account's credentials.
      
       If any artifacts fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3;
      Specified by:
      getMavenArtifactsOrBuilder in interface ArtifactsOrBuilder
    • getGoModulesList

      public List<Artifacts.GoModule> getGoModulesList()
       Optional. A list of Go modules to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       If any objects fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.GoModule go_modules = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGoModulesList in interface ArtifactsOrBuilder
    • getGoModulesOrBuilderList

      public List<? extends Artifacts.GoModuleOrBuilder> getGoModulesOrBuilderList()
       Optional. A list of Go modules to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       If any objects fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.GoModule go_modules = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGoModulesOrBuilderList in interface ArtifactsOrBuilder
    • getGoModulesCount

      public int getGoModulesCount()
       Optional. A list of Go modules to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       If any objects fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.GoModule go_modules = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGoModulesCount in interface ArtifactsOrBuilder
    • getGoModules

      public Artifacts.GoModule getGoModules(int index)
       Optional. A list of Go modules to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       If any objects fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.GoModule go_modules = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGoModules in interface ArtifactsOrBuilder
    • getGoModulesOrBuilder

      public Artifacts.GoModuleOrBuilder getGoModulesOrBuilder(int index)
       Optional. A list of Go modules to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       If any objects fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.GoModule go_modules = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGoModulesOrBuilder in interface ArtifactsOrBuilder
    • getPythonPackagesList

      public List<Artifacts.PythonPackage> getPythonPackagesList()
       A list of Python packages to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       The build service account credentials will be used to perform the upload.
      
       If any objects fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;
      Specified by:
      getPythonPackagesList in interface ArtifactsOrBuilder
    • getPythonPackagesOrBuilderList

      public List<? extends Artifacts.PythonPackageOrBuilder> getPythonPackagesOrBuilderList()
       A list of Python packages to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       The build service account credentials will be used to perform the upload.
      
       If any objects fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;
      Specified by:
      getPythonPackagesOrBuilderList in interface ArtifactsOrBuilder
    • getPythonPackagesCount

      public int getPythonPackagesCount()
       A list of Python packages to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       The build service account credentials will be used to perform the upload.
      
       If any objects fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;
      Specified by:
      getPythonPackagesCount in interface ArtifactsOrBuilder
    • getPythonPackages

      public Artifacts.PythonPackage getPythonPackages(int index)
       A list of Python packages to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       The build service account credentials will be used to perform the upload.
      
       If any objects fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;
      Specified by:
      getPythonPackages in interface ArtifactsOrBuilder
    • getPythonPackagesOrBuilder

      public Artifacts.PythonPackageOrBuilder getPythonPackagesOrBuilder(int index)
       A list of Python packages to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       The build service account credentials will be used to perform the upload.
      
       If any objects fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5;
      Specified by:
      getPythonPackagesOrBuilder in interface ArtifactsOrBuilder
    • getNpmPackagesList

      public List<Artifacts.NpmPackage> getNpmPackagesList()
       A list of npm packages to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       Npm packages in the specified paths will be uploaded
       to the specified Artifact Registry repository using the builder service
       account's credentials.
      
       If any packages fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;
      Specified by:
      getNpmPackagesList in interface ArtifactsOrBuilder
    • getNpmPackagesOrBuilderList

      public List<? extends Artifacts.NpmPackageOrBuilder> getNpmPackagesOrBuilderList()
       A list of npm packages to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       Npm packages in the specified paths will be uploaded
       to the specified Artifact Registry repository using the builder service
       account's credentials.
      
       If any packages fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;
      Specified by:
      getNpmPackagesOrBuilderList in interface ArtifactsOrBuilder
    • getNpmPackagesCount

      public int getNpmPackagesCount()
       A list of npm packages to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       Npm packages in the specified paths will be uploaded
       to the specified Artifact Registry repository using the builder service
       account's credentials.
      
       If any packages fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;
      Specified by:
      getNpmPackagesCount in interface ArtifactsOrBuilder
    • getNpmPackages

      public Artifacts.NpmPackage getNpmPackages(int index)
       A list of npm packages to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       Npm packages in the specified paths will be uploaded
       to the specified Artifact Registry repository using the builder service
       account's credentials.
      
       If any packages fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;
      Specified by:
      getNpmPackages in interface ArtifactsOrBuilder
    • getNpmPackagesOrBuilder

      public Artifacts.NpmPackageOrBuilder getNpmPackagesOrBuilder(int index)
       A list of npm packages to be uploaded to Artifact Registry upon
       successful completion of all build steps.
      
       Npm packages in the specified paths will be uploaded
       to the specified Artifact Registry repository using the builder service
       account's credentials.
      
       If any packages fail to be pushed, the build is marked FAILURE.
       
      repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6;
      Specified by:
      getNpmPackagesOrBuilder in interface ArtifactsOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Artifacts parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifacts parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifacts parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifacts parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifacts parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifacts parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifacts parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Artifacts parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Artifacts parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Artifacts parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Artifacts parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Artifacts parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Artifacts.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Artifacts.Builder newBuilder()
    • newBuilder

      public static Artifacts.Builder newBuilder(Artifacts prototype)
    • toBuilder

      public Artifacts.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Artifacts.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Artifacts getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Artifacts> parser()
    • getParserForType

      public com.google.protobuf.Parser<Artifacts> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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