-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathhackernews_pb.d.ts
83 lines (68 loc) · 2.81 KB
/
hackernews_pb.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// package: grpc_web_hacker_news
// file: proto/hackernews.proto
import * as jspb from "google-protobuf";
export class Story extends jspb.Message {
getId(): number;
setId(value: number): void;
getScore(): number;
setScore(value: number): void;
getTitle(): string;
setTitle(value: string): void;
getBy(): string;
setBy(value: string): void;
getTime(): number;
setTime(value: number): void;
getUrl(): string;
setUrl(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Story.AsObject;
static toObject(includeInstance: boolean, msg: Story): Story.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: Story, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Story;
static deserializeBinaryFromReader(message: Story, reader: jspb.BinaryReader): Story;
}
export namespace Story {
export type AsObject = {
id: number,
score: number,
title: string,
by: string,
time: number,
url: string,
}
}
export class ListStoriesResponse extends jspb.Message {
hasStory(): boolean;
clearStory(): void;
getStory(): Story | undefined;
setStory(value?: Story): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListStoriesResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListStoriesResponse): ListStoriesResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ListStoriesResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListStoriesResponse;
static deserializeBinaryFromReader(message: ListStoriesResponse, reader: jspb.BinaryReader): ListStoriesResponse;
}
export namespace ListStoriesResponse {
export type AsObject = {
story?: Story.AsObject,
}
}
export class ListStoriesRequest extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListStoriesRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListStoriesRequest): ListStoriesRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ListStoriesRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListStoriesRequest;
static deserializeBinaryFromReader(message: ListStoriesRequest, reader: jspb.BinaryReader): ListStoriesRequest;
}
export namespace ListStoriesRequest {
export type AsObject = {
}
}