@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENTITYNAME_FIELD_NUMBER; hash = (53 * hash) + getEntityName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getEntityNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityName_); } unknownFields.writeTo(output); }
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 + '/' + "ApplyEntity", requestType = feast.specs.EntitySpecProto.EntitySpec.class, responseType = feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<feast.specs.EntitySpecProto.EntitySpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse> getApplyEntityMethod() { io.grpc.MethodDescriptor<feast.specs.EntitySpecProto.EntitySpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse> getApplyEntityMethod; if ((getApplyEntityMethod = CoreServiceGrpc.getApplyEntityMethod) == null) { synchronized (CoreServiceGrpc.class) { if ((getApplyEntityMethod = CoreServiceGrpc.getApplyEntityMethod) == null) { CoreServiceGrpc.getApplyEntityMethod = getApplyEntityMethod = io.grpc.MethodDescriptor.<feast.specs.EntitySpecProto.EntitySpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "feast.core.CoreService", "ApplyEntity")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.specs.EntitySpecProto.EntitySpec.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse.getDefaultInstance())) .setSchemaDescriptor(new CoreServiceMethodDescriptorSupplier("ApplyEntity")) .build(); } } } return getApplyEntityMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ApplyEntity", requestType = feast.specs.EntitySpecProto.EntitySpec.class, responseType = feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<feast.specs.EntitySpecProto.EntitySpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse> getApplyEntityMethod() { io.grpc.MethodDescriptor<feast.specs.EntitySpecProto.EntitySpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse> getApplyEntityMethod; if ((getApplyEntityMethod = CoreServiceGrpc.getApplyEntityMethod) == null) { synchronized (CoreServiceGrpc.class) { if ((getApplyEntityMethod = CoreServiceGrpc.getApplyEntityMethod) == null) { CoreServiceGrpc.getApplyEntityMethod = getApplyEntityMethod = io.grpc.MethodDescriptor.<feast.specs.EntitySpecProto.EntitySpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "feast.core.CoreService", "ApplyEntity")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.specs.EntitySpecProto.EntitySpec.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse.getDefaultInstance())) .setSchemaDescriptor(new CoreServiceMethodDescriptorSupplier("ApplyEntity")) .build(); } } } return getApplyEntityMethod; }
/** * Registers a single entity 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 applyEntity( EntitySpec request, StreamObserver<ApplyEntityResponse> responseObserver) { try { validator.validateEntitySpec(request); EntityInfo entity = specService.applyEntity(request); ApplyEntityResponse response = ApplyEntityResponse.newBuilder().setEntityName(entity.getName()).build(); responseObserver.onNext(response); responseObserver.onCompleted(); } catch (RegistrationException e) { log.error("Error in applyEntity: {}", e); responseObserver.onError(getRuntimeException(e)); } catch (IllegalArgumentException e) { log.error("Error in applyEntity: {}", e); responseObserver.onError(getBadRequestException(e)); } }
public static io.grpc.MethodDescriptor<feast.specs.EntitySpecProto.EntitySpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse> getApplyEntityMethod() { io.grpc.MethodDescriptor<feast.specs.EntitySpecProto.EntitySpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse> getApplyEntityMethod; if ((getApplyEntityMethod = CoreServiceGrpc.getApplyEntityMethod) == null) { synchronized (CoreServiceGrpc.class) { if ((getApplyEntityMethod = CoreServiceGrpc.getApplyEntityMethod) == null) { CoreServiceGrpc.getApplyEntityMethod = getApplyEntityMethod = io.grpc.MethodDescriptor.<feast.specs.EntitySpecProto.EntitySpec, feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "feast.core.CoreService", "ApplyEntity")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.specs.EntitySpecProto.EntitySpec.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse.getDefaultInstance())) .setSchemaDescriptor(new CoreServiceMethodDescriptorSupplier("ApplyEntity")) .build(); } } } return getApplyEntityMethod; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse)) { return super.equals(obj); } feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse other = (feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse) obj; boolean result = true; result = result && getEntityName() .equals(other.getEntityName()); result = result && unknownFields.equals(other.unknownFields); return result; }
@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.ApplyEntityResponse)) { return super.equals(obj); } feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse other = (feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse) obj; boolean result = true; result = result && getEntityName() .equals(other.getEntityName()); 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.ApplyEntityResponse)) { return super.equals(obj); } feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse other = (feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse) obj; boolean result = true; result = result && getEntityName() .equals(other.getEntityName()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse getDefaultInstanceForType() { return feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse.getDefaultInstance(); }
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse prototype) {
@java.lang.Override public feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse getDefaultInstanceForType() { return feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse.getDefaultInstance(); }
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse prototype) {
public static Builder newBuilder(feast.core.CoreServiceProto.CoreServiceTypes.ApplyEntityResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override