Class PatchDeployments.MonthlySchedule (2.53.0)

public static final class PatchDeployments.MonthlySchedule extends GeneratedMessageV3 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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PatchDeployments.MonthlySchedule

Static Fields

MONTH_DAY_FIELD_NUMBER

public static final int MONTH_DAY_FIELD_NUMBER
Field Value
Type Description
int

WEEK_DAY_OF_MONTH_FIELD_NUMBER

public static final int WEEK_DAY_OF_MONTH_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PatchDeployments.MonthlySchedule getDefaultInstance()
Returns
Type Description
PatchDeployments.MonthlySchedule

getDescriptor()

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

newBuilder()

public static PatchDeployments.MonthlySchedule.Builder newBuilder()
Returns
Type Description
PatchDeployments.MonthlySchedule.Builder

newBuilder(PatchDeployments.MonthlySchedule prototype)

public static PatchDeployments.MonthlySchedule.Builder newBuilder(PatchDeployments.MonthlySchedule prototype)
Parameter
Name Description
prototype PatchDeployments.MonthlySchedule
Returns
Type Description
PatchDeployments.MonthlySchedule.Builder

parseDelimitedFrom(InputStream input)

public static PatchDeployments.MonthlySchedule parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PatchDeployments.MonthlySchedule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PatchDeployments.MonthlySchedule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PatchDeployments.MonthlySchedule
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PatchDeployments.MonthlySchedule parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PatchDeployments.MonthlySchedule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PatchDeployments.MonthlySchedule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PatchDeployments.MonthlySchedule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PatchDeployments.MonthlySchedule parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PatchDeployments.MonthlySchedule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PatchDeployments.MonthlySchedule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PatchDeployments.MonthlySchedule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PatchDeployments.MonthlySchedule parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PatchDeployments.MonthlySchedule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PatchDeployments.MonthlySchedule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PatchDeployments.MonthlySchedule
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PatchDeployments.MonthlySchedule parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PatchDeployments.MonthlySchedule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PatchDeployments.MonthlySchedule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PatchDeployments.MonthlySchedule
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PatchDeployments.MonthlySchedule parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PatchDeployments.MonthlySchedule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PatchDeployments.MonthlySchedule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PatchDeployments.MonthlySchedule
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PatchDeployments.MonthlySchedule> parser()
Returns
Type Description
Parser<MonthlySchedule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDayOfMonthCase()

public PatchDeployments.MonthlySchedule.DayOfMonthCase getDayOfMonthCase()
Returns
Type Description
PatchDeployments.MonthlySchedule.DayOfMonthCase

getDefaultInstanceForType()

public PatchDeployments.MonthlySchedule getDefaultInstanceForType()
Returns
Type Description
PatchDeployments.MonthlySchedule

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
Type Description
int

The monthDay.

getParserForType()

public Parser<PatchDeployments.MonthlySchedule> getParserForType()
Returns
Type Description
Parser<MonthlySchedule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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
Type Description
PatchDeployments.WeekDayOfMonth

The weekDayOfMonth.

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
Type Description
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
Type Description
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
Type Description
boolean

Whether the weekDayOfMonth field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PatchDeployments.MonthlySchedule.Builder newBuilderForType()
Returns
Type Description
PatchDeployments.MonthlySchedule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PatchDeployments.MonthlySchedule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PatchDeployments.MonthlySchedule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PatchDeployments.MonthlySchedule.Builder toBuilder()
Returns
Type Description
PatchDeployments.MonthlySchedule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException