Class ResourcePolicyInstanceSchedulePolicy (1.30.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
TypeDescription
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

TIME_ZONE_FIELD_NUMBER

public static final int TIME_ZONE_FIELD_NUMBER
Field Value
TypeDescription
int

VM_START_SCHEDULE_FIELD_NUMBER

public static final int VM_START_SCHEDULE_FIELD_NUMBER
Field Value
TypeDescription
int

VM_STOP_SCHEDULE_FIELD_NUMBER

public static final int VM_STOP_SCHEDULE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ResourcePolicyInstanceSchedulePolicy getDefaultInstance()
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy

getDescriptor()

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

newBuilder()

public static ResourcePolicyInstanceSchedulePolicy.Builder newBuilder()
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy.Builder

newBuilder(ResourcePolicyInstanceSchedulePolicy prototype)

public static ResourcePolicyInstanceSchedulePolicy.Builder newBuilder(ResourcePolicyInstanceSchedulePolicy prototype)
Parameter
NameDescription
prototypeResourcePolicyInstanceSchedulePolicy
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy.Builder

parseDelimitedFrom(InputStream input)

public static ResourcePolicyInstanceSchedulePolicy parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyInstanceSchedulePolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyInstanceSchedulePolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ResourcePolicyInstanceSchedulePolicy> parser()
Returns
TypeDescription
Parser<ResourcePolicyInstanceSchedulePolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ResourcePolicyInstanceSchedulePolicy getDefaultInstanceForType()
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy

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.

getParserForType()

public Parser<ResourcePolicyInstanceSchedulePolicy> getParserForType()
Returns
TypeDescription
Parser<ResourcePolicyInstanceSchedulePolicy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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: https://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: https://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.

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.

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: https://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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ResourcePolicyInstanceSchedulePolicy.Builder newBuilderForType()
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ResourcePolicyInstanceSchedulePolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ResourcePolicyInstanceSchedulePolicy.Builder toBuilder()
Returns
TypeDescription
ResourcePolicyInstanceSchedulePolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException