Class BackupWindow.Builder (0.12.0)

public static final class BackupWindow.Builder extends GeneratedMessageV3.Builder<BackupWindow.Builder> implements BackupWindowOrBuilder

BackupWindow defines a window of the day during which backup jobs will run.

Protobuf type google.cloud.backupdr.v1.BackupWindow

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BackupWindow build()
Returns
Type Description
BackupWindow

buildPartial()

public BackupWindow buildPartial()
Returns
Type Description
BackupWindow

clear()

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

clearEndHourOfDay()

public BackupWindow.Builder clearEndHourOfDay()

Required. The hour of day (1-24) when the window end for e.g. if value of end hour of day is 10 that mean backup window end time is 10:00.

End hour of day should be greater than start hour of day. 0 <= start_hour_of_day < end_hour_of_day <= 24

End hour of day is not include in backup window that mean if end_hour_of_day= 10 jobs should start before 10:00.

int32 end_hour_of_day = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BackupWindow.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartHourOfDay()

public BackupWindow.Builder clearStartHourOfDay()

Required. The hour of day (0-23) when the window starts for e.g. if value of start hour of day is 6 that mean backup window start at 6:00.

int32 start_hour_of_day = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BackupWindow.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BackupWindow getDefaultInstanceForType()
Returns
Type Description
BackupWindow

getDescriptorForType()

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

getEndHourOfDay()

public int getEndHourOfDay()

Required. The hour of day (1-24) when the window end for e.g. if value of end hour of day is 10 that mean backup window end time is 10:00.

End hour of day should be greater than start hour of day. 0 <= start_hour_of_day < end_hour_of_day <= 24

End hour of day is not include in backup window that mean if end_hour_of_day= 10 jobs should start before 10:00.

int32 end_hour_of_day = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The endHourOfDay.

getStartHourOfDay()

public int getStartHourOfDay()

Required. The hour of day (0-23) when the window starts for e.g. if value of start hour of day is 6 that mean backup window start at 6:00.

int32 start_hour_of_day = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The startHourOfDay.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackupWindow other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEndHourOfDay(int value)

public BackupWindow.Builder setEndHourOfDay(int value)

Required. The hour of day (1-24) when the window end for e.g. if value of end hour of day is 10 that mean backup window end time is 10:00.

End hour of day should be greater than start hour of day. 0 <= start_hour_of_day < end_hour_of_day <= 24

End hour of day is not include in backup window that mean if end_hour_of_day= 10 jobs should start before 10:00.

int32 end_hour_of_day = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The endHourOfDay to set.

Returns
Type Description
BackupWindow.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStartHourOfDay(int value)

public BackupWindow.Builder setStartHourOfDay(int value)

Required. The hour of day (0-23) when the window starts for e.g. if value of start hour of day is 6 that mean backup window start at 6:00.

int32 start_hour_of_day = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The startHourOfDay to set.

Returns
Type Description
BackupWindow.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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