Package com.google.dataflow.v1beta3
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 Summary
Modifier and TypeMethodDescriptionaddAllPubsubMetadata(Iterable<? extends PubsubSnapshotMetadata> values) Pub/Sub snapshot metadata.addPubsubMetadata(int index, PubsubSnapshotMetadata value) Pub/Sub snapshot metadata.addPubsubMetadata(int index, PubsubSnapshotMetadata.Builder builderForValue) Pub/Sub snapshot metadata.Pub/Sub snapshot metadata.addPubsubMetadata(PubsubSnapshotMetadata.Builder builderForValue) Pub/Sub snapshot metadata.Pub/Sub snapshot metadata.addPubsubMetadataBuilder(int index) Pub/Sub snapshot metadata.build()clear()The time this snapshot was created.User specified description of the snapshot.The disk byte size of the snapshot.clearId()The unique ID of this snapshot.The project this snapshot belongs to.Pub/Sub snapshot metadata.Cloud region where this snapshot lives in, e.g., "us-central1".The job this snapshot was created from.State of the snapshot.clearTtl()The time after which this snapshot will be automatically deleted.com.google.protobuf.TimestampThe time this snapshot was created.com.google.protobuf.Timestamp.BuilderThe time this snapshot was created.com.google.protobuf.TimestampOrBuilderThe time this snapshot was created.User specified description of the snapshot.com.google.protobuf.ByteStringUser specified description of the snapshot.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongThe disk byte size of the snapshot.getId()The unique ID of this snapshot.com.google.protobuf.ByteStringThe unique ID of this snapshot.The project this snapshot belongs to.com.google.protobuf.ByteStringThe project this snapshot belongs to.getPubsubMetadata(int index) Pub/Sub snapshot metadata.getPubsubMetadataBuilder(int index) Pub/Sub snapshot metadata.Pub/Sub snapshot metadata.intPub/Sub snapshot metadata.Pub/Sub snapshot metadata.getPubsubMetadataOrBuilder(int index) Pub/Sub snapshot metadata.List<? extends PubsubSnapshotMetadataOrBuilder>Pub/Sub snapshot metadata.Cloud region where this snapshot lives in, e.g., "us-central1".com.google.protobuf.ByteStringCloud region where this snapshot lives in, e.g., "us-central1".The job this snapshot was created from.com.google.protobuf.ByteStringThe job this snapshot was created from.getState()State of the snapshot.intState of the snapshot.com.google.protobuf.DurationgetTtl()The time after which this snapshot will be automatically deleted.com.google.protobuf.Duration.BuilderThe time after which this snapshot will be automatically deleted.com.google.protobuf.DurationOrBuilderThe time after which this snapshot will be automatically deleted.booleanThe time this snapshot was created.booleanhasTtl()The time after which this snapshot will be automatically deleted.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreationTime(com.google.protobuf.Timestamp value) The time this snapshot was created.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTtl(com.google.protobuf.Duration value) The time after which this snapshot will be automatically deleted.removePubsubMetadata(int index) Pub/Sub snapshot metadata.setCreationTime(com.google.protobuf.Timestamp value) The time this snapshot was created.setCreationTime(com.google.protobuf.Timestamp.Builder builderForValue) The time this snapshot was created.setDescription(String value) User specified description of the snapshot.setDescriptionBytes(com.google.protobuf.ByteString value) User specified description of the snapshot.setDiskSizeBytes(long value) The disk byte size of the snapshot.The unique ID of this snapshot.setIdBytes(com.google.protobuf.ByteString value) The unique ID of this snapshot.setProjectId(String value) The project this snapshot belongs to.setProjectIdBytes(com.google.protobuf.ByteString value) The project this snapshot belongs to.setPubsubMetadata(int index, PubsubSnapshotMetadata value) Pub/Sub snapshot metadata.setPubsubMetadata(int index, PubsubSnapshotMetadata.Builder builderForValue) Pub/Sub snapshot metadata.Cloud region where this snapshot lives in, e.g., "us-central1".setRegionBytes(com.google.protobuf.ByteString value) Cloud region where this snapshot lives in, e.g., "us-central1".setSourceJobId(String value) The job this snapshot was created from.setSourceJobIdBytes(com.google.protobuf.ByteString value) The job this snapshot was created from.setState(SnapshotState value) State of the snapshot.setStateValue(int value) State of the snapshot.setTtl(com.google.protobuf.Duration value) The time after which this snapshot will be automatically deleted.setTtl(com.google.protobuf.Duration.Builder builderForValue) The time after which this snapshot will be automatically deleted.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Snapshot.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Snapshot.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Snapshot.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Snapshot.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Snapshot.Builder>- Throws:
IOException
-
getId
The unique ID of this snapshot.
string id = 1;- Specified by:
getIdin interfaceSnapshotOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The unique ID of this snapshot.
string id = 1;- Specified by:
getIdBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for id.
-
setId
The unique ID of this snapshot.
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
The unique ID of this snapshot.
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
The unique ID of this snapshot.
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getProjectId
The project this snapshot belongs to.
string project_id = 2;- Specified by:
getProjectIdin interfaceSnapshotOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()The project this snapshot belongs to.
string project_id = 2;- Specified by:
getProjectIdBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
The project this snapshot belongs to.
string project_id = 2;- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
The project this snapshot belongs to.
string project_id = 2;- Returns:
- This builder for chaining.
-
setProjectIdBytes
The project this snapshot belongs to.
string project_id = 2;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getSourceJobId
The job this snapshot was created from.
string source_job_id = 3;- Specified by:
getSourceJobIdin interfaceSnapshotOrBuilder- Returns:
- The sourceJobId.
-
getSourceJobIdBytes
public com.google.protobuf.ByteString getSourceJobIdBytes()The job this snapshot was created from.
string source_job_id = 3;- Specified by:
getSourceJobIdBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for sourceJobId.
-
setSourceJobId
The job this snapshot was created from.
string source_job_id = 3;- Parameters:
value- The sourceJobId to set.- Returns:
- This builder for chaining.
-
clearSourceJobId
The job this snapshot was created from.
string source_job_id = 3;- Returns:
- This builder for chaining.
-
setSourceJobIdBytes
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:
hasCreationTimein interfaceSnapshotOrBuilder- 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:
getCreationTimein interfaceSnapshotOrBuilder- Returns:
- The creationTime.
-
setCreationTime
The time this snapshot was created.
.google.protobuf.Timestamp creation_time = 4; -
setCreationTime
The time this snapshot was created.
.google.protobuf.Timestamp creation_time = 4; -
mergeCreationTime
The time this snapshot was created.
.google.protobuf.Timestamp creation_time = 4; -
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:
getCreationTimeOrBuilderin interfaceSnapshotOrBuilder
-
hasTtl
public boolean hasTtl()The time after which this snapshot will be automatically deleted.
.google.protobuf.Duration ttl = 5;- Specified by:
hasTtlin interfaceSnapshotOrBuilder- 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:
getTtlin interfaceSnapshotOrBuilder- Returns:
- The ttl.
-
setTtl
The time after which this snapshot will be automatically deleted.
.google.protobuf.Duration ttl = 5; -
setTtl
The time after which this snapshot will be automatically deleted.
.google.protobuf.Duration ttl = 5; -
mergeTtl
The time after which this snapshot will be automatically deleted.
.google.protobuf.Duration ttl = 5; -
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:
getTtlOrBuilderin interfaceSnapshotOrBuilder
-
getStateValue
public int getStateValue()State of the snapshot.
.google.dataflow.v1beta3.SnapshotState state = 6;- Specified by:
getStateValuein interfaceSnapshotOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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
State of the snapshot.
.google.dataflow.v1beta3.SnapshotState state = 6;- Specified by:
getStatein interfaceSnapshotOrBuilder- Returns:
- The state.
-
setState
State of the snapshot.
.google.dataflow.v1beta3.SnapshotState state = 6;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
State of the snapshot.
.google.dataflow.v1beta3.SnapshotState state = 6;- Returns:
- This builder for chaining.
-
getPubsubMetadataList
Pub/Sub snapshot metadata.
repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;- Specified by:
getPubsubMetadataListin interfaceSnapshotOrBuilder
-
getPubsubMetadataCount
public int getPubsubMetadataCount()Pub/Sub snapshot metadata.
repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;- Specified by:
getPubsubMetadataCountin interfaceSnapshotOrBuilder
-
getPubsubMetadata
Pub/Sub snapshot metadata.
repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;- Specified by:
getPubsubMetadatain interfaceSnapshotOrBuilder
-
setPubsubMetadata
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
Pub/Sub snapshot metadata.
repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7; -
addPubsubMetadata
Pub/Sub snapshot metadata.
repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7; -
addPubsubMetadata
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
Pub/Sub snapshot metadata.
repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7; -
clearPubsubMetadata
Pub/Sub snapshot metadata.
repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7; -
removePubsubMetadata
Pub/Sub snapshot metadata.
repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7; -
getPubsubMetadataBuilder
Pub/Sub snapshot metadata.
repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7; -
getPubsubMetadataOrBuilder
Pub/Sub snapshot metadata.
repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;- Specified by:
getPubsubMetadataOrBuilderin interfaceSnapshotOrBuilder
-
getPubsubMetadataOrBuilderList
Pub/Sub snapshot metadata.
repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7;- Specified by:
getPubsubMetadataOrBuilderListin interfaceSnapshotOrBuilder
-
addPubsubMetadataBuilder
Pub/Sub snapshot metadata.
repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7; -
addPubsubMetadataBuilder
Pub/Sub snapshot metadata.
repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7; -
getPubsubMetadataBuilderList
Pub/Sub snapshot metadata.
repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7; -
getDescription
User specified description of the snapshot. Maybe empty.
string description = 8;- Specified by:
getDescriptionin interfaceSnapshotOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()User specified description of the snapshot. Maybe empty.
string description = 8;- Specified by:
getDescriptionBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for description.
-
setDescription
User specified description of the snapshot. Maybe empty.
string description = 8;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
User specified description of the snapshot. Maybe empty.
string description = 8;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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:
getDiskSizeBytesin interfaceSnapshotOrBuilder- Returns:
- The diskSizeBytes.
-
setDiskSizeBytes
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
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
Cloud region where this snapshot lives in, e.g., "us-central1".
string region = 10;- Specified by:
getRegionin interfaceSnapshotOrBuilder- 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:
getRegionBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for region.
-
setRegion
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
Cloud region where this snapshot lives in, e.g., "us-central1".
string region = 10;- Returns:
- This builder for chaining.
-
setRegionBytes
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.
-