@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FEATUREID_FIELD_NUMBER; hash = (53 * hash) + getFeatureId().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); 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) + FEATUREID_FIELD_NUMBER; hash = (53 * hash) + getFeatureId().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); 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) + FEATUREID_FIELD_NUMBER; hash = (53 * hash) + getFeatureId().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
requests .stream() .map(r -> new Pair<>(r.getFeatureSpec(), r.getRequestDetail().getLimit())) .collect(Collectors.toList());
requestDetailWithSpecs .stream() .map(r -> new Pair<>(r.getFeatureSpec(), r.getRequestDetail().getLimit())) .collect(Collectors.toList()); featureValues =
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof feast.serving.ServingAPIProto.RequestDetail)) { return super.equals(obj); } feast.serving.ServingAPIProto.RequestDetail other = (feast.serving.ServingAPIProto.RequestDetail) obj; boolean result = true; result = result && getFeatureId() .equals(other.getFeatureId()); result = result && type_ == other.type_; result = result && (getLimit() == other.getLimit()); 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 feast.serving.ServingAPIProto.RequestDetail)) { return super.equals(obj); } feast.serving.ServingAPIProto.RequestDetail other = (feast.serving.ServingAPIProto.RequestDetail) obj; boolean result = true; result = result && getFeatureId() .equals(other.getFeatureId()); result = result && type_ == other.type_; result = result && (getLimit() == other.getLimit()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(feast.serving.ServingAPIProto.RequestDetail other) { if (other == feast.serving.ServingAPIProto.RequestDetail.getDefaultInstance()) return this; if (!other.getFeatureId().isEmpty()) { featureId_ = other.featureId_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getLimit() != 0) { setLimit(other.getLimit()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof feast.serving.ServingAPIProto.RequestDetail)) { return super.equals(obj); } feast.serving.ServingAPIProto.RequestDetail other = (feast.serving.ServingAPIProto.RequestDetail) obj; boolean result = true; result = result && getFeatureId() .equals(other.getFeatureId()); result = result && type_ == other.type_; result = result && (getLimit() == other.getLimit()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(feast.serving.ServingAPIProto.RequestDetail other) { if (other == feast.serving.ServingAPIProto.RequestDetail.getDefaultInstance()) return this; if (!other.getFeatureId().isEmpty()) { featureId_ = other.featureId_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getLimit() != 0) { setLimit(other.getLimit()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(feast.serving.ServingAPIProto.RequestDetail other) { if (other == feast.serving.ServingAPIProto.RequestDetail.getDefaultInstance()) return this; if (!other.getFeatureId().isEmpty()) { featureId_ = other.featureId_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getLimit() != 0) { setLimit(other.getLimit()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }