Class ResourcePolicyInstanceSchedulePolicy (1.63.0)

public final class ResourcePolicyInstanceSchedulePolicy extends GeneratedMessageV3 implements ResourcePolicyInstanceSchedulePolicyOrBuilder

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

Protobuf type google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicy

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ResourcePolicyInstanceSchedulePolicy

Static Fields

EXPIRATION_TIME_FIELD_NUMBER

public static final int EXPIRATION_TIME_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
Type Description
int

TIME_ZONE_FIELD_NUMBER

public static final int TIME_ZONE_FIELD_NUMBER
Field Value
Type Description
int

VM_START_SCHEDULE_FIELD_NUMBER

public static final int VM_START_SCHEDULE_FIELD_NUMBER
Field Value
Type Description
int

VM_STOP_SCHEDULE_FIELD_NUMBER

public static final int VM_STOP_SCHEDULE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ResourcePolicyInstanceSchedulePolicy getDefaultInstance()
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy

getDescriptor()

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

newBuilder()

public static ResourcePolicyInstanceSchedulePolicy.Builder newBuilder()
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

newBuilder(ResourcePolicyInstanceSchedulePolicy prototype)

public static ResourcePolicyInstanceSchedulePolicy.Builder newBuilder(ResourcePolicyInstanceSchedulePolicy prototype)
Parameter
Name Description
prototype ResourcePolicyInstanceSchedulePolicy
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

parseDelimitedFrom(InputStream input)

public static ResourcePolicyInstanceSchedulePolicy parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyInstanceSchedulePolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ResourcePolicyInstanceSchedulePolicy> parser()
Returns
Type Description
Parser<ResourcePolicyInstanceSchedulePolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ResourcePolicyInstanceSchedulePolicy getDefaultInstanceForType()
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy

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.

getParserForType()

public Parser<ResourcePolicyInstanceSchedulePolicy> getParserForType()
Returns
Type Description
Parser<ResourcePolicyInstanceSchedulePolicy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ResourcePolicyInstanceSchedulePolicy.Builder newBuilderForType()
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ResourcePolicyInstanceSchedulePolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ResourcePolicyInstanceSchedulePolicy.Builder toBuilder()
Returns
Type Description
ResourcePolicyInstanceSchedulePolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException