Class ArtifactResult.Builder

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

public static final class ArtifactResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<ArtifactResult.Builder> implements ArtifactResultOrBuilder
 An artifact that was uploaded during a build. This
 is a single record in the artifact manifest JSON file.
 
Protobuf type google.devtools.cloudbuild.v1.ArtifactResult
  • 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<ArtifactResult.Builder>
    • clear

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

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

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

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

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

      public ArtifactResult.Builder mergeFrom(ArtifactResult other)
    • isInitialized

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

      public ArtifactResult.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<ArtifactResult.Builder>
      Throws:
      IOException
    • getLocation

      public String getLocation()
       The path of an artifact in a Cloud Storage bucket, with the
       generation number. For example,
       `gs://mybucket/path/to/output.jar#generation`.
       
      string location = 1;
      Specified by:
      getLocation in interface ArtifactResultOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       The path of an artifact in a Cloud Storage bucket, with the
       generation number. For example,
       `gs://mybucket/path/to/output.jar#generation`.
       
      string location = 1;
      Specified by:
      getLocationBytes in interface ArtifactResultOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public ArtifactResult.Builder setLocation(String value)
       The path of an artifact in a Cloud Storage bucket, with the
       generation number. For example,
       `gs://mybucket/path/to/output.jar#generation`.
       
      string location = 1;
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public ArtifactResult.Builder clearLocation()
       The path of an artifact in a Cloud Storage bucket, with the
       generation number. For example,
       `gs://mybucket/path/to/output.jar#generation`.
       
      string location = 1;
      Returns:
      This builder for chaining.
    • setLocationBytes

      public ArtifactResult.Builder setLocationBytes(com.google.protobuf.ByteString value)
       The path of an artifact in a Cloud Storage bucket, with the
       generation number. For example,
       `gs://mybucket/path/to/output.jar#generation`.
       
      string location = 1;
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getFileHashList

      public List<FileHashes> getFileHashList()
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
      Specified by:
      getFileHashList in interface ArtifactResultOrBuilder
    • getFileHashCount

      public int getFileHashCount()
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
      Specified by:
      getFileHashCount in interface ArtifactResultOrBuilder
    • getFileHash

      public FileHashes getFileHash(int index)
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
      Specified by:
      getFileHash in interface ArtifactResultOrBuilder
    • setFileHash

      public ArtifactResult.Builder setFileHash(int index, FileHashes value)
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
    • setFileHash

      public ArtifactResult.Builder setFileHash(int index, FileHashes.Builder builderForValue)
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
    • addFileHash

      public ArtifactResult.Builder addFileHash(FileHashes value)
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
    • addFileHash

      public ArtifactResult.Builder addFileHash(int index, FileHashes value)
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
    • addFileHash

      public ArtifactResult.Builder addFileHash(FileHashes.Builder builderForValue)
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
    • addFileHash

      public ArtifactResult.Builder addFileHash(int index, FileHashes.Builder builderForValue)
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
    • addAllFileHash

      public ArtifactResult.Builder addAllFileHash(Iterable<? extends FileHashes> values)
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
    • clearFileHash

      public ArtifactResult.Builder clearFileHash()
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
    • removeFileHash

      public ArtifactResult.Builder removeFileHash(int index)
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
    • getFileHashBuilder

      public FileHashes.Builder getFileHashBuilder(int index)
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
    • getFileHashOrBuilder

      public FileHashesOrBuilder getFileHashOrBuilder(int index)
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
      Specified by:
      getFileHashOrBuilder in interface ArtifactResultOrBuilder
    • getFileHashOrBuilderList

      public List<? extends FileHashesOrBuilder> getFileHashOrBuilderList()
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
      Specified by:
      getFileHashOrBuilderList in interface ArtifactResultOrBuilder
    • addFileHashBuilder

      public FileHashes.Builder addFileHashBuilder()
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
    • addFileHashBuilder

      public FileHashes.Builder addFileHashBuilder(int index)
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;
    • getFileHashBuilderList

      public List<FileHashes.Builder> getFileHashBuilderList()
       The file hash of the artifact.
       
      repeated .google.devtools.cloudbuild.v1.FileHashes file_hash = 2;