/
common.pb.go
executable file
·1404 lines (1241 loc) · 53.3 KB
/
common.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
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.32.0
// protoc v4.25.2
// source: google/cloud/discoveryengine/v1alpha/common.proto
package discoveryenginepb
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
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)
)
// The industry vertical associated with the
// [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
type IndustryVertical int32
const (
// Value used when unset.
IndustryVertical_INDUSTRY_VERTICAL_UNSPECIFIED IndustryVertical = 0
// The generic vertical for documents that are not specific to any industry
// vertical.
IndustryVertical_GENERIC IndustryVertical = 1
// The media industry vertical.
IndustryVertical_MEDIA IndustryVertical = 2
// The healthcare FHIR vertical.
IndustryVertical_HEALTHCARE_FHIR IndustryVertical = 7
)
// Enum value maps for IndustryVertical.
var (
IndustryVertical_name = map[int32]string{
0: "INDUSTRY_VERTICAL_UNSPECIFIED",
1: "GENERIC",
2: "MEDIA",
7: "HEALTHCARE_FHIR",
}
IndustryVertical_value = map[string]int32{
"INDUSTRY_VERTICAL_UNSPECIFIED": 0,
"GENERIC": 1,
"MEDIA": 2,
"HEALTHCARE_FHIR": 7,
}
)
func (x IndustryVertical) Enum() *IndustryVertical {
p := new(IndustryVertical)
*p = x
return p
}
func (x IndustryVertical) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (IndustryVertical) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_discoveryengine_v1alpha_common_proto_enumTypes[0].Descriptor()
}
func (IndustryVertical) Type() protoreflect.EnumType {
return &file_google_cloud_discoveryengine_v1alpha_common_proto_enumTypes[0]
}
func (x IndustryVertical) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use IndustryVertical.Descriptor instead.
func (IndustryVertical) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1alpha_common_proto_rawDescGZIP(), []int{0}
}
// The type of solution.
type SolutionType int32
const (
// Default value.
SolutionType_SOLUTION_TYPE_UNSPECIFIED SolutionType = 0
// Used for Recommendations AI.
SolutionType_SOLUTION_TYPE_RECOMMENDATION SolutionType = 1
// Used for Discovery Search.
SolutionType_SOLUTION_TYPE_SEARCH SolutionType = 2
// Used for use cases related to the Generative AI agent.
SolutionType_SOLUTION_TYPE_CHAT SolutionType = 3
// Used for use cases related to the Generative Chat agent.
// It's used for Generative chat engine only, the associated data stores
// must enrolled with `SOLUTION_TYPE_CHAT` solution.
SolutionType_SOLUTION_TYPE_GENERATIVE_CHAT SolutionType = 4
)
// Enum value maps for SolutionType.
var (
SolutionType_name = map[int32]string{
0: "SOLUTION_TYPE_UNSPECIFIED",
1: "SOLUTION_TYPE_RECOMMENDATION",
2: "SOLUTION_TYPE_SEARCH",
3: "SOLUTION_TYPE_CHAT",
4: "SOLUTION_TYPE_GENERATIVE_CHAT",
}
SolutionType_value = map[string]int32{
"SOLUTION_TYPE_UNSPECIFIED": 0,
"SOLUTION_TYPE_RECOMMENDATION": 1,
"SOLUTION_TYPE_SEARCH": 2,
"SOLUTION_TYPE_CHAT": 3,
"SOLUTION_TYPE_GENERATIVE_CHAT": 4,
}
)
func (x SolutionType) Enum() *SolutionType {
p := new(SolutionType)
*p = x
return p
}
func (x SolutionType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SolutionType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_discoveryengine_v1alpha_common_proto_enumTypes[1].Descriptor()
}
func (SolutionType) Type() protoreflect.EnumType {
return &file_google_cloud_discoveryengine_v1alpha_common_proto_enumTypes[1]
}
func (x SolutionType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SolutionType.Descriptor instead.
func (SolutionType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1alpha_common_proto_rawDescGZIP(), []int{1}
}
// Tiers of search features. Different tiers might have different
// pricing. To learn more, check the pricing documentation.
type SearchTier int32
const (
// Default value when the enum is unspecified. This is invalid to use.
SearchTier_SEARCH_TIER_UNSPECIFIED SearchTier = 0
// Standard tier.
SearchTier_SEARCH_TIER_STANDARD SearchTier = 1
// Enterprise tier.
SearchTier_SEARCH_TIER_ENTERPRISE SearchTier = 2
)
// Enum value maps for SearchTier.
var (
SearchTier_name = map[int32]string{
0: "SEARCH_TIER_UNSPECIFIED",
1: "SEARCH_TIER_STANDARD",
2: "SEARCH_TIER_ENTERPRISE",
}
SearchTier_value = map[string]int32{
"SEARCH_TIER_UNSPECIFIED": 0,
"SEARCH_TIER_STANDARD": 1,
"SEARCH_TIER_ENTERPRISE": 2,
}
)
func (x SearchTier) Enum() *SearchTier {
p := new(SearchTier)
*p = x
return p
}
func (x SearchTier) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SearchTier) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_discoveryengine_v1alpha_common_proto_enumTypes[2].Descriptor()
}
func (SearchTier) Type() protoreflect.EnumType {
return &file_google_cloud_discoveryengine_v1alpha_common_proto_enumTypes[2]
}
func (x SearchTier) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SearchTier.Descriptor instead.
func (SearchTier) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1alpha_common_proto_rawDescGZIP(), []int{2}
}
// Add-on that provides additional functionality for search.
type SearchAddOn int32
const (
// Default value when the enum is unspecified. This is invalid to use.
SearchAddOn_SEARCH_ADD_ON_UNSPECIFIED SearchAddOn = 0
// Large language model add-on.
SearchAddOn_SEARCH_ADD_ON_LLM SearchAddOn = 1
)
// Enum value maps for SearchAddOn.
var (
SearchAddOn_name = map[int32]string{
0: "SEARCH_ADD_ON_UNSPECIFIED",
1: "SEARCH_ADD_ON_LLM",
}
SearchAddOn_value = map[string]int32{
"SEARCH_ADD_ON_UNSPECIFIED": 0,
"SEARCH_ADD_ON_LLM": 1,
}
)
func (x SearchAddOn) Enum() *SearchAddOn {
p := new(SearchAddOn)
*p = x
return p
}
func (x SearchAddOn) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SearchAddOn) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_discoveryengine_v1alpha_common_proto_enumTypes[3].Descriptor()
}
func (SearchAddOn) Type() protoreflect.EnumType {
return &file_google_cloud_discoveryengine_v1alpha_common_proto_enumTypes[3]
}
func (x SearchAddOn) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SearchAddOn.Descriptor instead.
func (SearchAddOn) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1alpha_common_proto_rawDescGZIP(), []int{3}
}
// Identity Provider Type.
type IdpConfig_IdpType int32
const (
// Default value. ACL search not enabled.
IdpConfig_IDP_TYPE_UNSPECIFIED IdpConfig_IdpType = 0
// Google 1P provider.
IdpConfig_GSUITE IdpConfig_IdpType = 1
// Third party provider.
IdpConfig_THIRD_PARTY IdpConfig_IdpType = 2
)
// Enum value maps for IdpConfig_IdpType.
var (
IdpConfig_IdpType_name = map[int32]string{
0: "IDP_TYPE_UNSPECIFIED",
1: "GSUITE",
2: "THIRD_PARTY",
}
IdpConfig_IdpType_value = map[string]int32{
"IDP_TYPE_UNSPECIFIED": 0,
"GSUITE": 1,
"THIRD_PARTY": 2,
}
)
func (x IdpConfig_IdpType) Enum() *IdpConfig_IdpType {
p := new(IdpConfig_IdpType)
*p = x
return p
}
func (x IdpConfig_IdpType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (IdpConfig_IdpType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_discoveryengine_v1alpha_common_proto_enumTypes[4].Descriptor()
}
func (IdpConfig_IdpType) Type() protoreflect.EnumType {
return &file_google_cloud_discoveryengine_v1alpha_common_proto_enumTypes[4]
}
func (x IdpConfig_IdpType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use IdpConfig_IdpType.Descriptor instead.
func (IdpConfig_IdpType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1alpha_common_proto_rawDescGZIP(), []int{7, 0}
}
// A floating point interval.
type Interval struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The lower bound of the interval. If neither of the min fields are
// set, then the lower bound is negative infinity.
//
// This field must be not larger than max.
// Otherwise, an `INVALID_ARGUMENT` error is returned.
//
// Types that are assignable to Min:
//
// *Interval_Minimum
// *Interval_ExclusiveMinimum
Min isInterval_Min `protobuf_oneof:"min"`
// The upper bound of the interval. If neither of the max fields are
// set, then the upper bound is positive infinity.
//
// This field must be not smaller than min.
// Otherwise, an `INVALID_ARGUMENT` error is returned.
//
// Types that are assignable to Max:
//
// *Interval_Maximum
// *Interval_ExclusiveMaximum
Max isInterval_Max `protobuf_oneof:"max"`
}
func (x *Interval) Reset() {
*x = Interval{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Interval) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Interval) ProtoMessage() {}
func (x *Interval) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Interval.ProtoReflect.Descriptor instead.
func (*Interval) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1alpha_common_proto_rawDescGZIP(), []int{0}
}
func (m *Interval) GetMin() isInterval_Min {
if m != nil {
return m.Min
}
return nil
}
func (x *Interval) GetMinimum() float64 {
if x, ok := x.GetMin().(*Interval_Minimum); ok {
return x.Minimum
}
return 0
}
func (x *Interval) GetExclusiveMinimum() float64 {
if x, ok := x.GetMin().(*Interval_ExclusiveMinimum); ok {
return x.ExclusiveMinimum
}
return 0
}
func (m *Interval) GetMax() isInterval_Max {
if m != nil {
return m.Max
}
return nil
}
func (x *Interval) GetMaximum() float64 {
if x, ok := x.GetMax().(*Interval_Maximum); ok {
return x.Maximum
}
return 0
}
func (x *Interval) GetExclusiveMaximum() float64 {
if x, ok := x.GetMax().(*Interval_ExclusiveMaximum); ok {
return x.ExclusiveMaximum
}
return 0
}
type isInterval_Min interface {
isInterval_Min()
}
type Interval_Minimum struct {
// Inclusive lower bound.
Minimum float64 `protobuf:"fixed64,1,opt,name=minimum,proto3,oneof"`
}
type Interval_ExclusiveMinimum struct {
// Exclusive lower bound.
ExclusiveMinimum float64 `protobuf:"fixed64,2,opt,name=exclusive_minimum,json=exclusiveMinimum,proto3,oneof"`
}
func (*Interval_Minimum) isInterval_Min() {}
func (*Interval_ExclusiveMinimum) isInterval_Min() {}
type isInterval_Max interface {
isInterval_Max()
}
type Interval_Maximum struct {
// Inclusive upper bound.
Maximum float64 `protobuf:"fixed64,3,opt,name=maximum,proto3,oneof"`
}
type Interval_ExclusiveMaximum struct {
// Exclusive upper bound.
ExclusiveMaximum float64 `protobuf:"fixed64,4,opt,name=exclusive_maximum,json=exclusiveMaximum,proto3,oneof"`
}
func (*Interval_Maximum) isInterval_Max() {}
func (*Interval_ExclusiveMaximum) isInterval_Max() {}
// A custom attribute that is not explicitly modeled in a resource, e.g.
// [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent].
type CustomAttribute struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The textual values of this custom attribute. For example, `["yellow",
// "green"]` when the key is "color".
//
// Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
// returned.
//
// Exactly one of
// [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
// or
// [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
// should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
Text []string `protobuf:"bytes,1,rep,name=text,proto3" json:"text,omitempty"`
// The numerical values of this custom attribute. For example, `[2.3, 15.4]`
// when the key is "lengths_cm".
//
// Exactly one of
// [CustomAttribute.text][google.cloud.discoveryengine.v1alpha.CustomAttribute.text]
// or
// [CustomAttribute.numbers][google.cloud.discoveryengine.v1alpha.CustomAttribute.numbers]
// should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
Numbers []float64 `protobuf:"fixed64,2,rep,packed,name=numbers,proto3" json:"numbers,omitempty"`
}
func (x *CustomAttribute) Reset() {
*x = CustomAttribute{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CustomAttribute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CustomAttribute) ProtoMessage() {}
func (x *CustomAttribute) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CustomAttribute.ProtoReflect.Descriptor instead.
func (*CustomAttribute) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1alpha_common_proto_rawDescGZIP(), []int{1}
}
func (x *CustomAttribute) GetText() []string {
if x != nil {
return x.Text
}
return nil
}
func (x *CustomAttribute) GetNumbers() []float64 {
if x != nil {
return x.Numbers
}
return nil
}
// Information of an end user.
type UserInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Highly recommended for logged-in users. Unique identifier for logged-in
// user, such as a user name. Don't set for anonymous users.
//
// Always use a hashed value for this ID.
//
// Don't set the field to the same fixed ID for different users. This mixes
// the event history of those users together, which results in degraded
// model quality.
//
// The field must be a UTF-8 encoded string with a length limit of 128
// characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// User agent as included in the HTTP header.
//
// The field must be a UTF-8 encoded string with a length limit of 1,000
// characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
//
// This should not be set when using the client side event reporting with
// GTM or JavaScript tag in
// [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent]
// or if
// [UserEvent.direct_user_request][google.cloud.discoveryengine.v1alpha.UserEvent.direct_user_request]
// is set.
UserAgent string `protobuf:"bytes,2,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
}
func (x *UserInfo) Reset() {
*x = UserInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserInfo) ProtoMessage() {}
func (x *UserInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.
func (*UserInfo) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1alpha_common_proto_rawDescGZIP(), []int{2}
}
func (x *UserInfo) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *UserInfo) GetUserAgent() string {
if x != nil {
return x.UserAgent
}
return ""
}
// Defines embedding config, used for bring your own embeddings feature.
type EmbeddingConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Full field path in the schema mapped as embedding field.
FieldPath string `protobuf:"bytes,1,opt,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"`
}
func (x *EmbeddingConfig) Reset() {
*x = EmbeddingConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EmbeddingConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EmbeddingConfig) ProtoMessage() {}
func (x *EmbeddingConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EmbeddingConfig.ProtoReflect.Descriptor instead.
func (*EmbeddingConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1alpha_common_proto_rawDescGZIP(), []int{3}
}
func (x *EmbeddingConfig) GetFieldPath() string {
if x != nil {
return x.FieldPath
}
return ""
}
// Double list.
type DoubleList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Double values.
Values []float64 `protobuf:"fixed64,1,rep,packed,name=values,proto3" json:"values,omitempty"`
}
func (x *DoubleList) Reset() {
*x = DoubleList{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DoubleList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DoubleList) ProtoMessage() {}
func (x *DoubleList) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DoubleList.ProtoReflect.Descriptor instead.
func (*DoubleList) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1alpha_common_proto_rawDescGZIP(), []int{4}
}
func (x *DoubleList) GetValues() []float64 {
if x != nil {
return x.Values
}
return nil
}
// Defines guided search spec.
type GuidedSearchSpec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Whether or not to enable and include refinement attributes in gudied search
// result.
EnableRefinementAttributes bool `protobuf:"varint,1,opt,name=enable_refinement_attributes,json=enableRefinementAttributes,proto3" json:"enable_refinement_attributes,omitempty"`
// Whether or not to enable and include related questions in search response.
EnableRelatedQuestions bool `protobuf:"varint,2,opt,name=enable_related_questions,json=enableRelatedQuestions,proto3" json:"enable_related_questions,omitempty"`
// Max number of related questions to be returned. The valid range is [1, 5].
// If enable_related_questions is true, the default value is 3.
MaxRelatedQuestions int32 `protobuf:"varint,3,opt,name=max_related_questions,json=maxRelatedQuestions,proto3" json:"max_related_questions,omitempty"`
}
func (x *GuidedSearchSpec) Reset() {
*x = GuidedSearchSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GuidedSearchSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GuidedSearchSpec) ProtoMessage() {}
func (x *GuidedSearchSpec) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GuidedSearchSpec.ProtoReflect.Descriptor instead.
func (*GuidedSearchSpec) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1alpha_common_proto_rawDescGZIP(), []int{5}
}
func (x *GuidedSearchSpec) GetEnableRefinementAttributes() bool {
if x != nil {
return x.EnableRefinementAttributes
}
return false
}
func (x *GuidedSearchSpec) GetEnableRelatedQuestions() bool {
if x != nil {
return x.EnableRelatedQuestions
}
return false
}
func (x *GuidedSearchSpec) GetMaxRelatedQuestions() int32 {
if x != nil {
return x.MaxRelatedQuestions
}
return 0
}
// Defines custom fine tuning spec.
type CustomFineTuningSpec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Whether or not to enable and include custom fine tuned search adaptor
// model.
EnableSearchAdaptor bool `protobuf:"varint,1,opt,name=enable_search_adaptor,json=enableSearchAdaptor,proto3" json:"enable_search_adaptor,omitempty"`
}
func (x *CustomFineTuningSpec) Reset() {
*x = CustomFineTuningSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CustomFineTuningSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CustomFineTuningSpec) ProtoMessage() {}
func (x *CustomFineTuningSpec) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CustomFineTuningSpec.ProtoReflect.Descriptor instead.
func (*CustomFineTuningSpec) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1alpha_common_proto_rawDescGZIP(), []int{6}
}
func (x *CustomFineTuningSpec) GetEnableSearchAdaptor() bool {
if x != nil {
return x.EnableSearchAdaptor
}
return false
}
// Identity Provider Config.
type IdpConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Identity provider type configured.
IdpType IdpConfig_IdpType `protobuf:"varint,1,opt,name=idp_type,json=idpType,proto3,enum=google.cloud.discoveryengine.v1alpha.IdpConfig_IdpType" json:"idp_type,omitempty"`
// External Identity provider config.
ExternalIdpConfig *IdpConfig_ExternalIdpConfig `protobuf:"bytes,2,opt,name=external_idp_config,json=externalIdpConfig,proto3" json:"external_idp_config,omitempty"`
}
func (x *IdpConfig) Reset() {
*x = IdpConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IdpConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IdpConfig) ProtoMessage() {}
func (x *IdpConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IdpConfig.ProtoReflect.Descriptor instead.
func (*IdpConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1alpha_common_proto_rawDescGZIP(), []int{7}
}
func (x *IdpConfig) GetIdpType() IdpConfig_IdpType {
if x != nil {
return x.IdpType
}
return IdpConfig_IDP_TYPE_UNSPECIFIED
}
func (x *IdpConfig) GetExternalIdpConfig() *IdpConfig_ExternalIdpConfig {
if x != nil {
return x.ExternalIdpConfig
}
return nil
}
// Principal identifier of a user or a group.
type Principal struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Union field principal. Principal can be a user or a group.
//
// Types that are assignable to Principal:
//
// *Principal_UserId
// *Principal_GroupId
Principal isPrincipal_Principal `protobuf_oneof:"principal"`
}
func (x *Principal) Reset() {
*x = Principal{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Principal) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Principal) ProtoMessage() {}
func (x *Principal) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Principal.ProtoReflect.Descriptor instead.
func (*Principal) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1alpha_common_proto_rawDescGZIP(), []int{8}
}
func (m *Principal) GetPrincipal() isPrincipal_Principal {
if m != nil {
return m.Principal
}
return nil
}
func (x *Principal) GetUserId() string {
if x, ok := x.GetPrincipal().(*Principal_UserId); ok {
return x.UserId
}
return ""
}
func (x *Principal) GetGroupId() string {
if x, ok := x.GetPrincipal().(*Principal_GroupId); ok {
return x.GroupId
}
return ""
}
type isPrincipal_Principal interface {
isPrincipal_Principal()
}
type Principal_UserId struct {
// User identifier.
// For Google Workspace user account, user_id should be the google workspace
// user email.
// For non-google identity provider user account, user_id is the mapped user
// identifier configured during the workforcepool config.
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3,oneof"`
}
type Principal_GroupId struct {
// Group identifier.
// For Google Workspace user account, group_id should be the google
// workspace group email.
// For non-google identity provider user account, group_id is the mapped
// group identifier configured during the workforcepool config.
GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3,oneof"`
}
func (*Principal_UserId) isPrincipal_Principal() {}
func (*Principal_GroupId) isPrincipal_Principal() {}
// Third party IDP Config.
type IdpConfig_ExternalIdpConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Workforce pool name.
// Example: "locations/global/workforcePools/pool_id"
WorkforcePoolName string `protobuf:"bytes,1,opt,name=workforce_pool_name,json=workforcePoolName,proto3" json:"workforce_pool_name,omitempty"`
}
func (x *IdpConfig_ExternalIdpConfig) Reset() {
*x = IdpConfig_ExternalIdpConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_discoveryengine_v1alpha_common_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IdpConfig_ExternalIdpConfig) String() string {