@miradorlabs/web-grpc 3.29.0 → 3.30.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miradorlabs/web-grpc",
3
- "version": "3.29.0",
3
+ "version": "3.30.0",
4
4
  "description": "Generated gRPC (grpc-js) client stubs for the Mirador web gateway.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -95,28 +95,6 @@ export interface GitHubPullRequestsResponse {
95
95
  pullRequests: GitHubPullRequest[];
96
96
  }
97
97
 
98
- export interface GitHubIssuesRequest {
99
- organizationId: string;
100
- repositoryFullName: string;
101
- state: string;
102
- page: number;
103
- }
104
-
105
- export interface GitHubIssue {
106
- number: number;
107
- title: string;
108
- state: string;
109
- url: string;
110
- author: string;
111
- createdAt: string;
112
- updatedAt: string;
113
- }
114
-
115
- export interface GitHubIssuesResponse {
116
- status: ResponseStatus | undefined;
117
- issues: GitHubIssue[];
118
- }
119
-
120
98
  export interface GitHubEmptyResponse {
121
99
  status: ResponseStatus | undefined;
122
100
  }
@@ -1676,391 +1654,6 @@ export const GitHubPullRequestsResponse: MessageFns<GitHubPullRequestsResponse>
1676
1654
  },
1677
1655
  };
1678
1656
 
