Class ResourcePolicyDailyCycle.Builder (1.53.0)

public static final class ResourcePolicyDailyCycle.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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] 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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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] 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] 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] 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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourcePolicyDailyCycle.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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] 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] 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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ResourcePolicyDailyCycle.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ResourcePolicyDailyCycle.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

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