@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTimeEventCount() > 0) { hash = (37 * hash) + TIME_EVENT_FIELD_NUMBER; hash = (53 * hash) + getTimeEventList().hashCode(); } hash = (37 * hash) + DROPPED_ANNOTATIONS_COUNT_FIELD_NUMBER; hash = (53 * hash) + getDroppedAnnotationsCount(); hash = (37 * hash) + DROPPED_MESSAGE_EVENTS_COUNT_FIELD_NUMBER; hash = (53 * hash) + getDroppedMessageEventsCount(); 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.TimeEvents)) { return super.equals(obj); } com.google.devtools.cloudtrace.v2.Span.TimeEvents other = (com.google.devtools.cloudtrace.v2.Span.TimeEvents) obj; boolean result = true; result = result && getTimeEventList().equals(other.getTimeEventList()); result = result && (getDroppedAnnotationsCount() == other.getDroppedAnnotationsCount()); result = result && (getDroppedMessageEventsCount() == other.getDroppedMessageEventsCount()); result = result && unknownFields.equals(other.unknownFields); return result; }
if (other.getDroppedAnnotationsCount() != 0) { setDroppedAnnotationsCount(other.getDroppedAnnotationsCount());
assertThat(span.getTimeEvents().getDroppedMessageEventsCount()) .isEqualTo(DROPPED_NETWORKEVENTS_COUNT); assertThat(span.getTimeEvents().getDroppedAnnotationsCount()) .isEqualTo(DROPPED_ANNOTATIONS_COUNT); assertThat(span.getTimeEvents().getTimeEventList())
if (other.getDroppedAnnotationsCount() != 0) { setDroppedAnnotationsCount(other.getDroppedAnnotationsCount());
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTimeEventCount() > 0) { hash = (37 * hash) + TIME_EVENT_FIELD_NUMBER; hash = (53 * hash) + getTimeEventList().hashCode(); } hash = (37 * hash) + DROPPED_ANNOTATIONS_COUNT_FIELD_NUMBER; hash = (53 * hash) + getDroppedAnnotationsCount(); hash = (37 * hash) + DROPPED_MESSAGE_EVENTS_COUNT_FIELD_NUMBER; hash = (53 * hash) + getDroppedMessageEventsCount(); 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.TimeEvents)) { return super.equals(obj); } com.google.devtools.cloudtrace.v2.Span.TimeEvents other = (com.google.devtools.cloudtrace.v2.Span.TimeEvents) obj; boolean result = true; result = result && getTimeEventList().equals(other.getTimeEventList()); result = result && (getDroppedAnnotationsCount() == other.getDroppedAnnotationsCount()); result = result && (getDroppedMessageEventsCount() == other.getDroppedMessageEventsCount()); result = result && unknownFields.equals(other.unknownFields); return result; }