@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@Override public void getEntity(GetEntityRequest request, StreamObserver<GetEntityResponse> responseObserver) { String entityName = request.getId(); try { List<EntityInfo> entityInfos = specService.getEntities(Collections.singletonList(entityName)); EntityDetail entityDetail = entityInfos.get(0) .getEntityDetail(); GetEntityResponse response = GetEntityResponse.newBuilder() .setEntity(entityDetail) .build(); responseObserver.onNext(response); responseObserver.onCompleted(); } catch (IllegalArgumentException e) { String errMsg = "Invalid entity name: " + entityName; log.error(errMsg, e); onError(responseObserver, INVALID_ARGUMENT, errMsg, e); } catch (Exception e) { String errMsg = "Error while retrieving entity with name: " + entityName; log.error(errMsg, e); onError(responseObserver, INTERNAL, errMsg, e); } }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest)) { return super.equals(obj); } feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest other = (feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest) obj; boolean result = true; result = result && getId() .equals(other.getId()); 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.core.UIServiceProto.UIServiceTypes.GetEntityRequest)) { return super.equals(obj); } feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest other = (feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest) obj; boolean result = true; result = result && getId() .equals(other.getId()); 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.core.UIServiceProto.UIServiceTypes.GetEntityRequest)) { return super.equals(obj); } feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest other = (feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest) obj; boolean result = true; result = result && getId() .equals(other.getId()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest other) { if (other == feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <code>string id = 1;</code> */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /**
/** * <code>string id = 1;</code> */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /**
/** * <code>string id = 1;</code> */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /**
public Builder mergeFrom(feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest other) { if (other == feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest other) { if (other == feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }