@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TRACE_ID_FIELD_NUMBER; hash = (53 * hash) + getTraceId().hashCode(); hash = (37 * hash) + SPAN_ID_FIELD_NUMBER; hash = (53 * hash) + getSpanId().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasAttributes()) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getAttributes().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.cloudtrace.v2.Span.Link)) { return super.equals(obj); } com.google.devtools.cloudtrace.v2.Span.Link other = (com.google.devtools.cloudtrace.v2.Span.Link) obj; boolean result = true; result = result && getTraceId().equals(other.getTraceId()); result = result && getSpanId().equals(other.getSpanId()); result = result && type_ == other.type_; result = result && (hasAttributes() == other.hasAttributes()); if (hasAttributes()) { result = result && getAttributes().equals(other.getAttributes()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.devtools.cloudtrace.v2.Span.Link other) { if (other == com.google.devtools.cloudtrace.v2.Span.Link.getDefaultInstance()) return this; if (!other.getTraceId().isEmpty()) { traceId_ = other.traceId_; onChanged(); } if (!other.getSpanId().isEmpty()) { spanId_ = other.spanId_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasAttributes()) { mergeAttributes(other.getAttributes()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TRACE_ID_FIELD_NUMBER; hash = (53 * hash) + getTraceId().hashCode(); hash = (37 * hash) + SPAN_ID_FIELD_NUMBER; hash = (53 * hash) + getSpanId().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasAttributes()) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getAttributes().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.cloudtrace.v2.Span.Link)) { return super.equals(obj); } com.google.devtools.cloudtrace.v2.Span.Link other = (com.google.devtools.cloudtrace.v2.Span.Link) obj; boolean result = true; result = result && getTraceId().equals(other.getTraceId()); result = result && getSpanId().equals(other.getSpanId()); result = result && type_ == other.type_; result = result && (hasAttributes() == other.hasAttributes()); if (hasAttributes()) { result = result && getAttributes().equals(other.getAttributes()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.devtools.cloudtrace.v2.Span.Link other) { if (other == com.google.devtools.cloudtrace.v2.Span.Link.getDefaultInstance()) return this; if (!other.getTraceId().isEmpty()) { traceId_ = other.traceId_; onChanged(); } if (!other.getSpanId().isEmpty()) { spanId_ = other.spanId_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasAttributes()) { mergeAttributes(other.getAttributes()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }