Class WeeklyMaintenanceWindow (2.40.0)

public final class WeeklyMaintenanceWindow extends GeneratedMessageV3 implements WeeklyMaintenanceWindowOrBuilder

Time window specified for weekly operations.

Protobuf type google.cloud.memcache.v1beta2.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. Allows to define schedule that runs specified day of the week.

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

Returns
TypeDescription
com.google.type.DayOfWeek

The day.

getDayValue()

public int getDayValue()

Required. Allows to define schedule that runs specified day of the week.

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

Required. Duration of the time window.

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

Returns
TypeDescription
Duration

The duration.

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

Required. Duration of the time window.

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

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.

.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.

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

Returns
TypeDescription
com.google.type.TimeOfDayOrBuilder

hasDuration()

public boolean hasDuration()

Required. Duration of the time window.

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

Returns
TypeDescription
boolean

Whether the duration field is set.

hasStartTime()

public boolean hasStartTime()

Required. Start time of the window in UTC.

.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