Class SnapshotJobRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SnapshotJobRequest.Builder>
com.google.dataflow.v1beta3.SnapshotJobRequest.Builder
All Implemented Interfaces:
SnapshotJobRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SnapshotJobRequest

public static final class SnapshotJobRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<SnapshotJobRequest.Builder> implements SnapshotJobRequestOrBuilder
 Request to create a snapshot of a job.
 
Protobuf type google.dataflow.v1beta3.SnapshotJobRequest
  • 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<SnapshotJobRequest.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<SnapshotJobRequest.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<SnapshotJobRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SnapshotJobRequest.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<SnapshotJobRequest.Builder>
      Throws:
      IOException
    • getProjectId

      public String getProjectId()
       The project which owns the job to be snapshotted.
       
      string project_id = 1;
      Specified by:
      getProjectId in interface SnapshotJobRequestOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       The project which owns the job to be snapshotted.
       
      string project_id = 1;
      Specified by:
      getProjectIdBytes in interface SnapshotJobRequestOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public SnapshotJobRequest.Builder setProjectId(String value)
       The project which owns the job to be snapshotted.
       
      string project_id = 1;
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public SnapshotJobRequest.Builder clearProjectId()
       The project which owns the job to be snapshotted.
       
      string project_id = 1;
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public SnapshotJobRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       The project which owns the job to be snapshotted.
       
      string project_id = 1;
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getJobId

      public String getJobId()
       The job to be snapshotted.
       
      string job_id = 2;
      Specified by:
      getJobId in interface SnapshotJobRequestOrBuilder
      Returns:
      The jobId.
    • getJobIdBytes

      public com.google.protobuf.ByteString getJobIdBytes()
       The job to be snapshotted.
       
      string job_id = 2;
      Specified by:
      getJobIdBytes in interface SnapshotJobRequestOrBuilder
      Returns:
      The bytes for jobId.
    • setJobId

      public SnapshotJobRequest.Builder setJobId(String value)
       The job to be snapshotted.
       
      string job_id = 2;
      Parameters:
      value - The jobId to set.
      Returns:
      This builder for chaining.
    • clearJobId

      public SnapshotJobRequest.Builder clearJobId()
       The job to be snapshotted.
       
      string job_id = 2;
      Returns:
      This builder for chaining.
    • setJobIdBytes

      public SnapshotJobRequest.Builder setJobIdBytes(com.google.protobuf.ByteString value)
       The job to be snapshotted.
       
      string job_id = 2;
      Parameters:
      value - The bytes for jobId to set.
      Returns:
      This builder for chaining.
    • hasTtl

      public boolean hasTtl()
       TTL for the snapshot.
       
      .google.protobuf.Duration ttl = 3;
      Specified by:
      hasTtl in interface SnapshotJobRequestOrBuilder
      Returns:
      Whether the ttl field is set.
    • getTtl

      public com.google.protobuf.Duration getTtl()
       TTL for the snapshot.
       
      .google.protobuf.Duration ttl = 3;
      Specified by:
      getTtl in interface SnapshotJobRequestOrBuilder
      Returns:
      The ttl.
    • setTtl

      public SnapshotJobRequest.Builder setTtl(com.google.protobuf.Duration value)
       TTL for the snapshot.
       
      .google.protobuf.Duration ttl = 3;
    • setTtl

      public SnapshotJobRequest.Builder setTtl(com.google.protobuf.Duration.Builder builderForValue)
       TTL for the snapshot.
       
      .google.protobuf.Duration ttl = 3;
    • mergeTtl

      public SnapshotJobRequest.Builder mergeTtl(com.google.protobuf.Duration value)
       TTL for the snapshot.
       
      .google.protobuf.Duration ttl = 3;
    • clearTtl

      public SnapshotJobRequest.Builder clearTtl()
       TTL for the snapshot.
       
      .google.protobuf.Duration ttl = 3;
    • getTtlBuilder

      public com.google.protobuf.Duration.Builder getTtlBuilder()
       TTL for the snapshot.
       
      .google.protobuf.Duration ttl = 3;
    • getTtlOrBuilder

      public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()
       TTL for the snapshot.
       
      .google.protobuf.Duration ttl = 3;
      Specified by:
      getTtlOrBuilder in interface SnapshotJobRequestOrBuilder
    • getLocation

      public String getLocation()
       The location that contains this job.
       
      string location = 4;
      Specified by:
      getLocation in interface SnapshotJobRequestOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       The location that contains this job.
       
      string location = 4;
      Specified by:
      getLocationBytes in interface SnapshotJobRequestOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public SnapshotJobRequest.Builder setLocation(String value)
       The location that contains this job.
       
      string location = 4;
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public SnapshotJobRequest.Builder clearLocation()
       The location that contains this job.
       
      string location = 4;
      Returns:
      This builder for chaining.
    • setLocationBytes

      public SnapshotJobRequest.Builder setLocationBytes(com.google.protobuf.ByteString value)
       The location that contains this job.
       
      string location = 4;
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getSnapshotSources

      public boolean getSnapshotSources()
       If true, perform snapshots for sources which support this.
       
      bool snapshot_sources = 5;
      Specified by:
      getSnapshotSources in interface SnapshotJobRequestOrBuilder
      Returns:
      The snapshotSources.
    • setSnapshotSources

      public SnapshotJobRequest.Builder setSnapshotSources(boolean value)
       If true, perform snapshots for sources which support this.
       
      bool snapshot_sources = 5;
      Parameters:
      value - The snapshotSources to set.
      Returns:
      This builder for chaining.
    • clearSnapshotSources

      public SnapshotJobRequest.Builder clearSnapshotSources()
       If true, perform snapshots for sources which support this.
       
      bool snapshot_sources = 5;
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       User specified description of the snapshot. Maybe empty.
       
      string description = 6;
      Specified by:
      getDescription in interface SnapshotJobRequestOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       User specified description of the snapshot. Maybe empty.
       
      string description = 6;
      Specified by:
      getDescriptionBytes in interface SnapshotJobRequestOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public SnapshotJobRequest.Builder setDescription(String value)
       User specified description of the snapshot. Maybe empty.
       
      string description = 6;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public SnapshotJobRequest.Builder clearDescription()
       User specified description of the snapshot. Maybe empty.
       
      string description = 6;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public SnapshotJobRequest.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       User specified description of the snapshot. Maybe empty.
       
      string description = 6;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.