@miradorlabs/web-grpc 3.9.0 → 3.10.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.9.0",
3
+ "version": "3.10.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",
@@ -209,6 +209,32 @@ export interface GitHubFilesResponse {
209
209
  files: GitHubFileResult[];
210
210
  }
211
211
 
212
+ export interface CreateInstallTermaPullRequestsRequest {
213
+ organizationId: string;
214
+ projectId: string;
215
+ /** GitHub owner/name, each reachable by the org's installation. */
216
+ repositories: string[];
217
+ }
218
+
219
+ export interface InstallTermaPullRequestResult {
220
+ repository: string;
221
+ /** Set on success, including an already-open setup pull request. */
222
+ number: number;
223
+ url: string;
224
+ /** Set on failure; this repository's failure never aborts the others. */
225
+ errorMessage: string;
226
+ /** The repository already has what `terma install` writes: no commit and no pull request. */
227
+ alreadyInstalled: boolean;
228
+ }
229
+
230
+ export interface CreateInstallTermaPullRequestsResponse {
231
+ status:
232
+ | ResponseStatus
233
+ | undefined;
234
+ /** One result per requested repository, in request order. */
235
+ results: InstallTermaPullRequestResult[];
236
+ }
237
+
212
238
  function createBaseGitHubScopeRequest(): GitHubScopeRequest {
213
239
  return { organizationId: "" };
214
240
  }
@@ -2653,6 +2679,357 @@ export const GitHubFilesResponse: MessageFns<GitHubFilesResponse> = {
2653
2679
  },
2654
2680
  };
2655
2681
 
2682
+ function createBaseCreateInstallTermaPullRequestsRequest(): CreateInstallTermaPullRequestsRequest {
2683
+ return { organizationId: "", projectId: "", repositories: [] };
2684
+ }
2685
+
2686
+ export const CreateInstallTermaPullRequestsRequest: MessageFns<CreateInstallTermaPullRequestsRequest> = {
2687
+ encode(message: CreateInstallTermaPullRequestsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2688
+ if (message.organizationId !== "") {
2689
+ writer.uint32(10).string(message.organizationId);
2690
+ }
2691
+ if (message.projectId !== "") {
2692
+ writer.uint32(18).string(message.projectId);
2693
+ }
2694
+ for (const v of message.repositories) {
2695
+ writer.uint32(26).string(v!);
2696
+ }
2697
+ return writer;
2698
+ },
2699
+
2700
+ decode(input: BinaryReader | Uint8Array, length?: number): CreateInstallTermaPullRequestsRequest {
2701
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2702
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2703
+ if (previousRecursionDepth >= 100) {
2704
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2705
+ }
2706
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2707
+ try {
2708
+ const end = length === undefined ? reader.len : reader.pos + length;
2709
+ const message = createBaseCreateInstallTermaPullRequestsRequest();
2710
+ while (reader.pos < end) {
2711
+ const tag = reader.uint32();
2712
+ switch (tag >>> 3) {
2713
+ case 1: {
2714
+ if (tag !== 10) {
2715
+ break;
2716
+ }
2717
+
2718
+ message.organizationId = reader.string();
2719
+ continue;
2720
+ }
2721
+ case 2: {
2722
+ if (tag !== 18) {
2723
+ break;
2724
+ }
2725
+
2726
+ message.projectId = reader.string();
2727
+ continue;
2728
+ }
2729
+ case 3: {
2730
+ if (tag !== 26) {
2731
+ break;
2732
+ }
2733
+
2734
+ message.repositories.push(reader.string());
2735
+ continue;
2736
+ }
2737
+ }
2738
+ if ((tag & 7) === 4 || tag === 0) {
2739
+ break;
2740
+ }
2741
+ reader.skip(tag & 7);
2742
+ }
2743
+ return message;
2744
+ } finally {
2745
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2746
+ }
2747
+ },
2748
+
2749
+ fromJSON(object: any): CreateInstallTermaPullRequestsRequest {
2750
+ return {
2751
+ organizationId: isSet(object.organizationId)
2752
+ ? globalThis.String(object.organizationId)
2753
+ : isSet(object.organization_id)
2754
+ ? globalThis.String(object.organization_id)
2755
+ : "",
2756
+ projectId: isSet(object.projectId)
2757
+ ? globalThis.String(object.projectId)
2758
+ : isSet(object.project_id)
2759
+ ? globalThis.String(object.project_id)
2760
+ : "",
2761
+ repositories: globalThis.Array.isArray(object?.repositories)
2762
+ ? object.repositories.map((e: any) => globalThis.String(e))
2763
+ : [],
2764
+ };
2765
+ },
2766
+
2767
+ toJSON(message: CreateInstallTermaPullRequestsRequest): unknown {
2768
+ const obj: any = {};
2769
+ if (message.organizationId !== "") {
2770
+ obj.organizationId = message.organizationId;
2771
+ }
2772
+ if (message.projectId !== "") {
2773
+ obj.projectId = message.projectId;
2774
+ }
2775
+ if (message.repositories?.length) {
2776
+ obj.repositories = message.repositories;
2777
+ }
2778
+ return obj;
2779
+ },
2780
+
2781
+ create<I extends Exact<DeepPartial<CreateInstallTermaPullRequestsRequest>, I>>(
2782
+ base?: I,
2783
+ ): CreateInstallTermaPullRequestsRequest {
2784
+ return CreateInstallTermaPullRequestsRequest.fromPartial(base ?? ({} as any));
2785
+ },
2786
+ fromPartial<I extends Exact<DeepPartial<CreateInstallTermaPullRequestsRequest>, I>>(
2787
+ object: I,
2788
+ ): CreateInstallTermaPullRequestsRequest {
2789
+ const message = createBaseCreateInstallTermaPullRequestsRequest();
2790
+ message.organizationId = object.organizationId ?? "";
2791
+ message.projectId = object.projectId ?? "";
2792
+ message.repositories = object.repositories?.map((e) => e) || [];
2793
+ return message;
2794
+ },
2795
+ };
2796
+
2797
+ function createBaseInstallTermaPullRequestResult(): InstallTermaPullRequestResult {
2798
+ return { repository: "", number: 0, url: "", errorMessage: "", alreadyInstalled: false };
2799
+ }
2800
+
2801
+ export const InstallTermaPullRequestResult: MessageFns<InstallTermaPullRequestResult> = {
2802
+ encode(message: InstallTermaPullRequestResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2803
+ if (message.repository !== "") {
2804
+ writer.uint32(10).string(message.repository);
2805
+ }
2806
+ if (message.number !== 0) {
2807
+ writer.uint32(16).int64(message.number);
2808
+ }
2809
+ if (message.url !== "") {
2810
+ writer.uint32(26).string(message.url);
2811
+ }
2812
+ if (message.errorMessage !== "") {
2813
+ writer.uint32(34).string(message.errorMessage);
2814
+ }
2815
+ if (message.alreadyInstalled !== false) {
2816
+ writer.uint32(40).bool(message.alreadyInstalled);
2817
+ }
2818
+ return writer;
2819
+ },
2820
+
2821
+ decode(input: BinaryReader | Uint8Array, length?: number): InstallTermaPullRequestResult {
2822
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2823
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2824
+ if (previousRecursionDepth >= 100) {
2825
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2826
+ }
2827
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2828
+ try {
2829
+ const end = length === undefined ? reader.len : reader.pos + length;
2830
+ const message = createBaseInstallTermaPullRequestResult();
2831
+ while (reader.pos < end) {
2832
+ const tag = reader.uint32();
2833
+ switch (tag >>> 3) {
2834
+ case 1: {
2835
+ if (tag !== 10) {
2836
+ break;
2837
+ }
2838
+
2839
+ message.repository = reader.string();
2840
+ continue;
2841
+ }
2842
+ case 2: {
2843
+ if (tag !== 16) {
2844
+ break;
2845
+ }
2846
+
2847
+ message.number = longToNumber(reader.int64());
2848
+ continue;
2849
+ }
2850
+ case 3: {
2851
+ if (tag !== 26) {
2852
+ break;
2853
+ }
2854
+
2855
+ message.url = reader.string();
2856
+ continue;
2857
+ }
2858
+ case 4: {
2859
+ if (tag !== 34) {
2860
+ break;
2861
+ }
2862
+
2863
+ message.errorMessage = reader.string();
2864
+ continue;
2865
+ }
2866
+ case 5: {
2867
+ if (tag !== 40) {
2868
+ break;
2869
+ }
2870
+
2871
+ message.alreadyInstalled = reader.bool();
2872
+ continue;
2873
+ }
2874
+ }
2875
+ if ((tag & 7) === 4 || tag === 0) {
2876
+ break;
2877
+ }
2878
+ reader.skip(tag & 7);
2879
+ }
2880
+ return message;
2881
+ } finally {
2882
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2883
+ }
2884
+ },
2885
+
2886
+ fromJSON(object: any): InstallTermaPullRequestResult {
2887
+ return {
2888
+ repository: isSet(object.repository) ? globalThis.String(object.repository) : "",
2889
+ number: isSet(object.number) ? globalThis.Number(object.number) : 0,
2890
+ url: isSet(object.url) ? globalThis.String(object.url) : "",
2891
+ errorMessage: isSet(object.errorMessage)
2892
+ ? globalThis.String(object.errorMessage)
2893
+ : isSet(object.error_message)
2894
+ ? globalThis.String(object.error_message)
2895
+ : "",
2896
+ alreadyInstalled: isSet(object.alreadyInstalled)
2897
+ ? globalThis.Boolean(object.alreadyInstalled)
2898
+ : isSet(object.already_installed)
2899
+ ? globalThis.Boolean(object.already_installed)
2900
+ : false,
2901
+ };
2902
+ },
2903
+
2904
+ toJSON(message: InstallTermaPullRequestResult): unknown {
2905
+ const obj: any = {};
2906
+ if (message.repository !== "") {
2907
+ obj.repository = message.repository;
2908
+ }
2909
+ if (message.number !== 0) {
2910
+ obj.number = Math.round(message.number);
2911
+ }
2912
+ if (message.url !== "") {
2913
+ obj.url = message.url;
2914
+ }
2915
+ if (message.errorMessage !== "") {
2916
+ obj.errorMessage = message.errorMessage;
2917
+ }
2918
+ if (message.alreadyInstalled !== false) {
2919
+ obj.alreadyInstalled = message.alreadyInstalled;
2920
+ }
2921
+ return obj;
2922
+ },
2923
+
2924
+ create<I extends Exact<DeepPartial<InstallTermaPullRequestResult>, I>>(base?: I): InstallTermaPullRequestResult {
2925
+ return InstallTermaPullRequestResult.fromPartial(base ?? ({} as any));
2926
+ },
2927
+ fromPartial<I extends Exact<DeepPartial<InstallTermaPullRequestResult>, I>>(
2928
+ object: I,
2929
+ ): InstallTermaPullRequestResult {
2930
+ const message = createBaseInstallTermaPullRequestResult();
2931
+ message.repository = object.repository ?? "";
2932
+ message.number = object.number ?? 0;
2933
+ message.url = object.url ?? "";
2934
+ message.errorMessage = object.errorMessage ?? "";
2935
+ message.alreadyInstalled = object.alreadyInstalled ?? false;
2936
+ return message;
2937
+ },
2938
+ };
2939
+
2940
+ function createBaseCreateInstallTermaPullRequestsResponse(): CreateInstallTermaPullRequestsResponse {
2941
+ return { status: undefined, results: [] };
2942
+ }
2943
+
2944
+ export const CreateInstallTermaPullRequestsResponse: MessageFns<CreateInstallTermaPullRequestsResponse> = {
2945
+ encode(message: CreateInstallTermaPullRequestsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2946
+ if (message.status !== undefined) {
2947
+ ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
2948
+ }
2949
+ for (const v of message.results) {
2950
+ InstallTermaPullRequestResult.encode(v!, writer.uint32(18).fork()).join();
2951
+ }
2952
+ return writer;
2953
+ },
2954
+
2955
+ decode(input: BinaryReader | Uint8Array, length?: number): CreateInstallTermaPullRequestsResponse {
2956
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2957
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2958
+ if (previousRecursionDepth >= 100) {
2959
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2960
+ }
2961
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2962
+ try {
2963
+ const end = length === undefined ? reader.len : reader.pos + length;
2964
+ const message = createBaseCreateInstallTermaPullRequestsResponse();
2965
+ while (reader.pos < end) {
2966
+ const tag = reader.uint32();
2967
+ switch (tag >>> 3) {
2968
+ case 1: {
2969
+ if (tag !== 10) {
2970
+ break;
2971
+ }
2972
+
2973
+ message.status = ResponseStatus.decode(reader, reader.uint32());
2974
+ continue;
2975
+ }
2976
+ case 2: {
2977
+ if (tag !== 18) {
2978
+ break;
2979
+ }
2980
+
2981
+ message.results.push(InstallTermaPullRequestResult.decode(reader, reader.uint32()));
2982
+ continue;
2983
+ }
2984
+ }
2985
+ if ((tag & 7) === 4 || tag === 0) {
2986
+ break;
2987
+ }
2988
+ reader.skip(tag & 7);
2989
+ }
2990
+ return message;
2991
+ } finally {
2992
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2993
+ }
2994
+ },
2995
+
2996
+ fromJSON(object: any): CreateInstallTermaPullRequestsResponse {
2997
+ return {
2998
+ status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
2999
+ results: globalThis.Array.isArray(object?.results)
3000
+ ? object.results.map((e: any) => InstallTermaPullRequestResult.fromJSON(e))
3001
+ : [],
3002
+ };
3003
+ },
3004
+
3005
+ toJSON(message: CreateInstallTermaPullRequestsResponse): unknown {
3006
+ const obj: any = {};
3007
+ if (message.status !== undefined) {
3008
+ obj.status = ResponseStatus.toJSON(message.status);
3009
+ }
3010
+ if (message.results?.length) {
3011
+ obj.results = message.results.map((e) => InstallTermaPullRequestResult.toJSON(e));
3012
+ }
3013
+ return obj;
3014
+ },
3015
+
3016
+ create<I extends Exact<DeepPartial<CreateInstallTermaPullRequestsResponse>, I>>(
3017
+ base?: I,
3018
+ ): CreateInstallTermaPullRequestsResponse {
3019
+ return CreateInstallTermaPullRequestsResponse.fromPartial(base ?? ({} as any));
3020
+ },
3021
+ fromPartial<I extends Exact<DeepPartial<CreateInstallTermaPullRequestsResponse>, I>>(
3022
+ object: I,
3023
+ ): CreateInstallTermaPullRequestsResponse {
3024
+ const message = createBaseCreateInstallTermaPullRequestsResponse();
3025
+ message.status = (object.status !== undefined && object.status !== null)
3026
+ ? ResponseStatus.fromPartial(object.status)
3027
+ : undefined;
3028
+ message.results = object.results?.map((e) => InstallTermaPullRequestResult.fromPartial(e)) || [];
3029
+ return message;
3030
+ },
3031
+ };
3032
+
2656
3033
  /**
2657
3034
  * One GitHub App connection per organization. Credentials never leave the
2658
3035
  * account service; installation tokens are minted on demand and never stored.
@@ -2666,6 +3043,11 @@ export interface GitHubGatewayService {
2666
3043
  ListGitHubPullRequests(request: GitHubPullRequestsRequest, metadata?: Metadata): Promise<GitHubPullRequestsResponse>;
2667
3044
  ListGitHubIssues(request: GitHubIssuesRequest, metadata?: Metadata): Promise<GitHubIssuesResponse>;
2668
3045
  ListGitHubFiles(request: GitHubFilesRequest, metadata?: Metadata): Promise<GitHubFilesResponse>;
3046
+ /** Org admins only. Opens one pull request per repository that sets Terma up for the team. */
3047
+ CreateInstallTermaPullRequests(
3048
+ request: CreateInstallTermaPullRequestsRequest,
3049
+ metadata?: Metadata,
3050
+ ): Promise<CreateInstallTermaPullRequestsResponse>;
2669
3051
  ReceiveGitHubWebhook(request: GitHubWebhookRequest, metadata?: Metadata): Promise<GitHubEmptyResponse>;
2670
3052
  }
2671
3053
 
@@ -2684,6 +3066,7 @@ export class GitHubGatewayServiceClientImpl implements GitHubGatewayService {
2684
3066
  this.ListGitHubPullRequests = this.ListGitHubPullRequests.bind(this);
2685
3067
  this.ListGitHubIssues = this.ListGitHubIssues.bind(this);
2686
3068
  this.ListGitHubFiles = this.ListGitHubFiles.bind(this);
3069
+ this.CreateInstallTermaPullRequests = this.CreateInstallTermaPullRequests.bind(this);
2687
3070
  this.ReceiveGitHubWebhook = this.ReceiveGitHubWebhook.bind(this);
2688
3071
  }
2689
3072
  GetGitHubConnector(request: GitHubScopeRequest, metadata?: Metadata): Promise<GitHubStatusResponse> {
@@ -2734,6 +3117,15 @@ export class GitHubGatewayServiceClientImpl implements GitHubGatewayService {
2734
3117
  return promise.then((data) => GitHubFilesResponse.decode(new BinaryReader(data)));
2735
3118
  }
2736
3119
 
3120
+ CreateInstallTermaPullRequests(
3121
+ request: CreateInstallTermaPullRequestsRequest,
3122
+ metadata?: Metadata,
3123
+ ): Promise<CreateInstallTermaPullRequestsResponse> {
3124
+ const data = CreateInstallTermaPullRequestsRequest.encode(request).finish();
3125
+ const promise = this.rpc.request(this.service, "CreateInstallTermaPullRequests", data, metadata);
3126
+ return promise.then((data) => CreateInstallTermaPullRequestsResponse.decode(new BinaryReader(data)));
3127
+ }
3128
+
2737
3129
  ReceiveGitHubWebhook(request: GitHubWebhookRequest, metadata?: Metadata): Promise<GitHubEmptyResponse> {
2738
3130
  const data = GitHubWebhookRequest.encode(request).finish();
2739
3131
  const promise = this.rpc.request(this.service, "ReceiveGitHubWebhook", data, metadata);
@@ -5,6 +5,28 @@ var grpc = require('@grpc/grpc-js');
5
5
  var proto_gateway_web_v1_github_connector_pb = require('../../../../proto/gateway/web/v1/github_connector_pb.js');
6
6
  var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
7
7
 
8
+ function serialize_gateway_web_v1_CreateInstallTermaPullRequestsRequest(arg) {
9
+ if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.CreateInstallTermaPullRequestsRequest)) {
10
+ throw new Error('Expected argument of type gateway.web.v1.CreateInstallTermaPullRequestsRequest');
11
+ }
12
+ return Buffer.from(arg.serializeBinary());
13
+ }
14
+
15
+ function deserialize_gateway_web_v1_CreateInstallTermaPullRequestsRequest(buffer_arg) {
16
+ return proto_gateway_web_v1_github_connector_pb.CreateInstallTermaPullRequestsRequest.deserializeBinary(new Uint8Array(buffer_arg));
17
+ }
18
+
19
+ function serialize_gateway_web_v1_CreateInstallTermaPullRequestsResponse(arg) {
20
+ if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.CreateInstallTermaPullRequestsResponse)) {
21
+ throw new Error('Expected argument of type gateway.web.v1.CreateInstallTermaPullRequestsResponse');
22
+ }
23
+ return Buffer.from(arg.serializeBinary());
24
+ }
25
+
26
+ function deserialize_gateway_web_v1_CreateInstallTermaPullRequestsResponse(buffer_arg) {
27
+ return proto_gateway_web_v1_github_connector_pb.CreateInstallTermaPullRequestsResponse.deserializeBinary(new Uint8Array(buffer_arg));
28
+ }
29
+
8
30
  function serialize_gateway_web_v1_GitHubBeginResponse(arg) {
9
31
  if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.GitHubBeginResponse)) {
10
32
  throw new Error('Expected argument of type gateway.web.v1.GitHubBeginResponse');
@@ -251,6 +273,18 @@ var GitHubGatewayServiceService = exports.GitHubGatewayServiceService = {
251
273
  responseSerialize: serialize_gateway_web_v1_GitHubFilesResponse,
252
274
  responseDeserialize: deserialize_gateway_web_v1_GitHubFilesResponse,
253
275
  },
276
+ // Org admins only. Opens one pull request per repository that sets Terma up for the team.
277
+ createInstallTermaPullRequests: {
278
+ path: '/gateway.web.v1.GitHubGatewayService/CreateInstallTermaPullRequests',
279
+ requestStream: false,
280
+ responseStream: false,
281
+ requestType: proto_gateway_web_v1_github_connector_pb.CreateInstallTermaPullRequestsRequest,
282
+ responseType: proto_gateway_web_v1_github_connector_pb.CreateInstallTermaPullRequestsResponse,
283
+ requestSerialize: serialize_gateway_web_v1_CreateInstallTermaPullRequestsRequest,
284
+ requestDeserialize: deserialize_gateway_web_v1_CreateInstallTermaPullRequestsRequest,
285
+ responseSerialize: serialize_gateway_web_v1_CreateInstallTermaPullRequestsResponse,
286
+ responseDeserialize: deserialize_gateway_web_v1_CreateInstallTermaPullRequestsResponse,
287
+ },
254
288
  receiveGitHubWebhook: {
255
289
  path: '/gateway.web.v1.GitHubGatewayService/ReceiveGitHubWebhook',
256
290
  requestStream: false,
@@ -17,6 +17,8 @@ var global = globalThis;
17
17
 
18
18
  var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
19
19
  goog.object.extend(proto, proto_gateway_common_v1_status_pb);
20
+ goog.exportSymbol('proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest', null, global);
21
+ goog.exportSymbol('proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse', null, global);
20
22
  goog.exportSymbol('proto.gateway.web.v1.GitHubBeginResponse', null, global);
21
23
  goog.exportSymbol('proto.gateway.web.v1.GitHubCompleteRequest', null, global);
22
24
  goog.exportSymbol('proto.gateway.web.v1.GitHubConnection', null, global);
@@ -38,6 +40,7 @@ goog.exportSymbol('proto.gateway.web.v1.GitHubRepository', null, global);
38
40
  goog.exportSymbol('proto.gateway.web.v1.GitHubScopeRequest', null, global);
39
41
  goog.exportSymbol('proto.gateway.web.v1.GitHubStatusResponse', null, global);
40
42
  goog.exportSymbol('proto.gateway.web.v1.GitHubWebhookRequest', null, global);
43
+ goog.exportSymbol('proto.gateway.web.v1.InstallTermaPullRequestResult', null, global);
41
44
  /**
42
45
  * Generated by JsPbCodeGenerator.
43
46
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -458,6 +461,69 @@ if (goog.DEBUG && !COMPILED) {
458
461
  */
459
462
  proto.gateway.web.v1.GitHubFilesResponse.displayName = 'proto.gateway.web.v1.GitHubFilesResponse';
460
463
  }
464
+ /**
465
+ * Generated by JsPbCodeGenerator.
466
+ * @param {Array=} opt_data Optional initial data array, typically from a
467
+ * server response, or constructed directly in Javascript. The array is used
468
+ * in place and becomes part of the constructed object. It is not cloned.
469
+ * If no data is provided, the constructed object will be empty, but still
470
+ * valid.
471
+ * @extends {jspb.Message}
472
+ * @constructor
473
+ */
474
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest = function(opt_data) {
475
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.repeatedFields_, null);
476
+ };
477
+ goog.inherits(proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest, jspb.Message);
478
+ if (goog.DEBUG && !COMPILED) {
479
+ /**
480
+ * @public
481
+ * @override
482
+ */
483
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.displayName = 'proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest';
484
+ }
485
+ /**
486
+ * Generated by JsPbCodeGenerator.
487
+ * @param {Array=} opt_data Optional initial data array, typically from a
488
+ * server response, or constructed directly in Javascript. The array is used
489
+ * in place and becomes part of the constructed object. It is not cloned.
490
+ * If no data is provided, the constructed object will be empty, but still
491
+ * valid.
492
+ * @extends {jspb.Message}
493
+ * @constructor
494
+ */
495
+ proto.gateway.web.v1.InstallTermaPullRequestResult = function(opt_data) {
496
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
497
+ };
498
+ goog.inherits(proto.gateway.web.v1.InstallTermaPullRequestResult, jspb.Message);
499
+ if (goog.DEBUG && !COMPILED) {
500
+ /**
501
+ * @public
502
+ * @override
503
+ */
504
+ proto.gateway.web.v1.InstallTermaPullRequestResult.displayName = 'proto.gateway.web.v1.InstallTermaPullRequestResult';
505
+ }
506
+ /**
507
+ * Generated by JsPbCodeGenerator.
508
+ * @param {Array=} opt_data Optional initial data array, typically from a
509
+ * server response, or constructed directly in Javascript. The array is used
510
+ * in place and becomes part of the constructed object. It is not cloned.
511
+ * If no data is provided, the constructed object will be empty, but still
512
+ * valid.
513
+ * @extends {jspb.Message}
514
+ * @constructor
515
+ */
516
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse = function(opt_data) {
517
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.repeatedFields_, null);
518
+ };
519
+ goog.inherits(proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse, jspb.Message);
520
+ if (goog.DEBUG && !COMPILED) {
521
+ /**
522
+ * @public
523
+ * @override
524
+ */
525
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.displayName = 'proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse';
526
+ }
461
527
 
462
528
 
463
529
 
@@ -5148,4 +5214,681 @@ proto.gateway.web.v1.GitHubFilesResponse.prototype.clearFilesList = function() {
5148
5214
  };
5149
5215
 
5150
5216
 
5217
+
5218
+ /**
5219
+ * List of repeated fields within this message type.
5220
+ * @private {!Array<number>}
5221
+ * @const
5222
+ */
5223
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.repeatedFields_ = [3];
5224
+
5225
+
5226
+
5227
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5228
+ /**
5229
+ * Creates an object representation of this proto.
5230
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5231
+ * Optional fields that are not set will be set to undefined.
5232
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5233
+ * For the list of reserved names please see:
5234
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5235
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5236
+ * JSPB instance for transitional soy proto support:
5237
+ * http://goto/soy-param-migration
5238
+ * @return {!Object}
5239
+ */
5240
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.toObject = function(opt_includeInstance) {
5241
+ return proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.toObject(opt_includeInstance, this);
5242
+ };
5243
+
5244
+
5245
+ /**
5246
+ * Static version of the {@see toObject} method.
5247
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5248
+ * the JSPB instance for transitional soy proto support:
5249
+ * http://goto/soy-param-migration
5250
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} msg The msg instance to transform.
5251
+ * @return {!Object}
5252
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5253
+ */
5254
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.toObject = function(includeInstance, msg) {
5255
+ var f, obj = {
5256
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
5257
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
5258
+ repositoriesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
5259
+ };
5260
+
5261
+ if (includeInstance) {
5262
+ obj.$jspbMessageInstance = msg;
5263
+ }
5264
+ return obj;
5265
+ };
5266
+ }
5267
+
5268
+
5269
+ /**
5270
+ * Deserializes binary data (in protobuf wire format).
5271
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5272
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest}
5273
+ */
5274
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.deserializeBinary = function(bytes) {
5275
+ var reader = new jspb.BinaryReader(bytes);
5276
+ var msg = new proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest;
5277
+ return proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.deserializeBinaryFromReader(msg, reader);
5278
+ };
5279
+
5280
+
5281
+ /**
5282
+ * Deserializes binary data (in protobuf wire format) from the
5283
+ * given reader into the given message object.
5284
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} msg The message object to deserialize into.
5285
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5286
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest}
5287
+ */
5288
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.deserializeBinaryFromReader = function(msg, reader) {
5289
+ while (reader.nextField()) {
5290
+ if (reader.isEndGroup()) {
5291
+ break;
5292
+ }
5293
+ var field = reader.getFieldNumber();
5294
+ switch (field) {
5295
+ case 1:
5296
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5297
+ msg.setOrganizationId(value);
5298
+ break;
5299
+ case 2:
5300
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5301
+ msg.setProjectId(value);
5302
+ break;
5303
+ case 3:
5304
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5305
+ msg.addRepositories(value);
5306
+ break;
5307
+ default:
5308
+ reader.skipField();
5309
+ break;
5310
+ }
5311
+ }
5312
+ return msg;
5313
+ };
5314
+
5315
+
5316
+ /**
5317
+ * Serializes the message to binary data (in protobuf wire format).
5318
+ * @return {!Uint8Array}
5319
+ */
5320
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.serializeBinary = function() {
5321
+ var writer = new jspb.BinaryWriter();
5322
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.serializeBinaryToWriter(this, writer);
5323
+ return writer.getResultBuffer();
5324
+ };
5325
+
5326
+
5327
+ /**
5328
+ * Serializes the given message to binary data (in protobuf wire
5329
+ * format), writing to the given BinaryWriter.
5330
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} message
5331
+ * @param {!jspb.BinaryWriter} writer
5332
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5333
+ */
5334
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.serializeBinaryToWriter = function(message, writer) {
5335
+ var f = undefined;
5336
+ f = message.getOrganizationId();
5337
+ if (f.length > 0) {
5338
+ writer.writeString(
5339
+ 1,
5340
+ f
5341
+ );
5342
+ }
5343
+ f = message.getProjectId();
5344
+ if (f.length > 0) {
5345
+ writer.writeString(
5346
+ 2,
5347
+ f
5348
+ );
5349
+ }
5350
+ f = message.getRepositoriesList();
5351
+ if (f.length > 0) {
5352
+ writer.writeRepeatedString(
5353
+ 3,
5354
+ f
5355
+ );
5356
+ }
5357
+ };
5358
+
5359
+
5360
+ /**
5361
+ * optional string organization_id = 1;
5362
+ * @return {string}
5363
+ */
5364
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.getOrganizationId = function() {
5365
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5366
+ };
5367
+
5368
+
5369
+ /**
5370
+ * @param {string} value
5371
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5372
+ */
5373
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.setOrganizationId = function(value) {
5374
+ return jspb.Message.setProto3StringField(this, 1, value);
5375
+ };
5376
+
5377
+
5378
+ /**
5379
+ * optional string project_id = 2;
5380
+ * @return {string}
5381
+ */
5382
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.getProjectId = function() {
5383
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5384
+ };
5385
+
5386
+
5387
+ /**
5388
+ * @param {string} value
5389
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5390
+ */
5391
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.setProjectId = function(value) {
5392
+ return jspb.Message.setProto3StringField(this, 2, value);
5393
+ };
5394
+
5395
+
5396
+ /**
5397
+ * repeated string repositories = 3;
5398
+ * @return {!Array<string>}
5399
+ */
5400
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.getRepositoriesList = function() {
5401
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
5402
+ };
5403
+
5404
+
5405
+ /**
5406
+ * @param {!Array<string>} value
5407
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5408
+ */
5409
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.setRepositoriesList = function(value) {
5410
+ return jspb.Message.setField(this, 3, value || []);
5411
+ };
5412
+
5413
+
5414
+ /**
5415
+ * @param {string} value
5416
+ * @param {number=} opt_index
5417
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5418
+ */
5419
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.addRepositories = function(value, opt_index) {
5420
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
5421
+ };
5422
+
5423
+
5424
+ /**
5425
+ * Clears the list making it empty but non-null.
5426
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest} returns this
5427
+ */
5428
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest.prototype.clearRepositoriesList = function() {
5429
+ return this.setRepositoriesList([]);
5430
+ };
5431
+
5432
+
5433
+
5434
+
5435
+
5436
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5437
+ /**
5438
+ * Creates an object representation of this proto.
5439
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5440
+ * Optional fields that are not set will be set to undefined.
5441
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5442
+ * For the list of reserved names please see:
5443
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5444
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5445
+ * JSPB instance for transitional soy proto support:
5446
+ * http://goto/soy-param-migration
5447
+ * @return {!Object}
5448
+ */
5449
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.toObject = function(opt_includeInstance) {
5450
+ return proto.gateway.web.v1.InstallTermaPullRequestResult.toObject(opt_includeInstance, this);
5451
+ };
5452
+
5453
+
5454
+ /**
5455
+ * Static version of the {@see toObject} method.
5456
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5457
+ * the JSPB instance for transitional soy proto support:
5458
+ * http://goto/soy-param-migration
5459
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult} msg The msg instance to transform.
5460
+ * @return {!Object}
5461
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5462
+ */
5463
+ proto.gateway.web.v1.InstallTermaPullRequestResult.toObject = function(includeInstance, msg) {
5464
+ var f, obj = {
5465
+ repository: jspb.Message.getFieldWithDefault(msg, 1, ""),
5466
+ number: jspb.Message.getFieldWithDefault(msg, 2, 0),
5467
+ url: jspb.Message.getFieldWithDefault(msg, 3, ""),
5468
+ errorMessage: jspb.Message.getFieldWithDefault(msg, 4, ""),
5469
+ alreadyInstalled: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
5470
+ };
5471
+
5472
+ if (includeInstance) {
5473
+ obj.$jspbMessageInstance = msg;
5474
+ }
5475
+ return obj;
5476
+ };
5477
+ }
5478
+
5479
+
5480
+ /**
5481
+ * Deserializes binary data (in protobuf wire format).
5482
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5483
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult}
5484
+ */
5485
+ proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinary = function(bytes) {
5486
+ var reader = new jspb.BinaryReader(bytes);
5487
+ var msg = new proto.gateway.web.v1.InstallTermaPullRequestResult;
5488
+ return proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinaryFromReader(msg, reader);
5489
+ };
5490
+
5491
+
5492
+ /**
5493
+ * Deserializes binary data (in protobuf wire format) from the
5494
+ * given reader into the given message object.
5495
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult} msg The message object to deserialize into.
5496
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5497
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult}
5498
+ */
5499
+ proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinaryFromReader = function(msg, reader) {
5500
+ while (reader.nextField()) {
5501
+ if (reader.isEndGroup()) {
5502
+ break;
5503
+ }
5504
+ var field = reader.getFieldNumber();
5505
+ switch (field) {
5506
+ case 1:
5507
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5508
+ msg.setRepository(value);
5509
+ break;
5510
+ case 2:
5511
+ var value = /** @type {number} */ (reader.readInt64());
5512
+ msg.setNumber(value);
5513
+ break;
5514
+ case 3:
5515
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5516
+ msg.setUrl(value);
5517
+ break;
5518
+ case 4:
5519
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5520
+ msg.setErrorMessage(value);
5521
+ break;
5522
+ case 5:
5523
+ var value = /** @type {boolean} */ (reader.readBool());
5524
+ msg.setAlreadyInstalled(value);
5525
+ break;
5526
+ default:
5527
+ reader.skipField();
5528
+ break;
5529
+ }
5530
+ }
5531
+ return msg;
5532
+ };
5533
+
5534
+
5535
+ /**
5536
+ * Serializes the message to binary data (in protobuf wire format).
5537
+ * @return {!Uint8Array}
5538
+ */
5539
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.serializeBinary = function() {
5540
+ var writer = new jspb.BinaryWriter();
5541
+ proto.gateway.web.v1.InstallTermaPullRequestResult.serializeBinaryToWriter(this, writer);
5542
+ return writer.getResultBuffer();
5543
+ };
5544
+
5545
+
5546
+ /**
5547
+ * Serializes the given message to binary data (in protobuf wire
5548
+ * format), writing to the given BinaryWriter.
5549
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult} message
5550
+ * @param {!jspb.BinaryWriter} writer
5551
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5552
+ */
5553
+ proto.gateway.web.v1.InstallTermaPullRequestResult.serializeBinaryToWriter = function(message, writer) {
5554
+ var f = undefined;
5555
+ f = message.getRepository();
5556
+ if (f.length > 0) {
5557
+ writer.writeString(
5558
+ 1,
5559
+ f
5560
+ );
5561
+ }
5562
+ f = message.getNumber();
5563
+ if (f !== 0) {
5564
+ writer.writeInt64(
5565
+ 2,
5566
+ f
5567
+ );
5568
+ }
5569
+ f = message.getUrl();
5570
+ if (f.length > 0) {
5571
+ writer.writeString(
5572
+ 3,
5573
+ f
5574
+ );
5575
+ }
5576
+ f = message.getErrorMessage();
5577
+ if (f.length > 0) {
5578
+ writer.writeString(
5579
+ 4,
5580
+ f
5581
+ );
5582
+ }
5583
+ f = message.getAlreadyInstalled();
5584
+ if (f) {
5585
+ writer.writeBool(
5586
+ 5,
5587
+ f
5588
+ );
5589
+ }
5590
+ };
5591
+
5592
+
5593
+ /**
5594
+ * optional string repository = 1;
5595
+ * @return {string}
5596
+ */
5597
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getRepository = function() {
5598
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5599
+ };
5600
+
5601
+
5602
+ /**
5603
+ * @param {string} value
5604
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5605
+ */
5606
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setRepository = function(value) {
5607
+ return jspb.Message.setProto3StringField(this, 1, value);
5608
+ };
5609
+
5610
+
5611
+ /**
5612
+ * optional int64 number = 2;
5613
+ * @return {number}
5614
+ */
5615
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getNumber = function() {
5616
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5617
+ };
5618
+
5619
+
5620
+ /**
5621
+ * @param {number} value
5622
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5623
+ */
5624
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setNumber = function(value) {
5625
+ return jspb.Message.setProto3IntField(this, 2, value);
5626
+ };
5627
+
5628
+
5629
+ /**
5630
+ * optional string url = 3;
5631
+ * @return {string}
5632
+ */
5633
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getUrl = function() {
5634
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5635
+ };
5636
+
5637
+
5638
+ /**
5639
+ * @param {string} value
5640
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5641
+ */
5642
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setUrl = function(value) {
5643
+ return jspb.Message.setProto3StringField(this, 3, value);
5644
+ };
5645
+
5646
+
5647
+ /**
5648
+ * optional string error_message = 4;
5649
+ * @return {string}
5650
+ */
5651
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getErrorMessage = function() {
5652
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5653
+ };
5654
+
5655
+
5656
+ /**
5657
+ * @param {string} value
5658
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5659
+ */
5660
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setErrorMessage = function(value) {
5661
+ return jspb.Message.setProto3StringField(this, 4, value);
5662
+ };
5663
+
5664
+
5665
+ /**
5666
+ * optional bool already_installed = 5;
5667
+ * @return {boolean}
5668
+ */
5669
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.getAlreadyInstalled = function() {
5670
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
5671
+ };
5672
+
5673
+
5674
+ /**
5675
+ * @param {boolean} value
5676
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult} returns this
5677
+ */
5678
+ proto.gateway.web.v1.InstallTermaPullRequestResult.prototype.setAlreadyInstalled = function(value) {
5679
+ return jspb.Message.setProto3BooleanField(this, 5, value);
5680
+ };
5681
+
5682
+
5683
+
5684
+ /**
5685
+ * List of repeated fields within this message type.
5686
+ * @private {!Array<number>}
5687
+ * @const
5688
+ */
5689
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.repeatedFields_ = [2];
5690
+
5691
+
5692
+
5693
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5694
+ /**
5695
+ * Creates an object representation of this proto.
5696
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5697
+ * Optional fields that are not set will be set to undefined.
5698
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5699
+ * For the list of reserved names please see:
5700
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5701
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5702
+ * JSPB instance for transitional soy proto support:
5703
+ * http://goto/soy-param-migration
5704
+ * @return {!Object}
5705
+ */
5706
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.toObject = function(opt_includeInstance) {
5707
+ return proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.toObject(opt_includeInstance, this);
5708
+ };
5709
+
5710
+
5711
+ /**
5712
+ * Static version of the {@see toObject} method.
5713
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5714
+ * the JSPB instance for transitional soy proto support:
5715
+ * http://goto/soy-param-migration
5716
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} msg The msg instance to transform.
5717
+ * @return {!Object}
5718
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5719
+ */
5720
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.toObject = function(includeInstance, msg) {
5721
+ var f, obj = {
5722
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
5723
+ resultsList: jspb.Message.toObjectList(msg.getResultsList(),
5724
+ proto.gateway.web.v1.InstallTermaPullRequestResult.toObject, includeInstance)
5725
+ };
5726
+
5727
+ if (includeInstance) {
5728
+ obj.$jspbMessageInstance = msg;
5729
+ }
5730
+ return obj;
5731
+ };
5732
+ }
5733
+
5734
+
5735
+ /**
5736
+ * Deserializes binary data (in protobuf wire format).
5737
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5738
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse}
5739
+ */
5740
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.deserializeBinary = function(bytes) {
5741
+ var reader = new jspb.BinaryReader(bytes);
5742
+ var msg = new proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse;
5743
+ return proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.deserializeBinaryFromReader(msg, reader);
5744
+ };
5745
+
5746
+
5747
+ /**
5748
+ * Deserializes binary data (in protobuf wire format) from the
5749
+ * given reader into the given message object.
5750
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} msg The message object to deserialize into.
5751
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5752
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse}
5753
+ */
5754
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.deserializeBinaryFromReader = function(msg, reader) {
5755
+ while (reader.nextField()) {
5756
+ if (reader.isEndGroup()) {
5757
+ break;
5758
+ }
5759
+ var field = reader.getFieldNumber();
5760
+ switch (field) {
5761
+ case 1:
5762
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
5763
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
5764
+ msg.setStatus(value);
5765
+ break;
5766
+ case 2:
5767
+ var value = new proto.gateway.web.v1.InstallTermaPullRequestResult;
5768
+ reader.readMessage(value,proto.gateway.web.v1.InstallTermaPullRequestResult.deserializeBinaryFromReader);
5769
+ msg.addResults(value);
5770
+ break;
5771
+ default:
5772
+ reader.skipField();
5773
+ break;
5774
+ }
5775
+ }
5776
+ return msg;
5777
+ };
5778
+
5779
+
5780
+ /**
5781
+ * Serializes the message to binary data (in protobuf wire format).
5782
+ * @return {!Uint8Array}
5783
+ */
5784
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.serializeBinary = function() {
5785
+ var writer = new jspb.BinaryWriter();
5786
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.serializeBinaryToWriter(this, writer);
5787
+ return writer.getResultBuffer();
5788
+ };
5789
+
5790
+
5791
+ /**
5792
+ * Serializes the given message to binary data (in protobuf wire
5793
+ * format), writing to the given BinaryWriter.
5794
+ * @param {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} message
5795
+ * @param {!jspb.BinaryWriter} writer
5796
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5797
+ */
5798
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.serializeBinaryToWriter = function(message, writer) {
5799
+ var f = undefined;
5800
+ f = message.getStatus();
5801
+ if (f != null) {
5802
+ writer.writeMessage(
5803
+ 1,
5804
+ f,
5805
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
5806
+ );
5807
+ }
5808
+ f = message.getResultsList();
5809
+ if (f.length > 0) {
5810
+ writer.writeRepeatedMessage(
5811
+ 2,
5812
+ f,
5813
+ proto.gateway.web.v1.InstallTermaPullRequestResult.serializeBinaryToWriter
5814
+ );
5815
+ }
5816
+ };
5817
+
5818
+
5819
+ /**
5820
+ * optional gateway.common.v1.ResponseStatus status = 1;
5821
+ * @return {?proto.gateway.common.v1.ResponseStatus}
5822
+ */
5823
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.getStatus = function() {
5824
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
5825
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
5826
+ };
5827
+
5828
+
5829
+ /**
5830
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
5831
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5832
+ */
5833
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.setStatus = function(value) {
5834
+ return jspb.Message.setWrapperField(this, 1, value);
5835
+ };
5836
+
5837
+
5838
+ /**
5839
+ * Clears the message field making it undefined.
5840
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5841
+ */
5842
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.clearStatus = function() {
5843
+ return this.setStatus(undefined);
5844
+ };
5845
+
5846
+
5847
+ /**
5848
+ * Returns whether this field is set.
5849
+ * @return {boolean}
5850
+ */
5851
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.hasStatus = function() {
5852
+ return jspb.Message.getField(this, 1) != null;
5853
+ };
5854
+
5855
+
5856
+ /**
5857
+ * repeated InstallTermaPullRequestResult results = 2;
5858
+ * @return {!Array<!proto.gateway.web.v1.InstallTermaPullRequestResult>}
5859
+ */
5860
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.getResultsList = function() {
5861
+ return /** @type{!Array<!proto.gateway.web.v1.InstallTermaPullRequestResult>} */ (
5862
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.InstallTermaPullRequestResult, 2));
5863
+ };
5864
+
5865
+
5866
+ /**
5867
+ * @param {!Array<!proto.gateway.web.v1.InstallTermaPullRequestResult>} value
5868
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5869
+ */
5870
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.setResultsList = function(value) {
5871
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
5872
+ };
5873
+
5874
+
5875
+ /**
5876
+ * @param {!proto.gateway.web.v1.InstallTermaPullRequestResult=} opt_value
5877
+ * @param {number=} opt_index
5878
+ * @return {!proto.gateway.web.v1.InstallTermaPullRequestResult}
5879
+ */
5880
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.addResults = function(opt_value, opt_index) {
5881
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.InstallTermaPullRequestResult, opt_index);
5882
+ };
5883
+
5884
+
5885
+ /**
5886
+ * Clears the list making it empty but non-null.
5887
+ * @return {!proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse} returns this
5888
+ */
5889
+ proto.gateway.web.v1.CreateInstallTermaPullRequestsResponse.prototype.clearResultsList = function() {
5890
+ return this.setResultsList([]);
5891
+ };
5892
+
5893
+
5151
5894
  goog.object.extend(exports, proto.gateway.web.v1);