public static final class BackupWindow.Builder extends GeneratedMessage.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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BackupWindow.BuilderImplements
BackupWindowOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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. |
getDefaultInstanceForType()
public BackupWindow getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BackupWindow |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BackupWindow.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BackupWindow.Builder |
|
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 |
intThe endHourOfDay to set. |
| Returns | |
|---|---|
| Type | Description |
BackupWindow.Builder |
This builder for chaining. |
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 |
intThe startHourOfDay to set. |
| Returns | |
|---|---|
| Type | Description |
BackupWindow.Builder |
This builder for chaining. |