Class WeekDayOfMonth (0.21.0)

publicfinalclass WeekDayOfMonthextendsGeneratedMessageV3implementsWeekDayOfMonthOrBuilder

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

DAY_OF_WEEK_FIELD_NUMBER

publicstaticfinalintDAY_OF_WEEK_FIELD_NUMBER
Field Value
Type Description
int

WEEK_OF_MONTH_FIELD_NUMBER

publicstaticfinalintWEEK_OF_MONTH_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticWeekDayOfMonthgetDefaultInstance()
Returns
Type Description
WeekDayOfMonth

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticWeekDayOfMonth.BuildernewBuilder()
Returns
Type Description
WeekDayOfMonth.Builder

newBuilder(WeekDayOfMonth prototype)

publicstaticWeekDayOfMonth.BuildernewBuilder(WeekDayOfMonthprototype)
Parameter
Name Description
prototype WeekDayOfMonth
Returns
Type Description
WeekDayOfMonth.Builder

parseDelimitedFrom(InputStream input)

publicstaticWeekDayOfMonthparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
WeekDayOfMonth
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWeekDayOfMonthparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WeekDayOfMonth
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticWeekDayOfMonthparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
WeekDayOfMonth
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticWeekDayOfMonthparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WeekDayOfMonth
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticWeekDayOfMonthparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
WeekDayOfMonth
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticWeekDayOfMonthparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WeekDayOfMonth
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticWeekDayOfMonthparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WeekDayOfMonth
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWeekDayOfMonthparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WeekDayOfMonth
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticWeekDayOfMonthparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
WeekDayOfMonth
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticWeekDayOfMonthparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WeekDayOfMonth
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticWeekDayOfMonthparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WeekDayOfMonth
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticWeekDayOfMonthparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WeekDayOfMonth
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<WeekDayOfMonth>parser()
Returns
Type Description
Parser<WeekDayOfMonth>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDayOfWeek()

publicDayOfWeekgetDayOfWeek()

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()

publicintgetDayOfWeekValue()

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()

publicWeekDayOfMonthgetDefaultInstanceForType()
Returns
Type Description
WeekDayOfMonth

getParserForType()

publicParser<WeekDayOfMonth>getParserForType()
Returns
Type Description
Parser<WeekDayOfMonth>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getWeekOfMonth()

publicWeekDayOfMonth.WeekOfMonthgetWeekOfMonth()

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()

publicintgetWeekOfMonthValue()

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.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicWeekDayOfMonth.BuildernewBuilderForType()
Returns
Type Description
WeekDayOfMonth.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedWeekDayOfMonth.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WeekDayOfMonth.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicWeekDayOfMonth.BuildertoBuilder()
Returns
Type Description
WeekDayOfMonth.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.