@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.example.grpc.HelloRequest)) { return super.equals(obj); } com.example.grpc.HelloRequest other = (com.example.grpc.HelloRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && (getAge() == other.getAge()); result = result && getHobbiesList() .equals(other.getHobbiesList()); result = result && internalGetBagOfTricks().equals( other.internalGetBagOfTricks()); result = result && sentiment_ == other.sentiment_; result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.example.grpc.HelloRequest)) { return super.equals(obj); } com.example.grpc.HelloRequest other = (com.example.grpc.HelloRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && (getAge() == other.getAge()); result = result && getHobbiesList() .equals(other.getHobbiesList()); result = result && internalGetBagOfTricks().equals( other.internalGetBagOfTricks()); result = result && sentiment_ == other.sentiment_; result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.example.grpc.HelloRequest)) { return super.equals(obj); } com.example.grpc.HelloRequest other = (com.example.grpc.HelloRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && (getAge() == other.getAge()); result = result && getHobbiesList() .equals(other.getHobbiesList()); result = result && internalGetBagOfTricks().equals( other.internalGetBagOfTricks()); result = result && sentiment_ == other.sentiment_; 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + AGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAge()); if (getHobbiesCount() > 0) { hash = (37 * hash) + HOBBIES_FIELD_NUMBER; hash = (53 * hash) + getHobbiesList().hashCode(); } if (!internalGetBagOfTricks().getMap().isEmpty()) { hash = (37 * hash) + BAGOFTRICKS_FIELD_NUMBER; hash = (53 * hash) + internalGetBagOfTricks().hashCode(); } hash = (37 * hash) + SENTIMENT_FIELD_NUMBER; hash = (53 * hash) + sentiment_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + AGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAge()); if (getHobbiesCount() > 0) { hash = (37 * hash) + HOBBIES_FIELD_NUMBER; hash = (53 * hash) + getHobbiesList().hashCode(); } if (!internalGetBagOfTricks().getMap().isEmpty()) { hash = (37 * hash) + BAGOFTRICKS_FIELD_NUMBER; hash = (53 * hash) + internalGetBagOfTricks().hashCode(); } hash = (37 * hash) + SENTIMENT_FIELD_NUMBER; hash = (53 * hash) + sentiment_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
size += 1 * getHobbiesList().size();
size += 1 * getHobbiesList().size();
size += 1 * getHobbiesList().size();
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + AGE_FIELD_NUMBER; hash = (53 * hash) + getAge(); if (getHobbiesCount() > 0) { hash = (37 * hash) + HOBBIES_FIELD_NUMBER; hash = (53 * hash) + getHobbiesList().hashCode(); } if (!internalGetBagOfTricks().getMap().isEmpty()) { hash = (37 * hash) + BAGOFTRICKS_FIELD_NUMBER; hash = (53 * hash) + internalGetBagOfTricks().hashCode(); } hash = (37 * hash) + SENTIMENT_FIELD_NUMBER; hash = (53 * hash) + sentiment_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }