Class ResourcePolicyInstanceSchedulePolicy.Builder (1.53.0)

public static final class ResourcePolicyInstanceSchedulePolicy.Builder extends GeneratedMessageV3.Builder<ResourcePolicyInstanceSchedulePolicy.Builder> implements ResourcePolicyInstanceSchedulePolicyOrBuilder

An InstanceSchedulePolicy specifies when and how frequent certain operations are performed on the instance.

Protobuf type google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicy

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourcePolicyInstanceSchedulePolicy build()
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy

buildPartial()

public ResourcePolicyInstanceSchedulePolicy buildPartial()
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy

clear()

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

clearExpirationTime()

public ResourcePolicyInstanceSchedulePolicy.Builder clearExpirationTime()

The expiration time of the schedule. The timestamp is an RFC3339 string.

optional string expiration_time = 230299229;

Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartTime()

public ResourcePolicyInstanceSchedulePolicy.Builder clearStartTime()

The start time of the schedule. The timestamp is an RFC3339 string.

optional string start_time = 37467274;

Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

This builder for chaining.

clearTimeZone()

public ResourcePolicyInstanceSchedulePolicy.Builder clearTimeZone()

Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database.

optional string time_zone = 36848094;

Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

This builder for chaining.

clearVmStartSchedule()

public ResourcePolicyInstanceSchedulePolicy.Builder clearVmStartSchedule()

Specifies the schedule for starting instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396;

Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

clearVmStopSchedule()

public ResourcePolicyInstanceSchedulePolicy.Builder clearVmStopSchedule()

Specifies the schedule for stopping instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732;

Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

clone()

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

getDefaultInstanceForType()

public ResourcePolicyInstanceSchedulePolicy getDefaultInstanceForType()
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy

getDescriptorForType()

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

getExpirationTime()

public String getExpirationTime()

The expiration time of the schedule. The timestamp is an RFC3339 string.

optional string expiration_time = 230299229;

Returns
Type Description
String

The expirationTime.

getExpirationTimeBytes()

public ByteString getExpirationTimeBytes()

The expiration time of the schedule. The timestamp is an RFC3339 string.

optional string expiration_time = 230299229;

Returns
Type Description
ByteString

The bytes for expirationTime.

getStartTime()

public String getStartTime()

The start time of the schedule. The timestamp is an RFC3339 string.

optional string start_time = 37467274;

Returns
Type Description
String

The startTime.

getStartTimeBytes()

public ByteString getStartTimeBytes()

The start time of the schedule. The timestamp is an RFC3339 string.

optional string start_time = 37467274;

Returns
Type Description
ByteString

The bytes for startTime.

getTimeZone()

public String getTimeZone()

Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database.

optional string time_zone = 36848094;

Returns
Type Description
String

The timeZone.

getTimeZoneBytes()

public ByteString getTimeZoneBytes()

Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database.

optional string time_zone = 36848094;

Returns
Type Description
ByteString

The bytes for timeZone.

getVmStartSchedule()

public ResourcePolicyInstanceSchedulePolicySchedule getVmStartSchedule()

Specifies the schedule for starting instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396;

Returns
Type Description
ResourcePolicyInstanceSchedulePolicySchedule

The vmStartSchedule.

getVmStartScheduleBuilder()

public ResourcePolicyInstanceSchedulePolicySchedule.Builder getVmStartScheduleBuilder()

Specifies the schedule for starting instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396;

Returns
Type Description
ResourcePolicyInstanceSchedulePolicySchedule.Builder

getVmStartScheduleOrBuilder()

public ResourcePolicyInstanceSchedulePolicyScheduleOrBuilder getVmStartScheduleOrBuilder()

Specifies the schedule for starting instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396;

Returns
Type Description
ResourcePolicyInstanceSchedulePolicyScheduleOrBuilder

getVmStopSchedule()

public ResourcePolicyInstanceSchedulePolicySchedule getVmStopSchedule()

Specifies the schedule for stopping instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732;

Returns
Type Description
ResourcePolicyInstanceSchedulePolicySchedule

The vmStopSchedule.

getVmStopScheduleBuilder()

public ResourcePolicyInstanceSchedulePolicySchedule.Builder getVmStopScheduleBuilder()

Specifies the schedule for stopping instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732;

Returns
Type Description
ResourcePolicyInstanceSchedulePolicySchedule.Builder

getVmStopScheduleOrBuilder()

public ResourcePolicyInstanceSchedulePolicyScheduleOrBuilder getVmStopScheduleOrBuilder()

Specifies the schedule for stopping instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732;

Returns
Type Description
ResourcePolicyInstanceSchedulePolicyScheduleOrBuilder

hasExpirationTime()

public boolean hasExpirationTime()

The expiration time of the schedule. The timestamp is an RFC3339 string.

optional string expiration_time = 230299229;

Returns
Type Description
boolean

Whether the expirationTime field is set.

hasStartTime()

public boolean hasStartTime()

The start time of the schedule. The timestamp is an RFC3339 string.

