@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.logging.v2.LogEntrySourceLocation)) { return super.equals(obj); } com.google.logging.v2.LogEntrySourceLocation other = (com.google.logging.v2.LogEntrySourceLocation) obj; boolean result = true; result = result && getFile().equals(other.getFile()); result = result && (getLine() == other.getLine()); result = result && getFunction().equals(other.getFunction()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FILE_FIELD_NUMBER; hash = (53 * hash) + getFile().hashCode(); hash = (37 * hash) + LINE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLine()); hash = (37 * hash) + FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getFunction().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <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; }
static SourceLocation fromPb(LogEntrySourceLocation sourceLocationPb) { return new Builder() .setFile(sourceLocationPb.getFile()) .setLine(sourceLocationPb.getLine()) .setFunction(sourceLocationPb.getFunction()) .build(); } }
static SourceLocation fromPb(LogEntrySourceLocation sourceLocationPb) { return new Builder() .setFile(sourceLocationPb.getFile()) .setLine(sourceLocationPb.getLine()) .setFunction(sourceLocationPb.getFunction()) .build(); } }