@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 = (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 (!getFeatureIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, featureId_); } 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 + '/' + "ApplyFeature", requestType = feast.specs.FeatureSpecProto.FeatureSpec.class, responseType = feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<feast.specs.FeatureSpecProto.FeatureSpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse> getApplyFeatureMethod() { io.grpc.MethodDescriptor<feast.specs.FeatureSpecProto.FeatureSpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse> getApplyFeatureMethod; if ((getApplyFeatureMethod = CoreServiceGrpc.getApplyFeatureMethod) == null) { synchronized (CoreServiceGrpc.class) { if ((getApplyFeatureMethod = CoreServiceGrpc.getApplyFeatureMethod) == null) { CoreServiceGrpc.getApplyFeatureMethod = getApplyFeatureMethod = io.grpc.MethodDescriptor.<feast.specs.FeatureSpecProto.FeatureSpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "feast.core.CoreService", "ApplyFeature")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.specs.FeatureSpecProto.FeatureSpec.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse.getDefaultInstance())) .setSchemaDescriptor(new CoreServiceMethodDescriptorSupplier("ApplyFeature")) .build(); } } } return getApplyFeatureMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ApplyFeature", requestType = feast.specs.FeatureSpecProto.FeatureSpec.class, responseType = feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<feast.specs.FeatureSpecProto.FeatureSpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse> getApplyFeatureMethod() { io.grpc.MethodDescriptor<feast.specs.FeatureSpecProto.FeatureSpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse> getApplyFeatureMethod; if ((getApplyFeatureMethod = CoreServiceGrpc.getApplyFeatureMethod) == null) { synchronized (CoreServiceGrpc.class) { if ((getApplyFeatureMethod = CoreServiceGrpc.getApplyFeatureMethod) == null) { CoreServiceGrpc.getApplyFeatureMethod = getApplyFeatureMethod = io.grpc.MethodDescriptor.<feast.specs.FeatureSpecProto.FeatureSpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "feast.core.CoreService", "ApplyFeature")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.specs.FeatureSpecProto.FeatureSpec.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse.getDefaultInstance())) .setSchemaDescriptor(new CoreServiceMethodDescriptorSupplier("ApplyFeature")) .build(); } } } return getApplyFeatureMethod; }
/** * Registers a single feature spec to the registry. If validation fails, will returns a bad * request error. If registration fails (e.g. connection to the db is interrupted), an internal * error will be returned. */ @Override public void applyFeature( FeatureSpec request, StreamObserver<ApplyFeatureResponse> responseObserver) { try { validator.validateFeatureSpec(request); FeatureInfo feature = specService.applyFeature(request); ApplyFeatureResponse response = ApplyFeatureResponse.newBuilder().setFeatureId(feature.getId()).build(); responseObserver.onNext(response); responseObserver.onCompleted(); } catch (RegistrationException e) { log.error("Error in applyFeature: {}", e); responseObserver.onError(getRuntimeException(e)); } catch (IllegalArgumentException e) { log.error("Error in applyFeature: {}", e); responseObserver.onError(getBadRequestException(e)); } }
public static io.grpc.MethodDescriptor<feast.specs.FeatureSpecProto.FeatureSpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse> getApplyFeatureMethod() { io.grpc.MethodDescriptor<feast.specs.FeatureSpecProto.FeatureSpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse> getApplyFeatureMethod; if ((getApplyFeatureMethod = CoreServiceGrpc.getApplyFeatureMethod) == null) { synchronized (CoreServiceGrpc.class) { if ((getApplyFeatureMethod = CoreServiceGrpc.getApplyFeatureMethod) == null) { CoreServiceGrpc.getApplyFeatureMethod = getApplyFeatureMethod = io.grpc.MethodDescriptor.<feast.specs.FeatureSpecProto.FeatureSpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "feast.core.CoreService", "ApplyFeature")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.specs.FeatureSpecProto.FeatureSpec.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse.getDefaultInstance())) .setSchemaDescriptor(new CoreServiceMethodDescriptorSupplier("ApplyFeature")) .build(); } } } return getApplyFeatureMethod; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse)) { return super.equals(obj); } feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse other = (feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse) obj; boolean result = true; result = result && getFeatureId() .equals(other.getFeatureId()); 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.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse)) { return super.equals(obj); } feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse other = (feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse) obj; boolean result = true; result = result && getFeatureId() .equals(other.getFeatureId()); 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 boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse)) { return super.equals(obj); } feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse other = (feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse) obj; boolean result = true; result = result && getFeatureId() .equals(other.getFeatureId()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public static Builder newBuilder(feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse prototype) {
public static Builder newBuilder(feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse prototype) {
@java.lang.Override public feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse getDefaultInstanceForType() { return feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureResponse.getDefaultInstance(); }