Class Artifacts.ArtifactObjects.Builder

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

public static final class Artifacts.ArtifactObjects.Builder extends com.google.protobuf.GeneratedMessage.Builder<Artifacts.ArtifactObjects.Builder> implements Artifacts.ArtifactObjectsOrBuilder
 Files in the workspace to upload to Cloud Storage upon successful
 completion of all build steps.
 
Protobuf type google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects
  • 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.ArtifactObjects.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.ArtifactObjects.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.ArtifactObjects.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getLocation()
       Cloud Storage bucket and optional object path, in the form
       "gs://bucket/path/to/somewhere/". (see [Bucket Name
       Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
      
       Files in the workspace matching any path pattern will be uploaded to
       Cloud Storage with this location as a prefix.
       
      string location = 1;
      Specified by:
      getLocation in interface Artifacts.ArtifactObjectsOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Cloud Storage bucket and optional object path, in the form
       "gs://bucket/path/to/somewhere/". (see [Bucket Name
       Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
      
       Files in the workspace matching any path pattern will be uploaded to
       Cloud Storage with this location as a prefix.
       
      string location = 1;
      Specified by:
      getLocationBytes in interface Artifacts.ArtifactObjectsOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public Artifacts.ArtifactObjects.Builder setLocation(String value)
       Cloud Storage bucket and optional object path, in the form
       "gs://bucket/path/to/somewhere/". (see [Bucket Name
       Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
      
       Files in the workspace matching any path pattern will be uploaded to
       Cloud Storage with this location as a prefix.
       
      string location = 1;
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public Artifacts.ArtifactObjects.Builder clearLocation()
       Cloud Storage bucket and optional object path, in the form
       "gs://bucket/path/to/somewhere/". (see [Bucket Name
       Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
      
       Files in the workspace matching any path pattern will be uploaded to
       Cloud Storage with this location as a prefix.
       
      string location = 1;
      Returns:
      This builder for chaining.
    • setLocationBytes

      public Artifacts.ArtifactObjects.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Cloud Storage bucket and optional object path, in the form
       "gs://bucket/path/to/somewhere/". (see [Bucket Name
       Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
      
       Files in the workspace matching any path pattern will be uploaded to
       Cloud Storage with this location as a prefix.
       
      string location = 1;
      Parameters:
      value - The bytes for location 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.
       
      repeated string paths = 2;
      Specified by:
      getPathsList in interface Artifacts.ArtifactObjectsOrBuilder
      Returns:
      A list containing the paths.
    • getPathsCount

      public int getPathsCount()
       Path globs used to match files in the build's workspace.
       
      repeated string paths = 2;
      Specified by:
      getPathsCount in interface Artifacts.ArtifactObjectsOrBuilder
      Returns:
      The count of paths.
    • getPaths

      public String getPaths(int index)
       Path globs used to match files in the build's workspace.
       
      repeated string paths = 2;
      Specified by:
      getPaths in interface Artifacts.ArtifactObjectsOrBuilder
      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.
       
      repeated string paths = 2;
      Specified by:
      getPathsBytes in interface Artifacts.ArtifactObjectsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the paths at the given index.
    • setPaths

      public Artifacts.ArtifactObjects.Builder setPaths(int index, String value)
       Path globs used to match files in the build's workspace.
       
      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.ArtifactObjects.Builder addPaths(String value)
       Path globs used to match files in the build's workspace.
       
      repeated string paths = 2;
      Parameters:
      value - The paths to add.
      Returns:
      This builder for chaining.
    • addAllPaths

      public Artifacts.ArtifactObjects.Builder addAllPaths(Iterable<String> values)
       Path globs used to match files in the build's workspace.
       
      repeated string paths = 2;
      Parameters:
      values - The paths to add.
      Returns:
      This builder for chaining.
    • clearPaths

      public Artifacts.ArtifactObjects.Builder clearPaths()
       Path globs used to match files in the build's workspace.
       
      repeated string paths = 2;
      Returns:
      This builder for chaining.
    • addPathsBytes

      public Artifacts.ArtifactObjects.Builder addPathsBytes(com.google.protobuf.ByteString value)
       Path globs used to match files in the build's workspace.
       
      repeated string paths = 2;
      Parameters:
      value - The bytes of the paths to add.
      Returns:
      This builder for chaining.
    • hasTiming

      public boolean hasTiming()
       Output only. Stores timing information for pushing all artifact objects.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasTiming in interface Artifacts.ArtifactObjectsOrBuilder
      Returns:
      Whether the timing field is set.
    • getTiming

      public TimeSpan getTiming()
       Output only. Stores timing information for pushing all artifact objects.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTiming in interface Artifacts.ArtifactObjectsOrBuilder
      Returns:
      The timing.
    • setTiming

      public Artifacts.ArtifactObjects.Builder setTiming(TimeSpan value)
       Output only. Stores timing information for pushing all artifact objects.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setTiming

      public Artifacts.ArtifactObjects.Builder setTiming(TimeSpan.Builder builderForValue)
       Output only. Stores timing information for pushing all artifact objects.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeTiming

      public Artifacts.ArtifactObjects.Builder mergeTiming(TimeSpan value)
       Output only. Stores timing information for pushing all artifact objects.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearTiming

      public Artifacts.ArtifactObjects.Builder clearTiming()
       Output only. Stores timing information for pushing all artifact objects.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getTimingBuilder

      public TimeSpan.Builder getTimingBuilder()
       Output only. Stores timing information for pushing all artifact objects.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getTimingOrBuilder

      public TimeSpanOrBuilder getTimingOrBuilder()
       Output only. Stores timing information for pushing all artifact objects.
       
      .google.devtools.cloudbuild.v1.TimeSpan timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTimingOrBuilder in interface Artifacts.ArtifactObjectsOrBuilder