1679
- function createBaseGitHubIssuesRequest(): GitHubIssuesRequest {
1680
- return { organizationId: "", repositoryFullName: "", state: "", page: 0 };
1681
- }
1682
-
1683
- export const GitHubIssuesRequest: MessageFns<GitHubIssuesRequest> = {
1684
- encode(message: GitHubIssuesRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1685
- if (message.organizationId !== "") {
1686
- writer.uint32(10).string(message.organizationId);
1687
- }
1688
- if (message.repositoryFullName !== "") {
1689
- writer.uint32(18).string(message.repositoryFullName);
1690
- }
1691
- if (message.state !== "") {
1692
- writer.uint32(26).string(message.state);
1693
- }
1694
- if (message.page !== 0) {
1695
- writer.uint32(32).int32(message.page);
1696
- }
1697
- return writer;
1698
- },
1699
-
1700
- decode(input: BinaryReader | Uint8Array, length?: number): GitHubIssuesRequest {
1701
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1702
- const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1703
- if (previousRecursionDepth >= 100) {
1704
- throw new globalThis.Error("protobuf decode recursion limit exceeded");
1705
- }
1706
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1707
- try {
1708
- const end = length === undefined ? reader.len : reader.pos + length;
1709
- const message = createBaseGitHubIssuesRequest();
1710
- while (reader.pos < end) {
1711
- const tag = reader.uint32();
1712
- switch (tag >>> 3) {
1713
- case 1: {
1714
- if (tag !== 10) {
1715
- break;
1716
- }
1717
-
1718
- message.organizationId = reader.string();
1719
- continue;
1720
- }
1721
- case 2: {
1722
- if (tag !== 18) {
1723
- break;
1724
- }
1725
-
1726
- message.repositoryFullName = reader.string();
1727
- continue;
1728
- }
1729
- case 3: {
1730
- if (tag !== 26) {
1731
- break;
1732
- }
1733
-
1734
- message.state = reader.string();
1735
- continue;
1736
- }
1737
- case 4: {
1738
- if (tag !== 32) {
1739
- break;
1740
- }
1741
-
1742
- message.page = reader.int32();
1743
- continue;
1744
- }
1745
- }
1746
- if ((tag & 7) === 4 || tag === 0) {
1747
- break;
1748
- }
1749
- reader.skip(tag & 7);
1750
- }
1751
- return message;
1752
- } finally {
1753
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1754
- }
1755
- },
1756
-
1757
- fromJSON(object: any): GitHubIssuesRequest {
1758
- return {
1759
- organizationId: isSet(object.organizationId)
1760
- ? globalThis.String(object.organizationId)
1761
- : isSet(object.organization_id)
1762
- ? globalThis.String(object.organization_id)
1763
- : "",
1764
- repositoryFullName: isSet(object.repositoryFullName)
1765
- ? globalThis.String(object.repositoryFullName)
1766
- : isSet(object.repository_full_name)
1767
- ? globalThis.String(object.repository_full_name)
1768
- : "",
1769
- state: isSet(object.state) ? globalThis.String(object.state) : "",
1770
- page: isSet(object.page) ? globalThis.Number(object.page) : 0,
1771
- };
1772
- },
1773
-
1774
- toJSON(message: GitHubIssuesRequest): unknown {
1775
- const obj: any = {};
1776
- if (message.organizationId !== "") {
1777
- obj.organizationId = message.organizationId;
1778
- }
1779
- if (message.repositoryFullName !== "") {
1780
- obj.repositoryFullName = message.repositoryFullName;
1781
- }
1782
- if (message.state !== "") {
1783
- obj.state = message.state;
1784
- }
1785
- if (message.page !== 0) {
1786
- obj.page = Math.round(message.page);
1787
- }
1788
- return obj;
1789
- },
1790
-
1791
- create<I extends Exact<DeepPartial<GitHubIssuesRequest>, I>>(base?: I): GitHubIssuesRequest {
1792
- return GitHubIssuesRequest.fromPartial(base ?? ({} as any));
1793
- },
1794
- fromPartial<I extends Exact<DeepPartial<GitHubIssuesRequest>, I>>(object: I): GitHubIssuesRequest {
1795
- const message = createBaseGitHubIssuesRequest();
1796
- message.organizationId = object.organizationId ?? "";
1797
- message.repositoryFullName = object.repositoryFullName ?? "";
1798
- message.state = object.state ?? "";
1799
- message.page = object.page ?? 0;
1800
- return message;
1801
- },
1802
- };
1803
-
1804
- function createBaseGitHubIssue(): GitHubIssue {
1805
- return { number: 0, title: "", state: "", url: "", author: "", createdAt: "", updatedAt: "" };
1806
- }
1807
-
1808
- export const GitHubIssue: MessageFns<GitHubIssue> = {
1809
- encode(message: GitHubIssue, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1810
- if (message.number !== 0) {
1811
- writer.uint32(8).int64(message.number);
1812
- }
1813
- if (message.title !== "") {
1814
- writer.uint32(18).string(message.title);
1815
- }
1816
- if (message.state !== "") {
1817
- writer.uint32(26).string(message.state);
1818
- }
1819
- if (message.url !== "") {
1820
- writer.uint32(34).string(message.url);
1821
- }
1822
- if (message.author !== "") {
1823
- writer.uint32(42).string(message.author);
1824
- }
1825
- if (message.createdAt !== "") {
1826
- writer.uint32(50).string(message.createdAt);
1827
- }
1828
- if (message.updatedAt !== "") {
1829
- writer.uint32(58).string(message.updatedAt);
1830
- }
1831
- return writer;
1832
- },
1833
-
1834
- decode(input: BinaryReader | Uint8Array, length?: number): GitHubIssue {
1835
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1836
- const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1837
- if (previousRecursionDepth >= 100) {
1838
- throw new globalThis.Error("protobuf decode recursion limit exceeded");
1839
- }
1840
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1841
- try {
1842
- const end = length === undefined ? reader.len : reader.pos + length;
1843
- const message = createBaseGitHubIssue();
1844
- while (reader.pos < end) {
1845
- const tag = reader.uint32();
1846
- switch (tag >>> 3) {
1847
- case 1: {
1848
- if (tag !== 8) {
1849
- break;
1850
- }
1851
-
1852
- message.number = longToNumber(reader.int64());
1853
- continue;
1854
- }
1855
- case 2: {
1856
- if (tag !== 18) {
1857
- break;
1858
- }
1859
-
1860
- message.title = reader.string();
1861
- continue;
1862
- }
1863
- case 3: {
1864
- if (tag !== 26) {
1865
- break;
1866
- }
1867
-
1868
- message.state = reader.string();
1869
- continue;
1870
- }
1871
- case 4: {
1872
- if (tag !== 34) {
1873
- break;
1874
- }
1875
-
1876
- message.url = reader.string();
1877
- continue;
1878
- }
1879
- case 5: {
1880
- if (tag !== 42) {
1881
- break;
1882
- }
1883
-
1884
- message.author = reader.string();
1885
- continue;
1886
- }
1887
- case 6: {
1888
- if (tag !== 50) {
1889
- break;
1890
- }
1891
-
1892
- message.createdAt = reader.string();
1893
- continue;
1894
- }
1895
- case 7: {
1896
- if (tag !== 58) {
1897
- break;
1898
- }
1899
-
1900
- message.updatedAt = reader.string();
1901
- continue;
1902
- }
1903
- }
1904
- if ((tag & 7) === 4 || tag === 0) {
1905
- break;
1906
- }
1907
- reader.skip(tag & 7);
1908
- }
1909
- return message;
1910
- } finally {
1911
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1912
- }
1913
- },
1914
-
1915
- fromJSON(object: any): GitHubIssue {
1916
- return {
1917
- number: isSet(object.number) ? globalThis.Number(object.number) : 0,
1918
- title: isSet(object.title) ? globalThis.String(object.title) : "",
1919
- state: isSet(object.state) ? globalThis.String(object.state) : "",
1920
- url: isSet(object.url) ? globalThis.String(object.url) : "",
1921
- author: isSet(object.author) ? globalThis.String(object.author) : "",
1922
- createdAt: isSet(object.createdAt)
1923
- ? globalThis.String(object.createdAt)
1924
- : isSet(object.created_at)
1925
- ? globalThis.String(object.created_at)
1926
- : "",
1927
- updatedAt: isSet(object.updatedAt)
1928
- ? globalThis.String(object.updatedAt)
1929
- : isSet(object.updated_at)
1930
- ? globalThis.String(object.updated_at)
1931
- : "",
1932
- };
1933
- },
1934
-
1935
- toJSON(message: GitHubIssue): unknown {
1936
- const obj: any = {};
1937
- if (message.number !== 0) {
1938
- obj.number = Math.round(message.number);
1939
- }
1940
- if (message.title !== "") {
1941
- obj.title = message.title;
1942
- }
1943
- if (message.state !== "") {
1944
- obj.state = message.state;
1945
- }
1946
- if (message.url !== "") {
1947
- obj.url = message.url;
1948
- }
1949
- if (message.author !== "") {
1950
- obj.author = message.author;
1951
- }
1952
- if (message.createdAt !== "") {
1953
- obj.createdAt = message.createdAt;
1954
- }
1955
- if (message.updatedAt !== "") {
1956
- obj.updatedAt = message.updatedAt;
1957
- }
1958
- return obj;
1959
- },
1960
-
1961
- create<I extends Exact<DeepPartial<GitHubIssue>, I>>(base?: I): GitHubIssue {
1962
- return GitHubIssue.fromPartial(base ?? ({} as any));
1963
- },
1964
- fromPartial<I extends Exact<DeepPartial<GitHubIssue>, I>>(object: I): GitHubIssue {
1965
- const message = createBaseGitHubIssue();
1966
- message.number = object.number ?? 0;
1967
- message.title = object.title ?? "";
1968
- message.state = object.state ?? "";
1969
- message.url = object.url ?? "";
1970
- message.author = object.author ?? "";
1971
- message.createdAt = object.createdAt ?? "";
1972
- message.updatedAt = object.updatedAt ?? "";
1973
- return message;
1974
- },
1975
- };
1976
-
1977
- function createBaseGitHubIssuesResponse(): GitHubIssuesResponse {
1978
- return { status: undefined, issues: [] };
1979
- }
1980
-
1981
- export const GitHubIssuesResponse: MessageFns<GitHubIssuesResponse> = {
1982
- encode(message: GitHubIssuesResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1983
- if (message.status !== undefined) {
1984
- ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
1985
- }
1986
- for (const v of message.issues) {
1987
- GitHubIssue.encode(v!, writer.uint32(18).fork()).join();
1988
- }
1989
- return writer;
1990
- },
1991
-
1992
- decode(input: BinaryReader | Uint8Array, length?: number): GitHubIssuesResponse {
1993
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1994
- const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1995
- if (previousRecursionDepth >= 100) {
1996
- throw new globalThis.Error("protobuf decode recursion limit exceeded");
1997
- }
1998
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1999
- try {
2000
- const end = length === undefined ? reader.len : reader.pos + length;
2001
- const message = createBaseGitHubIssuesResponse();
2002
- while (reader.pos < end) {
2003
- const tag = reader.uint32();
2004
- switch (tag >>> 3) {
2005
- case 1: {
2006
- if (tag !== 10) {
2007
- break;
2008
- }
2009
-
2010
- message.status = ResponseStatus.decode(reader, reader.uint32());
2011
- continue;
2012
- }
2013
- case 2: {
2014
- if (tag !== 18) {
2015
- break;
2016
- }
2017
-
2018
- message.issues.push(GitHubIssue.decode(reader, reader.uint32()));
2019
- continue;
2020
- }
2021
- }
2022
- if ((tag & 7) === 4 || tag === 0) {
2023
- break;
2024
- }
2025
- reader.skip(tag & 7);
2026
- }
2027
- return message;
2028
- } finally {
2029
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2030
- }
2031
- },
2032
-
2033
- fromJSON(object: any): GitHubIssuesResponse {
2034
- return {
2035
- status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
2036
- issues: globalThis.Array.isArray(object?.issues) ? object.issues.map((e: any) => GitHubIssue.fromJSON(e)) : [],
2037
- };
2038
- },
2039
-
2040
- toJSON(message: GitHubIssuesResponse): unknown {
2041
- const obj: any = {};
2042
- if (message.status !== undefined) {
2043
- obj.status = ResponseStatus.toJSON(message.status);
2044
- }
2045
- if (message.issues?.length) {
2046
- obj.issues = message.issues.map((e) => GitHubIssue.toJSON(e));
2047
- }
2048
- return obj;
2049
- },
2050
-
2051
- create<I extends Exact<DeepPartial<GitHubIssuesResponse>, I>>(base?: I): GitHubIssuesResponse {
2052
- return GitHubIssuesResponse.fromPartial(base ?? ({} as any));
2053
- },
2054
- fromPartial<I extends Exact<DeepPartial<GitHubIssuesResponse>, I>>(object: I): GitHubIssuesResponse {
2055
- const message = createBaseGitHubIssuesResponse();
2056
- message.status = (object.status !== undefined && object.status !== null)
2057
- ? ResponseStatus.fromPartial(object.status)
2058
- : undefined;
2059
- message.issues = object.issues?.map((e) => GitHubIssue.fromPartial(e)) || [];
2060
- return message;
2061
- },
2062
- };
2063
-
2064
1657
  function createBaseGitHubEmptyResponse(): GitHubEmptyResponse {
2065
1658
  return { status: undefined };
2066
1659
  }
@@ -2538,7 +2131,6 @@ export interface GitHubGatewayService {
2538
2131
  DisconnectGitHubConnection(request: GitHubDisconnectRequest, metadata?: Metadata): Promise<GitHubEmptyResponse>;
2539
2132
  ListGitHubRepositories(request: GitHubScopeRequest, metadata?: Metadata): Promise<GitHubRepositoriesResponse>;
2540
2133
  ListGitHubPullRequests(request: GitHubPullRequestsRequest, metadata?: Metadata): Promise<GitHubPullRequestsResponse>;
2541
- ListGitHubIssues(request: GitHubIssuesRequest, metadata?: Metadata): Promise<GitHubIssuesResponse>;
2542
2134
  ListGitHubFiles(request: GitHubFilesRequest, metadata?: Metadata): Promise<GitHubFilesResponse>;
2543
2135
  }
2544
2136
 
@@ -2555,7 +2147,6 @@ export class GitHubGatewayServiceClientImpl implements GitHubGatewayService {
2555
2147
  this.DisconnectGitHubConnection = this.DisconnectGitHubConnection.bind(this);
2556
2148
  this.ListGitHubRepositories = this.ListGitHubRepositories.bind(this);
2557
2149
  this.ListGitHubPullRequests = this.ListGitHubPullRequests.bind(this);
2558
- this.ListGitHubIssues = this.ListGitHubIssues.bind(this);
2559
2150
  this.ListGitHubFiles = this.ListGitHubFiles.bind(this);
2560
2151
  }
