Class ScheduledSnapshotsConfig.Builder (1.41.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ScheduledSnapshotsConfig build()
Returns
TypeDescription
ScheduledSnapshotsConfig

buildPartial()

public ScheduledSnapshotsConfig buildPartial()
Returns
TypeDescription
ScheduledSnapshotsConfig

clear()

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

clearEnabled()

public ScheduledSnapshotsConfig.Builder clearEnabled()

Optional. Whether scheduled snapshots creation is enabled.

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

Returns
TypeDescription
ScheduledSnapshotsConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ScheduledSnapshotsConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ScheduledSnapshotsConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ScheduledSnapshotsConfig getDefaultInstanceForType()
Returns
TypeDescription
ScheduledSnapshotsConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Optional. Whether scheduled snapshots creation is enabled.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for timeZone.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ScheduledSnapshotsConfig other)

public ScheduledSnapshotsConfig.Builder mergeFrom(ScheduledSnapshotsConfig other)
Parameter
NameDescription
otherScheduledSnapshotsConfig
Returns
TypeDescription
ScheduledSnapshotsConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScheduledSnapshotsConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
ScheduledSnapshotsConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ScheduledSnapshotsConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The snapshotCreationSchedule to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for snapshotCreationSchedule to set.

Returns
TypeDescription
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
NameDescription
valueString

The snapshotLocation to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for snapshotLocation to set.

Returns
TypeDescription
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
NameDescription
valueString

The timeZone to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for timeZone to set.

Returns
TypeDescription
ScheduledSnapshotsConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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