Class SnapshotJobRequest.Builder

public static final class SnapshotJobRequest.Builder extends GeneratedMessageV3.Builder<SnapshotJobRequest.Builder> implements SnapshotJobRequestOrBuilder

Request to create a snapshot of a job.

Protobuf type google.dataflow.v1beta3.SnapshotJobRequest

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SnapshotJobRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SnapshotJobRequest.Builder
Overrides

build()

public SnapshotJobRequest build()
Returns
TypeDescription
SnapshotJobRequest

buildPartial()

public SnapshotJobRequest buildPartial()
Returns
TypeDescription
SnapshotJobRequest

clear()

public SnapshotJobRequest.Builder clear()
Returns
TypeDescription
SnapshotJobRequest.Builder
Overrides

clearDescription()

public SnapshotJobRequest.Builder clearDescription()

User specified description of the snapshot. Maybe empty.

string description = 6;

Returns
TypeDescription
SnapshotJobRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SnapshotJobRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SnapshotJobRequest.Builder
Overrides

clearJobId()

public SnapshotJobRequest.Builder clearJobId()

The job to be snapshotted.

string job_id = 2;

Returns
TypeDescription
SnapshotJobRequest.Builder

This builder for chaining.

clearLocation()

public SnapshotJobRequest.Builder clearLocation()

The location that contains this job.

string location = 4;

Returns
TypeDescription
SnapshotJobRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SnapshotJobRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SnapshotJobRequest.Builder
Overrides

clearProjectId()

public SnapshotJobRequest.Builder clearProjectId()

The project which owns the job to be snapshotted.

string project_id = 1;

Returns
TypeDescription
SnapshotJobRequest.Builder

This builder for chaining.

clearSnapshotSources()

public SnapshotJobRequest.Builder clearSnapshotSources()

If true, perform snapshots for sources which support this.

bool snapshot_sources = 5;

Returns
TypeDescription
SnapshotJobRequest.Builder

This builder for chaining.

clearTtl()

public SnapshotJobRequest.Builder clearTtl()

TTL for the snapshot.

.google.protobuf.Duration ttl = 3;

Returns
TypeDescription
SnapshotJobRequest.Builder

clone()

public SnapshotJobRequest.Builder clone()
Returns
TypeDescription
SnapshotJobRequest.Builder
Overrides

getDefaultInstanceForType()

public SnapshotJobRequest getDefaultInstanceForType()
Returns
TypeDescription
SnapshotJobRequest

getDescription()

public String getDescription()

User specified description of the snapshot. Maybe empty.

string description = 6;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

User specified description of the snapshot. Maybe empty.

string description = 6;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getJobId()

public String getJobId()

The job to be snapshotted.

string job_id = 2;

Returns
TypeDescription
String

The jobId.

getJobIdBytes()

public ByteString getJobIdBytes()

The job to be snapshotted.

string job_id = 2;

Returns
TypeDescription
ByteString

The bytes for jobId.

getLocation()

public String getLocation()

The location that contains this job.

string location = 4;

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

The location that contains this job.

string location = 4;

Returns
TypeDescription
ByteString

The bytes for location.

getProjectId()

public String getProjectId()

The project which owns the job to be snapshotted.

string project_id = 1;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

The project which owns the job to be snapshotted.

string project_id = 1;

Returns
TypeDescription
ByteString

The bytes for projectId.

getSnapshotSources()

public boolean getSnapshotSources()

If true, perform snapshots for sources which support this.

bool snapshot_sources = 5;

Returns
TypeDescription
boolean

The snapshotSources.

getTtl()

public Duration getTtl()

TTL for the snapshot.

.google.protobuf.Duration ttl = 3;

Returns
TypeDescription
Duration

The ttl.

getTtlBuilder()

public Duration.Builder getTtlBuilder()

TTL for the snapshot.

.google.protobuf.Duration ttl = 3;

Returns
TypeDescription
Builder

getTtlOrBuilder()

public DurationOrBuilder getTtlOrBuilder()

TTL for the snapshot.

.google.protobuf.Duration ttl = 3;

Returns
TypeDescription
DurationOrBuilder

hasTtl()

public boolean hasTtl()

TTL for the snapshot.

.google.protobuf.Duration ttl = 3;

Returns
TypeDescription
boolean

Whether the ttl field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SnapshotJobRequest other)

public SnapshotJobRequest.Builder mergeFrom(SnapshotJobRequest other)
Parameter
NameDescription
otherSnapshotJobRequest
Returns
TypeDescription
SnapshotJobRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SnapshotJobRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SnapshotJobRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SnapshotJobRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SnapshotJobRequest.Builder
Overrides

mergeTtl(Duration value)

public SnapshotJobRequest.Builder mergeTtl(Duration value)

TTL for the snapshot.

.google.protobuf.Duration ttl = 3;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
SnapshotJobRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SnapshotJobRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SnapshotJobRequest.Builder
Overrides

setDescription(String value)

public SnapshotJobRequest.Builder setDescription(String value)

User specified description of the snapshot. Maybe empty.

string description = 6;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
SnapshotJobRequest.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public SnapshotJobRequest.Builder setDescriptionBytes(ByteString value)

User specified description of the snapshot. Maybe empty.

string description = 6;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
SnapshotJobRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SnapshotJobRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SnapshotJobRequest.Builder
Overrides

setJobId(String value)

public SnapshotJobRequest.Builder setJobId(String value)

The job to be snapshotted.

string job_id = 2;

Parameter
NameDescription
valueString

The jobId to set.

Returns
TypeDescription
SnapshotJobRequest.Builder

This builder for chaining.

setJobIdBytes(ByteString value)

public SnapshotJobRequest.Builder setJobIdBytes(ByteString value)

The job to be snapshotted.

string job_id = 2;

Parameter
NameDescription
valueByteString

The bytes for jobId to set.

Returns
TypeDescription
SnapshotJobRequest.Builder

This builder for chaining.

setLocation(String value)

public SnapshotJobRequest.Builder setLocation(String value)

The location that contains this job.

string location = 4;

Parameter
NameDescription
valueString

The location to set.

Returns
TypeDescription
SnapshotJobRequest.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public SnapshotJobRequest.Builder setLocationBytes(ByteString value)

The location that contains this job.

string location = 4;

Parameter
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
SnapshotJobRequest.Builder

This builder for chaining.

setProjectId(String value)

public SnapshotJobRequest.Builder setProjectId(String value)

The project which owns the job to be snapshotted.

string project_id = 1;

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
SnapshotJobRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public SnapshotJobRequest.Builder setProjectIdBytes(ByteString value)

The project which owns the job to be snapshotted.

string project_id = 1;

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
SnapshotJobRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SnapshotJobRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SnapshotJobRequest.Builder
Overrides

setSnapshotSources(boolean value)

public SnapshotJobRequest.Builder setSnapshotSources(boolean value)

If true, perform snapshots for sources which support this.

bool snapshot_sources = 5;

Parameter
NameDescription
valueboolean

The snapshotSources to set.

Returns
TypeDescription
SnapshotJobRequest.Builder

This builder for chaining.

setTtl(Duration value)

public SnapshotJobRequest.Builder setTtl(Duration value)

TTL for the snapshot.

.google.protobuf.Duration ttl = 3;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
SnapshotJobRequest.Builder

setTtl(Duration.Builder builderForValue)

public SnapshotJobRequest.Builder setTtl(Duration.Builder builderForValue)

TTL for the snapshot.

.google.protobuf.Duration ttl = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
SnapshotJobRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SnapshotJobRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SnapshotJobRequest.Builder
Overrides