// @generated by protoc-gen-es v1.10.0 // @generated from file proto/rpc/webrtc/v1/grpc.proto (package proto.rpc.webrtc.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import type { Status } from "../../../../google/rpc/status_pb.js"; /** * A PacketMessage is used to packetize large messages (> 64KiB) to be able to safely * transmit over WebRTC data channels. * * @generated from message proto.rpc.webrtc.v1.PacketMessage */ export declare class PacketMessage extends Message { /** * @generated from field: bytes data = 1; */ data: Uint8Array; /** * @generated from field: bool eom = 2; */ eom: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "proto.rpc.webrtc.v1.PacketMessage"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PacketMessage; static fromJson(jsonValue: JsonValue, options?: Partial): PacketMessage; static fromJsonString(jsonString: string, options?: Partial): PacketMessage; static equals(a: PacketMessage | PlainMessage | undefined, b: PacketMessage | PlainMessage | undefined): boolean; } /** * A Stream represents an instance of a gRPC stream between * a client and a server. * * @generated from message proto.rpc.webrtc.v1.Stream */ export declare class Stream extends Message { /** * @generated from field: uint64 id = 1; */ id: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "proto.rpc.webrtc.v1.Stream"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Stream; static fromJson(jsonValue: JsonValue, options?: Partial): Stream; static fromJsonString(jsonString: string, options?: Partial): Stream; static equals(a: Stream | PlainMessage | undefined, b: Stream | PlainMessage | undefined): boolean; } /** * A Request is a frame coming from a client. It is always * associated with a stream where the client assigns the stream * identifier. Servers will drop frames where the stream identifier * has no association (if a non-header frames are sent). * * @generated from message proto.rpc.webrtc.v1.Request */ export declare class Request extends Message { /** * @generated from field: proto.rpc.webrtc.v1.Stream stream = 1; */ stream?: Stream; /** * @generated from oneof proto.rpc.webrtc.v1.Request.type */ type: { /** * @generated from field: proto.rpc.webrtc.v1.RequestHeaders headers = 2; */ value: RequestHeaders; case: "headers"; } | { /** * @generated from field: proto.rpc.webrtc.v1.RequestMessage message = 3; */ value: RequestMessage; case: "message"; } | { /** * @generated from field: bool rst_stream = 4; */ value: boolean; case: "rstStream"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "proto.rpc.webrtc.v1.Request"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Request; static fromJson(jsonValue: JsonValue, options?: Partial): Request; static fromJsonString(jsonString: string, options?: Partial): Request; static equals(a: Request | PlainMessage | undefined, b: Request | PlainMessage | undefined): boolean; } /** * RequestHeaders describe the unary or streaming call to make. * * @generated from message proto.rpc.webrtc.v1.RequestHeaders */ export declare class RequestHeaders extends Message { /** * @generated from field: string method = 1; */ method: string; /** * @generated from field: proto.rpc.webrtc.v1.Metadata metadata = 2; */ metadata?: Metadata; /** * @generated from field: google.protobuf.Duration timeout = 3; */ timeout?: Duration; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "proto.rpc.webrtc.v1.RequestHeaders"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RequestHeaders; static fromJson(jsonValue: JsonValue, options?: Partial): RequestHeaders; static fromJsonString(jsonString: string, options?: Partial): RequestHeaders; static equals(a: RequestHeaders | PlainMessage | undefined, b: RequestHeaders | PlainMessage | undefined): boolean; } /** * A RequestMessage contains individual gRPC messages and a potential * end-of-stream (EOS) marker. * * @generated from message proto.rpc.webrtc.v1.RequestMessage */ export declare class RequestMessage extends Message { /** * @generated from field: bool has_message = 1; */ hasMessage: boolean; /** * @generated from field: proto.rpc.webrtc.v1.PacketMessage packet_message = 2; */ packetMessage?: PacketMessage; /** * @generated from field: bool eos = 3; */ eos: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "proto.rpc.webrtc.v1.RequestMessage"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RequestMessage; static fromJson(jsonValue: JsonValue, options?: Partial): RequestMessage; static fromJsonString(jsonString: string, options?: Partial): RequestMessage; static equals(a: RequestMessage | PlainMessage | undefined, b: RequestMessage | PlainMessage | undefined): boolean; } /** * A Response is a frame coming from a server. It is always * associated with a stream where the client assigns the stream * identifier. Clients will drop frames where the stream identifier * has no association. * * @generated from message proto.rpc.webrtc.v1.Response */ export declare class Response extends Message { /** * @generated from field: proto.rpc.webrtc.v1.Stream stream = 1; */ stream?: Stream; /** * @generated from oneof proto.rpc.webrtc.v1.Response.type */ type: { /** * @generated from field: proto.rpc.webrtc.v1.ResponseHeaders headers = 2; */ value: ResponseHeaders; case: "headers"; } | { /** * @generated from field: proto.rpc.webrtc.v1.ResponseMessage message = 3; */ value: ResponseMessage; case: "message"; } | { /** * @generated from field: proto.rpc.webrtc.v1.ResponseTrailers trailers = 4; */ value: ResponseTrailers; case: "trailers"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "proto.rpc.webrtc.v1.Response"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Response; static fromJson(jsonValue: JsonValue, options?: Partial): Response; static fromJsonString(jsonString: string, options?: Partial): Response; static equals(a: Response | PlainMessage | undefined, b: Response | PlainMessage | undefined): boolean; } /** * ResponseHeaders contain custom metadata that are sent to the client * before any message or trailers (unless only trailers are sent). * * @generated from message proto.rpc.webrtc.v1.ResponseHeaders */ export declare class ResponseHeaders extends Message { /** * @generated from field: proto.rpc.webrtc.v1.Metadata metadata = 1; */ metadata?: Metadata; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "proto.rpc.webrtc.v1.ResponseHeaders"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ResponseHeaders; static fromJson(jsonValue: JsonValue, options?: Partial): ResponseHeaders; static fromJsonString(jsonString: string, options?: Partial): ResponseHeaders; static equals(a: ResponseHeaders | PlainMessage | undefined, b: ResponseHeaders | PlainMessage | undefined): boolean; } /** * ResponseMessage contains the data of a response to a call. * * @generated from message proto.rpc.webrtc.v1.ResponseMessage */ export declare class ResponseMessage extends Message { /** * @generated from field: proto.rpc.webrtc.v1.PacketMessage packet_message = 1; */ packetMessage?: PacketMessage; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "proto.rpc.webrtc.v1.ResponseMessage"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ResponseMessage; static fromJson(jsonValue: JsonValue, options?: Partial): ResponseMessage; static fromJsonString(jsonString: string, options?: Partial): ResponseMessage; static equals(a: ResponseMessage | PlainMessage | undefined, b: ResponseMessage | PlainMessage | undefined): boolean; } /** * ResponseTrailers contain the status of a response and any custom metadata. * * @generated from message proto.rpc.webrtc.v1.ResponseTrailers */ export declare class ResponseTrailers extends Message { /** * @generated from field: google.rpc.Status status = 1; */ status?: Status; /** * @generated from field: proto.rpc.webrtc.v1.Metadata metadata = 2; */ metadata?: Metadata; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "proto.rpc.webrtc.v1.ResponseTrailers"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ResponseTrailers; static fromJson(jsonValue: JsonValue, options?: Partial): ResponseTrailers; static fromJsonString(jsonString: string, options?: Partial): ResponseTrailers; static equals(a: ResponseTrailers | PlainMessage | undefined, b: ResponseTrailers | PlainMessage | undefined): boolean; } /** * Strings are a series of values. * * @generated from message proto.rpc.webrtc.v1.Strings */ export declare class Strings extends Message { /** * @generated from field: repeated string values = 1; */ values: string[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "proto.rpc.webrtc.v1.Strings"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Strings; static fromJson(jsonValue: JsonValue, options?: Partial): Strings; static fromJsonString(jsonString: string, options?: Partial): Strings; static equals(a: Strings | PlainMessage | undefined, b: Strings | PlainMessage | undefined): boolean; } /** * Metadata is for custom key values provided by a client or server * during a stream. * * @generated from message proto.rpc.webrtc.v1.Metadata */ export declare class Metadata extends Message { /** * @generated from field: map md = 1; */ md: { [key: string]: Strings }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "proto.rpc.webrtc.v1.Metadata"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Metadata; static fromJson(jsonValue: JsonValue, options?: Partial): Metadata; static fromJsonString(jsonString: string, options?: Partial): Metadata; static equals(a: Metadata | PlainMessage | undefined, b: Metadata | PlainMessage | undefined): boolean; }