Class ResourcePolicyDailyCycle.Builder (1.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourcePolicyDailyCycle.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResourcePolicyDailyCycle.Builder
Overrides

build()

public ResourcePolicyDailyCycle build()
Returns
TypeDescription
ResourcePolicyDailyCycle

buildPartial()

public ResourcePolicyDailyCycle buildPartial()
Returns
TypeDescription
ResourcePolicyDailyCycle

clear()

public ResourcePolicyDailyCycle.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ResourcePolicyDailyCycle.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ResourcePolicyDailyCycle.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResourcePolicyDailyCycle.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourcePolicyDailyCycle.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ResourcePolicyDailyCycle.Builder

This builder for chaining.

clone()

public ResourcePolicyDailyCycle.Builder clone()
Returns
TypeDescription
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
TypeDescription
int

The daysInCycle.

getDefaultInstanceForType()

public ResourcePolicyDailyCycle getDefaultInstanceForType()
Returns
TypeDescription
ResourcePolicyDailyCycle

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ResourcePolicyDailyCycle other)

public ResourcePolicyDailyCycle.Builder mergeFrom(ResourcePolicyDailyCycle other)
Parameter
NameDescription
otherResourcePolicyDailyCycle
Returns
TypeDescription
ResourcePolicyDailyCycle.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourcePolicyDailyCycle.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePolicyDailyCycle.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ResourcePolicyDailyCycle.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ResourcePolicyDailyCycle.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourcePolicyDailyCycle.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueint

The daysInCycle to set.

Returns
TypeDescription
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
NameDescription
valueString

The duration to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for duration to set.

Returns
TypeDescription
ResourcePolicyDailyCycle.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ResourcePolicyDailyCycle.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResourcePolicyDailyCycle.Builder
Overrides

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

public ResourcePolicyDailyCycle.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The startTime to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for startTime to set.

Returns
TypeDescription
ResourcePolicyDailyCycle.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourcePolicyDailyCycle.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResourcePolicyDailyCycle.Builder
Overrides