// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file src/proto/ipfsv2.proto (package ipfsv2, syntax proto3)
/* eslint-disable */
// @ts-nocheck
import { Message, proto3 } from "@bufbuild/protobuf";
/**
 * @generated from message ipfsv2.Edit
 */
export class Edit extends Message {
    /**
     * @generated from field: bytes id = 1;
     */
    id = new Uint8Array(0);
    /**
     * @generated from field: string name = 2;
     */
    name = "";
    /**
     * @generated from field: repeated ipfsv2.Op ops = 3;
     */
    ops = [];
    /**
     * @generated from field: repeated bytes authors = 4;
     */
    authors = [];
    /**
     * @generated from field: optional bytes language = 5;
     */
    language;
    constructor(data) {
        super();
        proto3.util.initPartial(data, this);
    }
    static runtime = proto3;
    static typeName = "ipfsv2.Edit";
    static fields = proto3.util.newFieldList(() => [
        { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
        { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
        { no: 3, name: "ops", kind: "message", T: Op, repeated: true },
        { no: 4, name: "authors", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
        { no: 5, name: "language", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
    ]);
    static fromBinary(bytes, options) {
        return new Edit().fromBinary(bytes, options);
    }
    static fromJson(jsonValue, options) {
        return new Edit().fromJson(jsonValue, options);
    }
    static fromJsonString(jsonString, options) {
        return new Edit().fromJsonString(jsonString, options);
    }
    static equals(a, b) {
        return proto3.util.equals(Edit, a, b);
    }
}
/**
 * @generated from message ipfsv2.ImportEdit
 */
export class ImportEdit extends Message {
    /**
     * @generated from field: bytes id = 1;
     */
    id = new Uint8Array(0);
    /**
     * @generated from field: string name = 2;
     */
    name = "";
    /**
     * @generated from field: repeated ipfsv2.Op ops = 3;
     */
    ops = [];
    /**
     * @generated from field: repeated bytes authors = 4;
     */
    authors = [];
    /**
     * @generated from field: bytes created_by = 5;
     */
    createdBy = new Uint8Array(0);
    /**
     * @generated from field: string created_at = 6;
     */
    createdAt = "";
    /**
     * @generated from field: bytes block_hash = 7;
     */
    blockHash = new Uint8Array(0);
    /**
     * @generated from field: string block_number = 8;
     */
    blockNumber = "";
    /**
     * @generated from field: bytes transaction_hash = 9;
     */
    transactionHash = new Uint8Array(0);
    constructor(data) {
        super();
        proto3.util.initPartial(data, this);
    }
    static runtime = proto3;
    static typeName = "ipfsv2.ImportEdit";
    static fields = proto3.util.newFieldList(() => [
        { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
        { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
        { no: 3, name: "ops", kind: "message", T: Op, repeated: true },
        { no: 4, name: "authors", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
        { no: 5, name: "created_by", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
        { no: 6, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
        { no: 7, name: "block_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
        { no: 8, name: "block_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
        { no: 9, name: "transaction_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
    ]);
    static fromBinary(bytes, options) {
        return new ImportEdit().fromBinary(bytes, options);
    }
    static fromJson(jsonValue, options) {
        return new ImportEdit().fromJson(jsonValue, options);
    }
    static fromJsonString(jsonString, options) {
        return new ImportEdit().fromJsonString(jsonString, options);
    }
    static equals(a, b) {
        return proto3.util.equals(ImportEdit, a, b);
    }
}
/**
 * @generated from message ipfsv2.Import
 */
export class Import extends Message {
    /**
     * these strings are IPFS cids representing the import edit message
     *
     * @generated from field: repeated string edits = 1;
     */
    edits = [];
    constructor(data) {
        super();
        proto3.util.initPartial(data, this);
    }
    static runtime = proto3;
    static typeName = "ipfsv2.Import";
    static fields = proto3.util.newFieldList(() => [
        { no: 1, name: "edits", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
    ]);
    static fromBinary(bytes, options) {
        return new Import().fromBinary(bytes, options);
    }
    static fromJson(jsonValue, options) {
        return new Import().fromJson(jsonValue, options);
    }
    static fromJsonString(jsonString, options) {
        return new Import().fromJsonString(jsonString, options);
    }
    static equals(a, b) {
        return proto3.util.equals(Import, a, b);
    }
}
/**
 * @generated from message ipfsv2.IpfsFile
 */
export class IpfsFile extends Message {
    /**
     * @generated from field: string version = 1;
     */
    version = "";
    /**
     * @generated from oneof ipfsv2.IpfsFile.payload
     */
    payload = { case: undefined };
    constructor(data) {
        super();
        proto3.util.initPartial(data, this);
    }
    static runtime = proto3;
    static typeName = "ipfsv2.IpfsFile";
    static fields = proto3.util.newFieldList(() => [
        { no: 1, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
        { no: 2, name: "add_edit", kind: "message", T: Edit, oneof: "payload" },
        { no: 3, name: "import_space", kind: "message", T: Import, oneof: "payload" },
        { no: 4, name: "archive_space", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "payload" },
    ]);
    static fromBinary(bytes, options) {
        return new IpfsFile().fromBinary(bytes, options);
    }
    static fromJson(jsonValue, options) {
        return new IpfsFile().fromJson(jsonValue, options);
    }
    static fromJsonString(jsonString, options) {
        return new IpfsFile().fromJsonString(jsonString, options);
    }
    static equals(a, b) {
        return proto3.util.equals(IpfsFile, a, b);
    }
}
/**
 * @generated from message ipfsv2.Op
 */
export class Op extends Message {
    /**
     * @generated from oneof ipfsv2.Op.payload
     */
    payload = { case: undefined };
    constructor(data) {
        super();
        proto3.util.initPartial(data, this);
    }
    static runtime = proto3;
    static typeName = "ipfsv2.Op";
    static fields = proto3.util.newFieldList(() => [
        { no: 1, name: "update_entity", kind: "message", T: Entity, oneof: "payload" },
        { no: 2, name: "delete_entity", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "payload" },
        { no: 3, name: "create_relation", kind: "message", T: Relation, oneof: "payload" },
        { no: 4, name: "update_relation", kind: "message", T: RelationUpdate, oneof: "payload" },
        { no: 5, name: "delete_relation", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "payload" },
        { no: 6, name: "unset_entity_values", kind: "message", T: UnsetEntityValues, oneof: "payload" },
        { no: 7, name: "unset_relation_fields", kind: "message", T: UnsetRelationFields, oneof: "payload" },
    ]);
    static fromBinary(bytes, options) {
        return new Op().fromBinary(bytes, options);
    }
    static fromJson(jsonValue, options) {
        return new Op().fromJson(jsonValue, options);
    }
    static fromJsonString(jsonString, options) {
        return new Op().fromJsonString(jsonString, options);
    }
    static equals(a, b) {
        return proto3.util.equals(Op, a, b);
    }
}
/**
 * @generated from message ipfsv2.UnsetEntityValues
 */
export class UnsetEntityValues extends Message {
    /**
     * @generated from field: bytes id = 1;
     */
    id = new Uint8Array(0);
    /**
     * @generated from field: repeated bytes properties = 2;
     */
    properties = [];
    constructor(data) {
        super();
        proto3.util.initPartial(data, this);
    }
    static runtime = proto3;
    static typeName = "ipfsv2.UnsetEntityValues";
    static fields = proto3.util.newFieldList(() => [
        { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
        { no: 2, name: "properties", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
    ]);
    static fromBinary(bytes, options) {
        return new UnsetEntityValues().fromBinary(bytes, options);
    }
    static fromJson(jsonValue, options) {
        return new UnsetEntityValues().fromJson(jsonValue, options);
    }
    static fromJsonString(jsonString, options) {
        return new UnsetEntityValues().fromJsonString(jsonString, options);
    }
    static equals(a, b) {
        return proto3.util.equals(UnsetEntityValues, a, b);
    }
}
/**
 * @generated from message ipfsv2.Relation
 */
export class Relation extends Message {
    /**
     * @generated from field: bytes id = 1;
     */
    id = new Uint8Array(0);
    /**
     * @generated from field: bytes type = 2;
     */
    type = new Uint8Array(0);
    /**
     * @generated from field: bytes from_entity = 3;
     */
    fromEntity = new Uint8Array(0);
    /**
     * @generated from field: optional bytes from_space = 4;
     */
    fromSpace;
    /**
     * @generated from field: optional bytes from_version = 5;
     */
    fromVersion;
    /**
     * @generated from field: bytes to_entity = 6;
     */
    toEntity = new Uint8Array(0);
    /**
     * @generated from field: optional bytes to_space = 7;
     */
    toSpace;
    /**
     * @generated from field: optional bytes to_version = 8;
     */
    toVersion;
    /**
     * @generated from field: bytes entity = 9;
     */
    entity = new Uint8Array(0);
    /**
     * @generated from field: optional string position = 10;
     */
    position;
    /**
     * @generated from field: optional bool verified = 11;
     */
    verified;
    constructor(data) {
        super();
        proto3.util.initPartial(data, this);
    }
    static runtime = proto3;
    static typeName = "ipfsv2.Relation";
    static fields = proto3.util.newFieldList(() => [
        { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
        { no: 2, name: "type", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
        { no: 3, name: "from_entity", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
        { no: 4, name: "from_space", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
        { no: 5, name: "from_version", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
        { no: 6, name: "to_entity", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
        { no: 7, name: "to_space", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
        { no: 8, name: "to_version", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
        { no: 9, name: "entity", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
        { no: 10, name: "position", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
        { no: 11, name: "verified", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
    ]);
    static fromBinary(bytes, options) {
        return new Relation().fromBinary(bytes, options);
    }
    static fromJson(jsonValue, options) {
        return new Relation().fromJson(jsonValue, options);
    }
    static fromJsonString(jsonString, options) {
        return new Relation().fromJsonString(jsonString, options);
    }
    static equals(a, b) {
        return proto3.util.equals(Relation, a, b);
    }
}
/**
 * @generated from message ipfsv2.RelationUpdate
 */
export class RelationUpdate extends Message {
    /**
     * @generated from field: bytes id = 1;
     */
    id = new Uint8Array(0);
    /**
     * @generated from field: optional bytes from_space = 2;
     */
    fromSpace;
    /**
     * @generated from field: optional bytes from_version = 3;
     */
    fromVersion;
    /**
     * @generated from field: optional bytes to_space = 4;
     */
    toSpace;
    /**
     * @generated from field: optional bytes to_version = 5;
     */
    toVersion;
    /**
     * @generated from field: optional string position = 6;
     */
    position;
    /**
     * @generated from field: optional bool verified = 7;
     */
    verified;
    constructor(data) {
        super();
        proto3.util.initPartial(data, this);
    }
    static runtime = proto3;
    static typeName = "ipfsv2.RelationUpdate";
    static fields = proto3.util.newFieldList(() => [
        { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
        { no: 2, name: "from_space", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
        { no: 3, name: "from_version", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
        { no: 4, name: "to_space", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
        { no: 5, name: "to_version", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
        { no: 6, name: "position", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
        { no: 7, name: "verified", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
    ]);
    static fromBinary(bytes, options) {
        return new RelationUpdate().fromBinary(bytes, options);
    }
    static fromJson(jsonValue, options) {
        return new RelationUpdate().fromJson(jsonValue, options);
    }
    static fromJsonString(jsonString, options) {
        return new RelationUpdate().fromJsonString(jsonString, options);
    }
    static equals(a, b) {
        return proto3.util.equals(RelationUpdate, a, b);
    }
}
/**
 * @generated from message ipfsv2.UnsetRelationFields
 */
export class UnsetRelationFields extends Message {
    /**
     * @generated from field: bytes id = 1;
     */
    id = new Uint8Array(0);
    /**
     * @generated from field: optional bool from_space = 2;
     */
    fromSpace;
    /**
     * @generated from field: optional bool from_version = 3;
     */
    fromVersion;
    /**
     * @generated from field: optional bool to_space = 4;
     */
    toSpace;
    /**
     * @generated from field: optional bool to_version = 5;
     */
    toVersion;
    /**
     * @generated from field: optional bool position = 6;
     */
    position;
    /**
     * @generated from field: optional bool verified = 7;
     */
    verified;
    constructor(data) {
        super();
        proto3.util.initPartial(data, this);
    }
    static runtime = proto3;
    static typeName = "ipfsv2.UnsetRelationFields";
    static fields = proto3.util.newFieldList(() => [
        { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
        { no: 2, name: "from_space", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
        { no: 3, name: "from_version", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
        { no: 4, name: "to_space", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
        { no: 5, name: "to_version", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
        { no: 6, name: "position", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
        { no: 7, name: "verified", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
    ]);
    static fromBinary(bytes, options) {
        return new UnsetRelationFields().fromBinary(bytes, options);
    }
    static fromJson(jsonValue, options) {
        return new UnsetRelationFields().fromJson(jsonValue, options);
    }
    static fromJsonString(jsonString, options) {
        return new UnsetRelationFields().fromJsonString(jsonString, options);
    }
    static equals(a, b) {
        return proto3.util.equals(UnsetRelationFields, a, b);
    }
}
/**
 * @generated from message ipfsv2.Entity
 */
export class Entity extends Message {
    /**
     * @generated from field: bytes id = 1;
     */
    id = new Uint8Array(0);
    /**
     * @generated from field: repeated ipfsv2.Value values = 2;
     */
    values = [];
    constructor(data) {
        super();
        proto3.util.initPartial(data, this);
    }
    static runtime = proto3;
    static typeName = "ipfsv2.Entity";
    static fields = proto3.util.newFieldList(() => [
        { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
        { no: 2, name: "values", kind: "message", T: Value, repeated: true },
    ]);
    static fromBinary(bytes, options) {
        return new Entity().fromBinary(bytes, options);
    }
    static fromJson(jsonValue, options) {
        return new Entity().fromJson(jsonValue, options);
    }
    static fromJsonString(jsonString, options) {
        return new Entity().fromJsonString(jsonString, options);
    }
    static equals(a, b) {
        return proto3.util.equals(Entity, a, b);
    }
}
/**
 * @generated from message ipfsv2.Value
 */
export class Value extends Message {
    /**
     * @generated from field: bytes property_id = 1;
     */
    propertyId = new Uint8Array(0);
    /**
     * @generated from field: string value = 2;
     */
    value = "";
    constructor(data) {
        super();
        proto3.util.initPartial(data, this);
    }
    static runtime = proto3;
    static typeName = "ipfsv2.Value";
    static fields = proto3.util.newFieldList(() => [
        { no: 1, name: "property_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
        { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    ]);
    static fromBinary(bytes, options) {
        return new Value().fromBinary(bytes, options);
    }
    static fromJson(jsonValue, options) {
        return new Value().fromJson(jsonValue, options);
    }
    static fromJsonString(jsonString, options) {
        return new Value().fromJsonString(jsonString, options);
    }
    static equals(a, b) {
        return proto3.util.equals(Value, a, b);
    }
}
//# sourceMappingURL=ipfsv2_pb.js.map