Class MaintenanceSchedule (2.14.0)

public final class MaintenanceSchedule extends GeneratedMessageV3 implements MaintenanceScheduleOrBuilder

Upcoming maintenance schedule. If no maintenance is scheduled, fields are not populated.

Protobuf type google.cloud.redis.v1.MaintenanceSchedule

Static Fields

CAN_RESCHEDULE_FIELD_NUMBER

public static final int CAN_RESCHEDULE_FIELD_NUMBER
Field Value
TypeDescription
int

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

SCHEDULE_DEADLINE_TIME_FIELD_NUMBER

public static final int SCHEDULE_DEADLINE_TIME_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 MaintenanceSchedule getDefaultInstance()
Returns
TypeDescription
MaintenanceSchedule

getDescriptor()

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

newBuilder()

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

newBuilder(MaintenanceSchedule prototype)

public static MaintenanceSchedule.Builder newBuilder(MaintenanceSchedule prototype)
Parameter
NameDescription
prototypeMaintenanceSchedule
Returns
TypeDescription
MaintenanceSchedule.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCanReschedule() (deprecated)

public boolean getCanReschedule()

Deprecated. google.cloud.redis.v1.MaintenanceSchedule.can_reschedule is deprecated. See google/cloud/redis/v1/cloud_redis.proto;l=576

If the scheduled maintenance can be rescheduled, default is true.

bool can_reschedule = 3 [deprecated = true];

Returns
TypeDescription
boolean

The canReschedule.

getDefaultInstanceForType()

public MaintenanceSchedule getDefaultInstanceForType()
Returns
TypeDescription
MaintenanceSchedule

getEndTime()

public Timestamp getEndTime()

Output only. The end time of any upcoming scheduled maintenance for this instance.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The end time of any upcoming scheduled maintenance for this instance.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getParserForType()

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

getScheduleDeadlineTime()

public Timestamp getScheduleDeadlineTime()

Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule.

.google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The scheduleDeadlineTime.

getScheduleDeadlineTimeOrBuilder()

public TimestampOrBuilder getScheduleDeadlineTimeOrBuilder()

Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule.

.google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStartTime()

public Timestamp getStartTime()

Output only. The start time of any upcoming scheduled maintenance for this instance.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. The start time of any upcoming scheduled maintenance for this instance.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasEndTime()

public boolean hasEndTime()

Output only. The end time of any upcoming scheduled maintenance for this instance.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasScheduleDeadlineTime()

public boolean hasScheduleDeadlineTime()

Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule.

.google.protobuf.Timestamp schedule_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the scheduleDeadlineTime field is set.

hasStartTime()

public boolean hasStartTime()

Output only. The start time of any upcoming scheduled maintenance for this instance.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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 MaintenanceSchedule.Builder newBuilderForType()
Returns
TypeDescription
MaintenanceSchedule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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