@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureGroupResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureGroupResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <code>string featureGroupId = 1;</code> */ public Builder setFeatureGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); featureGroupId_ = value; onChanged(); return this; } @java.lang.Override
/** * Registers a single feature group 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 applyFeatureGroup( FeatureGroupSpecProto.FeatureGroupSpec request, StreamObserver<ApplyFeatureGroupResponse> responseObserver) { try { validator.validateFeatureGroupSpec(request); FeatureGroupInfo featureGroup = specService.applyFeatureGroup(request); ApplyFeatureGroupResponse response = ApplyFeatureGroupResponse.newBuilder().setFeatureGroupId(featureGroup.getId()).build(); responseObserver.onNext(response); responseObserver.onCompleted(); } catch (RegistrationException e) { log.error("Error in applyFeatureGroup: {}", e); responseObserver.onError(getRuntimeException(e)); } catch (IllegalArgumentException e) { log.error("Error in applyFeatureGroup: {}", e); responseObserver.onError(getBadRequestException(e)); } }
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureGroupResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureGroupResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureGroupResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureGroupResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <code>string featureGroupId = 1;</code> */ public Builder setFeatureGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); featureGroupId_ = value; onChanged(); return this; } @java.lang.Override
private Builder() { maybeForceBuilderInitialization(); }
/** * <code>string featureGroupId = 1;</code> */ public Builder setFeatureGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); featureGroupId_ = value; onChanged(); return this; } @java.lang.Override
private Builder() { maybeForceBuilderInitialization(); }
private Builder() { maybeForceBuilderInitialization(); }
public static Builder newBuilder(feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureGroupResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override
/** * <code>string featureGroupId = 1;</code> */ public Builder setFeatureGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } featureGroupId_ = value; onChanged(); return this; } /**
public static Builder newBuilder(feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureGroupResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override
/** * <code>string featureGroupId = 1;</code> */ public Builder setFeatureGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } featureGroupId_ = value; onChanged(); return this; } /**
public static Builder newBuilder(feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureGroupResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override
/** * <code>string featureGroupId = 1;</code> */ public Builder clearFeatureGroupId() { featureGroupId_ = getDefaultInstance().getFeatureGroupId(); onChanged(); return this; } /**
/** * <code>string featureGroupId = 1;</code> */ public Builder clearFeatureGroupId() { featureGroupId_ = getDefaultInstance().getFeatureGroupId(); onChanged(); return this; } /**
@java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureGroupResponse) { return mergeFrom((feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureGroupResponse)other); } else { super.mergeFrom(other); return this; } }
private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
@java.lang.Override public feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureGroupResponse buildPartial() { feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureGroupResponse result = new feast.core.CoreServiceProto.CoreServiceTypes.ApplyFeatureGroupResponse(this); result.featureGroupId_ = featureGroupId_; onBuilt(); return result; }