optional string start_time = 37467274;

Returns
Type Description
boolean

Whether the startTime field is set.

hasTimeZone()

public boolean hasTimeZone()

Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database.

optional string time_zone = 36848094;

Returns
Type Description
boolean

Whether the timeZone field is set.

hasVmStartSchedule()

public boolean hasVmStartSchedule()

Specifies the schedule for starting instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396;

Returns
Type Description
boolean

Whether the vmStartSchedule field is set.

hasVmStopSchedule()

public boolean hasVmStopSchedule()

Specifies the schedule for stopping instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732;

Returns
Type Description
boolean

Whether the vmStopSchedule field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourcePolicyInstanceSchedulePolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourcePolicyInstanceSchedulePolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder
Overrides

mergeVmStartSchedule(ResourcePolicyInstanceSchedulePolicySchedule value)

public ResourcePolicyInstanceSchedulePolicy.Builder mergeVmStartSchedule(ResourcePolicyInstanceSchedulePolicySchedule value)

Specifies the schedule for starting instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396;

Parameter
Name Description
value ResourcePolicyInstanceSchedulePolicySchedule
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

mergeVmStopSchedule(ResourcePolicyInstanceSchedulePolicySchedule value)

public ResourcePolicyInstanceSchedulePolicy.Builder mergeVmStopSchedule(ResourcePolicyInstanceSchedulePolicySchedule value)

Specifies the schedule for stopping instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732;

Parameter
Name Description
value ResourcePolicyInstanceSchedulePolicySchedule
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

setExpirationTime(String value)

public ResourcePolicyInstanceSchedulePolicy.Builder setExpirationTime(String value)

The expiration time of the schedule. The timestamp is an RFC3339 string.

optional string expiration_time = 230299229;

Parameter
Name Description
value String

The expirationTime to set.

Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

This builder for chaining.

setExpirationTimeBytes(ByteString value)

public ResourcePolicyInstanceSchedulePolicy.Builder setExpirationTimeBytes(ByteString value)

The expiration time of the schedule. The timestamp is an RFC3339 string.

optional string expiration_time = 230299229;

Parameter
Name Description
value ByteString

The bytes for expirationTime to set.

Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStartTime(String value)

public ResourcePolicyInstanceSchedulePolicy.Builder setStartTime(String value)

The start time of the schedule. The timestamp is an RFC3339 string.

optional string start_time = 37467274;

Parameter
Name Description
value String

The startTime to set.

Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

This builder for chaining.

setStartTimeBytes(ByteString value)

public ResourcePolicyInstanceSchedulePolicy.Builder setStartTimeBytes(ByteString value)

The start time of the schedule. The timestamp is an RFC3339 string.

optional string start_time = 37467274;

Parameter
Name Description
value ByteString

The bytes for startTime to set.

Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

This builder for chaining.

setTimeZone(String value)

public ResourcePolicyInstanceSchedulePolicy.Builder setTimeZone(String value)

Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database.

optional string time_zone = 36848094;

Parameter
Name Description
value String

The timeZone to set.

Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

This builder for chaining.

setTimeZoneBytes(ByteString value)

public ResourcePolicyInstanceSchedulePolicy.Builder setTimeZoneBytes(ByteString value)

Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database.

optional string time_zone = 36848094;

Parameter
Name Description
value ByteString

The bytes for timeZone to set.

Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVmStartSchedule(ResourcePolicyInstanceSchedulePolicySchedule value)

public ResourcePolicyInstanceSchedulePolicy.Builder setVmStartSchedule(ResourcePolicyInstanceSchedulePolicySchedule value)

Specifies the schedule for starting instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396;

Parameter
Name Description
value ResourcePolicyInstanceSchedulePolicySchedule
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

setVmStartSchedule(ResourcePolicyInstanceSchedulePolicySchedule.Builder builderForValue)

public ResourcePolicyInstanceSchedulePolicy.Builder setVmStartSchedule(ResourcePolicyInstanceSchedulePolicySchedule.Builder builderForValue)

Specifies the schedule for starting instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396;

Parameter
Name Description
builderForValue ResourcePolicyInstanceSchedulePolicySchedule.Builder
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

setVmStopSchedule(ResourcePolicyInstanceSchedulePolicySchedule value)

public ResourcePolicyInstanceSchedulePolicy.Builder setVmStopSchedule(ResourcePolicyInstanceSchedulePolicySchedule value)

Specifies the schedule for stopping instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732;

Parameter
Name Description
value ResourcePolicyInstanceSchedulePolicySchedule
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

setVmStopSchedule(ResourcePolicyInstanceSchedulePolicySchedule.Builder builderForValue)

public ResourcePolicyInstanceSchedulePolicy.Builder setVmStopSchedule(ResourcePolicyInstanceSchedulePolicySchedule.Builder builderForValue)

Specifies the schedule for stopping instances.

optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732;

Parameter
Name Description
builderForValue ResourcePolicyInstanceSchedulePolicySchedule.Builder
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder