-
Notifications
You must be signed in to change notification settings - Fork 1
/
tpm_attestation_cert_service.pb.go
2527 lines (2249 loc) · 117 KB
/
tpm_attestation_cert_service.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-goten-go
// File: edgelq/ztp/proto/v1/tpm_attestation_cert_service.proto
// DO NOT EDIT!!!
package tpm_attestation_cert_client
import (
"fmt"
"reflect"
"sync"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"
preflect "google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/runtime/protoimpl"
)
// proto imports
import (
project "github.com/cloudwan/edgelq-sdk/ztp/resources/v1/project"
tpm_attestation_cert "github.com/cloudwan/edgelq-sdk/ztp/resources/v1/tpm_attestation_cert"
view "github.com/cloudwan/goten-sdk/types/view"
watch_type "github.com/cloudwan/goten-sdk/types/watch_type"
emptypb "google.golang.org/protobuf/types/known/emptypb"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = fmt.Errorf
_ = reflect.Method{}
_ = sync.Once{}
_ = protojson.MarshalOptions{}
_ = proto.MarshalOptions{}
_ = preflect.Value{}
_ = protoimpl.DescBuilder{}
)
// make sure we're using proto imports
var (
_ = &project.Project{}
_ = &tpm_attestation_cert.TpmAttestationCert{}
_ = &emptypb.Empty{}
_ = &fieldmaskpb.FieldMask{}
_ = ×tamppb.Timestamp{}
_ = view.View(0)
_ = watch_type.WatchType(0)
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Request message for method
// [GetTpmAttestationCert][ntt.ztp.v1.GetTpmAttestationCert]
type GetTpmAttestationCertRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of ntt.ztp.v1.TpmAttestationCert
Name *tpm_attestation_cert.Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
// A list of extra fields to be obtained for each response item on top of
// fields defined by request field view
FieldMask *tpm_attestation_cert.TpmAttestationCert_FieldMask `protobuf:"bytes,3,opt,customtype=TpmAttestationCert_FieldMask,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty" firestore:"fieldMask"`
// View defines list of standard response fields present in response items.
// Additional fields can be amended by request field field_mask
View view.View `protobuf:"varint,4,opt,name=view,proto3,enum=goten.types.View" json:"view,omitempty" firestore:"view"`
}
func (m *GetTpmAttestationCertRequest) Reset() {
*m = GetTpmAttestationCertRequest{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *GetTpmAttestationCertRequest) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*GetTpmAttestationCertRequest) ProtoMessage() {}
func (m *GetTpmAttestationCertRequest) ProtoReflect() preflect.Message {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*GetTpmAttestationCertRequest) GotenMessage() {}
// Deprecated, Use GetTpmAttestationCertRequest.ProtoReflect.Descriptor instead.
func (*GetTpmAttestationCertRequest) Descriptor() ([]byte, []int) {
return edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_rawDescGZIP(), []int{0}
}
func (m *GetTpmAttestationCertRequest) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *GetTpmAttestationCertRequest) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *GetTpmAttestationCertRequest) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *GetTpmAttestationCertRequest) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *GetTpmAttestationCertRequest) GetName() *tpm_attestation_cert.Name {
if m != nil {
return m.Name
}
return nil
}
func (m *GetTpmAttestationCertRequest) GetFieldMask() *tpm_attestation_cert.TpmAttestationCert_FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *GetTpmAttestationCertRequest) GetView() view.View {
if m != nil {
return m.View
}
return view.View_UNSPECIFIED
}
func (m *GetTpmAttestationCertRequest) SetName(fv *tpm_attestation_cert.Name) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Name", "GetTpmAttestationCertRequest"))
}
m.Name = fv
}
func (m *GetTpmAttestationCertRequest) SetFieldMask(fv *tpm_attestation_cert.TpmAttestationCert_FieldMask) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "FieldMask", "GetTpmAttestationCertRequest"))
}
m.FieldMask = fv
}
func (m *GetTpmAttestationCertRequest) SetView(fv view.View) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "View", "GetTpmAttestationCertRequest"))
}
m.View = fv
}
// Request message for method
// [BatchGetTpmAttestationCerts][ntt.ztp.v1.BatchGetTpmAttestationCerts]
type BatchGetTpmAttestationCertsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Names of TpmAttestationCerts
Names []*tpm_attestation_cert.Name `protobuf:"bytes,2,rep,customtype=Name,name=names,proto3" json:"names,omitempty" firestore:"names"`
// A list of extra fields to be obtained for each response item on top of
// fields defined by request field view
FieldMask *tpm_attestation_cert.TpmAttestationCert_FieldMask `protobuf:"bytes,3,opt,customtype=TpmAttestationCert_FieldMask,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty" firestore:"fieldMask"`
// View defines list of standard response fields present in response items.
// Additional fields can be amended by request field field_mask
View view.View `protobuf:"varint,4,opt,name=view,proto3,enum=goten.types.View" json:"view,omitempty" firestore:"view"`
}
func (m *BatchGetTpmAttestationCertsRequest) Reset() {
*m = BatchGetTpmAttestationCertsRequest{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *BatchGetTpmAttestationCertsRequest) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*BatchGetTpmAttestationCertsRequest) ProtoMessage() {}
func (m *BatchGetTpmAttestationCertsRequest) ProtoReflect() preflect.Message {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*BatchGetTpmAttestationCertsRequest) GotenMessage() {}
// Deprecated, Use BatchGetTpmAttestationCertsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetTpmAttestationCertsRequest) Descriptor() ([]byte, []int) {
return edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_rawDescGZIP(), []int{1}
}
func (m *BatchGetTpmAttestationCertsRequest) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *BatchGetTpmAttestationCertsRequest) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *BatchGetTpmAttestationCertsRequest) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *BatchGetTpmAttestationCertsRequest) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *BatchGetTpmAttestationCertsRequest) GetNames() []*tpm_attestation_cert.Name {
if m != nil {
return m.Names
}
return nil
}
func (m *BatchGetTpmAttestationCertsRequest) GetFieldMask() *tpm_attestation_cert.TpmAttestationCert_FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *BatchGetTpmAttestationCertsRequest) GetView() view.View {
if m != nil {
return m.View
}
return view.View_UNSPECIFIED
}
func (m *BatchGetTpmAttestationCertsRequest) SetNames(fv []*tpm_attestation_cert.Name) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Names", "BatchGetTpmAttestationCertsRequest"))
}
m.Names = fv
}
func (m *BatchGetTpmAttestationCertsRequest) SetFieldMask(fv *tpm_attestation_cert.TpmAttestationCert_FieldMask) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "FieldMask", "BatchGetTpmAttestationCertsRequest"))
}
m.FieldMask = fv
}
func (m *BatchGetTpmAttestationCertsRequest) SetView(fv view.View) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "View", "BatchGetTpmAttestationCertsRequest"))
}
m.View = fv
}
// BatchGetTpmAttestationCertsResponse
type BatchGetTpmAttestationCertsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// found TpmAttestationCerts
TpmAttestationCerts []*tpm_attestation_cert.TpmAttestationCert `protobuf:"bytes,1,rep,name=tpm_attestation_certs,json=tpmAttestationCerts,proto3" json:"tpm_attestation_certs,omitempty" firestore:"tpmAttestationCerts"`
// list of not found TpmAttestationCerts
Missing []*tpm_attestation_cert.Name `protobuf:"bytes,2,rep,customtype=Name,name=missing,proto3" json:"missing,omitempty" firestore:"missing"`
}
func (m *BatchGetTpmAttestationCertsResponse) Reset() {
*m = BatchGetTpmAttestationCertsResponse{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *BatchGetTpmAttestationCertsResponse) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*BatchGetTpmAttestationCertsResponse) ProtoMessage() {}
func (m *BatchGetTpmAttestationCertsResponse) ProtoReflect() preflect.Message {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*BatchGetTpmAttestationCertsResponse) GotenMessage() {}
// Deprecated, Use BatchGetTpmAttestationCertsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetTpmAttestationCertsResponse) Descriptor() ([]byte, []int) {
return edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_rawDescGZIP(), []int{2}
}
func (m *BatchGetTpmAttestationCertsResponse) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *BatchGetTpmAttestationCertsResponse) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *BatchGetTpmAttestationCertsResponse) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *BatchGetTpmAttestationCertsResponse) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *BatchGetTpmAttestationCertsResponse) GetTpmAttestationCerts() []*tpm_attestation_cert.TpmAttestationCert {
if m != nil {
return m.TpmAttestationCerts
}
return nil
}
func (m *BatchGetTpmAttestationCertsResponse) GetMissing() []*tpm_attestation_cert.Name {
if m != nil {
return m.Missing
}
return nil
}
func (m *BatchGetTpmAttestationCertsResponse) SetTpmAttestationCerts(fv []*tpm_attestation_cert.TpmAttestationCert) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "TpmAttestationCerts", "BatchGetTpmAttestationCertsResponse"))
}
m.TpmAttestationCerts = fv
}
func (m *BatchGetTpmAttestationCertsResponse) SetMissing(fv []*tpm_attestation_cert.Name) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Missing", "BatchGetTpmAttestationCertsResponse"))
}
m.Missing = fv
}
// Request message for method
// [ListTpmAttestationCerts][ntt.ztp.v1.ListTpmAttestationCerts]
type ListTpmAttestationCertsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Parent name of ntt.ztp.v1.TpmAttestationCert
Parent *tpm_attestation_cert.ParentName `protobuf:"bytes,1,opt,customtype=ParentName,name=parent,proto3" json:"parent,omitempty" firestore:"parent"`
// Requested page size. Server may return fewer TpmAttestationCerts than
// requested. If unspecified, server will pick an appropriate default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty" firestore:"pageSize"`
// A token identifying a page of results the server should return.
// Typically, this is the value of
// [ListTpmAttestationCertsResponse.next_page_token][ntt.ztp.v1.ListTpmAttestationCertsResponse.next_page_token]
PageToken *tpm_attestation_cert.PagerCursor `protobuf:"bytes,3,opt,customtype=PagerCursor,name=page_token,json=pageToken,proto3" json:"page_token,omitempty" firestore:"pageToken"`
// Order By -
// https://cloud.google.com/apis/design/design_patterns#list_pagination list
// of field path with order directive, either 'asc' or 'desc'. If direction is
// not provided, 'asc' is assumed. e.g. "state.nested_field asc,
// state.something.else desc, theme"
OrderBy *tpm_attestation_cert.OrderBy `protobuf:"bytes,4,opt,customtype=OrderBy,name=order_by,json=orderBy,proto3" json:"order_by,omitempty" firestore:"orderBy"`
// Filter - filter results by field criteria. Simplified SQL-like syntax with
// following operators:
// <=, >=, =, !=, <, >, LIKE, CONTAINS (aliases CONTAIN, HAS, HAVE), IN, IS
// [NOT] NULL | NaN . Combine conditions with OR | AND example: 'meta.labels
// CONTAINS "severity:important" OR (state.last_error_time >
// "2018-11-15T10:00:00Z" AND state.status = "ERROR")'
Filter *tpm_attestation_cert.Filter `protobuf:"bytes,5,opt,customtype=Filter,name=filter,proto3" json:"filter,omitempty" firestore:"filter"`
// A list of extra fields to be obtained for each response item on top of
// fields defined by request field view
FieldMask *tpm_attestation_cert.TpmAttestationCert_FieldMask `protobuf:"bytes,6,opt,customtype=TpmAttestationCert_FieldMask,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty" firestore:"fieldMask"`
// View defines list of standard response fields present in response items.
// Additional fields can be amended by request field field_mask
View view.View `protobuf:"varint,7,opt,name=view,proto3,enum=goten.types.View" json:"view,omitempty" firestore:"view"`
// Indicates if list response should contain total count and offset (fields
// current_offset and total_results_count).
IncludePagingInfo bool `protobuf:"varint,8,opt,name=include_paging_info,json=includePagingInfo,proto3" json:"include_paging_info,omitempty" firestore:"includePagingInfo"`
}
func (m *ListTpmAttestationCertsRequest) Reset() {
*m = ListTpmAttestationCertsRequest{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *ListTpmAttestationCertsRequest) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*ListTpmAttestationCertsRequest) ProtoMessage() {}
func (m *ListTpmAttestationCertsRequest) ProtoReflect() preflect.Message {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*ListTpmAttestationCertsRequest) GotenMessage() {}
// Deprecated, Use ListTpmAttestationCertsRequest.ProtoReflect.Descriptor instead.
func (*ListTpmAttestationCertsRequest) Descriptor() ([]byte, []int) {
return edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_rawDescGZIP(), []int{3}
}
func (m *ListTpmAttestationCertsRequest) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *ListTpmAttestationCertsRequest) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *ListTpmAttestationCertsRequest) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *ListTpmAttestationCertsRequest) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *ListTpmAttestationCertsRequest) GetParent() *tpm_attestation_cert.ParentName {
if m != nil {
return m.Parent
}
return nil
}
func (m *ListTpmAttestationCertsRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return int32(0)
}
func (m *ListTpmAttestationCertsRequest) GetPageToken() *tpm_attestation_cert.PagerCursor {
if m != nil {
return m.PageToken
}
return nil
}
func (m *ListTpmAttestationCertsRequest) GetOrderBy() *tpm_attestation_cert.OrderBy {
if m != nil {
return m.OrderBy
}
return nil
}
func (m *ListTpmAttestationCertsRequest) GetFilter() *tpm_attestation_cert.Filter {
if m != nil {
return m.Filter
}
return nil
}
func (m *ListTpmAttestationCertsRequest) GetFieldMask() *tpm_attestation_cert.TpmAttestationCert_FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *ListTpmAttestationCertsRequest) GetView() view.View {
if m != nil {
return m.View
}
return view.View_UNSPECIFIED
}
func (m *ListTpmAttestationCertsRequest) GetIncludePagingInfo() bool {
if m != nil {
return m.IncludePagingInfo
}
return false
}
func (m *ListTpmAttestationCertsRequest) SetParent(fv *tpm_attestation_cert.ParentName) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Parent", "ListTpmAttestationCertsRequest"))
}
m.Parent = fv
}
func (m *ListTpmAttestationCertsRequest) SetPageSize(fv int32) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "PageSize", "ListTpmAttestationCertsRequest"))
}
m.PageSize = fv
}
func (m *ListTpmAttestationCertsRequest) SetPageToken(fv *tpm_attestation_cert.PagerCursor) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "PageToken", "ListTpmAttestationCertsRequest"))
}
m.PageToken = fv
}
func (m *ListTpmAttestationCertsRequest) SetOrderBy(fv *tpm_attestation_cert.OrderBy) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "OrderBy", "ListTpmAttestationCertsRequest"))
}
m.OrderBy = fv
}
func (m *ListTpmAttestationCertsRequest) SetFilter(fv *tpm_attestation_cert.Filter) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Filter", "ListTpmAttestationCertsRequest"))
}
m.Filter = fv
}
func (m *ListTpmAttestationCertsRequest) SetFieldMask(fv *tpm_attestation_cert.TpmAttestationCert_FieldMask) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "FieldMask", "ListTpmAttestationCertsRequest"))
}
m.FieldMask = fv
}
func (m *ListTpmAttestationCertsRequest) SetView(fv view.View) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "View", "ListTpmAttestationCertsRequest"))
}
m.View = fv
}
func (m *ListTpmAttestationCertsRequest) SetIncludePagingInfo(fv bool) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "IncludePagingInfo", "ListTpmAttestationCertsRequest"))
}
m.IncludePagingInfo = fv
}
// Request message for method
// [ListTpmAttestationCerts][ntt.ztp.v1.ListTpmAttestationCerts]
type ListTpmAttestationCertsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The list of TpmAttestationCerts
TpmAttestationCerts []*tpm_attestation_cert.TpmAttestationCert `protobuf:"bytes,1,rep,name=tpm_attestation_certs,json=tpmAttestationCerts,proto3" json:"tpm_attestation_certs,omitempty" firestore:"tpmAttestationCerts"`
// A token to retrieve previous page of results. Pass this value in the
// [ListTpmAttestationCertsRequest.page_token][ntt.ztp.v1.ListTpmAttestationCertsRequest.page_token]
PrevPageToken *tpm_attestation_cert.PagerCursor `protobuf:"bytes,3,opt,customtype=PagerCursor,name=prev_page_token,json=prevPageToken,proto3" json:"prev_page_token,omitempty" firestore:"prevPageToken"`
// A token to retrieve next page of results. Pass this value in the
// [ListTpmAttestationCertsRequest.page_token][ntt.ztp.v1.ListTpmAttestationCertsRequest.page_token]
NextPageToken *tpm_attestation_cert.PagerCursor `protobuf:"bytes,4,opt,customtype=PagerCursor,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty" firestore:"nextPageToken"`
// Current offset from the first page or 0 if no page tokens were given,
// paging info was not requested or there was an error while trying to get
// it). Page index can be computed from offset and limit provided in a
// request.
CurrentOffset int32 `protobuf:"varint,5,opt,name=current_offset,json=currentOffset,proto3" json:"current_offset,omitempty" firestore:"currentOffset"`
// Number of total TpmAttestationCerts across all pages or 0, if there are no
// items, paging info was not requested or there was an error while trying to
// get it.
TotalResultsCount int32 `protobuf:"varint,6,opt,name=total_results_count,json=totalResultsCount,proto3" json:"total_results_count,omitempty" firestore:"totalResultsCount"`
}
func (m *ListTpmAttestationCertsResponse) Reset() {
*m = ListTpmAttestationCertsResponse{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *ListTpmAttestationCertsResponse) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*ListTpmAttestationCertsResponse) ProtoMessage() {}
func (m *ListTpmAttestationCertsResponse) ProtoReflect() preflect.Message {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*ListTpmAttestationCertsResponse) GotenMessage() {}
// Deprecated, Use ListTpmAttestationCertsResponse.ProtoReflect.Descriptor instead.
func (*ListTpmAttestationCertsResponse) Descriptor() ([]byte, []int) {
return edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_rawDescGZIP(), []int{4}
}
func (m *ListTpmAttestationCertsResponse) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *ListTpmAttestationCertsResponse) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *ListTpmAttestationCertsResponse) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *ListTpmAttestationCertsResponse) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *ListTpmAttestationCertsResponse) GetTpmAttestationCerts() []*tpm_attestation_cert.TpmAttestationCert {
if m != nil {
return m.TpmAttestationCerts
}
return nil
}
func (m *ListTpmAttestationCertsResponse) GetPrevPageToken() *tpm_attestation_cert.PagerCursor {
if m != nil {
return m.PrevPageToken
}
return nil
}
func (m *ListTpmAttestationCertsResponse) GetNextPageToken() *tpm_attestation_cert.PagerCursor {
if m != nil {
return m.NextPageToken
}
return nil
}
func (m *ListTpmAttestationCertsResponse) GetCurrentOffset() int32 {
if m != nil {
return m.CurrentOffset
}
return int32(0)
}
func (m *ListTpmAttestationCertsResponse) GetTotalResultsCount() int32 {
if m != nil {
return m.TotalResultsCount
}
return int32(0)
}
func (m *ListTpmAttestationCertsResponse) SetTpmAttestationCerts(fv []*tpm_attestation_cert.TpmAttestationCert) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "TpmAttestationCerts", "ListTpmAttestationCertsResponse"))
}
m.TpmAttestationCerts = fv
}
func (m *ListTpmAttestationCertsResponse) SetPrevPageToken(fv *tpm_attestation_cert.PagerCursor) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "PrevPageToken", "ListTpmAttestationCertsResponse"))
}
m.PrevPageToken = fv
}
func (m *ListTpmAttestationCertsResponse) SetNextPageToken(fv *tpm_attestation_cert.PagerCursor) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "NextPageToken", "ListTpmAttestationCertsResponse"))
}
m.NextPageToken = fv
}
func (m *ListTpmAttestationCertsResponse) SetCurrentOffset(fv int32) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "CurrentOffset", "ListTpmAttestationCertsResponse"))
}
m.CurrentOffset = fv
}
func (m *ListTpmAttestationCertsResponse) SetTotalResultsCount(fv int32) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "TotalResultsCount", "ListTpmAttestationCertsResponse"))
}
m.TotalResultsCount = fv
}
// Request message for method
// [WatchTpmAttestationCert][ntt.ztp.v1.WatchTpmAttestationCert]
type WatchTpmAttestationCertRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of ntt.ztp.v1.TpmAttestationCert
Name *tpm_attestation_cert.Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
// A list of extra fields to be obtained for each response item on top of
// fields defined by request field view
FieldMask *tpm_attestation_cert.TpmAttestationCert_FieldMask `protobuf:"bytes,2,opt,customtype=TpmAttestationCert_FieldMask,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty" firestore:"fieldMask"`
// View defines list of standard response fields present in response items.
// Additional fields can be amended by request field field_mask
View view.View `protobuf:"varint,4,opt,name=view,proto3,enum=goten.types.View" json:"view,omitempty" firestore:"view"`
}
func (m *WatchTpmAttestationCertRequest) Reset() {
*m = WatchTpmAttestationCertRequest{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *WatchTpmAttestationCertRequest) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*WatchTpmAttestationCertRequest) ProtoMessage() {}
func (m *WatchTpmAttestationCertRequest) ProtoReflect() preflect.Message {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*WatchTpmAttestationCertRequest) GotenMessage() {}
// Deprecated, Use WatchTpmAttestationCertRequest.ProtoReflect.Descriptor instead.
func (*WatchTpmAttestationCertRequest) Descriptor() ([]byte, []int) {
return edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_rawDescGZIP(), []int{5}
}
func (m *WatchTpmAttestationCertRequest) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *WatchTpmAttestationCertRequest) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *WatchTpmAttestationCertRequest) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *WatchTpmAttestationCertRequest) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *WatchTpmAttestationCertRequest) GetName() *tpm_attestation_cert.Name {
if m != nil {
return m.Name
}
return nil
}
func (m *WatchTpmAttestationCertRequest) GetFieldMask() *tpm_attestation_cert.TpmAttestationCert_FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *WatchTpmAttestationCertRequest) GetView() view.View {
if m != nil {
return m.View
}
return view.View_UNSPECIFIED
}
func (m *WatchTpmAttestationCertRequest) SetName(fv *tpm_attestation_cert.Name) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Name", "WatchTpmAttestationCertRequest"))
}
m.Name = fv
}
func (m *WatchTpmAttestationCertRequest) SetFieldMask(fv *tpm_attestation_cert.TpmAttestationCert_FieldMask) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "FieldMask", "WatchTpmAttestationCertRequest"))
}
m.FieldMask = fv
}
func (m *WatchTpmAttestationCertRequest) SetView(fv view.View) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "View", "WatchTpmAttestationCertRequest"))
}
m.View = fv
}
// WatchTpmAttestationCertResponse
type WatchTpmAttestationCertResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Change *tpm_attestation_cert.TpmAttestationCertChange `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty" firestore:"change"`
}
func (m *WatchTpmAttestationCertResponse) Reset() {
*m = WatchTpmAttestationCertResponse{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *WatchTpmAttestationCertResponse) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*WatchTpmAttestationCertResponse) ProtoMessage() {}
func (m *WatchTpmAttestationCertResponse) ProtoReflect() preflect.Message {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*WatchTpmAttestationCertResponse) GotenMessage() {}
// Deprecated, Use WatchTpmAttestationCertResponse.ProtoReflect.Descriptor instead.
func (*WatchTpmAttestationCertResponse) Descriptor() ([]byte, []int) {
return edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_rawDescGZIP(), []int{6}
}
func (m *WatchTpmAttestationCertResponse) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *WatchTpmAttestationCertResponse) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *WatchTpmAttestationCertResponse) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *WatchTpmAttestationCertResponse) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *WatchTpmAttestationCertResponse) GetChange() *tpm_attestation_cert.TpmAttestationCertChange {
if m != nil {
return m.Change
}
return nil
}
func (m *WatchTpmAttestationCertResponse) SetChange(fv *tpm_attestation_cert.TpmAttestationCertChange) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Change", "WatchTpmAttestationCertResponse"))
}
m.Change = fv
}
// Request message for method
// [WatchTpmAttestationCerts][ntt.ztp.v1.WatchTpmAttestationCerts]
type WatchTpmAttestationCertsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Type of a watch. Identifies how server stream data to a client, which
// fields in a request are allowed and which fields in response are relevant.
Type watch_type.WatchType `protobuf:"varint,9,opt,name=type,proto3,enum=goten.types.WatchType" json:"type,omitempty" firestore:"type"`
// Parent name of ntt.ztp.v1.TpmAttestationCert
Parent *tpm_attestation_cert.ParentName `protobuf:"bytes,1,opt,customtype=ParentName,name=parent,proto3" json:"parent,omitempty" firestore:"parent"`
// Requested page size. Server may return fewer TpmAttestationCerts than
// requested. If unspecified, server will pick an appropriate default. Can be
// populated only for stateful watch type.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty" firestore:"pageSize"`
// A token identifying a page of results the server should return.
// Can be populated only for stateful watch type.
PageToken *tpm_attestation_cert.PagerCursor `protobuf:"bytes,3,opt,customtype=PagerCursor,name=page_token,json=pageToken,proto3" json:"page_token,omitempty" firestore:"pageToken"`
// Order By -
// https://cloud.google.com/apis/design/design_patterns#list_pagination Can be
// populated only for stateful watch type.
OrderBy *tpm_attestation_cert.OrderBy `protobuf:"bytes,4,opt,customtype=OrderBy,name=order_by,json=orderBy,proto3" json:"order_by,omitempty" firestore:"orderBy"`
// A token identifying watch resume point from previous session.
// Can be populated only for stateless watch type.
ResumeToken string `protobuf:"bytes,10,opt,name=resume_token,json=resumeToken,proto3" json:"resume_token,omitempty" firestore:"resumeToken"`
// Point in the time from which we want to start getting updates. This field
// can be populated only for stateless watch type and if resume token is not
// known yet. If specified, initial snapshot will NOT be provided. It is
// assumed client can obtain it using separate means. Watch responses will
// contain resume tokens which should be used to resume broken connection.
StartingTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=starting_time,json=startingTime,proto3" json:"starting_time,omitempty" firestore:"startingTime"`
// Filter - filter results by field criteria. Simplified SQL-like syntax with
// following operators:
// <=, >=, =, !=, <, >, LIKE, CONTAINS (aliases CONTAIN, HAS, HAVE), IN, IS
// [NOT] NULL | NaN . Combine conditions with OR | AND example: 'meta.labels
// CONTAINS "severity:important" OR (state.last_error_time >
// "2018-11-15T10:00:00Z" AND state.status = "ERROR")'
Filter *tpm_attestation_cert.Filter `protobuf:"bytes,5,opt,customtype=Filter,name=filter,proto3" json:"filter,omitempty" firestore:"filter"`
// A list of extra fields to be obtained for each response item on top of
// fields defined by request field view Changes to TpmAttestationCert that
// don't affect any of masked fields won't be sent back.
FieldMask *tpm_attestation_cert.TpmAttestationCert_FieldMask `protobuf:"bytes,6,opt,customtype=TpmAttestationCert_FieldMask,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty" firestore:"fieldMask"`
// View defines list of standard response fields present in response items.
// Additional fields can be amended by request field field_mask Changes to
// TpmAttestationCert that don't affect any of masked fields won't be sent
// back.
View view.View `protobuf:"varint,8,opt,name=view,proto3,enum=goten.types.View" json:"view,omitempty" firestore:"view"`
// Maximum amount of changes in each response message. Query result response
// is divided on the server side into chunks with size of a specified amount
// to limit memory footprint of each message. Responses will hold information
// whether more elements will continue for the actual change. If unspecified,
// server will pick an appropriate default.
MaxChunkSize int32 `protobuf:"varint,11,opt,name=max_chunk_size,json=maxChunkSize,proto3" json:"max_chunk_size,omitempty" firestore:"maxChunkSize"`
}
func (m *WatchTpmAttestationCertsRequest) Reset() {
*m = WatchTpmAttestationCertsRequest{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *WatchTpmAttestationCertsRequest) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*WatchTpmAttestationCertsRequest) ProtoMessage() {}
func (m *WatchTpmAttestationCertsRequest) ProtoReflect() preflect.Message {
mi := &edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*WatchTpmAttestationCertsRequest) GotenMessage() {}
// Deprecated, Use WatchTpmAttestationCertsRequest.ProtoReflect.Descriptor instead.
func (*WatchTpmAttestationCertsRequest) Descriptor() ([]byte, []int) {
return edgelq_ztp_proto_v1_tpm_attestation_cert_service_proto_rawDescGZIP(), []int{7}
}
func (m *WatchTpmAttestationCertsRequest) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *WatchTpmAttestationCertsRequest) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *WatchTpmAttestationCertsRequest) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *WatchTpmAttestationCertsRequest) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *WatchTpmAttestationCertsRequest) GetType() watch_type.WatchType {
if m != nil {
return m.Type
}
return watch_type.WatchType_STATEFUL
}