Class WeekDayOfMonth.Builder (0.42.0)

public static final class WeekDayOfMonth.Builder extends GeneratedMessage.Builder<WeekDayOfMonth.Builder> implements WeekDayOfMonthOrBuilder

WeekDayOfMonth defines the week day of the month on which the backups will run. The message combines a WeekOfMonth and DayOfWeek to produce values like FIRST/MONDAY or LAST/FRIDAY.

Protobuf type google.cloud.backupdr.v1.WeekDayOfMonth

Static Methods

getDescriptor()

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

Methods

build()

public WeekDayOfMonth build()
Returns
Type Description
WeekDayOfMonth

buildPartial()

public WeekDayOfMonth buildPartial()
Returns
Type Description
WeekDayOfMonth

clear()

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

clearDayOfWeek()

public WeekDayOfMonth.Builder clearDayOfWeek()

Required. Specifies the day of the week.

.google.type.DayOfWeek day_of_week = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WeekDayOfMonth.Builder

This builder for chaining.

clearWeekOfMonth()

public WeekDayOfMonth.Builder clearWeekOfMonth()

Required. Specifies the week of the month.

.google.cloud.backupdr.v1.WeekDayOfMonth.WeekOfMonth week_of_month = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WeekDayOfMonth.Builder

This builder for chaining.

getDayOfWeek()

public DayOfWeek getDayOfWeek()

Required. Specifies the day of the week.

.google.type.DayOfWeek day_of_week = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.DayOfWeek

The dayOfWeek.

getDayOfWeekValue()

public int getDayOfWeekValue()

Required. Specifies the day of the week.

.google.type.DayOfWeek day_of_week = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for dayOfWeek.

getDefaultInstanceForType()

public WeekDayOfMonth getDefaultInstanceForType()
Returns
Type Description
WeekDayOfMonth

getDescriptorForType()

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

getWeekOfMonth()

public WeekDayOfMonth.WeekOfMonth getWeekOfMonth()

Required. Specifies the week of the month.

.google.cloud.backupdr.v1.WeekDayOfMonth.WeekOfMonth week_of_month = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WeekDayOfMonth.WeekOfMonth

The weekOfMonth.

getWeekOfMonthValue()

public int getWeekOfMonthValue()

Required. Specifies the week of the month.

.google.cloud.backupdr.v1.WeekDayOfMonth.WeekOfMonth week_of_month = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for weekOfMonth.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WeekDayOfMonth other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDayOfWeek(DayOfWeek value)

public WeekDayOfMonth.Builder setDayOfWeek(DayOfWeek value)

Required. Specifies the day of the week.

.google.type.DayOfWeek day_of_week = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.type.DayOfWeek

The dayOfWeek to set.

Returns
Type Description
WeekDayOfMonth.Builder

This builder for chaining.

setDayOfWeekValue(int value)

public WeekDayOfMonth.Builder setDayOfWeekValue(int value)

Required. Specifies the day of the week.

.google.type.DayOfWeek day_of_week = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for dayOfWeek to set.

Returns
Type Description
WeekDayOfMonth.Builder

This builder for chaining.

setWeekOfMonth(WeekDayOfMonth.WeekOfMonth value)

public WeekDayOfMonth.Builder setWeekOfMonth(WeekDayOfMonth.WeekOfMonth value)

Required. Specifies the week of the month.

.google.cloud.backupdr.v1.WeekDayOfMonth.WeekOfMonth week_of_month = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value WeekDayOfMonth.WeekOfMonth

The weekOfMonth to set.

Returns
Type Description
WeekDayOfMonth.Builder

This builder for chaining.

setWeekOfMonthValue(int value)

public WeekDayOfMonth.Builder setWeekOfMonthValue(int value)

Required. Specifies the week of the month.

.google.cloud.backupdr.v1.WeekDayOfMonth.WeekOfMonth week_of_month = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for weekOfMonth to set.

Returns
Type Description
WeekDayOfMonth.Builder

This builder for chaining.