Class Snapshot.Builder

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

public static final class Snapshot.Builder extends com.google.protobuf.GeneratedMessage.Builder<Snapshot.Builder> implements SnapshotOrBuilder
 Represents a snapshot of a job.
 
Protobuf type google.dataflow.v1beta3.Snapshot
  • 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<Snapshot.Builder>
    • clear

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

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

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

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

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

      public Snapshot.Builder mergeFrom(Snapshot other)
    • isInitialized

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

      public Snapshot.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<Snapshot.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       The unique ID of this snapshot.
       
      string id = 1;
      Specified by:
      getId in interface SnapshotOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The unique ID of this snapshot.
       
      string id = 1;
      Specified by:
      getIdBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Snapshot.Builder setId(String value)
       The unique ID of this snapshot.
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Snapshot.Builder clearId()
       The unique ID of this snapshot.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public Snapshot.Builder setIdBytes(com.google.protobuf.ByteString value)
       The unique ID of this snapshot.
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getProjectId

      public String getProjectId()
       The project this snapshot belongs to.
       
      string project_id = 2;
      Specified by:
      getProjectId in interface SnapshotOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       The project this snapshot belongs to.
       
      string project_id = 2;
      Specified by:
      getProjectIdBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public Snapshot.Builder setProjectId(String value)
       The project this snapshot belongs to.
       
      string project_id = 2;
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public Snapshot.Builder clearProjectId()
       The project this snapshot belongs to.
       
      string project_id = 2;
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public Snapshot.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       The project this snapshot belongs to.
       
      string project_id = 2;
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getSourceJobId

      public String getSourceJobId()
       The job this snapshot was created from.
       
      string source_job_id = 3;
      Specified by:
      getSourceJobId in interface SnapshotOrBuilder
      Returns:
      The sourceJobId.
    • getSourceJobIdBytes

      public com.google.protobuf.ByteString getSourceJobIdBytes()
       The job this snapshot was created from.
       
      string source_job_id = 3;
      Specified by:
      getSourceJobIdBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for sourceJobId.
    • setSourceJobId

      public Snapshot.Builder setSourceJobId(String value)
       The job this snapshot was created from.
       
      string source_job_id = 3;
      Parameters:
      value - The sourceJobId to set.
      Returns:
      This builder for chaining.
    • clearSourceJobId

      public Snapshot.Builder clearSourceJobId()
       The job this snapshot was created from.
       
      string source_job_id = 3;
      Returns:
      This builder for chaining.
    • setSourceJobIdBytes

      public Snapshot.Builder setSourceJobIdBytes(com.google.protobuf.ByteString value)
       The job this snapshot was created from.
       
      string source_job_id = 3;
      Parameters:
      value - The bytes for sourceJobId to set.
      Returns:
      This builder for chaining.
    • hasCreationTime

      public boolean hasCreationTime()
       The time this snapshot was created.
       
      .google.protobuf.Timestamp creation_time = 4;
      Specified by:
      hasCreationTime in interface SnapshotOrBuilder
      Returns:
      Whether the creationTime field is set.
    • getCreationTime

      public com.google.protobuf.Timestamp getCreationTime()
       The time this snapshot was created.
       
      .google.protobuf.Timestamp creation_time = 4;
      Specified by:
      getCreationTime in interface SnapshotOrBuilder
      Returns:
      The creationTime.
    • setCreationTime

      public Snapshot.Builder setCreationTime(com.google.protobuf.Timestamp value)
       The time this snapshot was created.
       
      .google.protobuf.Timestamp creation_time = 4;
    • setCreationTime

      public Snapshot.Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time this snapshot was created.
       
      .google.protobuf.Timestamp creation_time = 4;
    • mergeCreationTime

      public Snapshot.Builder mergeCreationTime(com.google.protobuf.Timestamp value)
       The time this snapshot was created.
       
      .google.protobuf.Timestamp creation_time = 4;
    • clearCreationTime

      public Snapshot.Builder clearCreationTime()
       The time this snapshot was created.
       
      .google.protobuf.Timestamp creation_time = 4;
    • getCreationTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder()
       The time this snapshot was created.
       
      .google.protobuf.Timestamp creation_time = 4;
    • getCreationTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder()
       The time this snapshot was created.
       
      .google.protobuf.Timestamp creation_time = 4;
      Specified by:
      getCreationTimeOrBuilder in interface SnapshotOrBuilder
    • hasTtl

      public boolean hasTtl()
       The time after which this snapshot will be automatically deleted.
       
      .google.protobuf.Duration ttl = 5;
      Specified by:
      hasTtl in interface SnapshotOrBuilder
      Returns:
      Whether the ttl field is set.
    • getTtl

      public com.google.protobuf.Duration getTtl()
       The time after which this snapshot will be automatically deleted.
       
      .google.protobuf.Duration ttl = 5;
      Specified by:
      getTtl in interface SnapshotOrBuilder
      Returns:
      The ttl.
    • setTtl

      public Snapshot.Builder setTtl(com.google.protobuf.Duration value)
       The time after which this snapshot will be automatically deleted.
       
      .google.protobuf.Duration ttl = 5;
    • setTtl

      public Snapshot.Builder setTtl(com.google.protobuf.Duration.Builder builderForValue)
       The time after which this snapshot will be automatically deleted.
       
      .google.protobuf.Duration ttl = 5;
    • mergeTtl

      public Snapshot.Builder mergeTtl(com.google.protobuf.Duration value)
       The time after which this snapshot will be automatically deleted.
       
      .google.protobuf.Duration ttl = 5;
    • clearTtl

      public Snapshot.Builder clearTtl()
       The time after which this snapshot will be automatically deleted.
       
      .google.protobuf.Duration ttl = 5;
    • getTtlBuilder

      public com.google.protobuf.Duration.Builder getTtlBuilder()
       The time after which this snapshot will be automatically deleted.
       
      .google.protobuf.Duration ttl = 5;
    • getTtlOrBuilder

      public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()
       The time after which this snapshot will be automatically deleted.
       
      .google.protobuf.Duration ttl = 5;
      Specified by:
      getTtlOrBuilder in interface SnapshotOrBuilder
    • getStateValue

      public int getStateValue()
       State of the snapshot.
       
      .google.dataflow.v1beta3.SnapshotState state = 6;
      Specified by:
      getStateValue in interface SnapshotOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Snapshot.Builder setStateValue(int value)
       State of the snapshot.
       
      .google.dataflow.v1beta3.SnapshotState state = 6;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public SnapshotState getState()
       State of the snapshot.
       
      .google.dataflow.v1beta3.SnapshotState state = 6;
      Specified by:
      getState in interface SnapshotOrBuilder
      Returns:
      The state.
    • setState

      public Snapshot.Builder setState(SnapshotState value)
       State of the snapshot.
       
      .google.dataflow.v1beta3.SnapshotState state = 6;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Snapshot.Builder clearState()
       State of the snapshot.
       
      .google.dataflow.v1beta3.SnapshotState state = 6;
      Returns:
      This builder for chaining.
    • getPubsubMetadataList

      public List<PubsubSnapshotMetadata> getPubsubMetadataList()
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
      Specified by:
      getPubsubMetadataList in interface SnapshotOrBuilder
    • getPubsubMetadataCount

      public int getPubsubMetadataCount()
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
      Specified by:
      getPubsubMetadataCount in interface SnapshotOrBuilder
    • getPubsubMetadata

      public PubsubSnapshotMetadata getPubsubMetadata(int index)
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
      Specified by:
      getPubsubMetadata in interface SnapshotOrBuilder
    • setPubsubMetadata

      public Snapshot.Builder setPubsubMetadata(int index, PubsubSnapshotMetadata value)
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
    • setPubsubMetadata

      public Snapshot.Builder setPubsubMetadata(int index, PubsubSnapshotMetadata.Builder builderForValue)
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
    • addPubsubMetadata

      public Snapshot.Builder addPubsubMetadata(PubsubSnapshotMetadata value)
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
    • addPubsubMetadata

      public Snapshot.Builder addPubsubMetadata(int index, PubsubSnapshotMetadata value)
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
    • addPubsubMetadata

      public Snapshot.Builder addPubsubMetadata(PubsubSnapshotMetadata.Builder builderForValue)
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
    • addPubsubMetadata

      public Snapshot.Builder addPubsubMetadata(int index, PubsubSnapshotMetadata.Builder builderForValue)
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
    • addAllPubsubMetadata

      public Snapshot.Builder addAllPubsubMetadata(Iterable<? extends PubsubSnapshotMetadata> values)
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
    • clearPubsubMetadata

      public Snapshot.Builder clearPubsubMetadata()
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
    • removePubsubMetadata

      public Snapshot.Builder removePubsubMetadata(int index)
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
    • getPubsubMetadataBuilder

      public PubsubSnapshotMetadata.Builder getPubsubMetadataBuilder(int index)
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
    • getPubsubMetadataOrBuilder

      public PubsubSnapshotMetadataOrBuilder getPubsubMetadataOrBuilder(int index)
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
      Specified by:
      getPubsubMetadataOrBuilder in interface SnapshotOrBuilder
    • getPubsubMetadataOrBuilderList

      public List<? extends PubsubSnapshotMetadataOrBuilder> getPubsubMetadataOrBuilderList()
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
      Specified by:
      getPubsubMetadataOrBuilderList in interface SnapshotOrBuilder
    • addPubsubMetadataBuilder

      public PubsubSnapshotMetadata.Builder addPubsubMetadataBuilder()
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
    • addPubsubMetadataBuilder

      public PubsubSnapshotMetadata.Builder addPubsubMetadataBuilder(int index)
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
    • getPubsubMetadataBuilderList

      public List<PubsubSnapshotMetadata.Builder> getPubsubMetadataBuilderList()
       Pub/Sub snapshot metadata.
       
      repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;
    • getDescription

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

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

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

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

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

      public long getDiskSizeBytes()
       The disk byte size of the snapshot. Only available for snapshots in READY
       state.
       
      int64 disk_size_bytes = 9;
      Specified by:
      getDiskSizeBytes in interface SnapshotOrBuilder
      Returns:
      The diskSizeBytes.
    • setDiskSizeBytes

      public Snapshot.Builder setDiskSizeBytes(long value)
       The disk byte size of the snapshot. Only available for snapshots in READY
       state.
       
      int64 disk_size_bytes = 9;
      Parameters:
      value - The diskSizeBytes to set.
      Returns:
      This builder for chaining.
    • clearDiskSizeBytes

      public Snapshot.Builder clearDiskSizeBytes()
       The disk byte size of the snapshot. Only available for snapshots in READY
       state.
       
      int64 disk_size_bytes = 9;
      Returns:
      This builder for chaining.
    • getRegion

      public String getRegion()
       Cloud region where this snapshot lives in, e.g., "us-central1".
       
      string region = 10;
      Specified by:
      getRegion in interface SnapshotOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Cloud region where this snapshot lives in, e.g., "us-central1".
       
      string region = 10;
      Specified by:
      getRegionBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for region.
    • setRegion

      public Snapshot.Builder setRegion(String value)
       Cloud region where this snapshot lives in, e.g., "us-central1".
       
      string region = 10;
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

      public Snapshot.Builder clearRegion()
       Cloud region where this snapshot lives in, e.g., "us-central1".
       
      string region = 10;
      Returns:
      This builder for chaining.
    • setRegionBytes

      public Snapshot.Builder setRegionBytes(com.google.protobuf.ByteString value)
       Cloud region where this snapshot lives in, e.g., "us-central1".
       
      string region = 10;
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.