Class MaintenanceSchedule.Builder (2.48.0)

public static final class MaintenanceSchedule.Builder extends GeneratedMessageV3.Builder<MaintenanceSchedule.Builder> implements MaintenanceScheduleOrBuilder

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

Protobuf type google.cloud.redis.v1beta1.MaintenanceSchedule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MaintenanceSchedule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MaintenanceSchedule.Builder
Overrides

build()

public MaintenanceSchedule build()
Returns
Type Description
MaintenanceSchedule

buildPartial()

public MaintenanceSchedule buildPartial()
Returns
Type Description
MaintenanceSchedule

clear()

public MaintenanceSchedule.Builder clear()
Returns
Type Description
MaintenanceSchedule.Builder
Overrides

clearCanReschedule() (deprecated)

public MaintenanceSchedule.Builder clearCanReschedule()

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

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

bool can_reschedule = 3 [deprecated = true];

Returns
Type Description
MaintenanceSchedule.Builder

This builder for chaining.

clearEndTime()

public MaintenanceSchedule.Builder clearEndTime()

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
Type Description
MaintenanceSchedule.Builder

clearField(Descriptors.FieldDescriptor field)

public MaintenanceSchedule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MaintenanceSchedule.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public MaintenanceSchedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MaintenanceSchedule.Builder
Overrides

clearScheduleDeadlineTime()

public MaintenanceSchedule.Builder clearScheduleDeadlineTime()

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
Type Description
MaintenanceSchedule.Builder

clearStartTime()

public MaintenanceSchedule.Builder clearStartTime()

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
Type Description
MaintenanceSchedule.Builder

clone()

public MaintenanceSchedule.Builder clone()
Returns
Type Description
MaintenanceSchedule.Builder
Overrides

getCanReschedule() (deprecated)

public boolean getCanReschedule()

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

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

bool can_reschedule = 3 [deprecated = true];

Returns
Type Description
boolean

The canReschedule.

getDefaultInstanceForType()

public MaintenanceSchedule getDefaultInstanceForType()
Returns
Type Description
MaintenanceSchedule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

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
Type Description
Builder

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
Type Description
TimestampOrBuilder

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
Type Description
Timestamp

The scheduleDeadlineTime.

getScheduleDeadlineTimeBuilder()

public Timestamp.Builder getScheduleDeadlineTimeBuilder()

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
Type Description
Builder

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
Type Description
TimestampOrBuilder

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
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

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
Type Description
Builder

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
Type Description
TimestampOrBuilder

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
Type Description
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
Type Description
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
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public MaintenanceSchedule.Builder mergeEndTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
MaintenanceSchedule.Builder

mergeFrom(MaintenanceSchedule other)

public MaintenanceSchedule.Builder mergeFrom(MaintenanceSchedule other)
Parameter
Name Description
other MaintenanceSchedule
Returns
Type Description
MaintenanceSchedule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MaintenanceSchedule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MaintenanceSchedule.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MaintenanceSchedule.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MaintenanceSchedule.Builder
Overrides

mergeScheduleDeadlineTime(Timestamp value)

public MaintenanceSchedule.Builder mergeScheduleDeadlineTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
MaintenanceSchedule.Builder

mergeStartTime(Timestamp value)

public MaintenanceSchedule.Builder mergeStartTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
MaintenanceSchedule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MaintenanceSchedule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MaintenanceSchedule.Builder
Overrides

setCanReschedule(boolean value) (deprecated)

public MaintenanceSchedule.Builder setCanReschedule(boolean value)

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

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

bool can_reschedule = 3 [deprecated = true];

Parameter
Name Description
value boolean

The canReschedule to set.

Returns
Type Description
MaintenanceSchedule.Builder

This builder for chaining.

setEndTime(Timestamp value)

public MaintenanceSchedule.Builder setEndTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
MaintenanceSchedule.Builder

setEndTime(Timestamp.Builder builderForValue)

public MaintenanceSchedule.Builder setEndTime(Timestamp.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MaintenanceSchedule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MaintenanceSchedule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MaintenanceSchedule.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MaintenanceSchedule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MaintenanceSchedule.Builder
Overrides

setScheduleDeadlineTime(Timestamp value)

public MaintenanceSchedule.Builder setScheduleDeadlineTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
MaintenanceSchedule.Builder

setScheduleDeadlineTime(Timestamp.Builder builderForValue)

public MaintenanceSchedule.Builder setScheduleDeadlineTime(Timestamp.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MaintenanceSchedule.Builder

setStartTime(Timestamp value)

public MaintenanceSchedule.Builder setStartTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
MaintenanceSchedule.Builder

setStartTime(Timestamp.Builder builderForValue)

public MaintenanceSchedule.Builder setStartTime(Timestamp.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MaintenanceSchedule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final MaintenanceSchedule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MaintenanceSchedule.Builder
Overrides