@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 getStorage(GetStorageRequest request, StreamObserver<GetStorageResponse> responseObserver) { String storageId = request.getId(); try { List<StorageInfo> storageInfos = specService.getStorage(Collections.singletonList(storageId)); GetStorageResponse resp = GetStorageResponse.newBuilder() .setStorage(storageInfos.get(0).getStorageDetail()) .build(); responseObserver.onNext(resp); responseObserver.onCompleted(); } catch (IllegalArgumentException e) { String errMsg = "Invalid storage ID: " + storageId; log.error(errMsg, e); onError(responseObserver, INVALID_ARGUMENT, errMsg, e); } catch (Exception e) { String errMsg = "Error while retrieving storage detail with ID: " + storageId; 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.GetStorageRequest)) { return super.equals(obj); } feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest other = (feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest) 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.GetStorageRequest)) { return super.equals(obj); } feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest other = (feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest) 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.GetStorageRequest)) { return super.equals(obj); } feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest other = (feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest) 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.GetStorageRequest other) { if (other == feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest.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; } /**
public Builder mergeFrom(feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest other) { if (other == feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest.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; } /**
public Builder mergeFrom(feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest other) { if (other == feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }