Class WeekDayOfMonth.Builder (0.12.0)

public static final class WeekDayOfMonth.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WeekDayOfMonth.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

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.