@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTime()) { hash = (37 * hash) + TIME_FIELD_NUMBER; hash = (53 * hash) + getTime().hashCode(); } switch (valueCase_) { case 2: hash = (37 * hash) + ANNOTATION_FIELD_NUMBER; hash = (53 * hash) + getAnnotation().hashCode(); break; case 3: hash = (37 * hash) + MESSAGE_EVENT_FIELD_NUMBER; hash = (53 * hash) + getMessageEvent().hashCode(); break; case 0: default: } 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.TimeEvent)) { return super.equals(obj); } com.google.devtools.cloudtrace.v2.Span.TimeEvent other = (com.google.devtools.cloudtrace.v2.Span.TimeEvent) obj; boolean result = true; result = result && (hasTime() == other.hasTime()); if (hasTime()) { result = result && getTime().equals(other.getTime()); } result = result && getValueCase().equals(other.getValueCase()); if (!result) return false; switch (valueCase_) { case 2: result = result && getAnnotation().equals(other.getAnnotation()); break; case 3: result = result && getMessageEvent().equals(other.getMessageEvent()); break; case 0: default: } 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(); if (hasTime()) { hash = (37 * hash) + TIME_FIELD_NUMBER; hash = (53 * hash) + getTime().hashCode(); } switch (valueCase_) { case 2: hash = (37 * hash) + ANNOTATION_FIELD_NUMBER; hash = (53 * hash) + getAnnotation().hashCode(); break; case 3: hash = (37 * hash) + MESSAGE_EVENT_FIELD_NUMBER; hash = (53 * hash) + getMessageEvent().hashCode(); break; case 0: default: } 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.TimeEvent)) { return super.equals(obj); } com.google.devtools.cloudtrace.v2.Span.TimeEvent other = (com.google.devtools.cloudtrace.v2.Span.TimeEvent) obj; boolean result = true; result = result && (hasTime() == other.hasTime()); if (hasTime()) { result = result && getTime().equals(other.getTime()); } result = result && getValueCase().equals(other.getValueCase()); if (!result) return false; switch (valueCase_) { case 2: result = result && getAnnotation().equals(other.getAnnotation()); break; case 3: result = result && getMessageEvent().equals(other.getMessageEvent()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.devtools.cloudtrace.v2.Span.TimeEvent other) { if (other == com.google.devtools.cloudtrace.v2.Span.TimeEvent.getDefaultInstance()) return this; if (other.hasTime()) { mergeTime(other.getTime()); } switch (other.getValueCase()) { case ANNOTATION: { mergeAnnotation(other.getAnnotation()); break; } case MESSAGE_EVENT: { mergeMessageEvent(other.getMessageEvent()); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(com.google.devtools.cloudtrace.v2.Span.TimeEvent other) { if (other == com.google.devtools.cloudtrace.v2.Span.TimeEvent.getDefaultInstance()) return this; if (other.hasTime()) { mergeTime(other.getTime()); } switch (other.getValueCase()) { case ANNOTATION: { mergeAnnotation(other.getAnnotation()); break; } case MESSAGE_EVENT: { mergeMessageEvent(other.getMessageEvent()); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }