Home
last modified time | relevance | path

Searched refs:setNanos (Results 1 – 11 of 11) sorted by relevance

/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/
DDurations.java64 Duration.newBuilder().setSeconds(DURATION_SECONDS_MIN).setNanos(-999999999).build();
68 Duration.newBuilder().setSeconds(DURATION_SECONDS_MAX).setNanos(999999999).build();
71 public static final Duration ZERO = Duration.newBuilder().setSeconds(0L).setNanos(0).build();
281 .setNanos(0) in fromDays()
290 .setNanos(0) in fromHours()
299 .setNanos(0) in fromMinutes()
452 Duration duration = Duration.newBuilder().setSeconds(seconds).setNanos(nanos).build(); in normalizedDuration()
DTimestamps.java70 Timestamp.newBuilder().setSeconds(TIMESTAMP_SECONDS_MIN).setNanos(0).build();
76 Timestamp.newBuilder().setSeconds(TIMESTAMP_SECONDS_MAX).setNanos(999999999).build();
81 public static final Timestamp EPOCH = Timestamp.newBuilder().setSeconds(0).setNanos(0).build();
398 Timestamp timestamp = Timestamp.newBuilder().setSeconds(seconds).setNanos(nanos).build(); in normalizedTimestamp()
DTimeUtil.java399 return Duration.newBuilder().setSeconds(seconds).setNanos(nanos).build(); in normalizedDuration()
/third_party/protobuf/java/util/src/test/java/com/google/protobuf/util/
DTimeUtilTest.java64 value = Timestamp.newBuilder().setNanos(10).build(); in testTimestampStringFormat()
66 value = Timestamp.newBuilder().setNanos(10000).build(); in testTimestampStringFormat()
68 value = Timestamp.newBuilder().setNanos(10000000).build(); in testTimestampStringFormat()
167 Timestamp value = Timestamp.newBuilder().setNanos(-1).build(); in testTimetampInvalidFormat()
176 Timestamp value = Timestamp.newBuilder().setNanos(1000000000).build(); in testTimetampInvalidFormat()
251 duration = Duration.newBuilder().setNanos(10000000).build(); in testDurationStringFormat()
253 duration = Duration.newBuilder().setNanos(10000).build(); in testDurationStringFormat()
255 duration = Duration.newBuilder().setNanos(10).build(); in testDurationStringFormat()
298 Duration value = Duration.newBuilder().setSeconds(1).setNanos(-1).build(); in testDurationInvalidFormat()
307 Duration value = Duration.newBuilder().setSeconds(-1).setNanos(1).build(); in testDurationInvalidFormat()
/third_party/protobuf/php/src/Google/Protobuf/
DDuration.php164 public function setNanos($var) function in Google\\Protobuf\\Duration
DTimestamp.php170 public function setNanos($var) function in Google\\Protobuf\\Timestamp
/third_party/protobuf/php/src/Google/Protobuf/Internal/
DGPBUtil.php455 $value->setNanos($nanoseconds);
501 $duration->setNanos($nanos);
DMessage.php842 $submsg->setNanos($timestamp->getNanos());
/third_party/protobuf/php/tests/
DWellKnownTest.php310 $timestamp->setNanos(2);
354 $duration->setNanos(2);
DEncodeDecodeTest.php952 $m->setNanos(999999999);
968 $m->setNanos(123456789);
1199 $packed->setNanos(123456789);
/third_party/protobuf/src/google/protobuf/
Dtimestamp.proto91 // .setNanos((int) ((millis % 1000) * 1000000)).build();