// Copyright Exafunction, Inc. // @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=none" // @generated from file exa/language_server_pb/language_server.proto (package exa.language_server_pb, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { Completion, CompletionSource, EditorOptions, ExperimentKey, Language, Metadata } from "../codeium_common_pb/codeium_common_pb"; /** * @generated from enum exa.language_server_pb.CodeiumState */ export enum CodeiumState { /** * @generated from enum value: CODEIUM_STATE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from enum value: CODEIUM_STATE_INACTIVE = 1; */ INACTIVE = 1, /** * @generated from enum value: CODEIUM_STATE_PROCESSING = 2; */ PROCESSING = 2, /** * @generated from enum value: CODEIUM_STATE_SUCCESS = 3; */ SUCCESS = 3, /** * @generated from enum value: CODEIUM_STATE_WARNING = 4; */ WARNING = 4, /** * @generated from enum value: CODEIUM_STATE_ERROR = 5; */ ERROR = 5, } // Retrieve enum metadata with: proto3.getEnumType(CodeiumState) proto3.util.setEnumType(CodeiumState, "exa.language_server_pb.CodeiumState", [ { no: 0, name: "CODEIUM_STATE_UNSPECIFIED" }, { no: 1, name: "CODEIUM_STATE_INACTIVE" }, { no: 2, name: "CODEIUM_STATE_PROCESSING" }, { no: 3, name: "CODEIUM_STATE_SUCCESS" }, { no: 4, name: "CODEIUM_STATE_WARNING" }, { no: 5, name: "CODEIUM_STATE_ERROR" }, ]); /** * @generated from enum exa.language_server_pb.LineType */ export enum LineType { /** * @generated from enum value: LINE_TYPE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from enum value: LINE_TYPE_SINGLE = 1; */ SINGLE = 1, /** * @generated from enum value: LINE_TYPE_MULTI = 2; */ MULTI = 2, } // Retrieve enum metadata with: proto3.getEnumType(LineType) proto3.util.setEnumType(LineType, "exa.language_server_pb.LineType", [ { no: 0, name: "LINE_TYPE_UNSPECIFIED" }, { no: 1, name: "LINE_TYPE_SINGLE" }, { no: 2, name: "LINE_TYPE_MULTI" }, ]); /** * @generated from enum exa.language_server_pb.CompletionPartType */ export enum CompletionPartType { /** * @generated from enum value: COMPLETION_PART_TYPE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * Single-line completion parts that appear within an existing line of text. * * @generated from enum value: COMPLETION_PART_TYPE_INLINE = 1; */ INLINE = 1, /** * Possibly multi-line completion parts that appear below an existing line of text. * * @generated from enum value: COMPLETION_PART_TYPE_BLOCK = 2; */ BLOCK = 2, /** * Like COMPLETION_PART_TYPE_INLINE, but overwrites the existing text. * * @generated from enum value: COMPLETION_PART_TYPE_INLINE_MASK = 3; */ INLINE_MASK = 3, } // Retrieve enum metadata with: proto3.getEnumType(CompletionPartType) proto3.util.setEnumType(CompletionPartType, "exa.language_server_pb.CompletionPartType", [ { no: 0, name: "COMPLETION_PART_TYPE_UNSPECIFIED" }, { no: 1, name: "COMPLETION_PART_TYPE_INLINE" }, { no: 2, name: "COMPLETION_PART_TYPE_BLOCK" }, { no: 3, name: "COMPLETION_PART_TYPE_INLINE_MASK" }, ]); /** * Next ID: 9, Previous field: disable_cache. * * @generated from message exa.language_server_pb.GetCompletionsRequest */ export class GetCompletionsRequest extends Message { /** * @generated from field: exa.codeium_common_pb.Metadata metadata = 1; */ metadata?: Metadata; /** * @generated from field: exa.language_server_pb.Document document = 2; */ document?: Document; /** * @generated from field: exa.codeium_common_pb.EditorOptions editor_options = 3; */ editorOptions?: EditorOptions; /** * @generated from field: repeated exa.language_server_pb.Document other_documents = 5; */ otherDocuments: Document[] = []; /** * @generated from field: exa.language_server_pb.ExperimentConfig experiment_config = 7; */ experimentConfig?: ExperimentConfig; /** * @generated from field: string model_name = 10; */ modelName = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "exa.language_server_pb.GetCompletionsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "metadata", kind: "message", T: Metadata }, { no: 2, name: "document", kind: "message", T: Document }, { no: 3, name: "editor_options", kind: "message", T: EditorOptions }, { no: 5, name: "other_documents", kind: "message", T: Document, repeated: true }, { no: 7, name: "experiment_config", kind: "message", T: ExperimentConfig }, { no: 10, name: "model_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetCompletionsRequest { return new GetCompletionsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetCompletionsRequest { return new GetCompletionsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetCompletionsRequest { return new GetCompletionsRequest().fromJsonString(jsonString, options); } static equals(a: GetCompletionsRequest | PlainMessage | undefined, b: GetCompletionsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetCompletionsRequest, a, b); } } /** * Next ID: 5, Previous field: latency_info. * * @generated from message exa.language_server_pb.GetCompletionsResponse */ export class GetCompletionsResponse extends Message { /** * @generated from field: exa.language_server_pb.State state = 1; */ state?: State; /** * @generated from field: repeated exa.language_server_pb.CompletionItem completion_items = 2; */ completionItems: CompletionItem[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "exa.language_server_pb.GetCompletionsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "state", kind: "message", T: State }, { no: 2, name: "completion_items", kind: "message", T: CompletionItem, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetCompletionsResponse { return new GetCompletionsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetCompletionsResponse { return new GetCompletionsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetCompletionsResponse { return new GetCompletionsResponse().fromJsonString(jsonString, options); } static equals(a: GetCompletionsResponse | PlainMessage | undefined, b: GetCompletionsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetCompletionsResponse, a, b); } } /** * Next ID: 3, Previous field: completion_id. * * @generated from message exa.language_server_pb.AcceptCompletionRequest */ export class AcceptCompletionRequest extends Message { /** * @generated from field: exa.codeium_common_pb.Metadata metadata = 1; */ metadata?: Metadata; /** * @generated from field: string completion_id = 2; */ completionId = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "exa.language_server_pb.AcceptCompletionRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "metadata", kind: "message", T: Metadata }, { no: 2, name: "completion_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AcceptCompletionRequest { return new AcceptCompletionRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): AcceptCompletionRequest { return new AcceptCompletionRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): AcceptCompletionRequest { return new AcceptCompletionRequest().fromJsonString(jsonString, options); } static equals(a: AcceptCompletionRequest | PlainMessage | undefined, b: AcceptCompletionRequest | PlainMessage | undefined): boolean { return proto3.util.equals(AcceptCompletionRequest, a, b); } } /** * Next ID: 1, Previous field: N/A. * * @generated from message exa.language_server_pb.AcceptCompletionResponse */ export class AcceptCompletionResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "exa.language_server_pb.AcceptCompletionResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): AcceptCompletionResponse { return new AcceptCompletionResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): AcceptCompletionResponse { return new AcceptCompletionResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): AcceptCompletionResponse { return new AcceptCompletionResponse().fromJsonString(jsonString, options); } static equals(a: AcceptCompletionResponse | PlainMessage | undefined, b: AcceptCompletionResponse | PlainMessage | undefined): boolean { return proto3.util.equals(AcceptCompletionResponse, a, b); } } /** * Next ID: 1, Previous field: N/A. * * @generated from message exa.language_server_pb.GetAuthTokenRequest */ export class GetAuthTokenRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "exa.language_server_pb.GetAuthTokenRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthTokenRequest { return new GetAuthTokenRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthTokenRequest { return new GetAuthTokenRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetAuthTokenRequest { return new GetAuthTokenRequest().fromJsonString(jsonString, options); } static equals(a: GetAuthTokenRequest | PlainMessage | undefined, b: GetAuthTokenRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetAuthTokenRequest, a, b); } } /** * Next ID: 3, Previous field: uuid. * * @generated from message exa.language_server_pb.GetAuthTokenResponse */ export class GetAuthTokenResponse extends Message { /** * @generated from field: string auth_token = 1; */ authToken = ""; /** * @generated from field: string uuid = 2; */ uuid = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "exa.language_server_pb.GetAuthTokenResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "auth_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthTokenResponse { return new GetAuthTokenResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthTokenResponse { return new GetAuthTokenResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetAuthTokenResponse { return new GetAuthTokenResponse().fromJsonString(jsonString, options); } static equals(a: GetAuthTokenResponse | PlainMessage | undefined, b: GetAuthTokenResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetAuthTokenResponse, a, b); } } /** * @generated from message exa.language_server_pb.DocumentPosition */ export class DocumentPosition extends Message { /** * 0-indexed. Measured in UTF-8 bytes. * * @generated from field: uint64 row = 1; */ row = protoInt64.zero; /** * 0-indexed. Measured in UTF-8 bytes. * * @generated from field: uint64 col = 2; */ col = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "exa.language_server_pb.DocumentPosition"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "row", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "col", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DocumentPosition { return new DocumentPosition().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DocumentPosition { return new DocumentPosition().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DocumentPosition { return new DocumentPosition().fromJsonString(jsonString, options); } static equals(a: DocumentPosition | PlainMessage | undefined, b: DocumentPosition | PlainMessage | undefined): boolean { return proto3.util.equals(DocumentPosition, a, b); } } /** * Next ID: 9, Previous field: cursor_position. * * @generated from message exa.language_server_pb.Document */ export class Document extends Message { /** * @generated from field: string absolute_path = 1; */ absolutePath = ""; /** * Path relative to the root of the workspace. * * @generated from field: string relative_path = 2; */ relativePath = ""; /** * @generated from field: string text = 3; */ text = ""; /** * Language ID provided by the editor. * * @generated from field: string editor_language = 4; */ editorLanguage = ""; /** * Language enum standardized across editors. * * @generated from field: exa.codeium_common_pb.Language language = 5; */ language = Language.UNSPECIFIED; /** * Measured in number of UTF-8 bytes. * * @generated from field: uint64 cursor_offset = 6; */ cursorOffset = protoInt64.zero; /** * May be present instead of cursor_offset. * * @generated from field: exa.language_server_pb.DocumentPosition cursor_position = 8; */ cursorPosition?: DocumentPosition; /** * \n or \r\n, if known. * * @generated from field: string line_ending = 7; */ lineEnding = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "exa.language_server_pb.Document"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "absolute_path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "relative_path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "editor_language", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "language", kind: "enum", T: proto3.getEnumType(Language) }, { no: 6, name: "cursor_offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 8, name: "cursor_position", kind: "message", T: DocumentPosition }, { no: 7, name: "line_ending", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Document { return new Document().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Document { return new Document().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Document { return new Document().fromJsonString(jsonString, options); } static equals(a: Document | PlainMessage | undefined, b: Document | PlainMessage | undefined): boolean { return proto3.util.equals(Document, a, b); } } /** * @generated from message exa.language_server_pb.ExperimentConfig */ export class ExperimentConfig extends Message { /** * @generated from field: repeated exa.codeium_common_pb.ExperimentKey force_enable_experiments = 1; */ forceEnableExperiments: ExperimentKey[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "exa.language_server_pb.ExperimentConfig"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "force_enable_experiments", kind: "enum", T: proto3.getEnumType(ExperimentKey), repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ExperimentConfig { return new ExperimentConfig().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ExperimentConfig { return new ExperimentConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ExperimentConfig { return new ExperimentConfig().fromJsonString(jsonString, options); } static equals(a: ExperimentConfig | PlainMessage | undefined, b: ExperimentConfig | PlainMessage | undefined): boolean { return proto3.util.equals(ExperimentConfig, a, b); } } /** * Next ID: 3, Previous field: message. * * @generated from message exa.language_server_pb.State */ export class State extends Message { /** * @generated from field: exa.language_server_pb.CodeiumState state = 1; */ state = CodeiumState.UNSPECIFIED; /** * @generated from field: string message = 2; */ message = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "exa.language_server_pb.State"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(CodeiumState) }, { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): State { return new State().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): State { return new State().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): State { return new State().fromJsonString(jsonString, options); } static equals(a: State | PlainMessage | undefined, b: State | PlainMessage | undefined): boolean { return proto3.util.equals(State, a, b); } } /** * Next ID: 5, Previous field: end_position. * * @generated from message exa.language_server_pb.Range */ export class Range extends Message { /** * @generated from field: uint64 start_offset = 1; */ startOffset = protoInt64.zero; /** * @generated from field: uint64 end_offset = 2; */ endOffset = protoInt64.zero; /** * @generated from field: exa.language_server_pb.DocumentPosition start_position = 3; */ startPosition?: DocumentPosition; /** * @generated from field: exa.language_server_pb.DocumentPosition end_position = 4; */ endPosition?: DocumentPosition; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "exa.language_server_pb.Range"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "start_offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "end_offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "start_position", kind: "message", T: DocumentPosition }, { no: 4, name: "end_position", kind: "message", T: DocumentPosition }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Range { return new Range().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Range { return new Range().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Range { return new Range().fromJsonString(jsonString, options); } static equals(a: Range | PlainMessage | undefined, b: Range | PlainMessage | undefined): boolean { return proto3.util.equals(Range, a, b); } } /** * @generated from message exa.language_server_pb.Suffix */ export class Suffix extends Message { /** * Text to insert after the cursor when accepting the completion. * * @generated from field: string text = 1; */ text = ""; /** * Cursor position delta (as signed offset) from the end of the inserted * completion (including the suffix). * * @generated from field: int64 delta_cursor_offset = 2; */ deltaCursorOffset = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "exa.language_server_pb.Suffix"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "delta_cursor_offset", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Suffix { return new Suffix().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Suffix { return new Suffix().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Suffix { return new Suffix().fromJsonString(jsonString, options); } static equals(a: Suffix | PlainMessage | undefined, b: Suffix | PlainMessage | undefined): boolean { return proto3.util.equals(Suffix, a, b); } } /** * Represents a contiguous part of the completion text that is not * already in the document. * Next ID: 4, Previous field: prefix. * * @generated from message exa.language_server_pb.CompletionPart */ export class CompletionPart extends Message { /** * @generated from field: string text = 1; */ text = ""; /** * Offset in the original document where the part starts. For block * parts, this is always the end of the line before the block. * * @generated from field: uint64 offset = 2; */ offset = protoInt64.zero; /** * @generated from field: exa.language_server_pb.CompletionPartType type = 3; */ type = CompletionPartType.UNSPECIFIED; /** * The section of the original line that came before this part. Only valid for * COMPLETION_PART_TYPE_INLINE. * * @generated from field: string prefix = 4; */ prefix = ""; /** * In the case of COMPLETION_PART_TYPE_BLOCK, represents the line it is below. * * @generated from field: uint64 line = 5; */ line = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "exa.language_server_pb.CompletionPart"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "type", kind: "enum", T: proto3.getEnumType(CompletionPartType) }, { no: 4, name: "prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "line", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CompletionPart { return new CompletionPart().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CompletionPart { return new CompletionPart().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CompletionPart { return new CompletionPart().fromJsonString(jsonString, options); } static equals(a: CompletionPart | PlainMessage | undefined, b: CompletionPart | PlainMessage | undefined): boolean { return proto3.util.equals(CompletionPart, a, b); } } /** * Next ID: 9, Previous field: completion_parts. * * @generated from message exa.language_server_pb.CompletionItem */ export class CompletionItem extends Message { /** * @generated from field: exa.codeium_common_pb.Completion completion = 1; */ completion?: Completion; /** * @generated from field: exa.language_server_pb.Suffix suffix = 5; */ suffix?: Suffix; /** * @generated from field: exa.language_server_pb.Range range = 2; */ range?: Range; /** * @generated from field: exa.codeium_common_pb.CompletionSource source = 3; */ source = CompletionSource.UNSPECIFIED; /** * @generated from field: repeated exa.language_server_pb.CompletionPart completion_parts = 8; */ completionParts: CompletionPart[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "exa.language_server_pb.CompletionItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "completion", kind: "message", T: Completion }, { no: 5, name: "suffix", kind: "message", T: Suffix }, { no: 2, name: "range", kind: "message", T: Range }, { no: 3, name: "source", kind: "enum", T: proto3.getEnumType(CompletionSource) }, { no: 8, name: "completion_parts", kind: "message", T: CompletionPart, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CompletionItem { return new CompletionItem().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CompletionItem { return new CompletionItem().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CompletionItem { return new CompletionItem().fromJsonString(jsonString, options); } static equals(a: CompletionItem | PlainMessage | undefined, b: CompletionItem | PlainMessage | undefined): boolean { return proto3.util.equals(CompletionItem, a, b); } }