Class ScheduledSnapshotsConfig.Builder (1.85.0)

public static final class ScheduledSnapshotsConfig.Builder extends GeneratedMessage.Builder<ScheduledSnapshotsConfig.Builder> implements ScheduledSnapshotsConfigOrBuilder

The configuration for scheduled snapshot creation mechanism.

Protobuf type google.cloud.orchestration.airflow.service.v1beta1.ScheduledSnapshotsConfig

Static Methods

getDescriptor()

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

Methods

build()

public ScheduledSnapshotsConfig build()
Returns
Type Description
ScheduledSnapshotsConfig

buildPartial()

public ScheduledSnapshotsConfig buildPartial()
Returns
Type Description
ScheduledSnapshotsConfig

clear()

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

clearEnabled()

public ScheduledSnapshotsConfig.Builder clearEnabled()

Optional. Whether scheduled snapshots creation is enabled.

bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ScheduledSnapshotsConfig.Builder

This builder for chaining.

clearSnapshotCreationSchedule()

public ScheduledSnapshotsConfig.Builder clearSnapshotCreationSchedule()

Optional. The cron expression representing the time when snapshots creation mechanism runs. This field is subject to additional validation around frequency of execution.

string snapshot_creation_schedule = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ScheduledSnapshotsConfig.Builder

This builder for chaining.

clearSnapshotLocation()

public ScheduledSnapshotsConfig.Builder clearSnapshotLocation()

Optional. The Cloud Storage location for storing automatically created snapshots.

string snapshot_location = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ScheduledSnapshotsConfig.Builder

This builder for chaining.

clearTimeZone()

public ScheduledSnapshotsConfig.Builder clearTimeZone()

Optional. Time zone that sets the context to interpret snapshot_creation_schedule.

string time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ScheduledSnapshotsConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public ScheduledSnapshotsConfig getDefaultInstanceForType()
Returns
Type Description
ScheduledSnapshotsConfig

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Optional. Whether scheduled snapshots creation is enabled.

bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enabled.

getSnapshotCreationSchedule()

public String getSnapshotCreationSchedule()

Optional. The cron expression representing the time when snapshots creation mechanism runs. This field is subject to additional validation around frequency of execution.

string snapshot_creation_schedule = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The snapshotCreationSchedule.

getSnapshotCreationScheduleBytes()

public ByteString getSnapshotCreationScheduleBytes()

Optional. The cron expression representing the time when snapshots creation mechanism runs. This field is subject to additional validation around frequency of execution.

string snapshot_creation_schedule = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for snapshotCreationSchedule.

getSnapshotLocation()

public String getSnapshotLocation()

Optional. The Cloud Storage location for storing automatically created snapshots.

string snapshot_location = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The snapshotLocation.

getSnapshotLocationBytes()

public ByteString getSnapshotLocationBytes()

Optional. The Cloud Storage location for storing automatically created snapshots.

string snapshot_location = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for snapshotLocation.

getTimeZone()

public String getTimeZone()

Optional. Time zone that sets the context to interpret snapshot_creation_schedule.

string time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The timeZone.

getTimeZoneBytes()

public ByteString getTimeZoneBytes()

Optional. Time zone that sets the context to interpret snapshot_creation_schedule.

string time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for timeZone.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ScheduledSnapshotsConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEnabled(boolean value)

public ScheduledSnapshotsConfig.Builder setEnabled(boolean value)

Optional. Whether scheduled snapshots creation is enabled.

bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
ScheduledSnapshotsConfig.Builder

This builder for chaining.

setSnapshotCreationSchedule(String value)

public ScheduledSnapshotsConfig.Builder setSnapshotCreationSchedule(String value)

Optional. The cron expression representing the time when snapshots creation mechanism runs. This field is subject to additional validation around frequency of execution.

string snapshot_creation_schedule = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The snapshotCreationSchedule to set.

Returns
Type Description
ScheduledSnapshotsConfig.Builder

This builder for chaining.

setSnapshotCreationScheduleBytes(ByteString value)

public ScheduledSnapshotsConfig.Builder setSnapshotCreationScheduleBytes(ByteString value)

Optional. The cron expression representing the time when snapshots creation mechanism runs. This field is subject to additional validation around frequency of execution.

string snapshot_creation_schedule = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for snapshotCreationSchedule to set.

Returns
Type Description
ScheduledSnapshotsConfig.Builder

This builder for chaining.

setSnapshotLocation(String value)

public ScheduledSnapshotsConfig.Builder setSnapshotLocation(String value)

Optional. The Cloud Storage location for storing automatically created snapshots.

string snapshot_location = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The snapshotLocation to set.

Returns
Type Description
ScheduledSnapshotsConfig.Builder

This builder for chaining.

setSnapshotLocationBytes(ByteString value)

public ScheduledSnapshotsConfig.Builder setSnapshotLocationBytes(ByteString value)

Optional. The Cloud Storage location for storing automatically created snapshots.

string snapshot_location = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for snapshotLocation to set.

Returns
Type Description
ScheduledSnapshotsConfig.Builder

This builder for chaining.

setTimeZone(String value)

public ScheduledSnapshotsConfig.Builder setTimeZone(String value)

Optional. Time zone that sets the context to interpret snapshot_creation_schedule.

string time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The timeZone to set.

Returns
Type Description
ScheduledSnapshotsConfig.Builder

This builder for chaining.

setTimeZoneBytes(ByteString value)

public ScheduledSnapshotsConfig.Builder setTimeZoneBytes(ByteString value)

Optional. Time zone that sets the context to interpret snapshot_creation_schedule.

string time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for timeZone to set.

Returns
Type Description
ScheduledSnapshotsConfig.Builder

This builder for chaining.