Class RescheduleMaintenanceRequest.Builder (2.55.0)

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

Request for RescheduleMaintenance.

Protobuf type google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RescheduleMaintenanceRequest build()
Returns
Type Description
RescheduleMaintenanceRequest

buildPartial()

public RescheduleMaintenanceRequest buildPartial()
Returns
Type Description
RescheduleMaintenanceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public RescheduleMaintenanceRequest.Builder clearInstance()

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

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

Returns
Type Description
RescheduleMaintenanceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRescheduleType()

public RescheduleMaintenanceRequest.Builder clearRescheduleType()

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

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

Returns
Type Description
RescheduleMaintenanceRequest.Builder

This builder for chaining.

clearScheduleTime()

public RescheduleMaintenanceRequest.Builder clearScheduleTime()

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;

Returns
Type Description
RescheduleMaintenanceRequest.Builder

clone()

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

getDefaultInstanceForType()

public RescheduleMaintenanceRequest getDefaultInstanceForType()
Returns
Type Description
RescheduleMaintenanceRequest

getDescriptorForType()

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

getInstance()

public String getInstance()

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

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

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

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

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

Returns
Type Description
ByteString

The bytes for instance.

getRescheduleType()

public RescheduleMaintenanceRequest.RescheduleType getRescheduleType()

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

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

Returns
Type Description
RescheduleMaintenanceRequest.RescheduleType

The rescheduleType.

getRescheduleTypeValue()

public int getRescheduleTypeValue()

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

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

Returns
Type Description
int

The enum numeric value on the wire for rescheduleType.

getScheduleTime()

public Timestamp getScheduleTime()

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;

Returns
Type Description
Timestamp

The scheduleTime.

getScheduleTimeBuilder()

public Timestamp.Builder getScheduleTimeBuilder()

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;

Returns
Type Description
Builder

getScheduleTimeOrBuilder()

public TimestampOrBuilder getScheduleTimeOrBuilder()

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;

Returns
Type Description
TimestampOrBuilder

hasScheduleTime()

public boolean hasScheduleTime()

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;

Returns
Type Description
boolean

Whether the scheduleTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RescheduleMaintenanceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeScheduleTime(Timestamp value)

public RescheduleMaintenanceRequest.Builder mergeScheduleTime(Timestamp value)

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;

Parameter
Name Description
value Timestamp
Returns
Type Description
RescheduleMaintenanceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstance(String value)

public RescheduleMaintenanceRequest.Builder setInstance(String value)

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

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

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
RescheduleMaintenanceRequest.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public RescheduleMaintenanceRequest.Builder setInstanceBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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.memcache.v1beta2.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RescheduleMaintenanceRequest.RescheduleType

The rescheduleType to set.

Returns
Type Description
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.memcache.v1beta2.RescheduleMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
RescheduleMaintenanceRequest.Builder

This builder for chaining.

setScheduleTime(Timestamp value)

public RescheduleMaintenanceRequest.Builder setScheduleTime(Timestamp value)

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;

Parameter
Name Description
value Timestamp
Returns
Type Description
RescheduleMaintenanceRequest.Builder

setScheduleTime(Timestamp.Builder builderForValue)

public RescheduleMaintenanceRequest.Builder setScheduleTime(Timestamp.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RescheduleMaintenanceRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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