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
Fields
EXPIRATION_TIME_FIELD_NUMBER
public static final int EXPIRATION_TIME_FIELD_NUMBER
Field Value
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
Field Value
TIME_ZONE_FIELD_NUMBER
public static final int TIME_ZONE_FIELD_NUMBER
Field Value
VM_START_SCHEDULE_FIELD_NUMBER
public static final int VM_START_SCHEDULE_FIELD_NUMBER
Field Value
VM_STOP_SCHEDULE_FIELD_NUMBER
public static final int VM_STOP_SCHEDULE_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static ResourcePolicyInstanceSchedulePolicy getDefaultInstance()
Returns
getDefaultInstanceForType()
public ResourcePolicyInstanceSchedulePolicy getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
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
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
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: http://en.wikipedia.org/wiki/Tz_database.
optional string time_zone = 36848094;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getVmStartSchedule()
public ResourcePolicyInstanceSchedulePolicySchedule getVmStartSchedule()
Specifies the schedule for starting instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396;
Returns
getVmStartScheduleOrBuilder()
public ResourcePolicyInstanceSchedulePolicyScheduleOrBuilder getVmStartScheduleOrBuilder()
Specifies the schedule for starting instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396;
Returns
getVmStopSchedule()
public ResourcePolicyInstanceSchedulePolicySchedule getVmStopSchedule()
Specifies the schedule for stopping instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732;
Returns
getVmStopScheduleOrBuilder()
public ResourcePolicyInstanceSchedulePolicyScheduleOrBuilder getVmStopScheduleOrBuilder()
Specifies the schedule for stopping instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732;
Returns
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: http://en.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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static ResourcePolicyInstanceSchedulePolicy.Builder newBuilder()
Returns
newBuilder(ResourcePolicyInstanceSchedulePolicy prototype)
public static ResourcePolicyInstanceSchedulePolicy.Builder newBuilder(ResourcePolicyInstanceSchedulePolicy prototype)
Parameter
Returns
newBuilderForType()
public ResourcePolicyInstanceSchedulePolicy.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ResourcePolicyInstanceSchedulePolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static ResourcePolicyInstanceSchedulePolicy parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ResourcePolicyInstanceSchedulePolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ResourcePolicyInstanceSchedulePolicy parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ResourcePolicyInstanceSchedulePolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ResourcePolicyInstanceSchedulePolicy parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResourcePolicyInstanceSchedulePolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResourcePolicyInstanceSchedulePolicy parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ResourcePolicyInstanceSchedulePolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResourcePolicyInstanceSchedulePolicy parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ResourcePolicyInstanceSchedulePolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ResourcePolicyInstanceSchedulePolicy parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ResourcePolicyInstanceSchedulePolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ResourcePolicyInstanceSchedulePolicy> parser()
Returns
toBuilder()
public ResourcePolicyInstanceSchedulePolicy.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions