Class ResourcePolicyDailyCycle.Builder (1.93.0)

public static final class ResourcePolicyDailyCycle.Builder extends GeneratedMessage.Builder<ResourcePolicyDailyCycle.Builder> implements ResourcePolicyDailyCycleOrBuilder

Time window specified for daily operations.

Protobuf type google.cloud.compute.v1.ResourcePolicyDailyCycle

Static Methods

getDescriptor()

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

Methods

build()

public ResourcePolicyDailyCycle build()
Returns
Type Description
ResourcePolicyDailyCycle

buildPartial()

public ResourcePolicyDailyCycle buildPartial()
Returns
Type Description
ResourcePolicyDailyCycle

clear()

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

clearDaysInCycle()

public ResourcePolicyDailyCycle.Builder clearDaysInCycle()

Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.

optional int32 days_in_cycle = 369790004;

Returns
Type Description
ResourcePolicyDailyCycle.Builder

This builder for chaining.

clearDuration()

public ResourcePolicyDailyCycle.Builder clearDuration()

Output only. [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

optional string duration = 155471252;

Returns
Type Description
ResourcePolicyDailyCycle.Builder

This builder for chaining.

clearStartTime()

public ResourcePolicyDailyCycle.Builder clearStartTime()

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

optional string start_time = 37467274;

Returns
Type Description
ResourcePolicyDailyCycle.Builder

This builder for chaining.

getDaysInCycle()

public int getDaysInCycle()

Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.

optional int32 days_in_cycle = 369790004;

Returns
Type Description
int

The daysInCycle.

getDefaultInstanceForType()

public ResourcePolicyDailyCycle getDefaultInstanceForType()
Returns
Type Description
ResourcePolicyDailyCycle

getDescriptorForType()

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

getDuration()

public String getDuration()

Output only. [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

optional string duration = 155471252;

Returns
Type Description
String

The duration.

getDurationBytes()

public ByteString getDurationBytes()

Output only. [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

optional string duration = 155471252;

Returns
Type Description
ByteString

The bytes for duration.

getStartTime()

public String getStartTime()

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

optional string start_time = 37467274;

Returns
Type Description
String

The startTime.

getStartTimeBytes()

public ByteString getStartTimeBytes()

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

optional string start_time = 37467274;

Returns
Type Description
ByteString

The bytes for startTime.

hasDaysInCycle()

public boolean hasDaysInCycle()

Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.

optional int32 days_in_cycle = 369790004;

Returns
Type Description
boolean

Whether the daysInCycle field is set.

hasDuration()

public boolean hasDuration()

Output only. [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

optional string duration = 155471252;

Returns
Type Description
boolean

Whether the duration field is set.

hasStartTime()

public boolean hasStartTime()

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

optional string start_time = 37467274;

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourcePolicyDailyCycle other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDaysInCycle(int value)

public ResourcePolicyDailyCycle.Builder setDaysInCycle(int value)

Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.

optional int32 days_in_cycle = 369790004;

Parameter
Name Description
value int

The daysInCycle to set.

Returns
Type Description
ResourcePolicyDailyCycle.Builder

This builder for chaining.

setDuration(String value)

public ResourcePolicyDailyCycle.Builder setDuration(String value)

Output only. [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

optional string duration = 155471252;

Parameter
Name Description
value String

The duration to set.

Returns
Type Description
ResourcePolicyDailyCycle.Builder

This builder for chaining.

setDurationBytes(ByteString value)

public ResourcePolicyDailyCycle.Builder setDurationBytes(ByteString value)

Output only. [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.

optional string duration = 155471252;

Parameter
Name Description
value ByteString

The bytes for duration to set.

Returns
Type Description
ResourcePolicyDailyCycle.Builder

This builder for chaining.

setStartTime(String value)

public ResourcePolicyDailyCycle.Builder setStartTime(String value)

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

optional string start_time = 37467274;

Parameter
Name Description
value String

The startTime to set.

Returns
Type Description
ResourcePolicyDailyCycle.Builder

This builder for chaining.

setStartTimeBytes(ByteString value)

public ResourcePolicyDailyCycle.Builder setStartTimeBytes(ByteString value)

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

optional string start_time = 37467274;

Parameter
Name Description
value ByteString

The bytes for startTime to set.

Returns
Type Description
ResourcePolicyDailyCycle.Builder

This builder for chaining.