Class ScheduledSnapshotsConfig.Builder (1.43.0)

public static final class ScheduledSnapshotsConfig.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScheduledSnapshotsConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ScheduledSnapshotsConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ScheduledSnapshotsConfig.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

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