Class PatchDeployments.MonthlySchedule.Builder (2.14.0)

public static final class PatchDeployments.MonthlySchedule.Builder extends GeneratedMessageV3.Builder<PatchDeployments.MonthlySchedule.Builder> implements PatchDeployments.MonthlyScheduleOrBuilder

Represents a monthly schedule. An example of a valid monthly schedule is "on the third Tuesday of the month" or "on the 15th of the month".

Protobuf type google.cloud.osconfig.v1beta.MonthlySchedule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PatchDeployments.MonthlySchedule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder
Overrides

build()

public PatchDeployments.MonthlySchedule build()
Returns
TypeDescription
PatchDeployments.MonthlySchedule

buildPartial()

public PatchDeployments.MonthlySchedule buildPartial()
Returns
TypeDescription
PatchDeployments.MonthlySchedule

clear()

public PatchDeployments.MonthlySchedule.Builder clear()
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder
Overrides

clearDayOfMonth()

public PatchDeployments.MonthlySchedule.Builder clearDayOfMonth()
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder

clearField(Descriptors.FieldDescriptor field)

public PatchDeployments.MonthlySchedule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder
Overrides

clearMonthDay()

public PatchDeployments.MonthlySchedule.Builder clearMonthDay()

Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run "every month on the 31st" will not run in February, April, June, etc.

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

Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PatchDeployments.MonthlySchedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder
Overrides

clearWeekDayOfMonth()

public PatchDeployments.MonthlySchedule.Builder clearWeekDayOfMonth()

Required. Week day in a month.

.google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder

clone()

public PatchDeployments.MonthlySchedule.Builder clone()
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder
Overrides

getDayOfMonthCase()

public PatchDeployments.MonthlySchedule.DayOfMonthCase getDayOfMonthCase()
Returns
TypeDescription
PatchDeployments.MonthlySchedule.DayOfMonthCase

getDefaultInstanceForType()

public PatchDeployments.MonthlySchedule getDefaultInstanceForType()
Returns
TypeDescription
PatchDeployments.MonthlySchedule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMonthDay()

public int getMonthDay()

Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run "every month on the 31st" will not run in February, April, June, etc.

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

Returns
TypeDescription
int

The monthDay.

getWeekDayOfMonth()

public PatchDeployments.WeekDayOfMonth getWeekDayOfMonth()

Required. Week day in a month.

.google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchDeployments.WeekDayOfMonth

The weekDayOfMonth.

getWeekDayOfMonthBuilder()

public PatchDeployments.WeekDayOfMonth.Builder getWeekDayOfMonthBuilder()

Required. Week day in a month.

.google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchDeployments.WeekDayOfMonth.Builder

getWeekDayOfMonthOrBuilder()

public PatchDeployments.WeekDayOfMonthOrBuilder getWeekDayOfMonthOrBuilder()

Required. Week day in a month.

.google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchDeployments.WeekDayOfMonthOrBuilder

hasMonthDay()

public boolean hasMonthDay()

Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run "every month on the 31st" will not run in February, April, June, etc.

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

Returns
TypeDescription
boolean

Whether the monthDay field is set.

hasWeekDayOfMonth()

public boolean hasWeekDayOfMonth()

Required. Week day in a month.

.google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the weekDayOfMonth field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PatchDeployments.MonthlySchedule other)

public PatchDeployments.MonthlySchedule.Builder mergeFrom(PatchDeployments.MonthlySchedule other)
Parameter
NameDescription
otherPatchDeployments.MonthlySchedule
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PatchDeployments.MonthlySchedule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PatchDeployments.MonthlySchedule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PatchDeployments.MonthlySchedule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder
Overrides

mergeWeekDayOfMonth(PatchDeployments.WeekDayOfMonth value)

public PatchDeployments.MonthlySchedule.Builder mergeWeekDayOfMonth(PatchDeployments.WeekDayOfMonth value)

Required. Week day in a month.

.google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuePatchDeployments.WeekDayOfMonth
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PatchDeployments.MonthlySchedule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder
Overrides

setMonthDay(int value)

public PatchDeployments.MonthlySchedule.Builder setMonthDay(int value)

Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run "every month on the 31st" will not run in February, April, June, etc.

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

Parameter
NameDescription
valueint

The monthDay to set.

Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder

This builder for chaining.

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

public PatchDeployments.MonthlySchedule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PatchDeployments.MonthlySchedule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder
Overrides

setWeekDayOfMonth(PatchDeployments.WeekDayOfMonth value)

public PatchDeployments.MonthlySchedule.Builder setWeekDayOfMonth(PatchDeployments.WeekDayOfMonth value)

Required. Week day in a month.

.google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuePatchDeployments.WeekDayOfMonth
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder

setWeekDayOfMonth(PatchDeployments.WeekDayOfMonth.Builder builderForValue)

public PatchDeployments.MonthlySchedule.Builder setWeekDayOfMonth(PatchDeployments.WeekDayOfMonth.Builder builderForValue)

Required. Week day in a month.

.google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValuePatchDeployments.WeekDayOfMonth.Builder
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder