@gitpod/local-app-api-grpcweb 0.1.5-test2 → 0.1.5-to-new-image.2

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.
@@ -13,10 +13,20 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  var supervisor$api_port_pb = require('@gitpod/supervisor-api-grpcweb/lib/port_pb.js');
19
25
  goog.object.extend(proto, supervisor$api_port_pb);
26
+ goog.exportSymbol('proto.localapp.AutoTunnelRequest', null, global);
27
+ goog.exportSymbol('proto.localapp.AutoTunnelResponse', null, global);
28
+ goog.exportSymbol('proto.localapp.ResolveSSHConnectionRequest', null, global);
29
+ goog.exportSymbol('proto.localapp.ResolveSSHConnectionResponse', null, global);
20
30
  goog.exportSymbol('proto.localapp.TunnelStatus', null, global);
21
31
  goog.exportSymbol('proto.localapp.TunnelStatusRequest', null, global);
22
32
  goog.exportSymbol('proto.localapp.TunnelStatusResponse', null, global);
@@ -83,6 +93,90 @@ if (goog.DEBUG && !COMPILED) {
83
93
  */
84
94
  proto.localapp.TunnelStatus.displayName = 'proto.localapp.TunnelStatus';
85
95
  }
96
+ /**
97
+ * Generated by JsPbCodeGenerator.
98
+ * @param {Array=} opt_data Optional initial data array, typically from a
99
+ * server response, or constructed directly in Javascript. The array is used
100
+ * in place and becomes part of the constructed object. It is not cloned.
101
+ * If no data is provided, the constructed object will be empty, but still
102
+ * valid.
103
+ * @extends {jspb.Message}
104
+ * @constructor
105
+ */
106
+ proto.localapp.AutoTunnelRequest = function(opt_data) {
107
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
108
+ };
109
+ goog.inherits(proto.localapp.AutoTunnelRequest, jspb.Message);
110
+ if (goog.DEBUG && !COMPILED) {
111
+ /**
112
+ * @public
113
+ * @override
114
+ */
115
+ proto.localapp.AutoTunnelRequest.displayName = 'proto.localapp.AutoTunnelRequest';
116
+ }
117
+ /**
118
+ * Generated by JsPbCodeGenerator.
119
+ * @param {Array=} opt_data Optional initial data array, typically from a
120
+ * server response, or constructed directly in Javascript. The array is used
121
+ * in place and becomes part of the constructed object. It is not cloned.
122
+ * If no data is provided, the constructed object will be empty, but still
123
+ * valid.
124
+ * @extends {jspb.Message}
125
+ * @constructor
126
+ */
127
+ proto.localapp.AutoTunnelResponse = function(opt_data) {
128
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
129
+ };
130
+ goog.inherits(proto.localapp.AutoTunnelResponse, jspb.Message);
131
+ if (goog.DEBUG && !COMPILED) {
132
+ /**
133
+ * @public
134
+ * @override
135
+ */
136
+ proto.localapp.AutoTunnelResponse.displayName = 'proto.localapp.AutoTunnelResponse';
137
+ }
138
+ /**
139
+ * Generated by JsPbCodeGenerator.
140
+ * @param {Array=} opt_data Optional initial data array, typically from a
141
+ * server response, or constructed directly in Javascript. The array is used
142
+ * in place and becomes part of the constructed object. It is not cloned.
143
+ * If no data is provided, the constructed object will be empty, but still
144
+ * valid.
145
+ * @extends {jspb.Message}
146
+ * @constructor
147
+ */
148
+ proto.localapp.ResolveSSHConnectionRequest = function(opt_data) {
149
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
150
+ };
151
+ goog.inherits(proto.localapp.ResolveSSHConnectionRequest, jspb.Message);
152
+ if (goog.DEBUG && !COMPILED) {
153
+ /**
154
+ * @public
155
+ * @override
156
+ */
157
+ proto.localapp.ResolveSSHConnectionRequest.displayName = 'proto.localapp.ResolveSSHConnectionRequest';
158
+ }
159
+ /**
160
+ * Generated by JsPbCodeGenerator.
161
+ * @param {Array=} opt_data Optional initial data array, typically from a
162
+ * server response, or constructed directly in Javascript. The array is used
163
+ * in place and becomes part of the constructed object. It is not cloned.
164
+ * If no data is provided, the constructed object will be empty, but still
165
+ * valid.
166
+ * @extends {jspb.Message}
167
+ * @constructor
168
+ */
169
+ proto.localapp.ResolveSSHConnectionResponse = function(opt_data) {
170
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
171
+ };
172
+ goog.inherits(proto.localapp.ResolveSSHConnectionResponse, jspb.Message);
173
+ if (goog.DEBUG && !COMPILED) {
174
+ /**
175
+ * @public
176
+ * @override
177
+ */
178
+ proto.localapp.ResolveSSHConnectionResponse.displayName = 'proto.localapp.ResolveSSHConnectionResponse';
179
+ }
86
180
 
87
181
 
88
182
 
@@ -115,7 +209,7 @@ proto.localapp.TunnelStatusRequest.prototype.toObject = function(opt_includeInst
115
209
  */
116
210
  proto.localapp.TunnelStatusRequest.toObject = function(includeInstance, msg) {
117
211
  var f, obj = {
118
- workspaceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
212
+ instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
119
213
  observe: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
120
214
  };
121
215
 
@@ -155,7 +249,7 @@ proto.localapp.TunnelStatusRequest.deserializeBinaryFromReader = function(msg, r
155
249
  switch (field) {
156
250
  case 1:
157
251
  var value = /** @type {string} */ (reader.readString());
158
- msg.setWorkspaceId(value);
252
+ msg.setInstanceId(value);
159
253
  break;
160
254
  case 2:
161
255
  var value = /** @type {boolean} */ (reader.readBool());
@@ -190,7 +284,7 @@ proto.localapp.TunnelStatusRequest.prototype.serializeBinary = function() {
190
284
  */
191
285
  proto.localapp.TunnelStatusRequest.serializeBinaryToWriter = function(message, writer) {
192
286
  var f = undefined;
193
- f = message.getWorkspaceId();
287
+ f = message.getInstanceId();
194
288
  if (f.length > 0) {
195
289
  writer.writeString(
196
290
  1,
@@ -208,10 +302,10 @@ proto.localapp.TunnelStatusRequest.serializeBinaryToWriter = function(message, w
208
302
 
209
303
 
210
304
  /**
211
- * optional string workspace_id = 1;
305
+ * optional string instance_id = 1;
212
306
  * @return {string}
213
307
  */
214
- proto.localapp.TunnelStatusRequest.prototype.getWorkspaceId = function() {
308
+ proto.localapp.TunnelStatusRequest.prototype.getInstanceId = function() {
215
309
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
216
310
  };
217
311
 
@@ -220,7 +314,7 @@ proto.localapp.TunnelStatusRequest.prototype.getWorkspaceId = function() {
220
314
  * @param {string} value
221
315
  * @return {!proto.localapp.TunnelStatusRequest} returns this
222
316
  */
223
- proto.localapp.TunnelStatusRequest.prototype.setWorkspaceId = function(value) {
317
+ proto.localapp.TunnelStatusRequest.prototype.setInstanceId = function(value) {
224
318
  return jspb.Message.setProto3StringField(this, 1, value);
225
319
  };
226
320
 
@@ -593,4 +687,585 @@ proto.localapp.TunnelStatus.prototype.setVisibility = function(value) {
593
687
  };
594
688
 
595
689
 
690
+
691
+
692
+
693
+ if (jspb.Message.GENERATE_TO_OBJECT) {
694
+ /**
695
+ * Creates an object representation of this proto.
696
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
697
+ * Optional fields that are not set will be set to undefined.
698
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
699
+ * For the list of reserved names please see:
700
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
701
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
702
+ * JSPB instance for transitional soy proto support:
703
+ * http://goto/soy-param-migration
704
+ * @return {!Object}
705
+ */
706
+ proto.localapp.AutoTunnelRequest.prototype.toObject = function(opt_includeInstance) {
707
+ return proto.localapp.AutoTunnelRequest.toObject(opt_includeInstance, this);
708
+ };
709
+
710
+
711
+ /**
712
+ * Static version of the {@see toObject} method.
713
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
714
+ * the JSPB instance for transitional soy proto support:
715
+ * http://goto/soy-param-migration
716
+ * @param {!proto.localapp.AutoTunnelRequest} msg The msg instance to transform.
717
+ * @return {!Object}
718
+ * @suppress {unusedLocalVariables} f is only used for nested messages
719
+ */
720
+ proto.localapp.AutoTunnelRequest.toObject = function(includeInstance, msg) {
721
+ var f, obj = {
722
+ instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
723
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
724
+ };
725
+
726
+ if (includeInstance) {
727
+ obj.$jspbMessageInstance = msg;
728
+ }
729
+ return obj;
730
+ };
731
+ }
732
+
733
+
734
+ /**
735
+ * Deserializes binary data (in protobuf wire format).
736
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
737
+ * @return {!proto.localapp.AutoTunnelRequest}
738
+ */
739
+ proto.localapp.AutoTunnelRequest.deserializeBinary = function(bytes) {
740
+ var reader = new jspb.BinaryReader(bytes);
741
+ var msg = new proto.localapp.AutoTunnelRequest;
742
+ return proto.localapp.AutoTunnelRequest.deserializeBinaryFromReader(msg, reader);
743
+ };
744
+
745
+
746
+ /**
747
+ * Deserializes binary data (in protobuf wire format) from the
748
+ * given reader into the given message object.
749
+ * @param {!proto.localapp.AutoTunnelRequest} msg The message object to deserialize into.
750
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
751
+ * @return {!proto.localapp.AutoTunnelRequest}
752
+ */
753
+ proto.localapp.AutoTunnelRequest.deserializeBinaryFromReader = function(msg, reader) {
754
+ while (reader.nextField()) {
755
+ if (reader.isEndGroup()) {
756
+ break;
757
+ }
758
+ var field = reader.getFieldNumber();
759
+ switch (field) {
760
+ case 1:
761
+ var value = /** @type {string} */ (reader.readString());
762
+ msg.setInstanceId(value);
763
+ break;
764
+ case 2:
765
+ var value = /** @type {boolean} */ (reader.readBool());
766
+ msg.setEnabled(value);
767
+ break;
768
+ default:
769
+ reader.skipField();
770
+ break;
771
+ }
772
+ }
773
+ return msg;
774
+ };
775
+
776
+
777
+ /**
778
+ * Serializes the message to binary data (in protobuf wire format).
779
+ * @return {!Uint8Array}
780
+ */
781
+ proto.localapp.AutoTunnelRequest.prototype.serializeBinary = function() {
782
+ var writer = new jspb.BinaryWriter();
783
+ proto.localapp.AutoTunnelRequest.serializeBinaryToWriter(this, writer);
784
+ return writer.getResultBuffer();
785
+ };
786
+
787
+
788
+ /**
789
+ * Serializes the given message to binary data (in protobuf wire
790
+ * format), writing to the given BinaryWriter.
791
+ * @param {!proto.localapp.AutoTunnelRequest} message
792
+ * @param {!jspb.BinaryWriter} writer
793
+ * @suppress {unusedLocalVariables} f is only used for nested messages
794
+ */
795
+ proto.localapp.AutoTunnelRequest.serializeBinaryToWriter = function(message, writer) {
796
+ var f = undefined;
797
+ f = message.getInstanceId();
798
+ if (f.length > 0) {
799
+ writer.writeString(
800
+ 1,
801
+ f
802
+ );
803
+ }
804
+ f = message.getEnabled();
805
+ if (f) {
806
+ writer.writeBool(
807
+ 2,
808
+ f
809
+ );
810
+ }
811
+ };
812
+
813
+
814
+ /**
815
+ * optional string instance_id = 1;
816
+ * @return {string}
817
+ */
818
+ proto.localapp.AutoTunnelRequest.prototype.getInstanceId = function() {
819
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
820
+ };
821
+
822
+
823
+ /**
824
+ * @param {string} value
825
+ * @return {!proto.localapp.AutoTunnelRequest} returns this
826
+ */
827
+ proto.localapp.AutoTunnelRequest.prototype.setInstanceId = function(value) {
828
+ return jspb.Message.setProto3StringField(this, 1, value);
829
+ };
830
+
831
+
832
+ /**
833
+ * optional bool enabled = 2;
834
+ * @return {boolean}
835
+ */
836
+ proto.localapp.AutoTunnelRequest.prototype.getEnabled = function() {
837
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
838
+ };
839
+
840
+
841
+ /**
842
+ * @param {boolean} value
843
+ * @return {!proto.localapp.AutoTunnelRequest} returns this
844
+ */
845
+ proto.localapp.AutoTunnelRequest.prototype.setEnabled = function(value) {
846
+ return jspb.Message.setProto3BooleanField(this, 2, value);
847
+ };
848
+
849
+
850
+
851
+
852
+
853
+ if (jspb.Message.GENERATE_TO_OBJECT) {
854
+ /**
855
+ * Creates an object representation of this proto.
856
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
857
+ * Optional fields that are not set will be set to undefined.
858
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
859
+ * For the list of reserved names please see:
860
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
861
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
862
+ * JSPB instance for transitional soy proto support:
863
+ * http://goto/soy-param-migration
864
+ * @return {!Object}
865
+ */
866
+ proto.localapp.AutoTunnelResponse.prototype.toObject = function(opt_includeInstance) {
867
+ return proto.localapp.AutoTunnelResponse.toObject(opt_includeInstance, this);
868
+ };
869
+
870
+
871
+ /**
872
+ * Static version of the {@see toObject} method.
873
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
874
+ * the JSPB instance for transitional soy proto support:
875
+ * http://goto/soy-param-migration
876
+ * @param {!proto.localapp.AutoTunnelResponse} msg The msg instance to transform.
877
+ * @return {!Object}
878
+ * @suppress {unusedLocalVariables} f is only used for nested messages
879
+ */
880
+ proto.localapp.AutoTunnelResponse.toObject = function(includeInstance, msg) {
881
+ var f, obj = {
882
+
883
+ };
884
+
885
+ if (includeInstance) {
886
+ obj.$jspbMessageInstance = msg;
887
+ }
888
+ return obj;
889
+ };
890
+ }
891
+
892
+
893
+ /**
894
+ * Deserializes binary data (in protobuf wire format).
895
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
896
+ * @return {!proto.localapp.AutoTunnelResponse}
897
+ */
898
+ proto.localapp.AutoTunnelResponse.deserializeBinary = function(bytes) {
899
+ var reader = new jspb.BinaryReader(bytes);
900
+ var msg = new proto.localapp.AutoTunnelResponse;
901
+ return proto.localapp.AutoTunnelResponse.deserializeBinaryFromReader(msg, reader);
902
+ };
903
+
904
+
905
+ /**
906
+ * Deserializes binary data (in protobuf wire format) from the
907
+ * given reader into the given message object.
908
+ * @param {!proto.localapp.AutoTunnelResponse} msg The message object to deserialize into.
909
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
910
+ * @return {!proto.localapp.AutoTunnelResponse}
911
+ */
912
+ proto.localapp.AutoTunnelResponse.deserializeBinaryFromReader = function(msg, reader) {
913
+ while (reader.nextField()) {
914
+ if (reader.isEndGroup()) {
915
+ break;
916
+ }
917
+ var field = reader.getFieldNumber();
918
+ switch (field) {
919
+ default:
920
+ reader.skipField();
921
+ break;
922
+ }
923
+ }
924
+ return msg;
925
+ };
926
+
927
+
928
+ /**
929
+ * Serializes the message to binary data (in protobuf wire format).
930
+ * @return {!Uint8Array}
931
+ */
932
+ proto.localapp.AutoTunnelResponse.prototype.serializeBinary = function() {
933
+ var writer = new jspb.BinaryWriter();
934
+ proto.localapp.AutoTunnelResponse.serializeBinaryToWriter(this, writer);
935
+ return writer.getResultBuffer();
936
+ };
937
+
938
+
939
+ /**
940
+ * Serializes the given message to binary data (in protobuf wire
941
+ * format), writing to the given BinaryWriter.
942
+ * @param {!proto.localapp.AutoTunnelResponse} message
943
+ * @param {!jspb.BinaryWriter} writer
944
+ * @suppress {unusedLocalVariables} f is only used for nested messages
945
+ */
946
+ proto.localapp.AutoTunnelResponse.serializeBinaryToWriter = function(message, writer) {
947
+ var f = undefined;
948
+ };
949
+
950
+
951
+
952
+
953
+
954
+ if (jspb.Message.GENERATE_TO_OBJECT) {
955
+ /**
956
+ * Creates an object representation of this proto.
957
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
958
+ * Optional fields that are not set will be set to undefined.
959
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
960
+ * For the list of reserved names please see:
961
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
962
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
963
+ * JSPB instance for transitional soy proto support:
964
+ * http://goto/soy-param-migration
965
+ * @return {!Object}
966
+ */
967
+ proto.localapp.ResolveSSHConnectionRequest.prototype.toObject = function(opt_includeInstance) {
968
+ return proto.localapp.ResolveSSHConnectionRequest.toObject(opt_includeInstance, this);
969
+ };
970
+
971
+
972
+ /**
973
+ * Static version of the {@see toObject} method.
974
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
975
+ * the JSPB instance for transitional soy proto support:
976
+ * http://goto/soy-param-migration
977
+ * @param {!proto.localapp.ResolveSSHConnectionRequest} msg The msg instance to transform.
978
+ * @return {!Object}
979
+ * @suppress {unusedLocalVariables} f is only used for nested messages
980
+ */
981
+ proto.localapp.ResolveSSHConnectionRequest.toObject = function(includeInstance, msg) {
982
+ var f, obj = {
983
+ instanceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
984
+ workspaceId: jspb.Message.getFieldWithDefault(msg, 2, "")
985
+ };
986
+
987
+ if (includeInstance) {
988
+ obj.$jspbMessageInstance = msg;
989
+ }
990
+ return obj;
991
+ };
992
+ }
993
+
994
+
995
+ /**
996
+ * Deserializes binary data (in protobuf wire format).
997
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
998
+ * @return {!proto.localapp.ResolveSSHConnectionRequest}
999
+ */
1000
+ proto.localapp.ResolveSSHConnectionRequest.deserializeBinary = function(bytes) {
1001
+ var reader = new jspb.BinaryReader(bytes);
1002
+ var msg = new proto.localapp.ResolveSSHConnectionRequest;
1003
+ return proto.localapp.ResolveSSHConnectionRequest.deserializeBinaryFromReader(msg, reader);
1004
+ };
1005
+
1006
+
1007
+ /**
1008
+ * Deserializes binary data (in protobuf wire format) from the
1009
+ * given reader into the given message object.
1010
+ * @param {!proto.localapp.ResolveSSHConnectionRequest} msg The message object to deserialize into.
1011
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1012
+ * @return {!proto.localapp.ResolveSSHConnectionRequest}
1013
+ */
1014
+ proto.localapp.ResolveSSHConnectionRequest.deserializeBinaryFromReader = function(msg, reader) {
1015
+ while (reader.nextField()) {
1016
+ if (reader.isEndGroup()) {
1017
+ break;
1018
+ }
1019
+ var field = reader.getFieldNumber();
1020
+ switch (field) {
1021
+ case 1:
1022
+ var value = /** @type {string} */ (reader.readString());
1023
+ msg.setInstanceId(value);
1024
+ break;
1025
+ case 2:
1026
+ var value = /** @type {string} */ (reader.readString());
1027
+ msg.setWorkspaceId(value);
1028
+ break;
1029
+ default:
1030
+ reader.skipField();
1031
+ break;
1032
+ }
1033
+ }
1034
+ return msg;
1035
+ };
1036
+
1037
+
1038
+ /**
1039
+ * Serializes the message to binary data (in protobuf wire format).
1040
+ * @return {!Uint8Array}
1041
+ */
1042
+ proto.localapp.ResolveSSHConnectionRequest.prototype.serializeBinary = function() {
1043
+ var writer = new jspb.BinaryWriter();
1044
+ proto.localapp.ResolveSSHConnectionRequest.serializeBinaryToWriter(this, writer);
1045
+ return writer.getResultBuffer();
1046
+ };
1047
+
1048
+
1049
+ /**
1050
+ * Serializes the given message to binary data (in protobuf wire
1051
+ * format), writing to the given BinaryWriter.
1052
+ * @param {!proto.localapp.ResolveSSHConnectionRequest} message
1053
+ * @param {!jspb.BinaryWriter} writer
1054
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1055
+ */
1056
+ proto.localapp.ResolveSSHConnectionRequest.serializeBinaryToWriter = function(message, writer) {
1057
+ var f = undefined;
1058
+ f = message.getInstanceId();
1059
+ if (f.length > 0) {
1060
+ writer.writeString(
1061
+ 1,
1062
+ f
1063
+ );
1064
+ }
1065
+ f = message.getWorkspaceId();
1066
+ if (f.length > 0) {
1067
+ writer.writeString(
1068
+ 2,
1069
+ f
1070
+ );
1071
+ }
1072
+ };
1073
+
1074
+
1075
+ /**
1076
+ * optional string instance_id = 1;
1077
+ * @return {string}
1078
+ */
1079
+ proto.localapp.ResolveSSHConnectionRequest.prototype.getInstanceId = function() {
1080
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1081
+ };
1082
+
1083
+
1084
+ /**
1085
+ * @param {string} value
1086
+ * @return {!proto.localapp.ResolveSSHConnectionRequest} returns this
1087
+ */
1088
+ proto.localapp.ResolveSSHConnectionRequest.prototype.setInstanceId = function(value) {
1089
+ return jspb.Message.setProto3StringField(this, 1, value);
1090
+ };
1091
+
1092
+
1093
+ /**
1094
+ * optional string workspace_id = 2;
1095
+ * @return {string}
1096
+ */
1097
+ proto.localapp.ResolveSSHConnectionRequest.prototype.getWorkspaceId = function() {
1098
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1099
+ };
1100
+
1101
+
1102
+ /**
1103
+ * @param {string} value
1104
+ * @return {!proto.localapp.ResolveSSHConnectionRequest} returns this
1105
+ */
1106
+ proto.localapp.ResolveSSHConnectionRequest.prototype.setWorkspaceId = function(value) {
1107
+ return jspb.Message.setProto3StringField(this, 2, value);
1108
+ };
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1115
+ /**
1116
+ * Creates an object representation of this proto.
1117
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1118
+ * Optional fields that are not set will be set to undefined.
1119
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1120
+ * For the list of reserved names please see:
1121
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1122
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1123
+ * JSPB instance for transitional soy proto support:
1124
+ * http://goto/soy-param-migration
1125
+ * @return {!Object}
1126
+ */
1127
+ proto.localapp.ResolveSSHConnectionResponse.prototype.toObject = function(opt_includeInstance) {
1128
+ return proto.localapp.ResolveSSHConnectionResponse.toObject(opt_includeInstance, this);
1129
+ };
1130
+
1131
+
1132
+ /**
1133
+ * Static version of the {@see toObject} method.
1134
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1135
+ * the JSPB instance for transitional soy proto support:
1136
+ * http://goto/soy-param-migration
1137
+ * @param {!proto.localapp.ResolveSSHConnectionResponse} msg The msg instance to transform.
1138
+ * @return {!Object}
1139
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1140
+ */
1141
+ proto.localapp.ResolveSSHConnectionResponse.toObject = function(includeInstance, msg) {
1142
+ var f, obj = {
1143
+ configFile: jspb.Message.getFieldWithDefault(msg, 1, ""),
1144
+ host: jspb.Message.getFieldWithDefault(msg, 2, "")
1145
+ };
1146
+
1147
+ if (includeInstance) {
1148
+ obj.$jspbMessageInstance = msg;
1149
+ }
1150
+ return obj;
1151
+ };
1152
+ }
1153
+
1154
+
1155
+ /**
1156
+ * Deserializes binary data (in protobuf wire format).
1157
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1158
+ * @return {!proto.localapp.ResolveSSHConnectionResponse}
1159
+ */
1160
+ proto.localapp.ResolveSSHConnectionResponse.deserializeBinary = function(bytes) {
1161
+ var reader = new jspb.BinaryReader(bytes);
1162
+ var msg = new proto.localapp.ResolveSSHConnectionResponse;
1163
+ return proto.localapp.ResolveSSHConnectionResponse.deserializeBinaryFromReader(msg, reader);
1164
+ };
1165
+
1166
+
1167
+ /**
1168
+ * Deserializes binary data (in protobuf wire format) from the
1169
+ * given reader into the given message object.
1170
+ * @param {!proto.localapp.ResolveSSHConnectionResponse} msg The message object to deserialize into.
1171
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1172
+ * @return {!proto.localapp.ResolveSSHConnectionResponse}
1173
+ */
1174
+ proto.localapp.ResolveSSHConnectionResponse.deserializeBinaryFromReader = function(msg, reader) {
1175
+ while (reader.nextField()) {
1176
+ if (reader.isEndGroup()) {
1177
+ break;
1178
+ }
1179
+ var field = reader.getFieldNumber();
1180
+ switch (field) {
1181
+ case 1:
1182
+ var value = /** @type {string} */ (reader.readString());
1183
+ msg.setConfigFile(value);
1184
+ break;
1185
+ case 2:
1186
+ var value = /** @type {string} */ (reader.readString());
1187
+ msg.setHost(value);
1188
+ break;
1189
+ default:
1190
+ reader.skipField();
1191
+ break;
1192
+ }
1193
+ }
1194
+ return msg;
1195
+ };
1196
+
1197
+
1198
+ /**
1199
+ * Serializes the message to binary data (in protobuf wire format).
1200
+ * @return {!Uint8Array}
1201
+ */
1202
+ proto.localapp.ResolveSSHConnectionResponse.prototype.serializeBinary = function() {
1203
+ var writer = new jspb.BinaryWriter();
1204
+ proto.localapp.ResolveSSHConnectionResponse.serializeBinaryToWriter(this, writer);
1205
+ return writer.getResultBuffer();
1206
+ };
1207
+
1208
+
1209
+ /**
1210
+ * Serializes the given message to binary data (in protobuf wire
1211
+ * format), writing to the given BinaryWriter.
1212
+ * @param {!proto.localapp.ResolveSSHConnectionResponse} message
1213
+ * @param {!jspb.BinaryWriter} writer
1214
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1215
+ */
1216
+ proto.localapp.ResolveSSHConnectionResponse.serializeBinaryToWriter = function(message, writer) {
1217
+ var f = undefined;
1218
+ f = message.getConfigFile();
1219
+ if (f.length > 0) {
1220
+ writer.writeString(
1221
+ 1,
1222
+ f
1223
+ );
1224
+ }
1225
+ f = message.getHost();
1226
+ if (f.length > 0) {
1227
+ writer.writeString(
1228
+ 2,
1229
+ f
1230
+ );
1231
+ }
1232
+ };
1233
+
1234
+
1235
+ /**
1236
+ * optional string config_file = 1;
1237
+ * @return {string}
1238
+ */
1239
+ proto.localapp.ResolveSSHConnectionResponse.prototype.getConfigFile = function() {
1240
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1241
+ };
1242
+
1243
+
1244
+ /**
1245
+ * @param {string} value
1246
+ * @return {!proto.localapp.ResolveSSHConnectionResponse} returns this
1247
+ */
1248
+ proto.localapp.ResolveSSHConnectionResponse.prototype.setConfigFile = function(value) {
1249
+ return jspb.Message.setProto3StringField(this, 1, value);
1250
+ };
1251
+
1252
+
1253
+ /**
1254
+ * optional string host = 2;
1255
+ * @return {string}
1256
+ */
1257
+ proto.localapp.ResolveSSHConnectionResponse.prototype.getHost = function() {
1258
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1259
+ };
1260
+
1261
+
1262
+ /**
1263
+ * @param {string} value
1264
+ * @return {!proto.localapp.ResolveSSHConnectionResponse} returns this
1265
+ */
1266
+ proto.localapp.ResolveSSHConnectionResponse.prototype.setHost = function(value) {
1267
+ return jspb.Message.setProto3StringField(this, 2, value);
1268
+ };
1269
+
1270
+
596
1271
  goog.object.extend(exports, proto.localapp);