Class RescheduleMaintenanceRequest.Builder (2.23.0)

public static final class RescheduleMaintenanceRequest.Builder extends GeneratedMessageV3.Builder<RescheduleMaintenanceRequest.Builder> implements RescheduleMaintenanceRequestOrBuilder

Request for RescheduleMaintenance.

Protobuf type google.cloud.redis.v1.RescheduleMaintenanceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RescheduleMaintenanceRequest build()
Returns
TypeDescription
RescheduleMaintenanceRequest

buildPartial()

public RescheduleMaintenanceRequest buildPartial()
Returns
TypeDescription
RescheduleMaintenanceRequest

clear()

public RescheduleMaintenanceRequest.Builder clear()
Returns
TypeDescription
RescheduleMaintenanceRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public RescheduleMaintenanceRequest.Builder clearName()

Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
RescheduleMaintenanceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RescheduleMaintenanceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RescheduleMaintenanceRequest.Builder
Overrides

clearRescheduleType()

public RescheduleMaintenanceRequest.Builder clearRescheduleType()

Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.

.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RescheduleMaintenanceRequest.Builder

This builder for chaining.

clearScheduleTime()

public RescheduleMaintenanceRequest.Builder clearScheduleTime()

Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RescheduleMaintenanceRequest.Builder

clone()

public RescheduleMaintenanceRequest.Builder clone()
Returns
TypeDescription
RescheduleMaintenanceRequest.Builder
Overrides

getDefaultInstanceForType()

public RescheduleMaintenanceRequest getDefaultInstanceForType()
Returns
TypeDescription
RescheduleMaintenanceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

getRescheduleType()

public RescheduleMaintenanceRequest.RescheduleType getRescheduleType()

Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.

.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RescheduleMaintenanceRequest.RescheduleType

The rescheduleType.

getRescheduleTypeValue()

public int getRescheduleTypeValue()

Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.

.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for rescheduleType.

getScheduleTime()

public Timestamp getScheduleTime()

Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Timestamp

The scheduleTime.

getScheduleTimeBuilder()

public Timestamp.Builder getScheduleTimeBuilder()

Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Builder

getScheduleTimeOrBuilder()

public TimestampOrBuilder getScheduleTimeOrBuilder()

Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TimestampOrBuilder

hasScheduleTime()

public boolean hasScheduleTime()

Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the scheduleTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RescheduleMaintenanceRequest other)

public RescheduleMaintenanceRequest.Builder mergeFrom(RescheduleMaintenanceRequest other)
Parameter
NameDescription
otherRescheduleMaintenanceRequest
Returns
TypeDescription
RescheduleMaintenanceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RescheduleMaintenanceRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RescheduleMaintenanceRequest.Builder
Overrides

mergeScheduleTime(Timestamp value)

public RescheduleMaintenanceRequest.Builder mergeScheduleTime(Timestamp value)

Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
RescheduleMaintenanceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RescheduleMaintenanceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RescheduleMaintenanceRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public RescheduleMaintenanceRequest.Builder setName(String value)

Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
RescheduleMaintenanceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RescheduleMaintenanceRequest.Builder setNameBytes(ByteString value)

Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
RescheduleMaintenanceRequest.Builder

This builder for chaining.

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

public RescheduleMaintenanceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RescheduleMaintenanceRequest.Builder
Overrides

setRescheduleType(RescheduleMaintenanceRequest.RescheduleType value)

public RescheduleMaintenanceRequest.Builder setRescheduleType(RescheduleMaintenanceRequest.RescheduleType value)

Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.

.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueRescheduleMaintenanceRequest.RescheduleType

The rescheduleType to set.

Returns
TypeDescription
RescheduleMaintenanceRequest.Builder

This builder for chaining.

setRescheduleTypeValue(int value)

public RescheduleMaintenanceRequest.Builder setRescheduleTypeValue(int value)

Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.

.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The enum numeric value on the wire for rescheduleType to set.

Returns
TypeDescription
RescheduleMaintenanceRequest.Builder

This builder for chaining.

setScheduleTime(Timestamp value)

public RescheduleMaintenanceRequest.Builder setScheduleTime(Timestamp value)

Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
RescheduleMaintenanceRequest.Builder

setScheduleTime(Timestamp.Builder builderForValue)

public RescheduleMaintenanceRequest.Builder setScheduleTime(Timestamp.Builder builderForValue)

Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

.google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
RescheduleMaintenanceRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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