Class MaintenanceSchedule.Builder (2.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MaintenanceSchedule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MaintenanceSchedule.Builder
Overrides

build()

public MaintenanceSchedule build()
Returns
TypeDescription
MaintenanceSchedule

buildPartial()

public MaintenanceSchedule buildPartial()
Returns
TypeDescription
MaintenanceSchedule

clear()

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

clearField(Descriptors.FieldDescriptor field)

public MaintenanceSchedule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MaintenanceSchedule.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public MaintenanceSchedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
MaintenanceSchedule.Builder

clone()

public MaintenanceSchedule.Builder clone()
Returns
TypeDescription
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
TypeDescription
boolean

The canReschedule.

getDefaultInstanceForType()

public MaintenanceSchedule getDefaultInstanceForType()
Returns
TypeDescription
MaintenanceSchedule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
MaintenanceSchedule.Builder

mergeFrom(MaintenanceSchedule other)

public MaintenanceSchedule.Builder mergeFrom(MaintenanceSchedule other)
Parameter
NameDescription
otherMaintenanceSchedule
Returns
TypeDescription
MaintenanceSchedule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MaintenanceSchedule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MaintenanceSchedule.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MaintenanceSchedule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
MaintenanceSchedule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MaintenanceSchedule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The canReschedule to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
MaintenanceSchedule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MaintenanceSchedule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MaintenanceSchedule.Builder
Overrides

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

public MaintenanceSchedule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
MaintenanceSchedule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final MaintenanceSchedule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MaintenanceSchedule.Builder
Overrides