@marleena/trb-proto 0.1.6 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,108 +0,0 @@
1
- /**
2
- * @fileoverview gRPC-Web generated client stub for example.contract.v1
3
- * @enhanceable
4
- * @public
5
- */
6
-
7
- // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
- // versions:
9
- // protoc-gen-grpc-web v1.5.0
10
- // protoc v7.34.1
11
- // source: example/Example.proto
12
-
13
-
14
- /* eslint-disable */
15
- // @ts-nocheck
16
-
17
-
18
- import * as grpcWeb from 'grpc-web';
19
-
20
- import * as example_Example_pb from '../example/Example_pb'; // proto import: "example/Example.proto"
21
-
22
-
23
- export class exampleClient {
24
- client_: grpcWeb.AbstractClientBase;
25
- hostname_: string;
26
- credentials_: null | { [index: string]: string; };
27
- options_: null | { [index: string]: any; };
28
-
29
- constructor (hostname: string,
30
- credentials?: null | { [index: string]: string; },
31
- options?: null | { [index: string]: any; }) {
32
- if (!options) options = {};
33
- if (!credentials) credentials = {};
34
- options['format'] = 'binary';
35
-
36
- this.client_ = new grpcWeb.GrpcWebClientBase(options);
37
- this.hostname_ = hostname.replace(/\/+$/, '');
38
- this.credentials_ = credentials;
39
- this.options_ = options;
40
- }
41
-
42
- methodDescriptorUnaryRPCMessage = new grpcWeb.MethodDescriptor(
43
- '/example.contract.v1.example/UnaryRPCMessage',
44
- grpcWeb.MethodType.UNARY,
45
- example_Example_pb.MessageRequest,
46
- example_Example_pb.MessageResponse,
47
- (request: example_Example_pb.MessageRequest) => {
48
- return request.serializeBinary();
49
- },
50
- example_Example_pb.MessageResponse.deserializeBinary
51
- );
52
-
53
- unaryRPCMessage(
54
- request: example_Example_pb.MessageRequest,
55
- metadata?: grpcWeb.Metadata | null): Promise<example_Example_pb.MessageResponse>;
56
-
57
- unaryRPCMessage(
58
- request: example_Example_pb.MessageRequest,
59
- metadata: grpcWeb.Metadata | null,
60
- callback: (err: grpcWeb.RpcError,
61
- response: example_Example_pb.MessageResponse) => void): grpcWeb.ClientReadableStream<example_Example_pb.MessageResponse>;
62
-
63
- unaryRPCMessage(
64
- request: example_Example_pb.MessageRequest,
65
- metadata?: grpcWeb.Metadata | null,
66
- callback?: (err: grpcWeb.RpcError,
67
- response: example_Example_pb.MessageResponse) => void) {
68
- if (callback !== undefined) {
69
- return this.client_.rpcCall(
70
- this.hostname_ +
71
- '/example.contract.v1.example/UnaryRPCMessage',
72
- request,
73
- metadata || {},
74
- this.methodDescriptorUnaryRPCMessage,
75
- callback);
76
- }
77
- return this.client_.unaryCall(
78
- this.hostname_ +
79
- '/example.contract.v1.example/UnaryRPCMessage',
80
- request,
81
- metadata || {},
82
- this.methodDescriptorUnaryRPCMessage);
83
- }
84
-
85
- methodDescriptorServerSideStream = new grpcWeb.MethodDescriptor(
86
- '/example.contract.v1.example/ServerSideStream',
87
- grpcWeb.MethodType.SERVER_STREAMING,
88
- example_Example_pb.MessageRequest,
89
- example_Example_pb.MessageStreamResponse,
90
- (request: example_Example_pb.MessageRequest) => {
91
- return request.serializeBinary();
92
- },
93
- example_Example_pb.MessageStreamResponse.deserializeBinary
94
- );
95
-
96
- serverSideStream(
97
- request: example_Example_pb.MessageRequest,
98
- metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<example_Example_pb.MessageStreamResponse> {
99
- return this.client_.serverStreaming(
100
- this.hostname_ +
101
- '/example.contract.v1.example/ServerSideStream',
102
- request,
103
- metadata || {},
104
- this.methodDescriptorServerSideStream);
105
- }
106
-
107
- }
108
-
@@ -1,77 +0,0 @@
1
- import * as jspb from 'google-protobuf'
2
-
3
- import * as google_api_annotations_pb from '../google/api/annotations_pb'; // proto import: "google/api/annotations.proto"
4
-
5
-
6
- export class MessageRequest extends jspb.Message {
7
- getText(): string;
8
- setText(value: string): MessageRequest;
9
-
10
- serializeBinary(): Uint8Array;
11
- toObject(includeInstance?: boolean): MessageRequest.AsObject;
12
- static toObject(includeInstance: boolean, msg: MessageRequest): MessageRequest.AsObject;
13
- static serializeBinaryToWriter(message: MessageRequest, writer: jspb.BinaryWriter): void;
14
- static deserializeBinary(bytes: Uint8Array): MessageRequest;
15
- static deserializeBinaryFromReader(message: MessageRequest, reader: jspb.BinaryReader): MessageRequest;
16
- }
17
-
18
- export namespace MessageRequest {
19
- export type AsObject = {
20
- text: string,
21
- }
22
- }
23
-
24
- export class MessageResponse extends jspb.Message {
25
- getText(): string;
26
- setText(value: string): MessageResponse;
27
-
28
- serializeBinary(): Uint8Array;
29
- toObject(includeInstance?: boolean): MessageResponse.AsObject;
30
- static toObject(includeInstance: boolean, msg: MessageResponse): MessageResponse.AsObject;
31
- static serializeBinaryToWriter(message: MessageResponse, writer: jspb.BinaryWriter): void;
32
- static deserializeBinary(bytes: Uint8Array): MessageResponse;
33
- static deserializeBinaryFromReader(message: MessageResponse, reader: jspb.BinaryReader): MessageResponse;
34
- }
35
-
36
- export namespace MessageResponse {
37
- export type AsObject = {
38
- text: string,
39
- }
40
- }
41
-
42
- export class MessageStreamRequest extends jspb.Message {
43
- getText(): string;
44
- setText(value: string): MessageStreamRequest;
45
-
46
- serializeBinary(): Uint8Array;
47
- toObject(includeInstance?: boolean): MessageStreamRequest.AsObject;
48
- static toObject(includeInstance: boolean, msg: MessageStreamRequest): MessageStreamRequest.AsObject;
49
- static serializeBinaryToWriter(message: MessageStreamRequest, writer: jspb.BinaryWriter): void;
50
- static deserializeBinary(bytes: Uint8Array): MessageStreamRequest;
51
- static deserializeBinaryFromReader(message: MessageStreamRequest, reader: jspb.BinaryReader): MessageStreamRequest;
52
- }
53
-
54
- export namespace MessageStreamRequest {
55
- export type AsObject = {
56
- text: string,
57
- }
58
- }
59
-
60
- export class MessageStreamResponse extends jspb.Message {
61
- getText(): string;
62
- setText(value: string): MessageStreamResponse;
63
-
64
- serializeBinary(): Uint8Array;
65
- toObject(includeInstance?: boolean): MessageStreamResponse.AsObject;
66
- static toObject(includeInstance: boolean, msg: MessageStreamResponse): MessageStreamResponse.AsObject;
67
- static serializeBinaryToWriter(message: MessageStreamResponse, writer: jspb.BinaryWriter): void;
68
- static deserializeBinary(bytes: Uint8Array): MessageStreamResponse;
69
- static deserializeBinaryFromReader(message: MessageStreamResponse, reader: jspb.BinaryReader): MessageStreamResponse;
70
- }
71
-
72
- export namespace MessageStreamResponse {
73
- export type AsObject = {
74
- text: string,
75
- }
76
- }
77
-