Class SchedulingDuration.Builder (0.35.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.35.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  SchedulingDuration . Builder   extends   GeneratedMessageV3 . Builder<SchedulingDuration . Builder >  implements   SchedulingDurationOrBuilder  
   A SchedulingDuration represents a fixed-length span of time represented
 as a count of seconds and fractions of seconds at nanosecond
 resolution. It is independent of any calendar and concepts like "day"
 or "month". Range is approximately 10,000 years.
 Protobuf type google.cloud.backupdr.v1.SchedulingDuration
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   SchedulingDuration . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   SchedulingDuration   build ()  
  
  buildPartial() 
  
    
public   SchedulingDuration   buildPartial ()  
  
  clear() 
  
    
public   SchedulingDuration . Builder   clear ()  
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   SchedulingDuration . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearNanos() 
  
    
public   SchedulingDuration . Builder   clearNanos ()  
   Optional. Span of time that's a fraction of a second at nanosecond
 resolution.
 optional int32 nanos = 2 [(.google.api.field_behavior) = OPTIONAL];
clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   SchedulingDuration . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clearSeconds() 
  
    
public   SchedulingDuration . Builder   clearSeconds ()  
   Optional. Span of time at a resolution of a second.
 optional int64 seconds = 1 [(.google.api.field_behavior) = OPTIONAL];
clone() 
  
    
public   SchedulingDuration . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   SchedulingDuration   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getNanos() 
  
   Optional. Span of time that's a fraction of a second at nanosecond
 resolution.
 optional int32 nanos = 2 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        int The nanos.
 
     
  
  getSeconds() 
  
   Optional. Span of time at a resolution of a second.
 optional int64 seconds = 1 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        long The seconds.
 
     
  
  hasNanos() 
  
    
public   boolean   hasNanos ()  
   Optional. Span of time that's a fraction of a second at nanosecond
 resolution.
 optional int32 nanos = 2 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the nanos field is set.
 
     
  
  hasSeconds() 
  
    
public   boolean   hasSeconds ()  
   Optional. Span of time at a resolution of a second.
 optional int64 seconds = 1 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the seconds field is set.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(SchedulingDuration other) 
  
    
public   SchedulingDuration . Builder   mergeFrom ( SchedulingDuration   other )  
  
  
  
    
public   SchedulingDuration . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   SchedulingDuration . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   SchedulingDuration . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   SchedulingDuration . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setNanos(int value) 
  
    
public   SchedulingDuration . Builder   setNanos ( int   value )  
   Optional. Span of time that's a fraction of a second at nanosecond
 resolution.
 optional int32 nanos = 2 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Parameter  
      
        Name Description  
      
        valueint The nanos to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   SchedulingDuration . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setSeconds(long value) 
  
    
public   SchedulingDuration . Builder   setSeconds ( long   value )  
   Optional. Span of time at a resolution of a second.
 optional int64 seconds = 1 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Parameter  
      
        Name Description  
      
        valuelong The seconds to set.
 
     
  
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   SchedulingDuration . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  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-28 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-28 UTC."],[],[]]