Class UpcomingMaintenance.Builder (1.88.0)

public static final class UpcomingMaintenance.Builder extends GeneratedMessageV3.Builder<UpcomingMaintenance.Builder> implements UpcomingMaintenanceOrBuilder

Upcoming Maintenance notification information.

Protobuf type google.cloud.compute.v1.UpcomingMaintenance

Static Methods

getDescriptor()

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

Methods

addAllMaintenanceReasons(Iterable<String> values)

public UpcomingMaintenance.Builder addAllMaintenanceReasons(Iterable<String> values)

The reasons for the maintenance. Only valid for vms. Check the MaintenanceReasons enum for the list of possible values.

repeated string maintenance_reasons = 140283267;

Parameter
Name Description
values Iterable<String>

The maintenanceReasons to add.

Returns
Type Description
UpcomingMaintenance.Builder

This builder for chaining.

addMaintenanceReasons(String value)

public UpcomingMaintenance.Builder addMaintenanceReasons(String value)

The reasons for the maintenance. Only valid for vms. Check the MaintenanceReasons enum for the list of possible values.

repeated string maintenance_reasons = 140283267;

Parameter
Name Description
value String

The maintenanceReasons to add.

Returns
Type Description
UpcomingMaintenance.Builder

This builder for chaining.

addMaintenanceReasonsBytes(ByteString value)

public UpcomingMaintenance.Builder addMaintenanceReasonsBytes(ByteString value)

The reasons for the maintenance. Only valid for vms. Check the MaintenanceReasons enum for the list of possible values.

repeated string maintenance_reasons = 140283267;

Parameter
Name Description
value ByteString

The bytes of the maintenanceReasons to add.

Returns
Type Description
UpcomingMaintenance.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpcomingMaintenance build()
Returns
Type Description
UpcomingMaintenance

buildPartial()

public UpcomingMaintenance buildPartial()
Returns
Type Description
UpcomingMaintenance

clear()

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

clearCanReschedule()

public UpcomingMaintenance.Builder clearCanReschedule()

Indicates if the maintenance can be customer triggered.

optional bool can_reschedule = 95981977;

Returns
Type Description
UpcomingMaintenance.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLatestWindowStartTime()

public UpcomingMaintenance.Builder clearLatestWindowStartTime()

The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.

optional string latest_window_start_time = 128032129;

Returns
Type Description
UpcomingMaintenance.Builder

This builder for chaining.

clearMaintenanceOnShutdown()

public UpcomingMaintenance.Builder clearMaintenanceOnShutdown()

Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.

optional bool maintenance_on_shutdown = 231055754;

Returns
Type Description
UpcomingMaintenance.Builder

This builder for chaining.

clearMaintenanceReasons()

public UpcomingMaintenance.Builder clearMaintenanceReasons()

The reasons for the maintenance. Only valid for vms. Check the MaintenanceReasons enum for the list of possible values.

repeated string maintenance_reasons = 140283267;

Returns
Type Description
UpcomingMaintenance.Builder

This builder for chaining.

clearMaintenanceStatus()

public UpcomingMaintenance.Builder clearMaintenanceStatus()

Check the MaintenanceStatus enum for the list of possible values.

optional string maintenance_status = 81645214;

Returns
Type Description
UpcomingMaintenance.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public UpcomingMaintenance.Builder clearType()

Defines the type of maintenance. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
UpcomingMaintenance.Builder

This builder for chaining.

clearWindowEndTime()

public UpcomingMaintenance.Builder clearWindowEndTime()

The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.

optional string window_end_time = 271816480;

Returns
Type Description
UpcomingMaintenance.Builder

This builder for chaining.

clearWindowStartTime()

public UpcomingMaintenance.Builder clearWindowStartTime()

The current start time of the maintenance window. This timestamp value is in RFC3339 text format.

optional string window_start_time = 473061433;

Returns
Type Description
UpcomingMaintenance.Builder

This builder for chaining.

clone()

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

getCanReschedule()

public boolean getCanReschedule()

Indicates if the maintenance can be customer triggered.

optional bool can_reschedule = 95981977;

Returns
Type Description
boolean

The canReschedule.

getDefaultInstanceForType()

public UpcomingMaintenance getDefaultInstanceForType()
Returns
Type Description
UpcomingMaintenance

getDescriptorForType()

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

getLatestWindowStartTime()

public String getLatestWindowStartTime()

The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.

optional string latest_window_start_time = 128032129;

Returns
Type Description
String

The latestWindowStartTime.

getLatestWindowStartTimeBytes()

public ByteString getLatestWindowStartTimeBytes()

The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.

optional string latest_window_start_time = 128032129;

Returns
Type Description
ByteString

The bytes for latestWindowStartTime.

getMaintenanceOnShutdown()

public boolean getMaintenanceOnShutdown()

Indicates whether the UpcomingMaintenance will be triggered on VM shutdown.

optional bool maintenance_on_shutdown = 231055754;

Returns
Type Description
boolean

The maintenanceOnShutdown.

getMaintenanceReasons(int index)

public String getMaintenanceReasons(int index)

The reasons for the maintenance. Only valid for vms. Check the MaintenanceReasons enum for the list of possible values.

repeated string maintenance_reasons = 140283267;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The maintenanceReasons at the given index.

getMaintenanceReasonsBytes(int index)

public ByteString getMaintenanceReasonsBytes(int index)

The reasons for the maintenance. Only valid for vms. Check the MaintenanceReasons enum for the list of possible values.

repeated string maintenance_reasons = 140283267;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the maintenanceReasons at the given index.

getMaintenanceReasonsCount()

public int getMaintenanceReasonsCount()

The reasons for the maintenance. Only valid for vms. Check the MaintenanceReasons enum for the list of possible values.

repeated string maintenance_reasons = 140283267;

Returns
Type Description
int

The count of maintenanceReasons.

getMaintenanceReasonsList()

public ProtocolStringList getMaintenanceReasonsList()

The reasons for the maintenance. Only valid for vms. Check the MaintenanceReasons enum for the list of possible values.

repeated string maintenance_reasons = 140283267;

Returns
Type Description
ProtocolStringList

A list containing the maintenanceReasons.

getMaintenanceStatus()

public String getMaintenanceStatus()

Check the MaintenanceStatus enum for the list of possible values.

optional string maintenance_status = 81645214;

Returns
Type Description
String

The maintenanceStatus.

getMaintenanceStatusBytes()

public ByteString getMaintenanceStatusBytes()

Check the MaintenanceStatus enum for the list of possible values.

optional string maintenance_status = 81645214;

Returns
Type Description
ByteString

The bytes for maintenanceStatus.

getType()

public String getType()

Defines the type of maintenance. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
String

The type.