@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 getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
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 + '/' + "GetEntity", requestType = feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest.class, responseType = feast.core.UIServiceProto.UIServiceTypes.GetEntityResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest, feast.core.UIServiceProto.UIServiceTypes.GetEntityResponse> getGetEntityMethod() { io.grpc.MethodDescriptor<feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest, feast.core.UIServiceProto.UIServiceTypes.GetEntityResponse> getGetEntityMethod; if ((getGetEntityMethod = UIServiceGrpc.getGetEntityMethod) == null) { synchronized (UIServiceGrpc.class) { if ((getGetEntityMethod = UIServiceGrpc.getGetEntityMethod) == null) { UIServiceGrpc.getGetEntityMethod = getGetEntityMethod = io.grpc.MethodDescriptor.<feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest, feast.core.UIServiceProto.UIServiceTypes.GetEntityResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "feast.core.UIService", "GetEntity")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.UIServiceProto.UIServiceTypes.GetEntityResponse.getDefaultInstance())) .setSchemaDescriptor(new UIServiceMethodDescriptorSupplier("GetEntity")) .build(); } } } return getGetEntityMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetEntity", requestType = feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest.class, responseType = feast.core.UIServiceProto.UIServiceTypes.GetEntityResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest, feast.core.UIServiceProto.UIServiceTypes.GetEntityResponse> getGetEntityMethod() { io.grpc.MethodDescriptor<feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest, feast.core.UIServiceProto.UIServiceTypes.GetEntityResponse> getGetEntityMethod; if ((getGetEntityMethod = UIServiceGrpc.getGetEntityMethod) == null) { synchronized (UIServiceGrpc.class) { if ((getGetEntityMethod = UIServiceGrpc.getGetEntityMethod) == null) { UIServiceGrpc.getGetEntityMethod = getGetEntityMethod = io.grpc.MethodDescriptor.<feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest, feast.core.UIServiceProto.UIServiceTypes.GetEntityResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "feast.core.UIService", "GetEntity")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.UIServiceProto.UIServiceTypes.GetEntityResponse.getDefaultInstance())) .setSchemaDescriptor(new UIServiceMethodDescriptorSupplier("GetEntity")) .build(); } } } return getGetEntityMethod; }
public static io.grpc.MethodDescriptor<feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest, feast.core.UIServiceProto.UIServiceTypes.GetEntityResponse> getGetEntityMethod() { io.grpc.MethodDescriptor<feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest, feast.core.UIServiceProto.UIServiceTypes.GetEntityResponse> getGetEntityMethod; if ((getGetEntityMethod = UIServiceGrpc.getGetEntityMethod) == null) { synchronized (UIServiceGrpc.class) { if ((getGetEntityMethod = UIServiceGrpc.getGetEntityMethod) == null) { UIServiceGrpc.getGetEntityMethod = getGetEntityMethod = io.grpc.MethodDescriptor.<feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest, feast.core.UIServiceProto.UIServiceTypes.GetEntityResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "feast.core.UIService", "GetEntity")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.UIServiceProto.UIServiceTypes.GetEntityResponse.getDefaultInstance())) .setSchemaDescriptor(new UIServiceMethodDescriptorSupplier("GetEntity")) .build(); } } } return getGetEntityMethod; }
@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; }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
@java.lang.Override public feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest getDefaultInstanceForType() { return feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest.getDefaultInstance(); }
public static Builder newBuilder(feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest prototype) {
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest prototype) {
@java.lang.Override public feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest getDefaultInstanceForType() { return feast.core.UIServiceProto.UIServiceTypes.GetEntityRequest.getDefaultInstance(); }