Debian Codegraph @

retail/apiv2beta/retailpb/generative_question.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/retail/v2beta/generative_question.proto
20
21 package retailpb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 reflect "reflect"
28 sync "sync"
29 )
30
31 const (
32 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // Configuration for overall generative question feature state.
39 type GenerativeQuestionsFeatureConfig struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // Required. Resource name of the affected catalog.
45 // Format: projects/{project}/locations/{location}/catalogs/{catalog}
46 Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"`
47 // Optional. Determines whether questions will be used at serving time.
48 // Note: This feature cannot be enabled until initial data requirements are
49 // satisfied.
50 FeatureEnabled bool `protobuf:"varint,2,opt,name=feature_enabled,json=featureEnabled,proto3" json:"feature_enabled,omitempty"`
51 // Optional. Minimum number of products in the response to trigger follow-up
52 // questions. Value must be 0 or positive.
53 MinimumProducts int32 `protobuf:"varint,3,opt,name=minimum_products,json=minimumProducts,proto3" json:"minimum_products,omitempty"`
54 }
55
56 func (x *GenerativeQuestionsFeatureConfig) Reset() {
57 *x = GenerativeQuestionsFeatureConfig{}
58 mi := &file_google_cloud_retail_v2beta_generative_question_proto_msgTypes[0]
59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
60 ms.StoreMessageInfo(mi)
61 }
62
63 func (x *GenerativeQuestionsFeatureConfig) String() string {
64 return protoimpl.X.MessageStringOf(x)
65 }
66
67 func (*GenerativeQuestionsFeatureConfig) ProtoMessage() {}
68
69 func (x *GenerativeQuestionsFeatureConfig) ProtoReflect() protoreflect.Message {
70 mi := &file_google_cloud_retail_v2beta_generative_question_proto_msgTypes[0]
71 if x != nil {
72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
73 if ms.LoadMessageInfo() == nil {
74 ms.StoreMessageInfo(mi)
75 }
76 return ms
77 }
78 return mi.MessageOf(x)
79 }
80
81 // Deprecated: Use GenerativeQuestionsFeatureConfig.ProtoReflect.Descriptor instead.
82 func (*GenerativeQuestionsFeatureConfig) Descriptor() ([]byte, []int) {
83 return file_google_cloud_retail_v2beta_generative_question_proto_rawDescGZIP(), []int{0}
84 }
85
86 func (x *GenerativeQuestionsFeatureConfig) GetCatalog() string {
87 if x != nil {
88 return x.Catalog
89 }
90 return ""
91 }
92
93 func (x *GenerativeQuestionsFeatureConfig) GetFeatureEnabled() bool {
94 if x != nil {
95 return x.FeatureEnabled
96 }
97 return false
98 }
99
100 func (x *GenerativeQuestionsFeatureConfig) GetMinimumProducts() int32 {
101 if x != nil {
102 return x.MinimumProducts
103 }
104 return 0
105 }
106
107 // Configuration for a single generated question.
108 type GenerativeQuestionConfig struct {
109 state protoimpl.MessageState
110 sizeCache protoimpl.SizeCache
111 unknownFields protoimpl.UnknownFields
112
113 // Required. Resource name of the catalog.
114 // Format: projects/{project}/locations/{location}/catalogs/{catalog}
115 Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"`
116 // Required. The facet to which the question is associated.
117 Facet string `protobuf:"bytes,2,opt,name=facet,proto3" json:"facet,omitempty"`
118 // Output only. The LLM generated question.
119 GeneratedQuestion string `protobuf:"bytes,3,opt,name=generated_question,json=generatedQuestion,proto3" json:"generated_question,omitempty"`
120 // Optional. The question that will be used at serving time.
121 // Question can have a max length of 300 bytes.
122 // When not populated, generated_question should be used.
123 FinalQuestion string `protobuf:"bytes,4,opt,name=final_question,json=finalQuestion,proto3" json:"final_question,omitempty"`
124 // Output only. Values that can be used to answer the question.
125 ExampleValues []string `protobuf:"bytes,5,rep,name=example_values,json=exampleValues,proto3" json:"example_values,omitempty"`
126 // Output only. The ratio of how often a question was asked.
127 Frequency float32 `protobuf:"fixed32,6,opt,name=frequency,proto3" json:"frequency,omitempty"`
128 // Optional. Whether the question is asked at serving time.
129 AllowedInConversation bool `protobuf:"varint,7,opt,name=allowed_in_conversation,json=allowedInConversation,proto3" json:"allowed_in_conversation,omitempty"`
130 }
131
132 func (x *GenerativeQuestionConfig) Reset() {
133 *x = GenerativeQuestionConfig{}
134 mi := &file_google_cloud_retail_v2beta_generative_question_proto_msgTypes[1]
135 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
136 ms.StoreMessageInfo(mi)
137 }
138
139 func (x *GenerativeQuestionConfig) String() string {
140 return protoimpl.X.MessageStringOf(x)
141 }
142
143 func (*GenerativeQuestionConfig) ProtoMessage() {}
144
145 func (x *GenerativeQuestionConfig) ProtoReflect() protoreflect.Message {
146 mi := &file_google_cloud_retail_v2beta_generative_question_proto_msgTypes[1]
147 if x != nil {
148 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
149 if ms.LoadMessageInfo() == nil {
150 ms.StoreMessageInfo(mi)
151 }
152 return ms
153 }
154 return mi.MessageOf(x)
155 }
156
157 // Deprecated: Use GenerativeQuestionConfig.ProtoReflect.Descriptor instead.
158 func (*GenerativeQuestionConfig) Descriptor() ([]byte, []int) {
159 return file_google_cloud_retail_v2beta_generative_question_proto_rawDescGZIP(), []int{1}
160 }
161
162 func (x *GenerativeQuestionConfig) GetCatalog() string {
163 if x != nil {
164 return x.Catalog
165 }
166 return ""
167 }
168
169 func (x *GenerativeQuestionConfig) GetFacet() string {
170 if x != nil {
171 return x.Facet
172 }
173 return ""
174 }
175
176 func (x *GenerativeQuestionConfig) GetGeneratedQuestion() string {
177 if x != nil {
178 return x.GeneratedQuestion
179 }
180 return ""
181 }
182
183 func (x *GenerativeQuestionConfig) GetFinalQuestion() string {
184 if x != nil {
185 return x.FinalQuestion
186 }
187 return ""
188 }
189
190 func (x *GenerativeQuestionConfig) GetExampleValues() []string {
191 if x != nil {
192 return x.ExampleValues
193 }
194 return nil
195 }
196
197 func (x *GenerativeQuestionConfig) GetFrequency() float32 {
198 if x != nil {
199 return x.Frequency
200 }
201 return 0
202 }
203
204 func (x *GenerativeQuestionConfig) GetAllowedInConversation() bool {
205 if x != nil {
206 return x.AllowedInConversation
207 }
208 return false
209 }
210
211 var File_google_cloud_retail_v2beta_generative_question_proto protoreflect.FileDescriptor
212
213 var file_google_cloud_retail_v2beta_generative_question_proto_rawDesc = []byte{
214 0x0a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72,
215 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x65, 0x6e,
216 0x65, 0x72, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e,
217 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
218 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65,
219 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66,
220 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72,
221 0x6f, 0x74, 0x6f, 0x22, 0x9f, 0x01, 0x0a, 0x20, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69,
222 0x76, 0x65, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x46, 0x65, 0x61, 0x74, 0x75,
223 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x61, 0x74, 0x61,
224 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07,
225 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x2c, 0x0a, 0x0f, 0x66, 0x65, 0x61, 0x74, 0x75,
226 0x72, 0x65, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
227 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x45, 0x6e,
228 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x10, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d,
229 0x5f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x42,
230 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x50, 0x72, 0x6f,
231 0x64, 0x75, 0x63, 0x74, 0x73, 0x22, 0xc0, 0x02, 0x0a, 0x18, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61,
232 0x74, 0x69, 0x76, 0x65, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66,
233 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20,
234 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f,
235 0x67, 0x12, 0x19, 0x0a, 0x05, 0x66, 0x61, 0x63, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
236 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x66, 0x61, 0x63, 0x65, 0x74, 0x12, 0x32, 0x0a, 0x12,
237 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69,
238 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11, 0x67,
239 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e,
240 0x12, 0x2a, 0x0a, 0x0e, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69,
241 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0d, 0x66,
242 0x69, 0x6e, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x0e,
243 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x05,
244 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x65, 0x78, 0x61, 0x6d, 0x70,
245 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x09, 0x66, 0x72, 0x65, 0x71,
246 0x75, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x42, 0x03, 0xe0, 0x41, 0x03,
247 0x52, 0x09, 0x66, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x3b, 0x0a, 0x17, 0x61,
248 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72,
249 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41,
250 0x01, 0x52, 0x15, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x49, 0x6e, 0x43, 0x6f, 0x6e, 0x76,
251 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xd6, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d,
252 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65,
253 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x42, 0x17, 0x47, 0x65, 0x6e,
254 0x65, 0x72, 0x61, 0x74, 0x69, 0x76, 0x65, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x50,
255 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f,
256 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x65, 0x74, 0x61,
257 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x72, 0x65, 0x74,
258 0x61, 0x69, 0x6c, 0x70, 0x62, 0x3b, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0xa2, 0x02,
259 0x06, 0x52, 0x45, 0x54, 0x41, 0x49, 0x4c, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
260 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x56, 0x32,
261 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c,
262 0x6f, 0x75, 0x64, 0x5c, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x5c, 0x56, 0x32, 0x62, 0x65, 0x74,
263 0x61, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75,
264 0x64, 0x3a, 0x3a, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x65, 0x74,
265 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
266 }
267
268 var (
269 file_google_cloud_retail_v2beta_generative_question_proto_rawDescOnce sync.Once
270 file_google_cloud_retail_v2beta_generative_question_proto_rawDescData = file_google_cloud_retail_v2beta_generative_question_proto_rawDesc
271 )
272
273 func file_google_cloud_retail_v2beta_generative_question_proto_rawDescGZIP() []byte {
274 file_google_cloud_retail_v2beta_generative_question_proto_rawDescOnce.Do(func() {
275 file_google_cloud_retail_v2beta_generative_question_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_retail_v2beta_generative_question_proto_rawDescData)
276 })
277 return file_google_cloud_retail_v2beta_generative_question_proto_rawDescData
278 }
279
280 var file_google_cloud_retail_v2beta_generative_question_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
281 var file_google_cloud_retail_v2beta_generative_question_proto_goTypes = []any{
282 (*GenerativeQuestionsFeatureConfig)(nil), // 0: google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig
283 (*GenerativeQuestionConfig)(nil), // 1: google.cloud.retail.v2beta.GenerativeQuestionConfig
284 }
285 var file_google_cloud_retail_v2beta_generative_question_proto_depIdxs = []int32{
286 0, // [0:0] is the sub-list for method output_type
287 0, // [0:0] is the sub-list for method input_type
288 0, // [0:0] is the sub-list for extension type_name
289 0, // [0:0] is the sub-list for extension extendee
290 0, // [0:0] is the sub-list for field type_name
291 }
292
293 func init() { file_google_cloud_retail_v2beta_generative_question_proto_init() }
294 func file_google_cloud_retail_v2beta_generative_question_proto_init() {
295 if File_google_cloud_retail_v2beta_generative_question_proto != nil {
296 return
297 }
298 type x struct{}
299 out := protoimpl.TypeBuilder{
300 File: protoimpl.DescBuilder{
301 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
302 RawDescriptor: file_google_cloud_retail_v2beta_generative_question_proto_rawDesc,
303 NumEnums: 0,
304 NumMessages: 2,
305 NumExtensions: 0,
306 NumServices: 0,
307 },
308 GoTypes: file_google_cloud_retail_v2beta_generative_question_proto_goTypes,
309 DependencyIndexes: file_google_cloud_retail_v2beta_generative_question_proto_depIdxs,
310 MessageInfos: file_google_cloud_retail_v2beta_generative_question_proto_msgTypes,
311 }.Build()
312 File_google_cloud_retail_v2beta_generative_question_proto = out.File
313 file_google_cloud_retail_v2beta_generative_question_proto_rawDesc = nil
314 file_google_cloud_retail_v2beta_generative_question_proto_goTypes = nil
315 file_google_cloud_retail_v2beta_generative_question_proto_depIdxs = nil
316 }