Class PatchDeployments.MonthlySchedule (2.29.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
TypeDescription
int

WEEK_DAY_OF_MONTH_FIELD_NUMBER

public static final int WEEK_DAY_OF_MONTH_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PatchDeployments.MonthlySchedule getDefaultInstance()
Returns
TypeDescription
PatchDeployments.MonthlySchedule

getDescriptor()

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

newBuilder()

public static PatchDeployments.MonthlySchedule.Builder newBuilder()
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder

newBuilder(PatchDeployments.MonthlySchedule prototype)

public static PatchDeployments.MonthlySchedule.Builder newBuilder(PatchDeployments.MonthlySchedule prototype)
Parameter
NameDescription
prototypePatchDeployments.MonthlySchedule
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder

parseDelimitedFrom(InputStream input)

public static PatchDeployments.MonthlySchedule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PatchDeployments.MonthlySchedule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PatchDeployments.MonthlySchedule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchDeployments.MonthlySchedule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PatchDeployments.MonthlySchedule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PatchDeployments.MonthlySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PatchDeployments.MonthlySchedule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchDeployments.MonthlySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PatchDeployments.MonthlySchedule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PatchDeployments.MonthlySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PatchDeployments.MonthlySchedule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchDeployments.MonthlySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PatchDeployments.MonthlySchedule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PatchDeployments.MonthlySchedule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PatchDeployments.MonthlySchedule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchDeployments.MonthlySchedule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PatchDeployments.MonthlySchedule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PatchDeployments.MonthlySchedule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PatchDeployments.MonthlySchedule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchDeployments.MonthlySchedule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PatchDeployments.MonthlySchedule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PatchDeployments.MonthlySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PatchDeployments.MonthlySchedule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchDeployments.MonthlySchedule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDayOfMonthCase()

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

getDefaultInstanceForType()

public PatchDeployments.MonthlySchedule getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
int

The monthDay.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PatchDeployments.MonthlySchedule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PatchDeployments.MonthlySchedule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException