Class ResourcePolicyInstanceSchedulePolicy (1.34.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 1.34.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
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
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  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 ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   ResourcePolicyInstanceSchedulePolicy . Builder   newBuilder ()  
  
  newBuilder(ResourcePolicyInstanceSchedulePolicy prototype) 
  
    
public   static   ResourcePolicyInstanceSchedulePolicy . Builder   newBuilder ( ResourcePolicyInstanceSchedulePolicy   prototype )  
  
  
  
    
public   static   ResourcePolicyInstanceSchedulePolicy   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   ResourcePolicyInstanceSchedulePolicy   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   ResourcePolicyInstanceSchedulePolicy   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ResourcePolicyInstanceSchedulePolicy   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   ResourcePolicyInstanceSchedulePolicy   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ResourcePolicyInstanceSchedulePolicy   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   ResourcePolicyInstanceSchedulePolicy   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   ResourcePolicyInstanceSchedulePolicy   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   ResourcePolicyInstanceSchedulePolicy   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   ResourcePolicyInstanceSchedulePolicy   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   ResourcePolicyInstanceSchedulePolicy   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ResourcePolicyInstanceSchedulePolicy   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<ResourcePolicyInstanceSchedulePolicy>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   ResourcePolicyInstanceSchedulePolicy   getDefaultInstanceForType ()  
  
  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 ()  
  
  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;
 
getVmStartScheduleOrBuilder() 
  
    
public   ResourcePolicyInstanceSchedulePolicyScheduleOrBuilder   getVmStartScheduleOrBuilder ()  
   Specifies the schedule for starting instances.
 
 optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396;
 
getVmStopSchedule() 
  
    
public   ResourcePolicyInstanceSchedulePolicySchedule   getVmStopSchedule ()  
   Specifies the schedule for stopping instances.
 
 optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732;
 
getVmStopScheduleOrBuilder() 
  
    
public   ResourcePolicyInstanceSchedulePolicyScheduleOrBuilder   getVmStopScheduleOrBuilder ()  
   Specifies the schedule for stopping instances.
 
 optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732;
 
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() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   ResourcePolicyInstanceSchedulePolicy . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   ResourcePolicyInstanceSchedulePolicy . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   ResourcePolicyInstanceSchedulePolicy . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-11 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]