@java.lang.Override public com.google.logging.v2.LogEntrySourceLocation getDefaultInstanceForType() { return com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance(); }
/** * * * <pre> * Optional. Source code location information associated with the log entry, * if any. * </pre> * * <code>.google.logging.v2.LogEntrySourceLocation source_location = 23;</code> */ public com.google.logging.v2.LogEntrySourceLocation getSourceLocation() { return sourceLocation_ == null ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() : sourceLocation_; } /**
/** * * * <pre> * Optional. Source code location information associated with the log entry, * if any. * </pre> * * <code>.google.logging.v2.LogEntrySourceLocation source_location = 23;</code> */ public com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder() { if (sourceLocationBuilder_ != null) { return sourceLocationBuilder_.getMessageOrBuilder(); } else { return sourceLocation_ == null ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() : sourceLocation_; } } /**
/** * * * <pre> * Optional. Source code location information associated with the log entry, * if any. * </pre> * * <code>.google.logging.v2.LogEntrySourceLocation source_location = 23;</code> */ public com.google.logging.v2.LogEntrySourceLocation getSourceLocation() { if (sourceLocationBuilder_ == null) { return sourceLocation_ == null ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() : sourceLocation_; } else { return sourceLocationBuilder_.getMessage(); } } /**
/** * * * <pre> * Optional. Source file name. Depending on the runtime environment, this * might be a simple name or a fully-qualified name. * </pre> * * <code>string file = 1;</code> */ public Builder clearFile() { file_ = getDefaultInstance().getFile(); onChanged(); return this; } /**
/** * * * <pre> * Optional. Human-readable name of the function or method being invoked, with * optional context such as the class or package name. This information may be * used in contexts such as the logs viewer, where a file and line number are * less meaningful. The format can vary by language. For example: * `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function` * (Python). * </pre> * * <code>string function = 3;</code> */ public Builder clearFunction() { function_ = getDefaultInstance().getFunction(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.logging.v2.LogEntrySourceLocation other) { if (other == com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance()) return this; if (!other.getFile().isEmpty()) { file_ = other.file_; onChanged(); } if (other.getLine() != 0L) { setLine(other.getLine()); } if (!other.getFunction().isEmpty()) { function_ = other.function_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
if (!entryPb.getSourceLocation().equals(LogEntrySourceLocation.getDefaultInstance())) { builder.setSourceLocation(SourceLocation.fromPb(entryPb.getSourceLocation()));
if (!entryPb.getSourceLocation().equals(LogEntrySourceLocation.getDefaultInstance())) { builder.setSourceLocation(SourceLocation.fromPb(entryPb.getSourceLocation()));