Send feedback
  
   
 
  
    
      Class WeeklyWindow (1.55.0)
    
    
       
    
    
      
      Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
    
  
      
     
  
  
   
  
    
  
  
    
    
    
  Version 1.55.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  WeeklyWindow   extends   GeneratedMessageV3   implements   WeeklyWindowOrBuilder  
   
   Weekly windows. For example, blocking actions every Saturday and Sunday.
 Another example would be blocking actions every weekday from 5pm to midnight.
 Protobuf type google.cloud.deploy.v1.WeeklyWindow
 
  
  
  
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  DAYS_OF_WEEK_FIELD_NUMBER 
  
    
public   static   final   int   DAYS_OF_WEEK_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  END_TIME_FIELD_NUMBER 
  
    
public   static   final   int   END_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  
         
       
     
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   WeeklyWindow   getDefaultInstance ()  
   
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  
   
  newBuilder() 
  
    
public   static   WeeklyWindow . Builder   newBuilder ()  
   
  
   
  newBuilder(WeeklyWindow prototype) 
  
    
public   static   WeeklyWindow . Builder   newBuilder ( WeeklyWindow   prototype )  
   
  
  
   
  
  
    
public   static   WeeklyWindow   parseDelimitedFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   WeeklyWindow   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(byte[] data) 
  
    
public   static   WeeklyWindow   parseFrom ( byte []   data )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        data 
        byte [] 
       
     
  
  
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   WeeklyWindow   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteString data) 
  
    
public   static   WeeklyWindow   parseFrom ( ByteString   data )  
   
  
  
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   WeeklyWindow   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   WeeklyWindow   parseFrom ( CodedInputStream   input )  
   
  
  
  
   
  
  
    
public   static   WeeklyWindow   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   WeeklyWindow   parseFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   WeeklyWindow   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   WeeklyWindow   parseFrom ( ByteBuffer   data )  
   
  
  
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   WeeklyWindow   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parser() 
  
    
public   static   Parser<WeeklyWindow>   parser ()  
   
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        obj 
        Object  
       
     
  
  
  Overrides 
  
   
  getDaysOfWeek(int index) 
  
    
public   DayOfWeek   getDaysOfWeek ( int   index )  
   
   Optional. Days of week. If left empty, all days of the week will be
 included.
 
 repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        index 
        int The index of the element to return.
 
       
     
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        com.google.type.DayOfWeek  
        The daysOfWeek at the given index.
 
       
     
  
   
  getDaysOfWeekCount() 
  
    
public   int   getDaysOfWeekCount ()  
   
   Optional. Days of week. If left empty, all days of the week will be
 included.
 
 repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
        The count of daysOfWeek.
 
       
     
  
   
  getDaysOfWeekList() 
  
    
public   List<DayOfWeek>   getDaysOfWeekList ()  
   
   Optional. Days of week. If left empty, all days of the week will be
 included.
 
 repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        List <com.google.type.DayOfWeek > 
        A list containing the daysOfWeek.
 
       
     
  
   
  getDaysOfWeekValue(int index) 
  
    
public   int   getDaysOfWeekValue ( int   index )  
   
   Optional. Days of week. If left empty, all days of the week will be
 included.
 
 repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        index 
        int The index of the value to return.
 
       
     
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
        The enum numeric value on the wire of daysOfWeek at the given index.
 
       
     
  
   
  getDaysOfWeekValueList() 
  
    
public   List<Integer>   getDaysOfWeekValueList ()  
   
   Optional. Days of week. If left empty, all days of the week will be
 included.
 
 repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        List <Integer > 
        A list containing the enum numeric values on the wire for daysOfWeek.
 
       
     
  
   
  getDefaultInstanceForType() 
  
    
public   WeeklyWindow   getDefaultInstanceForType ()  
   
  
   
  getEndTime() 
  
    
public   TimeOfDay   getEndTime ()  
   
   Optional. End time (exclusive). Use 24:00 to indicate midnight. If you
 specify end_time you must also specify start_time. If left empty, this will
 block for the entire day for the days specified in days_of_week.
 .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        com.google.type.TimeOfDay  
        The endTime.
 
       
     
  
   
  getEndTimeOrBuilder() 
  
    
public   TimeOfDayOrBuilder   getEndTimeOrBuilder ()  
   
   Optional. End time (exclusive). Use 24:00 to indicate midnight. If you
 specify end_time you must also specify start_time. If left empty, this will
 block for the entire day for the days specified in days_of_week.
 .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        com.google.type.TimeOfDayOrBuilder  
         
       
     
  
   
  getParserForType() 
  
    
public   Parser<WeeklyWindow>   getParserForType ()  
   
  
  Overrides 
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  getStartTime() 
  
    
public   TimeOfDay   getStartTime ()  
   
   Optional. Start time (inclusive). Use 00:00 for the beginning of the day.
 If you specify start_time you must also specify end_time. If left empty,
 this will block for the entire day for the days specified in days_of_week.
 .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        com.google.type.TimeOfDay  
        The startTime.
 
       
     
  
   
  getStartTimeOrBuilder() 
  
    
public   TimeOfDayOrBuilder   getStartTimeOrBuilder ()  
   
   Optional. Start time (inclusive). Use 00:00 for the beginning of the day.
 If you specify start_time you must also specify end_time. If left empty,
 this will block for the entire day for the days specified in days_of_week.
 .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        com.google.type.TimeOfDayOrBuilder  
         
       
     
  
   
  hasEndTime() 
  
    
public   boolean   hasEndTime ()  
   
   Optional. End time (exclusive). Use 24:00 to indicate midnight. If you
 specify end_time you must also specify start_time. If left empty, this will
 block for the entire day for the days specified in days_of_week.
 .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the endTime field is set.
 
       
     
  
   
  hasStartTime() 
  
    
public   boolean   hasStartTime ()  
   
   Optional. Start time (inclusive). Use 00:00 for the beginning of the day.
 If you specify start_time you must also specify end_time. If left empty,
 this will block for the entire day for the days specified in days_of_week.
 .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the startTime field is set.
 
       
     
  
   
  hashCode() 
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   WeeklyWindow . Builder   newBuilderForType ()  
   
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   WeeklyWindow . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Object  
         
       
     
  
  Overrides 
  
   
  toBuilder() 
  
    
public   WeeklyWindow . Builder   toBuilder ()  
   
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
 
  
    
    
      
    
     
  
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  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-30 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]