38
38
import java .util .HashMap ;
39
39
import java .util .Map ;
40
40
import java .util .Objects ;
41
- import org .jspecify .nullness .Nullable ;
42
41
43
42
/**
44
43
* A Cloud Logging log entry. All log entries are represented via objects of this class. Log entries
@@ -369,7 +368,7 @@ public MonitoredResource getResource() {
369
368
* @return timestamp in milliseconds
370
369
*/
371
370
@ Deprecated
372
- public @ Nullable Long getTimestamp () {
371
+ public Long getTimestamp () {
373
372
return timestamp != null ? timestamp .toEpochMilli () : null ;
374
373
}
375
374
@@ -390,7 +389,7 @@ public Instant getInstantTimestamp() {
390
389
* @return timestamp in milliseconds
391
390
*/
392
391
@ Deprecated
393
- public @ Nullable Long getReceiveTimestamp () {
392
+ public Long getReceiveTimestamp () {
394
393
return receiveTimestamp != null ? receiveTimestamp .toEpochMilli () : null ;
395
394
}
396
395
@@ -438,13 +437,13 @@ public Operation getOperation() {
438
437
* Returns the resource name of the trace associated with the log entry, if any. If it contains a
439
438
* relative resource name, the name is assumed to be relative to `//tracing.googleapis.com`.
440
439
*/
441
- public @ Nullable String getTrace () {
440
+ public String getTrace () {
442
441
// For backwards compatibility return null when trace not set instead of "null".
443
442
return trace == null ? null : trace ;
444
443
}
445
444
446
445
/** Returns the ID of the trace span associated with the log entry, if any. */
447
- public @ Nullable String getSpanId () {
446
+ public String getSpanId () {
448
447
// For backwards compatibility return null when spanId not set instead of "null".
449
448
return spanId == null ? null : spanId ;
450
449
}
0 commit comments