@java.lang.Override public feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse buildPartial() { feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse result = new feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse(this); if (storageBuilder_ == null) { result.storage_ = storage_; } else { result.storage_ = storageBuilder_.build(); } onBuilt(); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStorage()) { hash = (37 * hash) + STORAGE_FIELD_NUMBER; hash = (53 * hash) + getStorage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetStorage", requestType = feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest.class, responseType = feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest, feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse> getGetStorageMethod() { io.grpc.MethodDescriptor<feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest, feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse> getGetStorageMethod; if ((getGetStorageMethod = UIServiceGrpc.getGetStorageMethod) == null) { synchronized (UIServiceGrpc.class) { if ((getGetStorageMethod = UIServiceGrpc.getGetStorageMethod) == null) { UIServiceGrpc.getGetStorageMethod = getGetStorageMethod = io.grpc.MethodDescriptor.<feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest, feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "feast.core.UIService", "GetStorage")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse.getDefaultInstance())) .setSchemaDescriptor(new UIServiceMethodDescriptorSupplier("GetStorage")) .build(); } } } return getGetStorageMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetStorage", requestType = feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest.class, responseType = feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest, feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse> getGetStorageMethod() { io.grpc.MethodDescriptor<feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest, feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse> getGetStorageMethod; if ((getGetStorageMethod = UIServiceGrpc.getGetStorageMethod) == null) { synchronized (UIServiceGrpc.class) { if ((getGetStorageMethod = UIServiceGrpc.getGetStorageMethod) == null) { UIServiceGrpc.getGetStorageMethod = getGetStorageMethod = io.grpc.MethodDescriptor.<feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest, feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "feast.core.UIService", "GetStorage")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse.getDefaultInstance())) .setSchemaDescriptor(new UIServiceMethodDescriptorSupplier("GetStorage")) .build(); } } } return getGetStorageMethod; }
public static io.grpc.MethodDescriptor<feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest, feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse> getGetStorageMethod() { io.grpc.MethodDescriptor<feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest, feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse> getGetStorageMethod; if ((getGetStorageMethod = UIServiceGrpc.getGetStorageMethod) == null) { synchronized (UIServiceGrpc.class) { if ((getGetStorageMethod = UIServiceGrpc.getGetStorageMethod) == null) { UIServiceGrpc.getGetStorageMethod = getGetStorageMethod = io.grpc.MethodDescriptor.<feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest, feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "feast.core.UIService", "GetStorage")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.UIServiceProto.UIServiceTypes.GetStorageRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse.getDefaultInstance())) .setSchemaDescriptor(new UIServiceMethodDescriptorSupplier("GetStorage")) .build(); } } } return getGetStorageMethod; }
@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.GetStorageResponse)) { return super.equals(obj); } feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse other = (feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse) obj; boolean result = true; result = result && (hasStorage() == other.hasStorage()); if (hasStorage()) { result = result && getStorage() .equals(other.getStorage()); } 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.GetStorageResponse)) { return super.equals(obj); } feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse other = (feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse) obj; boolean result = true; result = result && (hasStorage() == other.hasStorage()); if (hasStorage()) { result = result && getStorage() .equals(other.getStorage()); } 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.GetStorageResponse)) { return super.equals(obj); } feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse other = (feast.core.UIServiceProto.UIServiceTypes.GetStorageResponse) obj; boolean result = true; result = result && (hasStorage() == other.hasStorage()); if (hasStorage()) { result = result && getStorage() .equals(other.getStorage()); } 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(); if (hasStorage()) { hash = (37 * hash) + STORAGE_FIELD_NUMBER; hash = (53 * hash) + getStorage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStorage()) { hash = (37 * hash) + STORAGE_FIELD_NUMBER; hash = (53 * hash) + getStorage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** Get a single storage spec by name. */ @RequestMapping( value = "/api/ui/storage/{id}", produces = "application/json", method = RequestMethod.GET) public GetStorageResponse getStorage(@PathVariable("id") String id) { try { StorageInfo storageInfo = specService.getStorage(Arrays.asList(id)).get(0); return GetStorageResponse.newBuilder().setStorage(storageInfo.getStorageDetail()).build(); } catch (Exception e) { log.error("Exception in getStorage {}: {}", id, e); throw e; } }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (storage_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStorage()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (storage_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStorage()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {