Class PeriodicPartialMaintenanceSchedule.Builder (1.105.0)

public static final class PeriodicPartialMaintenanceSchedule.Builder extends GeneratedMessage.Builder<PeriodicPartialMaintenanceSchedule.Builder> implements PeriodicPartialMaintenanceScheduleOrBuilder

The periodic partial maintenance schedule includes 52 weeks worth of maintenance windows. LINT.IfChange(PeriodicPartialMaintenanceSchedule)

Protobuf type google.cloud.compute.v1.PeriodicPartialMaintenanceSchedule

Static Methods

getDescriptor()

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

Methods

build()

public PeriodicPartialMaintenanceSchedule build()
Returns
Type Description
PeriodicPartialMaintenanceSchedule

buildPartial()

public PeriodicPartialMaintenanceSchedule buildPartial()
Returns
Type Description
PeriodicPartialMaintenanceSchedule

clear()

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

clearSubType()

public PeriodicPartialMaintenanceSchedule.Builder clearSubType()

The maintenance type in which the zone is during the given window. Check the SubType enum for the list of possible values.

optional string sub_type = 67924441;

Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

This builder for chaining.

clearTargetResource()

public PeriodicPartialMaintenanceSchedule.Builder clearTargetResource()

The target resource that the maintenance window is for. For example, "projects/my-project/zones/us-central1-a".

optional string target_resource = 467318524;

Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

This builder for chaining.

clearType()

public PeriodicPartialMaintenanceSchedule.Builder clearType()

Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

This builder for chaining.

clearWindowEndTime()

public PeriodicPartialMaintenanceSchedule.Builder clearWindowEndTime()

The end civil timestamp of the window (not inclusive). This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_end_time = 271816480;

Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

clearWindowStartTime()

public PeriodicPartialMaintenanceSchedule.Builder clearWindowStartTime()

The start civil timestamp of the window. This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_start_time = 473061433;

Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

getDefaultInstanceForType()

public PeriodicPartialMaintenanceSchedule getDefaultInstanceForType()
Returns
Type Description
PeriodicPartialMaintenanceSchedule

getDescriptorForType()

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

getSubType()

public String getSubType()

The maintenance type in which the zone is during the given window. Check the SubType enum for the list of possible values.

optional string sub_type = 67924441;

Returns
Type Description
String

The subType.

getSubTypeBytes()

public ByteString getSubTypeBytes()

The maintenance type in which the zone is during the given window. Check the SubType enum for the list of possible values.

optional string sub_type = 67924441;

Returns
Type Description
ByteString

The bytes for subType.

getTargetResource()

public String getTargetResource()

The target resource that the maintenance window is for. For example, "projects/my-project/zones/us-central1-a".

optional string target_resource = 467318524;

Returns
Type Description
String

The targetResource.

getTargetResourceBytes()

public ByteString getTargetResourceBytes()

The target resource that the maintenance window is for. For example, "projects/my-project/zones/us-central1-a".

optional string target_resource = 467318524;

Returns
Type Description
ByteString

The bytes for targetResource.

getType()

public String getType()

Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
ByteString

The bytes for type.

getWindowEndTime()

public DateTime getWindowEndTime()

The end civil timestamp of the window (not inclusive). This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_end_time = 271816480;

Returns
Type Description
DateTime

The windowEndTime.

getWindowEndTimeBuilder()

public DateTime.Builder getWindowEndTimeBuilder()

The end civil timestamp of the window (not inclusive). This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_end_time = 271816480;

Returns
Type Description
DateTime.Builder

getWindowEndTimeOrBuilder()

public DateTimeOrBuilder getWindowEndTimeOrBuilder()

The end civil timestamp of the window (not inclusive). This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_end_time = 271816480;

Returns
Type Description
DateTimeOrBuilder

getWindowStartTime()

public DateTime getWindowStartTime()

The start civil timestamp of the window. This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_start_time = 473061433;

Returns
Type Description
DateTime

The windowStartTime.

getWindowStartTimeBuilder()

public DateTime.Builder getWindowStartTimeBuilder()

The start civil timestamp of the window. This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_start_time = 473061433;

Returns
Type Description
DateTime.Builder

getWindowStartTimeOrBuilder()

public DateTimeOrBuilder getWindowStartTimeOrBuilder()

The start civil timestamp of the window. This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_start_time = 473061433;

Returns
Type Description
DateTimeOrBuilder

hasSubType()

public boolean hasSubType()

