/**
 * Copyright (c) 2020-present, Goldman Sachs
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { observe_ExternalFormatSchema, observe_PackageableElementReference, observe_ModelUnit, } from '@finos/legend-graph';
import { addUniqueEntry, deleteEntry } from '@finos/legend-shared';
import { action } from 'mobx';
export const externalFormat_urlStream_setUrl = action((us, val) => {
    us.url = val;
});
export const externalFormat_schema_setId = action((s, value) => {
    s.id = value;
});
export const externalFormat_schema_setLocation = action((s, value) => {
    s.location = value;
});
export const externalFormat_schema_setContent = action((s, value) => {
    s.content = value;
});
export const externalFormat_schemaSet_setFormat = action((ss, value) => {
    ss.format = value;
});
export const externalFormat_schemaSet_setSchemas = action((ss, value) => {
    ss.schemas = value;
});
export const externalFormat_schemaSet_addSchema = action((ss, value) => {
    addUniqueEntry(ss.schemas, observe_ExternalFormatSchema(value));
});
export const externalFormat_schemaSet_deleteSchema = action((ss, value) => {
    deleteEntry(ss.schemas, value);
});
export const externalFormat_BindingTransformer_setBinding = action((bt, value) => {
    bt.binding = observe_PackageableElementReference(value);
});
export const externalFormat_Binding_setSchemaSet = action((binding, value) => {
    binding.schemaSet = value
        ? observe_PackageableElementReference(value)
        : undefined;
});
export const externalFormat_Binding_setSchemaId = action((binding, value) => {
    binding.schemaId = value;
});
export const externalFormat_Binding_setContentType = action((binding, value) => {
    binding.contentType = value;
});
export const externalFormat_Binding_setModelUnit = action((binding, value) => {
    binding.modelUnit = observe_ModelUnit(value);
});
export const externalFormat_modelUnit_addPackageableElementIncludes = action((mU, value) => {
    addUniqueEntry(mU.packageableElementIncludes, observe_PackageableElementReference(value));
});
export const externalFormat_modelUnit_deletePackageableElementIncludes = action((mU, value) => {
    deleteEntry(mU.packageableElementIncludes, value);
});
export const externalFormat_modelUnit_addPackageableElementExcludes = action((mU, value) => {
    addUniqueEntry(mU.packageableElementExcludes, observe_PackageableElementReference(value));
});
export const externalFormat_modelUnit_deletePackageableElementExcludes = action((mU, value) => {
    deleteEntry(mU.packageableElementExcludes, value);
});
//# sourceMappingURL=DSL_ExternalFormat_GraphModifierHelper.js.map