Class SnapshotJobRequest.Builder (0.58.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SnapshotJobRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SnapshotJobRequest.Builder
Overrides

build()

public SnapshotJobRequest build()
Returns
Type Description
SnapshotJobRequest

buildPartial()

public SnapshotJobRequest buildPartial()
Returns
Type Description
SnapshotJobRequest

clear()

public SnapshotJobRequest.Builder clear()
Returns
Type Description
SnapshotJobRequest.Builder
Overrides

clearDescription()

public SnapshotJobRequest.Builder clearDescription()

User specified description of the snapshot. Maybe empty.

string description = 6;

Returns
Type Description
SnapshotJobRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SnapshotJobRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SnapshotJobRequest.Builder
Overrides

clearJobId()

public SnapshotJobRequest.Builder clearJobId()

The job to be snapshotted.

string job_id = 2;

Returns
Type Description
SnapshotJobRequest.Builder

This builder for chaining.

clearLocation()

public SnapshotJobRequest.Builder clearLocation()

The location that contains this job.

string location = 4;

Returns
Type Description
SnapshotJobRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SnapshotJobRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SnapshotJobRequest.Builder
Overrides

clearProjectId()

public SnapshotJobRequest.Builder clearProjectId()

The project which owns the job to be snapshotted.

string project_id = 1;

Returns
Type Description
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
Type Description
SnapshotJobRequest.Builder

This builder for chaining.

clearTtl()

public SnapshotJobRequest.Builder clearTtl()

TTL for the snapshot.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
SnapshotJobRequest.Builder

clone()

public SnapshotJobRequest.Builder clone()
Returns
Type Description
SnapshotJobRequest.Builder
Overrides

getDefaultInstanceForType()

public SnapshotJobRequest getDefaultInstanceForType()
Returns
Type Description
SnapshotJobRequest

getDescription()

public String getDescription()

User specified description of the snapshot. Maybe empty.

string description = 6;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

User specified description of the snapshot. Maybe empty.

string description = 6;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getJobId()

public String getJobId()

The job to be snapshotted.

string job_id = 2;

Returns
Type Description
String

The jobId.

getJobIdBytes()

public ByteString getJobIdBytes()

The job to be snapshotted.

string job_id = 2;

Returns
Type Description
ByteString

The bytes for jobId.

getLocation()

public String getLocation()

The location that contains this job.

string location = 4;

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

The location that contains this job.

string location = 4;

Returns
Type Description
ByteString

The bytes for location.

getProjectId()

public String getProjectId()

The project which owns the job to be snapshotted.

string project_id = 1;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

The project which owns the job to be snapshotted.

string project_id = 1;

Returns
Type Description
ByteString

The bytes for projectId.

getSnapshotSources()

public boolean getSnapshotSources()

If true, perform snapshots for sources which support this.

bool snapshot_sources = 5;

Returns
Type Description
boolean

The snapshotSources.

getTtl()

public Duration getTtl()

TTL for the snapshot.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
Duration

The ttl.

getTtlBuilder()

public Duration.Builder getTtlBuilder()

TTL for the snapshot.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
Builder

getTtlOrBuilder()

public DurationOrBuilder getTtlOrBuilder()

TTL for the snapshot.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
DurationOrBuilder

hasTtl()

public boolean hasTtl()

TTL for the snapshot.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
boolean

Whether the ttl field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SnapshotJobRequest other)

public SnapshotJobRequest.Builder mergeFrom(SnapshotJobRequest other)
Parameter
Name Description
other SnapshotJobRequest
Returns
Type Description
SnapshotJobRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SnapshotJobRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SnapshotJobRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SnapshotJobRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SnapshotJobRequest.Builder
Overrides

mergeTtl(Duration value)

public SnapshotJobRequest.Builder mergeTtl(Duration value)

TTL for the snapshot.

.google.protobuf.Duration ttl = 3;

Parameter
Name Description
value Duration
Returns
Type Description
SnapshotJobRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SnapshotJobRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SnapshotJobRequest.Builder
Overrides

setDescription(String value)

public SnapshotJobRequest.Builder setDescription(String value)

User specified description of the snapshot. Maybe empty.

string description = 6;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
SnapshotJobRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SnapshotJobRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SnapshotJobRequest.Builder
Overrides

setJobId(String value)

public SnapshotJobRequest.Builder setJobId(String value)

The job to be snapshotted.

string job_id = 2;

Parameter
Name Description
value String

The jobId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for jobId to set.

Returns
Type Description
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
Name Description
value String

The location to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
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
Name Description
value String

The projectId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value boolean

The snapshotSources to set.

Returns
Type Description
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
Name Description
value Duration
Returns
Type Description
SnapshotJobRequest.Builder

setTtl(Duration.Builder builderForValue)

public SnapshotJobRequest.Builder setTtl(Duration.Builder builderForValue)

TTL for the snapshot.

.google.protobuf.Duration ttl = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SnapshotJobRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SnapshotJobRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SnapshotJobRequest.Builder
Overrides