1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/compute/v1/compute.proto 18 19 package com.google.cloud.compute.v1; 20 21 public interface DurationOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.Duration) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. 31 * </pre> 32 * 33 * <code>optional int32 nanos = 104586303;</code> 34 * 35 * @return Whether the nanos field is set. 36 */ hasNanos()37 boolean hasNanos(); 38 /** 39 * 40 * 41 * <pre> 42 * Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. 43 * </pre> 44 * 45 * <code>optional int32 nanos = 104586303;</code> 46 * 47 * @return The nanos. 48 */ getNanos()49 int getNanos(); 50 51 /** 52 * 53 * 54 * <pre> 55 * Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years 56 * </pre> 57 * 58 * <code>optional int64 seconds = 359484031;</code> 59 * 60 * @return Whether the seconds field is set. 61 */ hasSeconds()62 boolean hasSeconds(); 63 /** 64 * 65 * 66 * <pre> 67 * Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years 68 * </pre> 69 * 70 * <code>optional int64 seconds = 359484031;</code> 71 * 72 * @return The seconds. 73 */ getSeconds()74 long getSeconds(); 75 } 76