The maintenance type in which the zone is during the given window. Check the SubType enum for the list of possible values.

optional string sub_type = 67924441;

Returns
Type Description
boolean

Whether the subType field is set.

hasTargetResource()

public boolean hasTargetResource()

The target resource that the maintenance window is for. For example, "projects/my-project/zones/us-central1-a".

optional string target_resource = 467318524;

Returns
Type Description
boolean

Whether the targetResource field is set.

hasType()

public boolean hasType()

Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
boolean

Whether the type field is set.

hasWindowEndTime()

public boolean hasWindowEndTime()

The end civil timestamp of the window (not inclusive). This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_end_time = 271816480;

Returns
Type Description
boolean

Whether the windowEndTime field is set.

hasWindowStartTime()

public boolean hasWindowStartTime()

The start civil timestamp of the window. This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_start_time = 473061433;

Returns
Type Description
boolean

Whether the windowStartTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PeriodicPartialMaintenanceSchedule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeWindowEndTime(DateTime value)

public PeriodicPartialMaintenanceSchedule.Builder mergeWindowEndTime(DateTime value)

The end civil timestamp of the window (not inclusive). This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_end_time = 271816480;

Parameter
Name Description
value DateTime
Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

mergeWindowStartTime(DateTime value)

public PeriodicPartialMaintenanceSchedule.Builder mergeWindowStartTime(DateTime value)

The start civil timestamp of the window. This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_start_time = 473061433;

Parameter
Name Description
value DateTime
Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

setSubType(String value)

public PeriodicPartialMaintenanceSchedule.Builder setSubType(String value)

The maintenance type in which the zone is during the given window. Check the SubType enum for the list of possible values.

optional string sub_type = 67924441;

Parameter
Name Description
value String

The subType to set.

Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

This builder for chaining.

setSubTypeBytes(ByteString value)

public PeriodicPartialMaintenanceSchedule.Builder setSubTypeBytes(ByteString value)

The maintenance type in which the zone is during the given window. Check the SubType enum for the list of possible values.

optional string sub_type = 67924441;

Parameter
Name Description
value ByteString

The bytes for subType to set.

Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

This builder for chaining.

setTargetResource(String value)

public PeriodicPartialMaintenanceSchedule.Builder setTargetResource(String value)

The target resource that the maintenance window is for. For example, "projects/my-project/zones/us-central1-a".

optional string target_resource = 467318524;

Parameter
Name Description
value String

The targetResource to set.

Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

This builder for chaining.

setTargetResourceBytes(ByteString value)

public PeriodicPartialMaintenanceSchedule.Builder setTargetResourceBytes(ByteString value)

The target resource that the maintenance window is for. For example, "projects/my-project/zones/us-central1-a".

optional string target_resource = 467318524;

Parameter
Name Description
value ByteString

The bytes for targetResource to set.

Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

This builder for chaining.

setType(String value)

public PeriodicPartialMaintenanceSchedule.Builder setType(String value)

Check the Type enum for the list of possible values.

optional string type = 3575610;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public PeriodicPartialMaintenanceSchedule.Builder setTypeBytes(ByteString value)

Check the Type enum for the list of possible values.

optional string type = 3575610;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

This builder for chaining.

setWindowEndTime(DateTime value)

public PeriodicPartialMaintenanceSchedule.Builder setWindowEndTime(DateTime value)

The end civil timestamp of the window (not inclusive). This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_end_time = 271816480;

Parameter
Name Description
value DateTime
Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

setWindowEndTime(DateTime.Builder builderForValue)

public PeriodicPartialMaintenanceSchedule.Builder setWindowEndTime(DateTime.Builder builderForValue)

The end civil timestamp of the window (not inclusive). This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_end_time = 271816480;

Parameter
Name Description
builderForValue DateTime.Builder
Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

setWindowStartTime(DateTime value)

public PeriodicPartialMaintenanceSchedule.Builder setWindowStartTime(DateTime value)

The start civil timestamp of the window. This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_start_time = 473061433;

Parameter
Name Description
value DateTime
Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder

setWindowStartTime(DateTime.Builder builderForValue)

public PeriodicPartialMaintenanceSchedule.Builder setWindowStartTime(DateTime.Builder builderForValue)

The start civil timestamp of the window. This contains a time zone.

optional .google.cloud.compute.v1.DateTime window_start_time = 473061433;

Parameter
Name Description
builderForValue DateTime.Builder
Returns
Type Description
PeriodicPartialMaintenanceSchedule.Builder