@lansweeper/installer-grpc 0.0.2 → 0.0.4

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.
@@ -2,9 +2,9 @@
2
2
  // versions:
3
3
  // protoc-gen-go v1.28.1
4
4
  // protoc v3.6.1
5
- // source: installer.proto
5
+ // source: proto/installer.proto
6
6
 
7
- package proto
7
+ package generated_go
8
8
 
9
9
  import (
10
10
  protoreflect "google.golang.org/protobuf/reflect/protoreflect"
@@ -32,7 +32,7 @@ type GenerateInstallerRequest struct {
32
32
  func (x *GenerateInstallerRequest) Reset() {
33
33
  *x = GenerateInstallerRequest{}
34
34
  if protoimpl.UnsafeEnabled {
35
- mi := &file_installer_proto_msgTypes[0]
35
+ mi := &file_proto_installer_proto_msgTypes[0]
36
36
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
37
37
  ms.StoreMessageInfo(mi)
38
38
  }
@@ -45,7 +45,7 @@ func (x *GenerateInstallerRequest) String() string {
45
45
  func (*GenerateInstallerRequest) ProtoMessage() {}
46
46
 
47
47
  func (x *GenerateInstallerRequest) ProtoReflect() protoreflect.Message {
48
- mi := &file_installer_proto_msgTypes[0]
48
+ mi := &file_proto_installer_proto_msgTypes[0]
49
49
  if protoimpl.UnsafeEnabled && x != nil {
50
50
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
51
51
  if ms.LoadMessageInfo() == nil {
@@ -58,7 +58,7 @@ func (x *GenerateInstallerRequest) ProtoReflect() protoreflect.Message {
58
58
 
59
59
  // Deprecated: Use GenerateInstallerRequest.ProtoReflect.Descriptor instead.
60
60
  func (*GenerateInstallerRequest) Descriptor() ([]byte, []int) {
61
- return file_installer_proto_rawDescGZIP(), []int{0}
61
+ return file_proto_installer_proto_rawDescGZIP(), []int{0}
62
62
  }
63
63
 
64
64
  func (x *GenerateInstallerRequest) GetClientId() string {
@@ -86,7 +86,7 @@ type GenerateInstallerResponse struct {
86
86
  func (x *GenerateInstallerResponse) Reset() {
87
87
  *x = GenerateInstallerResponse{}
88
88
  if protoimpl.UnsafeEnabled {
89
- mi := &file_installer_proto_msgTypes[1]
89
+ mi := &file_proto_installer_proto_msgTypes[1]
90
90
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
91
91
  ms.StoreMessageInfo(mi)
92
92
  }
@@ -99,7 +99,7 @@ func (x *GenerateInstallerResponse) String() string {
99
99
  func (*GenerateInstallerResponse) ProtoMessage() {}
100
100
 
101
101
  func (x *GenerateInstallerResponse) ProtoReflect() protoreflect.Message {
102
- mi := &file_installer_proto_msgTypes[1]
102
+ mi := &file_proto_installer_proto_msgTypes[1]
103
103
  if protoimpl.UnsafeEnabled && x != nil {
104
104
  ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
105
105
  if ms.LoadMessageInfo() == nil {
@@ -112,7 +112,7 @@ func (x *GenerateInstallerResponse) ProtoReflect() protoreflect.Message {
112
112
 
113
113
  // Deprecated: Use GenerateInstallerResponse.ProtoReflect.Descriptor instead.
114
114
  func (*GenerateInstallerResponse) Descriptor() ([]byte, []int) {
115
- return file_installer_proto_rawDescGZIP(), []int{1}
115
+ return file_proto_installer_proto_rawDescGZIP(), []int{1}
116
116
  }
117
117
 
118
118
  func (x *GenerateInstallerResponse) GetSuccess() bool {
@@ -122,68 +122,264 @@ func (x *GenerateInstallerResponse) GetSuccess() bool {
122
122
  return false
123
123
  }
124
124
 
125
- var File_installer_proto protoreflect.FileDescriptor
126
-
127
- var file_installer_proto_rawDesc = []byte{
128
- 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
129
- 0x6f, 0x12, 0x17, 0x6c, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e,
130
- 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x22, 0x5c, 0x0a, 0x18, 0x47, 0x65,
131
- 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52,
132
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
133
- 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e,
134
- 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65,
135
- 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65,
136
- 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x35, 0x0a, 0x19, 0x47, 0x65, 0x6e, 0x65,
137
- 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73,
138
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
139
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x32,
140
- 0x90, 0x01, 0x0a, 0x10, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x53, 0x65, 0x72,
141
- 0x76, 0x69, 0x63, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65,
142
- 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x31, 0x2e, 0x6c, 0x61, 0x6e, 0x73,
125
+ type NullableString struct {
126
+ state protoimpl.MessageState
127
+ sizeCache protoimpl.SizeCache
128
+ unknownFields protoimpl.UnknownFields
129
+
130
+ // Types that are assignable to Kind:
131
+ // *NullableString_Data
132
+ Kind isNullableString_Kind `protobuf_oneof:"kind"`
133
+ }
134
+
135
+ func (x *NullableString) Reset() {
136
+ *x = NullableString{}
137
+ if protoimpl.UnsafeEnabled {
138
+ mi := &file_proto_installer_proto_msgTypes[2]
139
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
140
+ ms.StoreMessageInfo(mi)
141
+ }
142
+ }
143
+
144
+ func (x *NullableString) String() string {
145
+ return protoimpl.X.MessageStringOf(x)
146
+ }
147
+
148
+ func (*NullableString) ProtoMessage() {}
149
+
150
+ func (x *NullableString) ProtoReflect() protoreflect.Message {
151
+ mi := &file_proto_installer_proto_msgTypes[2]
152
+ if protoimpl.UnsafeEnabled && x != nil {
153
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
154
+ if ms.LoadMessageInfo() == nil {
155
+ ms.StoreMessageInfo(mi)
156
+ }
157
+ return ms
158
+ }
159
+ return mi.MessageOf(x)
160
+ }
161
+
162
+ // Deprecated: Use NullableString.ProtoReflect.Descriptor instead.
163
+ func (*NullableString) Descriptor() ([]byte, []int) {
164
+ return file_proto_installer_proto_rawDescGZIP(), []int{2}
165
+ }
166
+
167
+ func (m *NullableString) GetKind() isNullableString_Kind {
168
+ if m != nil {
169
+ return m.Kind
170
+ }
171
+ return nil
172
+ }
173
+
174
+ func (x *NullableString) GetData() string {
175
+ if x, ok := x.GetKind().(*NullableString_Data); ok {
176
+ return x.Data
177
+ }
178
+ return ""
179
+ }
180
+
181
+ type isNullableString_Kind interface {
182
+ isNullableString_Kind()
183
+ }
184
+
185
+ type NullableString_Data struct {
186
+ Data string `protobuf:"bytes,1,opt,name=data,proto3,oneof"`
187
+ }
188
+
189
+ func (*NullableString_Data) isNullableString_Kind() {}
190
+
191
+ type GetInstallerUrlRequest struct {
192
+ state protoimpl.MessageState
193
+ sizeCache protoimpl.SizeCache
194
+ unknownFields protoimpl.UnknownFields
195
+
196
+ ClientId *NullableString `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
197
+ }
198
+
199
+ func (x *GetInstallerUrlRequest) Reset() {
200
+ *x = GetInstallerUrlRequest{}
201
+ if protoimpl.UnsafeEnabled {
202
+ mi := &file_proto_installer_proto_msgTypes[3]
203
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
204
+ ms.StoreMessageInfo(mi)
205
+ }
206
+ }
207
+
208
+ func (x *GetInstallerUrlRequest) String() string {
209
+ return protoimpl.X.MessageStringOf(x)
210
+ }
211
+
212
+ func (*GetInstallerUrlRequest) ProtoMessage() {}
213
+
214
+ func (x *GetInstallerUrlRequest) ProtoReflect() protoreflect.Message {
215
+ mi := &file_proto_installer_proto_msgTypes[3]
216
+ if protoimpl.UnsafeEnabled && x != nil {
217
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
218
+ if ms.LoadMessageInfo() == nil {
219
+ ms.StoreMessageInfo(mi)
220
+ }
221
+ return ms
222
+ }
223
+ return mi.MessageOf(x)
224
+ }
225
+
226
+ // Deprecated: Use GetInstallerUrlRequest.ProtoReflect.Descriptor instead.
227
+ func (*GetInstallerUrlRequest) Descriptor() ([]byte, []int) {
228
+ return file_proto_installer_proto_rawDescGZIP(), []int{3}
229
+ }
230
+
231
+ func (x *GetInstallerUrlRequest) GetClientId() *NullableString {
232
+ if x != nil {
233
+ return x.ClientId
234
+ }
235
+ return nil
236
+ }
237
+
238
+ type GetInstallerUrlResponse struct {
239
+ state protoimpl.MessageState
240
+ sizeCache protoimpl.SizeCache
241
+ unknownFields protoimpl.UnknownFields
242
+
243
+ Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
244
+ Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
245
+ }
246
+
247
+ func (x *GetInstallerUrlResponse) Reset() {
248
+ *x = GetInstallerUrlResponse{}
249
+ if protoimpl.UnsafeEnabled {
250
+ mi := &file_proto_installer_proto_msgTypes[4]
251
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
252
+ ms.StoreMessageInfo(mi)
253
+ }
254
+ }
255
+
256
+ func (x *GetInstallerUrlResponse) String() string {
257
+ return protoimpl.X.MessageStringOf(x)
258
+ }
259
+
260
+ func (*GetInstallerUrlResponse) ProtoMessage() {}
261
+
262
+ func (x *GetInstallerUrlResponse) ProtoReflect() protoreflect.Message {
263
+ mi := &file_proto_installer_proto_msgTypes[4]
264
+ if protoimpl.UnsafeEnabled && x != nil {
265
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
266
+ if ms.LoadMessageInfo() == nil {
267
+ ms.StoreMessageInfo(mi)
268
+ }
269
+ return ms
270
+ }
271
+ return mi.MessageOf(x)
272
+ }
273
+
274
+ // Deprecated: Use GetInstallerUrlResponse.ProtoReflect.Descriptor instead.
275
+ func (*GetInstallerUrlResponse) Descriptor() ([]byte, []int) {
276
+ return file_proto_installer_proto_rawDescGZIP(), []int{4}
277
+ }
278
+
279
+ func (x *GetInstallerUrlResponse) GetUrl() string {
280
+ if x != nil {
281
+ return x.Url
282
+ }
283
+ return ""
284
+ }
285
+
286
+ func (x *GetInstallerUrlResponse) GetSuccess() bool {
287
+ if x != nil {
288
+ return x.Success
289
+ }
290
+ return false
291
+ }
292
+
293
+ var File_proto_installer_proto protoreflect.FileDescriptor
294
+
295
+ var file_proto_installer_proto_rawDesc = []byte{
296
+ 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65,
297
+ 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x6c, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65,
298
+ 0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31,
299
+ 0x22, 0x5c, 0x0a, 0x18, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74,
300
+ 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09,
301
+ 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
302
+ 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69,
303
+ 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
304
+ 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x35,
305
+ 0x0a, 0x19, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c,
306
+ 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73,
307
+ 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75,
308
+ 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x2e, 0x0a, 0x0e, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c,
309
+ 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
310
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x0a,
311
+ 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x5e, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74,
312
+ 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
313
+ 0x44, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
314
+ 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6c, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e,
315
+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6c,
316
+ 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x63, 0x6c, 0x69,
317
+ 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74,
318
+ 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
319
+ 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
320
+ 0x72, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20,
321
+ 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x32, 0x88, 0x02, 0x0a,
322
+ 0x10, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
323
+ 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73,
324
+ 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x31, 0x2e, 0x6c, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65,
325
+ 0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31,
326
+ 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c,
327
+ 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x6c, 0x61, 0x6e, 0x73,
143
328
  0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72,
144
329
  0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74,
145
- 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x6c,
146
- 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c,
147
- 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49,
148
- 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
149
- 0x22, 0x00, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70,
150
- 0x72, 0x6f, 0x74, 0x6f, 0x33,
330
+ 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
331
+ 0x76, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x55,
332
+ 0x72, 0x6c, 0x12, 0x2f, 0x2e, 0x6c, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e,
333
+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,
334
+ 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x71, 0x75,
335
+ 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x6c, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65, 0x70, 0x65, 0x72,
336
+ 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
337
+ 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73,
338
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x10, 0x5a, 0x0e, 0x2e, 0x2f, 0x67, 0x65, 0x6e,
339
+ 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
340
+ 0x33,
151
341
  }
152
342
 
153
343
  var (
154
- file_installer_proto_rawDescOnce sync.Once
155
- file_installer_proto_rawDescData = file_installer_proto_rawDesc
344
+ file_proto_installer_proto_rawDescOnce sync.Once
345
+ file_proto_installer_proto_rawDescData = file_proto_installer_proto_rawDesc
156
346
  )
157
347
 
158
- func file_installer_proto_rawDescGZIP() []byte {
159
- file_installer_proto_rawDescOnce.Do(func() {
160
- file_installer_proto_rawDescData = protoimpl.X.CompressGZIP(file_installer_proto_rawDescData)
348
+ func file_proto_installer_proto_rawDescGZIP() []byte {
349
+ file_proto_installer_proto_rawDescOnce.Do(func() {
350
+ file_proto_installer_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_installer_proto_rawDescData)
161
351
  })
162
- return file_installer_proto_rawDescData
352
+ return file_proto_installer_proto_rawDescData
163
353
  }
164
354
 
165
- var file_installer_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
166
- var file_installer_proto_goTypes = []interface{}{
355
+ var file_proto_installer_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
356
+ var file_proto_installer_proto_goTypes = []interface{}{
167
357
  (*GenerateInstallerRequest)(nil), // 0: lansweeper.installer.v1.GenerateInstallerRequest
168
358
  (*GenerateInstallerResponse)(nil), // 1: lansweeper.installer.v1.GenerateInstallerResponse
359
+ (*NullableString)(nil), // 2: lansweeper.installer.v1.NullableString
360
+ (*GetInstallerUrlRequest)(nil), // 3: lansweeper.installer.v1.GetInstallerUrlRequest
361
+ (*GetInstallerUrlResponse)(nil), // 4: lansweeper.installer.v1.GetInstallerUrlResponse
169
362
  }
170
- var file_installer_proto_depIdxs = []int32{
171
- 0, // 0: lansweeper.installer.v1.InstallerService.GenerateInstaller:input_type -> lansweeper.installer.v1.GenerateInstallerRequest
172
- 1, // 1: lansweeper.installer.v1.InstallerService.GenerateInstaller:output_type -> lansweeper.installer.v1.GenerateInstallerResponse
173
- 1, // [1:2] is the sub-list for method output_type
174
- 0, // [0:1] is the sub-list for method input_type
175
- 0, // [0:0] is the sub-list for extension type_name
176
- 0, // [0:0] is the sub-list for extension extendee
177
- 0, // [0:0] is the sub-list for field type_name
363
+ var file_proto_installer_proto_depIdxs = []int32{
364
+ 2, // 0: lansweeper.installer.v1.GetInstallerUrlRequest.client_id:type_name -> lansweeper.installer.v1.NullableString
365
+ 0, // 1: lansweeper.installer.v1.InstallerService.GenerateInstaller:input_type -> lansweeper.installer.v1.GenerateInstallerRequest
366
+ 3, // 2: lansweeper.installer.v1.InstallerService.GetInstallerUrl:input_type -> lansweeper.installer.v1.GetInstallerUrlRequest
367
+ 1, // 3: lansweeper.installer.v1.InstallerService.GenerateInstaller:output_type -> lansweeper.installer.v1.GenerateInstallerResponse
368
+ 4, // 4: lansweeper.installer.v1.InstallerService.GetInstallerUrl:output_type -> lansweeper.installer.v1.GetInstallerUrlResponse
369
+ 3, // [3:5] is the sub-list for method output_type
370
+ 1, // [1:3] is the sub-list for method input_type
371
+ 1, // [1:1] is the sub-list for extension type_name
372
+ 1, // [1:1] is the sub-list for extension extendee
373
+ 0, // [0:1] is the sub-list for field type_name
178
374
  }
179
375
 
180
- func init() { file_installer_proto_init() }
181
- func file_installer_proto_init() {
182
- if File_installer_proto != nil {
376
+ func init() { file_proto_installer_proto_init() }
377
+ func file_proto_installer_proto_init() {
378
+ if File_proto_installer_proto != nil {
183
379
  return
184
380
  }
185
381
  if !protoimpl.UnsafeEnabled {
186
- file_installer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
382
+ file_proto_installer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
187
383
  switch v := v.(*GenerateInstallerRequest); i {
188
384
  case 0:
189
385
  return &v.state
@@ -195,7 +391,7 @@ func file_installer_proto_init() {
195
391
  return nil
196
392
  }
197
393
  }
198
- file_installer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
394
+ file_proto_installer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
199
395
  switch v := v.(*GenerateInstallerResponse); i {
200
396
  case 0:
201
397
  return &v.state
@@ -207,23 +403,62 @@ func file_installer_proto_init() {
207
403
  return nil
208
404
  }
209
405
  }
406
+ file_proto_installer_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
407
+ switch v := v.(*NullableString); i {
408
+ case 0:
409
+ return &v.state
410
+ case 1:
411
+ return &v.sizeCache
412
+ case 2:
413
+ return &v.unknownFields
414
+ default:
415
+ return nil
416
+ }
417
+ }
418
+ file_proto_installer_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
419
+ switch v := v.(*GetInstallerUrlRequest); i {
420
+ case 0:
421
+ return &v.state
422
+ case 1:
423
+ return &v.sizeCache
424
+ case 2:
425
+ return &v.unknownFields
426
+ default:
427
+ return nil
428
+ }
429
+ }
430
+ file_proto_installer_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
431
+ switch v := v.(*GetInstallerUrlResponse); i {
432
+ case 0:
433
+ return &v.state
434
+ case 1:
435
+ return &v.sizeCache
436
+ case 2:
437
+ return &v.unknownFields
438
+ default:
439
+ return nil
440
+ }
441
+ }
442
+ }
443
+ file_proto_installer_proto_msgTypes[2].OneofWrappers = []interface{}{
444
+ (*NullableString_Data)(nil),
210
445
  }
211
446
  type x struct{}
212
447
  out := protoimpl.TypeBuilder{
213
448
  File: protoimpl.DescBuilder{
214
449
  GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
215
- RawDescriptor: file_installer_proto_rawDesc,
450
+ RawDescriptor: file_proto_installer_proto_rawDesc,
216
451
  NumEnums: 0,
217
- NumMessages: 2,
452
+ NumMessages: 5,
218
453
  NumExtensions: 0,
219
454
  NumServices: 1,
220
455
  },
221
- GoTypes: file_installer_proto_goTypes,
222
- DependencyIndexes: file_installer_proto_depIdxs,
223
- MessageInfos: file_installer_proto_msgTypes,
456
+ GoTypes: file_proto_installer_proto_goTypes,
457
+ DependencyIndexes: file_proto_installer_proto_depIdxs,
458
+ MessageInfos: file_proto_installer_proto_msgTypes,
224
459
  }.Build()
225
- File_installer_proto = out.File
226
- file_installer_proto_rawDesc = nil
227
- file_installer_proto_goTypes = nil
228
- file_installer_proto_depIdxs = nil
460
+ File_proto_installer_proto = out.File
461
+ file_proto_installer_proto_rawDesc = nil
462
+ file_proto_installer_proto_goTypes = nil
463
+ file_proto_installer_proto_depIdxs = nil
229
464
  }
@@ -2,9 +2,9 @@
2
2
  // versions:
3
3
  // - protoc-gen-go-grpc v1.2.0
4
4
  // - protoc v3.6.1
5
- // source: installer.proto
5
+ // source: proto/installer.proto
6
6
 
7
- package proto
7
+ package generated_go
8
8
 
9
9
  import (
10
10
  context "context"
@@ -23,6 +23,7 @@ const _ = grpc.SupportPackageIsVersion7
23
23
  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
24
24
  type InstallerServiceClient interface {
25
25
  GenerateInstaller(ctx context.Context, in *GenerateInstallerRequest, opts ...grpc.CallOption) (*GenerateInstallerResponse, error)
26
+ GetInstallerUrl(ctx context.Context, in *GetInstallerUrlRequest, opts ...grpc.CallOption) (*GetInstallerUrlResponse, error)
26
27
  }
27
28
 
28
29
  type installerServiceClient struct {
@@ -42,11 +43,21 @@ func (c *installerServiceClient) GenerateInstaller(ctx context.Context, in *Gene
42
43
  return out, nil
43
44
  }
44
45
 
46
+ func (c *installerServiceClient) GetInstallerUrl(ctx context.Context, in *GetInstallerUrlRequest, opts ...grpc.CallOption) (*GetInstallerUrlResponse, error) {
47
+ out := new(GetInstallerUrlResponse)
48
+ err := c.cc.Invoke(ctx, "/lansweeper.installer.v1.InstallerService/GetInstallerUrl", in, out, opts...)
49
+ if err != nil {
50
+ return nil, err
51
+ }
52
+ return out, nil
53
+ }
54
+
45
55
  // InstallerServiceServer is the server API for InstallerService service.
46
56
  // All implementations must embed UnimplementedInstallerServiceServer
47
57
  // for forward compatibility
48
58
  type InstallerServiceServer interface {
49
59
  GenerateInstaller(context.Context, *GenerateInstallerRequest) (*GenerateInstallerResponse, error)
60
+ GetInstallerUrl(context.Context, *GetInstallerUrlRequest) (*GetInstallerUrlResponse, error)
50
61
  mustEmbedUnimplementedInstallerServiceServer()
51
62
  }
52
63
 
@@ -57,6 +68,9 @@ type UnimplementedInstallerServiceServer struct {
57
68
  func (UnimplementedInstallerServiceServer) GenerateInstaller(context.Context, *GenerateInstallerRequest) (*GenerateInstallerResponse, error) {
58
69
  return nil, status.Errorf(codes.Unimplemented, "method GenerateInstaller not implemented")
59
70
  }
71
+ func (UnimplementedInstallerServiceServer) GetInstallerUrl(context.Context, *GetInstallerUrlRequest) (*GetInstallerUrlResponse, error) {
72
+ return nil, status.Errorf(codes.Unimplemented, "method GetInstallerUrl not implemented")
73
+ }
60
74
  func (UnimplementedInstallerServiceServer) mustEmbedUnimplementedInstallerServiceServer() {}
61
75
 
62
76
  // UnsafeInstallerServiceServer may be embedded to opt out of forward compatibility for this service.
@@ -88,6 +102,24 @@ func _InstallerService_GenerateInstaller_Handler(srv interface{}, ctx context.Co
88
102
  return interceptor(ctx, in, info, handler)
89
103
  }
90
104
 
105
+ func _InstallerService_GetInstallerUrl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
106
+ in := new(GetInstallerUrlRequest)
107
+ if err := dec(in); err != nil {
108
+ return nil, err
109
+ }
110
+ if interceptor == nil {
111
+ return srv.(InstallerServiceServer).GetInstallerUrl(ctx, in)
112
+ }
113
+ info := &grpc.UnaryServerInfo{
114
+ Server: srv,
115
+ FullMethod: "/lansweeper.installer.v1.InstallerService/GetInstallerUrl",
116
+ }
117
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
118
+ return srv.(InstallerServiceServer).GetInstallerUrl(ctx, req.(*GetInstallerUrlRequest))
119
+ }
120
+ return interceptor(ctx, in, info, handler)
121
+ }
122
+
91
123
  // InstallerService_ServiceDesc is the grpc.ServiceDesc for InstallerService service.
92
124
  // It's only intended for direct use with grpc.RegisterService,
93
125
  // and not to be introspected or modified (even as a copy)
@@ -99,7 +131,11 @@ var InstallerService_ServiceDesc = grpc.ServiceDesc{
99
131
  MethodName: "GenerateInstaller",
100
132
  Handler: _InstallerService_GenerateInstaller_Handler,
101
133
  },
134
+ {
135
+ MethodName: "GetInstallerUrl",
136
+ Handler: _InstallerService_GetInstallerUrl_Handler,
137
+ },
102
138
  },
103
139
  Streams: []grpc.StreamDesc{},
104
- Metadata: "installer.proto",
140
+ Metadata: "proto/installer.proto",
105
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansweeper/installer-grpc",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Installer grpc",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
@@ -15,5 +15,5 @@
15
15
  "peerDependencies": {
16
16
  "@grpc/grpc-js": "^1.6.2"
17
17
  },
18
- "gitHead": "47226bd945bf6d590523aa2bbebc8db186f83cac"
18
+ "gitHead": "74677022bfe0941a61ad1b1de9e177937799a057"
19
19
  }
@@ -13,6 +13,22 @@ message GenerateInstallerResponse {
13
13
  bool success = 1;
14
14
  }
15
15
 
16
+ message NullableString {
17
+ oneof kind {
18
+ string data = 1;
19
+ }
20
+ }
21
+
22
+ message GetInstallerUrlRequest {
23
+ NullableString client_id = 1;
24
+ }
25
+
26
+ message GetInstallerUrlResponse {
27
+ string url = 1;
28
+ bool success = 2;
29
+ }
30
+
16
31
  service InstallerService {
17
32
  rpc GenerateInstaller(GenerateInstallerRequest) returns (GenerateInstallerResponse) {}
33
+ rpc GetInstallerUrl(GetInstallerUrlRequest) returns (GetInstallerUrlResponse) {}
18
34
  }