Class BackupWindow.Builder (0.11.0)

publicstaticfinalclass BackupWindow.BuilderextendsGeneratedMessageV3.Builder<BackupWindow.Builder>implementsBackupWindowOrBuilder

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

Protobuf type google.cloud.backupdr.v1.BackupWindow

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicBackupWindow.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackupWindow.Builder
Overrides

build()

publicBackupWindowbuild()
Returns
Type Description
BackupWindow

buildPartial()

publicBackupWindowbuildPartial()
Returns
Type Description
BackupWindow

clear()

publicBackupWindow.Builderclear()
Returns
Type Description
BackupWindow.Builder
Overrides

clearEndHourOfDay()

publicBackupWindow.BuilderclearEndHourOfDay()

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)

publicBackupWindow.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BackupWindow.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicBackupWindow.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BackupWindow.Builder
Overrides

clearStartHourOfDay()

publicBackupWindow.BuilderclearStartHourOfDay()

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()

publicBackupWindow.Builderclone()
Returns
Type Description
BackupWindow.Builder
Overrides

getDefaultInstanceForType()

publicBackupWindowgetDefaultInstanceForType()
Returns
Type Description
BackupWindow

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndHourOfDay()

publicintgetEndHourOfDay()

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()

publicintgetStartHourOfDay()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackupWindow other)

publicBackupWindow.BuildermergeFrom(BackupWindowother)
Parameter
Name Description
other BackupWindow
Returns
Type Description
BackupWindow.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicBackupWindow.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupWindow.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicBackupWindow.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
BackupWindow.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalBackupWindow.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackupWindow.Builder
Overrides

setEndHourOfDay(int value)

publicBackupWindow.BuildersetEndHourOfDay(intvalue)

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)

publicBackupWindow.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackupWindow.Builder
Overrides

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

publicBackupWindow.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BackupWindow.Builder
Overrides

setStartHourOfDay(int value)

publicBackupWindow.BuildersetStartHourOfDay(intvalue)

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)

publicfinalBackupWindow.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackupWindow.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.