Class WeeklyMaintenanceWindow (2.81.0)

publicfinalclass WeeklyMaintenanceWindowextendsGeneratedMessageV3implementsWeeklyMaintenanceWindowOrBuilder

Time window in which disruptive maintenance updates occur. Non-disruptive updates can occur inside or outside this window.

Protobuf type google.cloud.redis.v1.WeeklyMaintenanceWindow

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_FIELD_NUMBER

publicstaticfinalintDAY_FIELD_NUMBER
Field Value
Type Description
int

DURATION_FIELD_NUMBER

publicstaticfinalintDURATION_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_FIELD_NUMBER

publicstaticfinalintSTART_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticWeeklyMaintenanceWindowgetDefaultInstance()
Returns
Type Description
WeeklyMaintenanceWindow

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticWeeklyMaintenanceWindow.BuildernewBuilder()
Returns
Type Description
WeeklyMaintenanceWindow.Builder

newBuilder(WeeklyMaintenanceWindow prototype)

publicstaticWeeklyMaintenanceWindow.BuildernewBuilder(WeeklyMaintenanceWindowprototype)
Parameter
Name Description
prototype WeeklyMaintenanceWindow
Returns
Type Description
WeeklyMaintenanceWindow.Builder

parseDelimitedFrom(InputStream input)

publicstaticWeeklyMaintenanceWindowparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
WeeklyMaintenanceWindow
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

publicstaticWeeklyMaintenanceWindowparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
WeeklyMaintenanceWindow
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticWeeklyMaintenanceWindowparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
WeeklyMaintenanceWindow
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticWeeklyMaintenanceWindowparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WeeklyMaintenanceWindow
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

publicstaticWeeklyMaintenanceWindowparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
WeeklyMaintenanceWindow
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

publicstaticWeeklyMaintenanceWindowparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WeeklyMaintenanceWindow
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDay()

publicDayOfWeekgetDay()

Required. The day of week that maintenance updates occur.

.google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.DayOfWeek

The day.

getDayValue()

publicintgetDayValue()

Required. The day of week that maintenance updates occur.

.google.type.DayOfWeek day = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for day.

getDefaultInstanceForType()

publicWeeklyMaintenanceWindowgetDefaultInstanceForType()
Returns
Type Description
WeeklyMaintenanceWindow

getDuration()

publicDurationgetDuration()

Output only. Duration of the maintenance window. The current window is fixed at 1 hour.

.google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Duration

The duration.

getDurationOrBuilder()

publicDurationOrBuildergetDurationOrBuilder()

Output only. Duration of the maintenance window. The current window is fixed at 1 hour.

.google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DurationOrBuilder

getParserForType()

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getStartTime()

publicTimeOfDaygetStartTime()

Required. Start time of the window in UTC time.

.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDay

The startTime.

getStartTimeOrBuilder()

publicTimeOfDayOrBuildergetStartTimeOrBuilder()

Required. Start time of the window in UTC time.

.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDayOrBuilder

hasDuration()

publicbooleanhasDuration()

Output only. Duration of the maintenance window. The current window is fixed at 1 hour.

.google.protobuf.Duration duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the duration field is set.

hasStartTime()

publicbooleanhasStartTime()

Required. Start time of the window in UTC time.

.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the startTime field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicWeeklyMaintenanceWindow.BuildernewBuilderForType()
Returns
Type Description
WeeklyMaintenanceWindow.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedWeeklyMaintenanceWindow.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WeeklyMaintenanceWindow.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicWeeklyMaintenanceWindow.BuildertoBuilder()
Returns
Type Description
WeeklyMaintenanceWindow.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年10月30日 UTC.