// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file cosmos_proto/cosmos.proto (package cosmos_proto, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * @generated from enum cosmos_proto.ScalarType */ export enum ScalarType { /** * @generated from enum value: SCALAR_TYPE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from enum value: SCALAR_TYPE_STRING = 1; */ STRING = 1, /** * @generated from enum value: SCALAR_TYPE_BYTES = 2; */ BYTES = 2, } // Retrieve enum metadata with: proto3.getEnumType(ScalarType) proto3.util.setEnumType(ScalarType, "cosmos_proto.ScalarType", [ { no: 0, name: "SCALAR_TYPE_UNSPECIFIED" }, { no: 1, name: "SCALAR_TYPE_STRING" }, { no: 2, name: "SCALAR_TYPE_BYTES" }, ]); /** * InterfaceDescriptor describes an interface type to be used with * accepts_interface and implements_interface and declared by declare_interface. * * @generated from message cosmos_proto.InterfaceDescriptor */ export class InterfaceDescriptor extends Message { /** * name is the name of the interface. It should be a short-name (without * a period) such that the fully qualified name of the interface will be * package.name, ex. for the package a.b and interface named C, the * fully-qualified name will be a.b.C. * * @generated from field: string name = 1; */ name = ""; /** * description is a human-readable description of the interface and its * purpose. * * @generated from field: string description = 2; */ description = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos_proto.InterfaceDescriptor"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): InterfaceDescriptor { return new InterfaceDescriptor().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): InterfaceDescriptor { return new InterfaceDescriptor().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): InterfaceDescriptor { return new InterfaceDescriptor().fromJsonString(jsonString, options); } static equals(a: InterfaceDescriptor | PlainMessage | undefined, b: InterfaceDescriptor | PlainMessage | undefined): boolean { return proto3.util.equals(InterfaceDescriptor, a, b); } } /** * ScalarDescriptor describes an scalar type to be used with * the scalar field option and declared by declare_scalar. * Scalars extend simple protobuf built-in types with additional * syntax and semantics, for instance to represent big integers. * Scalars should ideally define an encoding such that there is only one * valid syntactical representation for a given semantic meaning, * i.e. the encoding should be deterministic. * * @generated from message cosmos_proto.ScalarDescriptor */ export class ScalarDescriptor extends Message { /** * name is the name of the scalar. It should be a short-name (without * a period) such that the fully qualified name of the scalar will be * package.name, ex. for the package a.b and scalar named C, the * fully-qualified name will be a.b.C. * * @generated from field: string name = 1; */ name = ""; /** * description is a human-readable description of the scalar and its * encoding format. For instance a big integer or decimal scalar should * specify precisely the expected encoding format. * * @generated from field: string description = 2; */ description = ""; /** * field_type is the type of field with which this scalar can be used. * Scalars can be used with one and only one type of field so that * encoding standards and simple and clear. Currently only string and * bytes fields are supported for scalars. * * @generated from field: repeated cosmos_proto.ScalarType field_type = 3; */ fieldType: ScalarType[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos_proto.ScalarDescriptor"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "field_type", kind: "enum", T: proto3.getEnumType(ScalarType), repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ScalarDescriptor { return new ScalarDescriptor().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ScalarDescriptor { return new ScalarDescriptor().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ScalarDescriptor { return new ScalarDescriptor().fromJsonString(jsonString, options); } static equals(a: ScalarDescriptor | PlainMessage | undefined, b: ScalarDescriptor | PlainMessage | undefined): boolean { return proto3.util.equals(ScalarDescriptor, a, b); } }