@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.example.grpc.GoodbyeRequest)) { return super.equals(obj); } com.example.grpc.GoodbyeRequest other = (com.example.grpc.GoodbyeRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getReason() .equals(other.getReason()); 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.GoodbyeRequest)) { return super.equals(obj); } com.example.grpc.GoodbyeRequest other = (com.example.grpc.GoodbyeRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getReason() .equals(other.getReason()); 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) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); 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) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <code>string reason = 2;</code> */ public Builder clearReason() { reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /**
/** * <code>string reason = 2;</code> */ public Builder clearReason() { reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /**
public Builder mergeFrom(com.example.grpc.GoodbyeRequest other) { if (other == com.example.grpc.GoodbyeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getReason().isEmpty()) { reason_ = other.reason_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(com.example.grpc.GoodbyeRequest other) { if (other == com.example.grpc.GoodbyeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getReason().isEmpty()) { reason_ = other.reason_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }