Class ResourcePolicyInstanceSchedulePolicy.Builder (1.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourcePolicyInstanceSchedulePolicy build()
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy

buildPartial()

public ResourcePolicyInstanceSchedulePolicy buildPartial()
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourcePolicyInstanceSchedulePolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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: http://en.wikipedia.org/wiki/Tz_database.

optional string time_zone = 36848094;

Returns
TypeDescription
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
TypeDescription
ResourcePolicyInstanceSchedulePolicy.Builder

clearVmStopSchedule()

public ResourcePolicyInstanceSchedulePolicy.Builder clearVmStopSchedule()

Specifies the schedule for stopping instances.

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

Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy.Builder

clone()

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

getDefaultInstanceForType()

public ResourcePolicyInstanceSchedulePolicy getDefaultInstanceForType()
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExpirationTime()

public String getExpirationTime()

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

optional string expiration_time = 230299229;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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: http://en.wikipedia.org/wiki/Tz_database.

optional string time_zone = 36848094;

Returns
TypeDescription
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: http://en.wikipedia.org/wiki/Tz_database.

optional string time_zone = 36848094;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ResourcePolicyInstanceSchedulePolicySchedule.Builder

getVmStartScheduleOrBuilder()

public ResourcePolicyInstanceSchedulePolicyScheduleOrBuilder getVmStartScheduleOrBuilder()

Specifies the schedule for starting instances.

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

Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicyScheduleOrBuilder

getVmStopSchedule()

public ResourcePolicyInstanceSchedulePolicySchedule getVmStopSchedule()

Specifies the schedule for stopping instances.

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

Returns
TypeDescription
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
TypeDescription
ResourcePolicyInstanceSchedulePolicySchedule.Builder

getVmStopScheduleOrBuilder()

public ResourcePolicyInstanceSchedulePolicyScheduleOrBuilder getVmStopScheduleOrBuilder()

Specifies the schedule for stopping instances.

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

Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicyScheduleOrBuilder

hasExpirationTime()

public boolean hasExpirationTime()

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

optional string expiration_time = 230299229;

Returns
TypeDescription
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
TypeDescription
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: http://en.wikipedia.org/wiki/Tz_database.

optional string time_zone = 36848094;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the vmStopSchedule field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ResourcePolicyInstanceSchedulePolicy other)

public ResourcePolicyInstanceSchedulePolicy.Builder mergeFrom(ResourcePolicyInstanceSchedulePolicy other)
Parameter
NameDescription
otherResourcePolicyInstanceSchedulePolicy
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The expirationTime to set.

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

The bytes for expirationTime to set.

Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

The startTime to set.

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

The bytes for startTime to set.

Returns
TypeDescription
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: http://en.wikipedia.org/wiki/Tz_database.

optional string time_zone = 36848094;

Parameter
NameDescription
valueString

The timeZone to set.

Returns
TypeDescription
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: http://en.wikipedia.org/wiki/Tz_database.

optional string time_zone = 36848094;

Parameter
NameDescription
valueByteString

The bytes for timeZone to set.

Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourcePolicyInstanceSchedulePolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueResourcePolicyInstanceSchedulePolicySchedule
Returns
TypeDescription
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
NameDescription
builderForValueResourcePolicyInstanceSchedulePolicySchedule.Builder
Returns
TypeDescription
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
NameDescription
valueResourcePolicyInstanceSchedulePolicySchedule
Returns
TypeDescription
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
NameDescription
builderForValueResourcePolicyInstanceSchedulePolicySchedule.Builder
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy.Builder