Class ScalingScheduleStatus.Builder (1.29.0)

public static final class ScalingScheduleStatus.Builder extends GeneratedMessageV3.Builder<ScalingScheduleStatus.Builder> implements ScalingScheduleStatusOrBuilder

Protobuf type google.cloud.compute.v1.ScalingScheduleStatus

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ScalingScheduleStatus build()
Returns
TypeDescription
ScalingScheduleStatus

buildPartial()

public ScalingScheduleStatus buildPartial()
Returns
TypeDescription
ScalingScheduleStatus

clear()

public ScalingScheduleStatus.Builder clear()
Returns
TypeDescription
ScalingScheduleStatus.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearLastStartTime()

public ScalingScheduleStatus.Builder clearLastStartTime()

[Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.

optional string last_start_time = 34545107;

Returns
TypeDescription
ScalingScheduleStatus.Builder

This builder for chaining.

clearNextStartTime()

public ScalingScheduleStatus.Builder clearNextStartTime()

[Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.

optional string next_start_time = 97270102;

Returns
TypeDescription
ScalingScheduleStatus.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ScalingScheduleStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ScalingScheduleStatus.Builder
Overrides

clearState()

public ScalingScheduleStatus.Builder clearState()

[Output Only] The current state of a scaling schedule. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
TypeDescription
ScalingScheduleStatus.Builder

This builder for chaining.

clone()

public ScalingScheduleStatus.Builder clone()
Returns
TypeDescription
ScalingScheduleStatus.Builder
Overrides

getDefaultInstanceForType()

public ScalingScheduleStatus getDefaultInstanceForType()
Returns
TypeDescription
ScalingScheduleStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLastStartTime()

public String getLastStartTime()

[Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.

optional string last_start_time = 34545107;

Returns
TypeDescription
String

The lastStartTime.

getLastStartTimeBytes()

public ByteString getLastStartTimeBytes()

[Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.

optional string last_start_time = 34545107;

Returns
TypeDescription
ByteString

The bytes for lastStartTime.

getNextStartTime()

public String getNextStartTime()

[Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.

optional string next_start_time = 97270102;

Returns
TypeDescription
String

The nextStartTime.

getNextStartTimeBytes()

public ByteString getNextStartTimeBytes()

[Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.

optional string next_start_time = 97270102;

Returns
TypeDescription
ByteString

The bytes for nextStartTime.

getState()

public String getState()

[Output Only] The current state of a scaling schedule. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
TypeDescription
String

The state.

getStateBytes()

public ByteString getStateBytes()

[Output Only] The current state of a scaling schedule. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
TypeDescription
ByteString

The bytes for state.

hasLastStartTime()

public boolean hasLastStartTime()

[Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.

optional string last_start_time = 34545107;

Returns
TypeDescription
boolean

Whether the lastStartTime field is set.

hasNextStartTime()

public boolean hasNextStartTime()

[Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.

optional string next_start_time = 97270102;

Returns
TypeDescription
boolean

Whether the nextStartTime field is set.

hasState()

public boolean hasState()

[Output Only] The current state of a scaling schedule. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
TypeDescription
boolean

Whether the state field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ScalingScheduleStatus other)

public ScalingScheduleStatus.Builder mergeFrom(ScalingScheduleStatus other)
Parameter
NameDescription
otherScalingScheduleStatus
Returns
TypeDescription
ScalingScheduleStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScalingScheduleStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ScalingScheduleStatus.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setLastStartTime(String value)

public ScalingScheduleStatus.Builder setLastStartTime(String value)

[Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.

optional string last_start_time = 34545107;

Parameter
NameDescription
valueString

The lastStartTime to set.

Returns
TypeDescription
ScalingScheduleStatus.Builder

This builder for chaining.

setLastStartTimeBytes(ByteString value)

public ScalingScheduleStatus.Builder setLastStartTimeBytes(ByteString value)

[Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.

optional string last_start_time = 34545107;

Parameter
NameDescription
valueByteString

The bytes for lastStartTime to set.

Returns
TypeDescription
ScalingScheduleStatus.Builder

This builder for chaining.

setNextStartTime(String value)

public ScalingScheduleStatus.Builder setNextStartTime(String value)

[Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.

optional string next_start_time = 97270102;

Parameter
NameDescription
valueString

The nextStartTime to set.

Returns
TypeDescription
ScalingScheduleStatus.Builder

This builder for chaining.

setNextStartTimeBytes(ByteString value)

public ScalingScheduleStatus.Builder setNextStartTimeBytes(ByteString value)

[Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.

optional string next_start_time = 97270102;

Parameter
NameDescription
valueByteString

The bytes for nextStartTime to set.

Returns
TypeDescription
ScalingScheduleStatus.Builder

This builder for chaining.

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

public ScalingScheduleStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ScalingScheduleStatus.Builder
Overrides

setState(String value)

public ScalingScheduleStatus.Builder setState(String value)

[Output Only] The current state of a scaling schedule. Check the State enum for the list of possible values.

optional string state = 109757585;

Parameter
NameDescription
valueString

The state to set.

Returns
TypeDescription
ScalingScheduleStatus.Builder

This builder for chaining.

setStateBytes(ByteString value)

public ScalingScheduleStatus.Builder setStateBytes(ByteString value)

[Output Only] The current state of a scaling schedule. Check the State enum for the list of possible values.

optional string state = 109757585;

Parameter
NameDescription
valueByteString

The bytes for state to set.

Returns
TypeDescription
ScalingScheduleStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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