Class WeeklyMaintenanceWindow (2.27.0)

public final class WeeklyMaintenanceWindow extends GeneratedMessageV3 implements WeeklyMaintenanceWindowOrBuilder

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

Protobuf type google.cloud.redis.v1beta1.WeeklyMaintenanceWindow

Static Fields

DAY_FIELD_NUMBER

public static final int DAY_FIELD_NUMBER
Field Value
TypeDescription
int

DURATION_FIELD_NUMBER

public static final int DURATION_FIELD_NUMBER
Field Value
TypeDescription
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static WeeklyMaintenanceWindow getDefaultInstance()
Returns
TypeDescription
WeeklyMaintenanceWindow

getDescriptor()

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

newBuilder()

public static WeeklyMaintenanceWindow.Builder newBuilder()
Returns
TypeDescription
WeeklyMaintenanceWindow.Builder

newBuilder(WeeklyMaintenanceWindow prototype)

public static WeeklyMaintenanceWindow.Builder newBuilder(WeeklyMaintenanceWindow prototype)
Parameter
NameDescription
prototypeWeeklyMaintenanceWindow
Returns
TypeDescription
WeeklyMaintenanceWindow.Builder

parseDelimitedFrom(InputStream input)

public static WeeklyMaintenanceWindow parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WeeklyMaintenanceWindow
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static WeeklyMaintenanceWindow parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
WeeklyMaintenanceWindow
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static WeeklyMaintenanceWindow parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
WeeklyMaintenanceWindow
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static WeeklyMaintenanceWindow parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WeeklyMaintenanceWindow
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static WeeklyMaintenanceWindow parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
WeeklyMaintenanceWindow
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<WeeklyMaintenanceWindow> parser()
Returns
TypeDescription
Parser<WeeklyMaintenanceWindow>

Methods

equals(Object obj)

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

getDay()

public DayOfWeek getDay()

Required. The day of week that maintenance updates occur.

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

Returns
TypeDescription
com.google.type.DayOfWeek

The day.

getDayValue()

public int getDayValue()

Required. The day of week that maintenance updates occur.

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

Returns
TypeDescription
int

The enum numeric value on the wire for day.

getDefaultInstanceForType()

public WeeklyMaintenanceWindow getDefaultInstanceForType()
Returns
TypeDescription
WeeklyMaintenanceWindow

getDuration()

public Duration getDuration()

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
TypeDescription
Duration

The duration.

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

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
TypeDescription
DurationOrBuilder

getParserForType()

public Parser<WeeklyMaintenanceWindow> getParserForType()
Returns
TypeDescription
Parser<WeeklyMaintenanceWindow>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStartTime()

public TimeOfDay getStartTime()

Required. Start time of the window in UTC time.

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

Returns
TypeDescription
com.google.type.TimeOfDay

The startTime.

getStartTimeOrBuilder()

public TimeOfDayOrBuilder getStartTimeOrBuilder()

Required. Start time of the window in UTC time.

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

Returns
TypeDescription
com.google.type.TimeOfDayOrBuilder

hasDuration()

public boolean hasDuration()

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
TypeDescription
boolean

Whether the duration field is set.

hasStartTime()

public boolean hasStartTime()

Required. Start time of the window in UTC time.

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

Returns
TypeDescription
boolean

Whether the startTime 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 WeeklyMaintenanceWindow.Builder newBuilderForType()
Returns
TypeDescription
WeeklyMaintenanceWindow.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public WeeklyMaintenanceWindow.Builder toBuilder()
Returns
TypeDescription
WeeklyMaintenanceWindow.Builder

writeTo(CodedOutputStream output)

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