/** * * * <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 setFile(java.lang.String value) { if (value == null) { throw new NullPointerException(); } file_ = value; onChanged(); return this; } /**
/** * * * <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 setFileBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); file_ = value; 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 setFunctionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); function_ = value; 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 setFunction(java.lang.String value) { if (value == null) { throw new NullPointerException(); } function_ = value; 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; } /**
/** * * * <pre> * Optional. Line within the source file. 1-based; 0 indicates no line number * available. * </pre> * * <code>int64 line = 2;</code> */ public Builder setLine(long value) { line_ = value; onChanged(); return this; } /**
/** * * * <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; } /**
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; }
/** * * * <pre> * Optional. Line within the source file. 1-based; 0 indicates no line number * available. * </pre> * * <code>int64 line = 2;</code> */ public Builder clearLine() { line_ = 0L; onChanged(); return this; }