2561
2152
  GetGitHubConnector(request: GitHubScopeRequest, metadata?: Metadata): Promise<GitHubStatusResponse> {
@@ -2594,12 +2185,6 @@ export class GitHubGatewayServiceClientImpl implements GitHubGatewayService {
2594
2185
  return promise.then((data) => GitHubPullRequestsResponse.decode(new BinaryReader(data)));
2595
2186
  }
2596
2187
 
2597
- ListGitHubIssues(request: GitHubIssuesRequest, metadata?: Metadata): Promise<GitHubIssuesResponse> {
2598
- const data = GitHubIssuesRequest.encode(request).finish();
2599
- const promise = this.rpc.request(this.service, "ListGitHubIssues", data, metadata);
2600
- return promise.then((data) => GitHubIssuesResponse.decode(new BinaryReader(data)));
2601
- }
2602
-
2603
2188
  ListGitHubFiles(request: GitHubFilesRequest, metadata?: Metadata): Promise<GitHubFilesResponse> {
2604
2189
  const data = GitHubFilesRequest.encode(request).finish();
2605
2190
  const promise = this.rpc.request(this.service, "ListGitHubFiles", data, metadata);
@@ -72,28 +72,6 @@ function deserialize_gateway_web_v1_GitHubFilesResponse(buffer_arg) {
72
72
  return proto_gateway_web_v1_github_connector_pb.GitHubFilesResponse.deserializeBinary(new Uint8Array(buffer_arg));
73
73
  }
74
74
 
75
- function serialize_gateway_web_v1_GitHubIssuesRequest(arg) {
76
- if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.GitHubIssuesRequest)) {
77
- throw new Error('Expected argument of type gateway.web.v1.GitHubIssuesRequest');
78
- }
79
- return Buffer.from(arg.serializeBinary());
80
- }
81
-
82
- function deserialize_gateway_web_v1_GitHubIssuesRequest(buffer_arg) {
83
- return proto_gateway_web_v1_github_connector_pb.GitHubIssuesRequest.deserializeBinary(new Uint8Array(buffer_arg));
84
- }
85
-
86
- function serialize_gateway_web_v1_GitHubIssuesResponse(arg) {
87
- if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.GitHubIssuesResponse)) {
88
- throw new Error('Expected argument of type gateway.web.v1.GitHubIssuesResponse');
89
- }
90
- return Buffer.from(arg.serializeBinary());
91
- }
92
-
93
- function deserialize_gateway_web_v1_GitHubIssuesResponse(buffer_arg) {
94
- return proto_gateway_web_v1_github_connector_pb.GitHubIssuesResponse.deserializeBinary(new Uint8Array(buffer_arg));
95
- }
96
-
97
75
  function serialize_gateway_web_v1_GitHubPullRequestsRequest(arg) {
98
76
  if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.GitHubPullRequestsRequest)) {
99
77
  throw new Error('Expected argument of type gateway.web.v1.GitHubPullRequestsRequest');
@@ -219,17 +197,6 @@ var GitHubGatewayServiceService = exports.GitHubGatewayServiceService = {
219
197
  responseSerialize: serialize_gateway_web_v1_GitHubPullRequestsResponse,
220
198
  responseDeserialize: deserialize_gateway_web_v1_GitHubPullRequestsResponse,
221
199
  },
222
- listGitHubIssues: {
223
- path: '/gateway.web.v1.GitHubGatewayService/ListGitHubIssues',
224
- requestStream: false,
225
- responseStream: false,
226
- requestType: proto_gateway_web_v1_github_connector_pb.GitHubIssuesRequest,
227
- responseType: proto_gateway_web_v1_github_connector_pb.GitHubIssuesResponse,
228
- requestSerialize: serialize_gateway_web_v1_GitHubIssuesRequest,
229
- requestDeserialize: deserialize_gateway_web_v1_GitHubIssuesRequest,
230
- responseSerialize: serialize_gateway_web_v1_GitHubIssuesResponse,
231
- responseDeserialize: deserialize_gateway_web_v1_GitHubIssuesResponse,
232
- },
233
200
  listGitHubFiles: {
234
201
  path: '/gateway.web.v1.GitHubGatewayService/ListGitHubFiles',
235
202
  requestStream: false,
@@ -29,9 +29,6 @@ goog.exportSymbol('proto.gateway.web.v1.GitHubFileResult.Code', null, global);
29
29
  goog.exportSymbol('proto.gateway.web.v1.GitHubFilesRequest', null, global);
30
30
  goog.exportSymbol('proto.gateway.web.v1.GitHubFilesResponse', null, global);
31
31
  goog.exportSymbol('proto.gateway.web.v1.GitHubInstallation', null, global);
32
- goog.exportSymbol('proto.gateway.web.v1.GitHubIssue', null, global);
33
- goog.exportSymbol('proto.gateway.web.v1.GitHubIssuesRequest', null, global);
34
- goog.exportSymbol('proto.gateway.web.v1.GitHubIssuesResponse', null, global);
35
32
  goog.exportSymbol('proto.gateway.web.v1.GitHubPullRequest', null, global);
36
33
  goog.exportSymbol('proto.gateway.web.v1.GitHubPullRequestsRequest', null, global);
37
34
  goog.exportSymbol('proto.gateway.web.v1.GitHubPullRequestsResponse', null, global);
@@ -291,69 +288,6 @@ if (goog.DEBUG && !COMPILED) {
291
288
  */
292
289
  proto.gateway.web.v1.GitHubPullRequestsResponse.displayName = 'proto.gateway.web.v1.GitHubPullRequestsResponse';
293
290
  }
294
- /**
295
- * Generated by JsPbCodeGenerator.
296
- * @param {Array=} opt_data Optional initial data array, typically from a
297
- * server response, or constructed directly in Javascript. The array is used
298
- * in place and becomes part of the constructed object. It is not cloned.
299
- * If no data is provided, the constructed object will be empty, but still
300
- * valid.
301
- * @extends {jspb.Message}
302
- * @constructor
303
- */
304
- proto.gateway.web.v1.GitHubIssuesRequest = function(opt_data) {
305
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
306
- };
307
- goog.inherits(proto.gateway.web.v1.GitHubIssuesRequest, jspb.Message);
308
- if (goog.DEBUG && !COMPILED) {
309
- /**
310
- * @public
311
- * @override
312
- */
313
- proto.gateway.web.v1.GitHubIssuesRequest.displayName = 'proto.gateway.web.v1.GitHubIssuesRequest';
314
- }
315
- /**
316
- * Generated by JsPbCodeGenerator.
317
- * @param {Array=} opt_data Optional initial data array, typically from a
318
- * server response, or constructed directly in Javascript. The array is used
319
- * in place and becomes part of the constructed object. It is not cloned.
320
- * If no data is provided, the constructed object will be empty, but still
321
- * valid.
322
- * @extends {jspb.Message}
323
- * @constructor
324
- */
325
- proto.gateway.web.v1.GitHubIssue = function(opt_data) {
326
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
327
- };
328
- goog.inherits(proto.gateway.web.v1.GitHubIssue, jspb.Message);
329
- if (goog.DEBUG && !COMPILED) {
330
- /**
331
- * @public
332
- * @override
333
- */
334
- proto.gateway.web.v1.GitHubIssue.displayName = 'proto.gateway.web.v1.GitHubIssue';
335
- }
336
- /**
337
- * Generated by JsPbCodeGenerator.
338
- * @param {Array=} opt_data Optional initial data array, typically from a
339
- * server response, or constructed directly in Javascript. The array is used
340
- * in place and becomes part of the constructed object. It is not cloned.
341
- * If no data is provided, the constructed object will be empty, but still
342
- * valid.
343
- * @extends {jspb.Message}
344
- * @constructor
345
- */
346
- proto.gateway.web.v1.GitHubIssuesResponse = function(opt_data) {
347
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.GitHubIssuesResponse.repeatedFields_, null);
348
- };
349
- goog.inherits(proto.gateway.web.v1.GitHubIssuesResponse, jspb.Message);
350
- if (goog.DEBUG && !COMPILED) {
351
- /**
352
- * @public
353
- * @override
354
- */
355
- proto.gateway.web.v1.GitHubIssuesResponse.displayName = 'proto.gateway.web.v1.GitHubIssuesResponse';
356
- }
357
291
  /**
358
292
  * Generated by JsPbCodeGenerator.
359
293
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3216,747 +3150,6 @@ proto.gateway.web.v1.GitHubPullRequestsResponse.prototype.clearPullRequestsList
3216
3150
 
3217
3151
 
3218
3152
 
3219
- if (jspb.Message.GENERATE_TO_OBJECT) {
3220
- /**
3221
- * Creates an object representation of this proto.
3222
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3223
- * Optional fields that are not set will be set to undefined.
3224
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3225
- * For the list of reserved names please see:
3226
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3227
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3228
- * JSPB instance for transitional soy proto support:
3229
- * http://goto/soy-param-migration
3230
- * @return {!Object}
3231
- */
3232
- proto.gateway.web.v1.GitHubIssuesRequest.prototype.toObject = function(opt_includeInstance) {
3233
- return proto.gateway.web.v1.GitHubIssuesRequest.toObject(opt_includeInstance, this);
3234
- };
3235
-
3236
-
3237
- /**
3238
- * Static version of the {@see toObject} method.
3239
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3240
- * the JSPB instance for transitional soy proto support:
3241
- * http://goto/soy-param-migration
3242
- * @param {!proto.gateway.web.v1.GitHubIssuesRequest} msg The msg instance to transform.
3243
- * @return {!Object}
3244
- * @suppress {unusedLocalVariables} f is only used for nested messages
3245
- */
3246
- proto.gateway.web.v1.GitHubIssuesRequest.toObject = function(includeInstance, msg) {
3247
- var f, obj = {
3248
- organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3249
- repositoryFullName: jspb.Message.getFieldWithDefault(msg, 2, ""),
3250
- state: jspb.Message.getFieldWithDefault(msg, 3, ""),
3251
- page: jspb.Message.getFieldWithDefault(msg, 4, 0)
3252
- };
3253
-
3254
- if (includeInstance) {
3255
- obj.$jspbMessageInstance = msg;
3256
- }
3257
- return obj;
3258
- };
3259
- }
3260
-
3261
-
3262
- /**
3263
- * Deserializes binary data (in protobuf wire format).
3264
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
3265
- * @return {!proto.gateway.web.v1.GitHubIssuesRequest}
3266
- */
3267
- proto.gateway.web.v1.GitHubIssuesRequest.deserializeBinary = function(bytes) {
3268
- var reader = new jspb.BinaryReader(bytes);
3269
- var msg = new proto.gateway.web.v1.GitHubIssuesRequest;
3270
- return proto.gateway.web.v1.GitHubIssuesRequest.deserializeBinaryFromReader(msg, reader);
3271
- };
3272
-
3273
-
3274
- /**
3275
- * Deserializes binary data (in protobuf wire format) from the
3276
- * given reader into the given message object.
3277
- * @param {!proto.gateway.web.v1.GitHubIssuesRequest} msg The message object to deserialize into.
3278
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3279
- * @return {!proto.gateway.web.v1.GitHubIssuesRequest}
3280
- */
3281
- proto.gateway.web.v1.GitHubIssuesRequest.deserializeBinaryFromReader = function(msg, reader) {
3282
- while (reader.nextField()) {
3283
- if (reader.isEndGroup()) {
3284
- break;
3285
- }
3286
- var field = reader.getFieldNumber();
3287
- switch (field) {
3288
- case 1:
3289
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
3290
- msg.setOrganizationId(value);
3291
- break;
3292
- case 2:
3293
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
3294
- msg.setRepositoryFullName(value);
3295
- break;
3296
- case 3:
3297
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
3298
- msg.setState(value);
3299
- break;
3300
- case 4:
3301
- var value = /** @type {number} */ (reader.readInt32());
3302
- msg.setPage(value);
3303
- break;
3304
- default:
3305
- reader.skipField();
3306
- break;
3307
- }
3308
- }
3309
- return msg;
3310
- };
3311
-
3312
-
3313
- /**
3314
- * Serializes the message to binary data (in protobuf wire format).
3315
- * @return {!Uint8Array}
3316
- */
3317
- proto.gateway.web.v1.GitHubIssuesRequest.prototype.serializeBinary = function() {
3318
- var writer = new jspb.BinaryWriter();
3319
- proto.gateway.web.v1.GitHubIssuesRequest.serializeBinaryToWriter(this, writer);
3320
- return writer.getResultBuffer();
3321
- };
3322
-
3323
-
3324
- /**
3325
- * Serializes the given message to binary data (in protobuf wire
3326
- * format), writing to the given BinaryWriter.
3327
- * @param {!proto.gateway.web.v1.GitHubIssuesRequest} message
3328
- * @param {!jspb.BinaryWriter} writer
3329
- * @suppress {unusedLocalVariables} f is only used for nested messages
3330
- */
3331
- proto.gateway.web.v1.GitHubIssuesRequest.serializeBinaryToWriter = function(message, writer) {
3332
- var f = undefined;
3333
- f = message.getOrganizationId();
3334
- if (f.length > 0) {
3335
- writer.writeString(
3336
- 1,
3337
- f
3338
- );
3339
- }
3340
- f = message.getRepositoryFullName();
3341
- if (f.length > 0) {
3342
- writer.writeString(
3343
- 2,
3344
- f
3345
- );
3346
- }
3347
- f = message.getState();
3348
- if (f.length > 0) {
3349
- writer.writeString(
3350
- 3,
3351
- f
3352
- );
3353
- }
3354
- f = message.getPage();
3355
- if (f !== 0) {
3356
- writer.writeInt32(
3357
- 4,
3358
- f
3359
- );
3360
- }
3361
- };
3362
-
3363
-
3364
- /**
3365
- * optional string organization_id = 1;
3366
- * @return {string}
3367
- */
3368
- proto.gateway.web.v1.GitHubIssuesRequest.prototype.getOrganizationId = function() {
3369
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3370
- };
3371
-
3372
-
3373
- /**
3374
- * @param {string} value
3375
- * @return {!proto.gateway.web.v1.GitHubIssuesRequest} returns this
3376
- */
3377
- proto.gateway.web.v1.GitHubIssuesRequest.prototype.setOrganizationId = function(value) {
3378
- return jspb.Message.setProto3StringField(this, 1, value);
3379
- };
3380
-
3381
-
3382
- /**
3383
- * optional string repository_full_name = 2;
3384
- * @return {string}
3385
- */
3386
- proto.gateway.web.v1.GitHubIssuesRequest.prototype.getRepositoryFullName = function() {
3387
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3388
- };
3389
-
3390
-
3391
- /**
3392
- * @param {string} value
3393
- * @return {!proto.gateway.web.v1.GitHubIssuesRequest} returns this
3394
- */
3395
- proto.gateway.web.v1.GitHubIssuesRequest.prototype.setRepositoryFullName = function(value) {
3396
- return jspb.Message.setProto3StringField(this, 2, value);
3397
- };
3398
-
3399
-
3400
- /**
3401
- * optional string state = 3;
3402
- * @return {string}
3403
- */
3404
- proto.gateway.web.v1.GitHubIssuesRequest.prototype.getState = function() {
3405
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3406
- };
3407
-
3408
-
3409
- /**
3410
- * @param {string} value
3411
- * @return {!proto.gateway.web.v1.GitHubIssuesRequest} returns this
3412
- */
3413
- proto.gateway.web.v1.GitHubIssuesRequest.prototype.setState = function(value) {
3414
- return jspb.Message.setProto3StringField(this, 3, value);
3415
- };
3416
-
3417
-
3418
- /**
3419
- * optional int32 page = 4;
3420
- * @return {number}
3421
- */
3422
- proto.gateway.web.v1.GitHubIssuesRequest.prototype.getPage = function() {
3423
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
3424
- };
3425
-
3426
-
3427
- /**
3428
- * @param {number} value
3429
- * @return {!proto.gateway.web.v1.GitHubIssuesRequest} returns this
3430
- */
3431
- proto.gateway.web.v1.GitHubIssuesRequest.prototype.setPage = function(value) {
3432
- return jspb.Message.setProto3IntField(this, 4, value);
3433
- };
3434
-
3435
-
3436
-
3437
-
3438
-
3439
- if (jspb.Message.GENERATE_TO_OBJECT) {
3440
- /**
3441
- * Creates an object representation of this proto.
3442
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3443
- * Optional fields that are not set will be set to undefined.
3444
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3445
- * For the list of reserved names please see:
3446
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3447
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3448
- * JSPB instance for transitional soy proto support:
3449
- * http://goto/soy-param-migration
3450
- * @return {!Object}
3451
- */
3452
- proto.gateway.web.v1.GitHubIssue.prototype.toObject = function(opt_includeInstance) {
3453
- return proto.gateway.web.v1.GitHubIssue.toObject(opt_includeInstance, this);
3454
- };
3455
-
3456
-
3457
- /**
3458
- * Static version of the {@see toObject} method.
3459
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3460
- * the JSPB instance for transitional soy proto support:
3461
- * http://goto/soy-param-migration
3462
- * @param {!proto.gateway.web.v1.GitHubIssue} msg The msg instance to transform.
3463
- * @return {!Object}
3464
- * @suppress {unusedLocalVariables} f is only used for nested messages
3465
- */
3466
- proto.gateway.web.v1.GitHubIssue.toObject = function(includeInstance, msg) {
3467
- var f, obj = {
3468
- number: jspb.Message.getFieldWithDefault(msg, 1, 0),
3469
- title: jspb.Message.getFieldWithDefault(msg, 2, ""),
3470
- state: jspb.Message.getFieldWithDefault(msg, 3, ""),
3471
- url: jspb.Message.getFieldWithDefault(msg, 4, ""),
3472
- author: jspb.Message.getFieldWithDefault(msg, 5, ""),
3473
- createdAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
3474
- updatedAt: jspb.Message.getFieldWithDefault(msg, 7, "")
3475
- };
3476
-
3477
- if (includeInstance) {
3478
- obj.$jspbMessageInstance = msg;
3479
- }
3480
- return obj;
3481
- };
3482
- }
3483
-
3484
-
3485
- /**
3486
- * Deserializes binary data (in protobuf wire format).
3487
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
3488
- * @return {!proto.gateway.web.v1.GitHubIssue}
3489
- */
3490
- proto.gateway.web.v1.GitHubIssue.deserializeBinary = function(bytes) {
3491
- var reader = new jspb.BinaryReader(bytes);
3492
- var msg = new proto.gateway.web.v1.GitHubIssue;
3493
- return proto.gateway.web.v1.GitHubIssue.deserializeBinaryFromReader(msg, reader);
3494
- };
3495
-
3496
-
3497
- /**
3498
- * Deserializes binary data (in protobuf wire format) from the
3499
- * given reader into the given message object.
3500
- * @param {!proto.gateway.web.v1.GitHubIssue} msg The message object to deserialize into.
3501
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3502
- * @return {!proto.gateway.web.v1.GitHubIssue}
3503
- */
3504
- proto.gateway.web.v1.GitHubIssue.deserializeBinaryFromReader = function(msg, reader) {
3505
- while (reader.nextField()) {
3506
- if (reader.isEndGroup()) {
3507
- break;
3508
- }
3509
- var field = reader.getFieldNumber();
3510
- switch (field) {
3511
- case 1:
3512
- var value = /** @type {number} */ (reader.readInt64());
3513
- msg.setNumber(value);
3514
- break;
3515
- case 2:
3516
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
3517
- msg.setTitle(value);
3518
- break;
3519
- case 3:
3520
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
3521
- msg.setState(value);
3522
- break;
3523
- case 4:
3524
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
3525
- msg.setUrl(value);
3526
- break;
3527
- case 5:
3528
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
3529
- msg.setAuthor(value);
3530
- break;
3531
- case 6:
3532
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
3533
- msg.setCreatedAt(value);
3534
- break;
3535
- case 7:
3536
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
3537
- msg.setUpdatedAt(value);
3538
- break;
3539
- default:
3540
- reader.skipField();
3541
- break;
3542
- }
3543
- }
3544
- return msg;
3545
- };
3546
-
3547
-
3548
- /**
3549
- * Serializes the message to binary data (in protobuf wire format).
3550
- * @return {!Uint8Array}
3551
- */
3552
- proto.gateway.web.v1.GitHubIssue.prototype.serializeBinary = function() {
3553
- var writer = new jspb.BinaryWriter();
3554
- proto.gateway.web.v1.GitHubIssue.serializeBinaryToWriter(this, writer);
3555
- return writer.getResultBuffer();
3556
- };
3557
-
3558
-
3559
- /**
3560
- * Serializes the given message to binary data (in protobuf wire
3561
- * format), writing to the given BinaryWriter.
3562
- * @param {!proto.gateway.web.v1.GitHubIssue} message
3563
- * @param {!jspb.BinaryWriter} writer
3564
- * @suppress {unusedLocalVariables} f is only used for nested messages
3565
- */
3566
- proto.gateway.web.v1.GitHubIssue.serializeBinaryToWriter = function(message, writer) {
3567
- var f = undefined;
3568
- f = message.getNumber();
3569
- if (f !== 0) {
3570
- writer.writeInt64(
3571
- 1,
3572
- f
3573
- );
3574
- }
3575
- f = message.getTitle();
3576
- if (f.length > 0) {
3577
- writer.writeString(
3578
- 2,
3579
- f
3580
- );
3581
- }
3582
- f = message.getState();
3583
- if (f.length > 0) {
3584
- writer.writeString(
3585
- 3,
3586
- f
3587
- );
3588
- }
3589
- f = message.getUrl();
3590
- if (f.length > 0) {
3591
- writer.writeString(
3592
- 4,
3593
- f
3594
- );
3595
- }
3596
- f = message.getAuthor();
3597
- if (f.length > 0) {
3598
- writer.writeString(
3599
- 5,
3600
- f
3601
- );
3602
- }
3603
- f = message.getCreatedAt();
3604
- if (f.length > 0) {
3605
- writer.writeString(
3606
- 6,
3607
- f
3608
- );
3609
- }
3610
- f = message.getUpdatedAt();
3611
- if (f.length > 0) {
3612
- writer.writeString(
3613
- 7,
3614
- f
3615
- );
3616
- }
3617
- };
3618
-
3619
-
3620
- /**
3621
- * optional int64 number = 1;
3622
- * @return {number}
3623
- */
3624
- proto.gateway.web.v1.GitHubIssue.prototype.getNumber = function() {
3625
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3626
- };
3627
-
3628
-
3629
- /**
3630
- * @param {number} value
3631
- * @return {!proto.gateway.web.v1.GitHubIssue} returns this
3632
- */
3633
- proto.gateway.web.v1.GitHubIssue.prototype.setNumber = function(value) {
3634
- return jspb.Message.setProto3IntField(this, 1, value);
3635
- };
3636
-
3637
-
3638
- /**
3639
- * optional string title = 2;
3640
- * @return {string}
3641
- */
3642
- proto.gateway.web.v1.GitHubIssue.prototype.getTitle = function() {
3643
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3644
- };
3645
-
3646
-
3647
- /**
3648
- * @param {string} value
3649
- * @return {!proto.gateway.web.v1.GitHubIssue} returns this
3650
- */
3651
- proto.gateway.web.v1.GitHubIssue.prototype.setTitle = function(value) {
3652
- return jspb.Message.setProto3StringField(this, 2, value);
3653
- };
3654
-
3655
-
3656
- /**
3657
- * optional string state = 3;
3658
- * @return {string}
3659
- */
3660
- proto.gateway.web.v1.GitHubIssue.prototype.getState = function() {
3661
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3662
- };
3663
-
3664
-
3665
- /**
3666
- * @param {string} value
3667
- * @return {!proto.gateway.web.v1.GitHubIssue} returns this
3668
- */
3669
- proto.gateway.web.v1.GitHubIssue.prototype.setState = function(value) {
3670
- return jspb.Message.setProto3StringField(this, 3, value);
3671
- };
3672
-
3673
-
3674
- /**
3675
- * optional string url = 4;
3676
- * @return {string}
3677
- */
3678
- proto.gateway.web.v1.GitHubIssue.prototype.getUrl = function() {
3679
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3680
- };
3681
-
3682
-
3683
- /**
3684
- * @param {string} value
3685
- * @return {!proto.gateway.web.v1.GitHubIssue} returns this
3686
- */
3687
- proto.gateway.web.v1.GitHubIssue.prototype.setUrl = function(value) {
3688
- return jspb.Message.setProto3StringField(this, 4, value);
3689
- };
3690
-
3691
-
3692
- /**
3693
- * optional string author = 5;
3694
- * @return {string}
3695
- */
3696
- proto.gateway.web.v1.GitHubIssue.prototype.getAuthor = function() {
3697
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3698
- };
3699
-
3700
-
3701
- /**
3702
- * @param {string} value
3703
- * @return {!proto.gateway.web.v1.GitHubIssue} returns this
3704
- */
3705
- proto.gateway.web.v1.GitHubIssue.prototype.setAuthor = function(value) {
3706
- return jspb.Message.setProto3StringField(this, 5, value);
3707
- };
3708
-
3709
-
3710
- /**
3711
- * optional string created_at = 6;
3712
- * @return {string}
3713
- */
3714
- proto.gateway.web.v1.GitHubIssue.prototype.getCreatedAt = function() {
3715
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3716
- };
3717
-
3718
-
3719
- /**
3720
- * @param {string} value
3721
- * @return {!proto.gateway.web.v1.GitHubIssue} returns this
3722
- */
3723
- proto.gateway.web.v1.GitHubIssue.prototype.setCreatedAt = function(value) {
3724
- return jspb.Message.setProto3StringField(this, 6, value);
3725
- };
3726
-
3727
-
3728
- /**
3729
- * optional string updated_at = 7;
3730
- * @return {string}
3731
- */
3732
- proto.gateway.web.v1.GitHubIssue.prototype.getUpdatedAt = function() {
3733
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3734
- };
3735
-
3736
-
3737
- /**
3738
- * @param {string} value
3739
- * @return {!proto.gateway.web.v1.GitHubIssue} returns this
3740
- */
3741
- proto.gateway.web.v1.GitHubIssue.prototype.setUpdatedAt = function(value) {
3742
- return jspb.Message.setProto3StringField(this, 7, value);
3743
- };
3744
-
3745
-
3746
-
3747
- /**
3748
- * List of repeated fields within this message type.
3749
- * @private {!Array<number>}
3750
- * @const
3751
- */
3752
- proto.gateway.web.v1.GitHubIssuesResponse.repeatedFields_ = [2];
3753
-
3754
-
3755
-
3756
- if (jspb.Message.GENERATE_TO_OBJECT) {
3757
- /**
3758
- * Creates an object representation of this proto.
3759
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3760
- * Optional fields that are not set will be set to undefined.
3761
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3762
- * For the list of reserved names please see:
3763
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3764
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3765
- * JSPB instance for transitional soy proto support:
3766
- * http://goto/soy-param-migration
3767
- * @return {!Object}
3768
- */
3769
- proto.gateway.web.v1.GitHubIssuesResponse.prototype.toObject = function(opt_includeInstance) {
3770
- return proto.gateway.web.v1.GitHubIssuesResponse.toObject(opt_includeInstance, this);
3771
- };
3772
-
3773
-
3774
- /**
3775
- * Static version of the {@see toObject} method.
3776
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3777
- * the JSPB instance for transitional soy proto support:
3778
- * http://goto/soy-param-migration
3779
- * @param {!proto.gateway.web.v1.GitHubIssuesResponse} msg The msg instance to transform.
3780
- * @return {!Object}
3781
- * @suppress {unusedLocalVariables} f is only used for nested messages
3782
- */
3783
- proto.gateway.web.v1.GitHubIssuesResponse.toObject = function(includeInstance, msg) {
3784
- var f, obj = {
3785
- status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
3786
- issuesList: jspb.Message.toObjectList(msg.getIssuesList(),
3787
- proto.gateway.web.v1.GitHubIssue.toObject, includeInstance)
3788
- };
3789
-
3790
- if (includeInstance) {
3791
- obj.$jspbMessageInstance = msg;
3792
- }
3793
- return obj;
3794
- };
3795
- }
3796
-
3797
-
3798
- /**
3799
- * Deserializes binary data (in protobuf wire format).
3800
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
3801
- * @return {!proto.gateway.web.v1.GitHubIssuesResponse}
3802
- */
3803
- proto.gateway.web.v1.GitHubIssuesResponse.deserializeBinary = function(bytes) {
3804
- var reader = new jspb.BinaryReader(bytes);
3805
- var msg = new proto.gateway.web.v1.GitHubIssuesResponse;
3806
- return proto.gateway.web.v1.GitHubIssuesResponse.deserializeBinaryFromReader(msg, reader);
3807
- };
3808
-
3809
-
3810
- /**
3811
- * Deserializes binary data (in protobuf wire format) from the
3812
- * given reader into the given message object.
3813
- * @param {!proto.gateway.web.v1.GitHubIssuesResponse} msg The message object to deserialize into.
3814
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3815
- * @return {!proto.gateway.web.v1.GitHubIssuesResponse}
3816
- */
3817
- proto.gateway.web.v1.GitHubIssuesResponse.deserializeBinaryFromReader = function(msg, reader) {
3818
- while (reader.nextField()) {
3819
- if (reader.isEndGroup()) {
3820
- break;
3821
- }
3822
- var field = reader.getFieldNumber();
3823
- switch (field) {
3824
- case 1:
3825
- var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
3826
- reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
3827
- msg.setStatus(value);
3828
- break;
3829
- case 2:
3830
- var value = new proto.gateway.web.v1.GitHubIssue;
3831
- reader.readMessage(value,proto.gateway.web.v1.GitHubIssue.deserializeBinaryFromReader);
3832
- msg.addIssues(value);
3833
- break;
3834
- default:
3835
- reader.skipField();
3836
- break;
3837
- }
3838
- }
3839
- return msg;
3840
- };
3841
-
3842
-
3843
- /**
3844
- * Serializes the message to binary data (in protobuf wire format).
3845
- * @return {!Uint8Array}
3846
- */
3847
- proto.gateway.web.v1.GitHubIssuesResponse.prototype.serializeBinary = function() {
3848
- var writer = new jspb.BinaryWriter();
3849
- proto.gateway.web.v1.GitHubIssuesResponse.serializeBinaryToWriter(this, writer);
3850
- return writer.getResultBuffer();
3851
- };
3852
-
3853
-
3854
- /**
3855
- * Serializes the given message to binary data (in protobuf wire
3856
- * format), writing to the given BinaryWriter.
3857
- * @param {!proto.gateway.web.v1.GitHubIssuesResponse} message
3858
- * @param {!jspb.BinaryWriter} writer
3859
- * @suppress {unusedLocalVariables} f is only used for nested messages
3860
- */
3861
- proto.gateway.web.v1.GitHubIssuesResponse.serializeBinaryToWriter = function(message, writer) {
3862
- var f = undefined;
3863
- f = message.getStatus();
3864
- if (f != null) {
3865
- writer.writeMessage(
3866
- 1,
3867
- f,
3868
- proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
3869
- );
3870
- }
3871
- f = message.getIssuesList();
3872
- if (f.length > 0) {
3873
- writer.writeRepeatedMessage(
3874
- 2,
3875
- f,
3876
- proto.gateway.web.v1.GitHubIssue.serializeBinaryToWriter
3877
- );
3878
- }
3879
- };
3880
-
3881
-
3882
- /**
3883
- * optional gateway.common.v1.ResponseStatus status = 1;
3884
- * @return {?proto.gateway.common.v1.ResponseStatus}
3885
- */
3886
- proto.gateway.web.v1.GitHubIssuesResponse.prototype.getStatus = function() {
3887
- return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
3888
- jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
3889
- };
3890
-
3891
-
3892
- /**
3893
- * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
3894
- * @return {!proto.gateway.web.v1.GitHubIssuesResponse} returns this
3895
- */
3896
- proto.gateway.web.v1.GitHubIssuesResponse.prototype.setStatus = function(value) {
3897
- return jspb.Message.setWrapperField(this, 1, value);
3898
- };
3899
-
3900
-
3901
- /**
3902
- * Clears the message field making it undefined.
3903
- * @return {!proto.gateway.web.v1.GitHubIssuesResponse} returns this
3904
- */
3905
- proto.gateway.web.v1.GitHubIssuesResponse.prototype.clearStatus = function() {
3906
- return this.setStatus(undefined);
3907
- };
3908
-
3909
-
3910
- /**
3911
- * Returns whether this field is set.
3912
- * @return {boolean}
3913
- */
3914
- proto.gateway.web.v1.GitHubIssuesResponse.prototype.hasStatus = function() {
3915
- return jspb.Message.getField(this, 1) != null;
3916
- };
3917
-
3918
-
3919
- /**
3920
- * repeated GitHubIssue issues = 2;
3921
- * @return {!Array<!proto.gateway.web.v1.GitHubIssue>}
3922
- */
3923
- proto.gateway.web.v1.GitHubIssuesResponse.prototype.getIssuesList = function() {
3924
- return /** @type{!Array<!proto.gateway.web.v1.GitHubIssue>} */ (
3925
- jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.GitHubIssue, 2));
3926
- };
3927
-
3928
-
3929
- /**
3930
- * @param {!Array<!proto.gateway.web.v1.GitHubIssue>} value
3931
- * @return {!proto.gateway.web.v1.GitHubIssuesResponse} returns this
3932
- */
3933
- proto.gateway.web.v1.GitHubIssuesResponse.prototype.setIssuesList = function(value) {
3934
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
3935
- };
3936
-
3937
-
3938
- /**
3939
- * @param {!proto.gateway.web.v1.GitHubIssue=} opt_value
3940
- * @param {number=} opt_index
3941
- * @return {!proto.gateway.web.v1.GitHubIssue}
3942
- */
3943
- proto.gateway.web.v1.GitHubIssuesResponse.prototype.addIssues = function(opt_value, opt_index) {
3944
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.GitHubIssue, opt_index);
3945
- };
3946
-
3947
-
3948
- /**
3949
- * Clears the list making it empty but non-null.
3950
- * @return {!proto.gateway.web.v1.GitHubIssuesResponse} returns this
3951
- */
3952
- proto.gateway.web.v1.GitHubIssuesResponse.prototype.clearIssuesList = function() {
3953
- return this.setIssuesList([]);
3954
- };
3955
-
3956
-
3957
-
3958
-
3959
-
3960
3153
  if (jspb.Message.GENERATE_TO_OBJECT) {
3961
3154
  /**
3962
3155
  * Creates an object representation of this proto.